Skip to main content

import_verifying_key_raw

Function import_verifying_key_raw 

Source
pub async fn import_verifying_key_raw(
    raw: impl Into<Vec<u8>>,
) -> Result<VerifyingKey, Error>
Expand description

Import a 32-byte raw public key (RFC 8032 encoding). Material of any other length fails Error::InvalidKey; a non-canonical or small-order encoding is rejected here or at verification, per the WIT interface’s verification criterion.