Skip to main content

import_verifying_key_jwk

Function import_verifying_key_jwk 

Source
pub async fn import_verifying_key_jwk(
    jwk: impl Into<String>,
) -> Result<VerifyingKey, Error>
Expand description

Import a public key as an RFC 8037 OKP public JWK (kty: "OKP", crv: "Ed25519", x; as JSON text). An alg member, when present, must be "Ed25519" or "EdDSA". The same strict point criterion as import_verifying_key_raw applies; see the WIT mac-key.export-key-jwk doc for the package-wide JWK contract.