Trait askar_crypto::jwk::FromJwk
source · [−]pub trait FromJwk: Sized {
fn from_jwk_parts(jwk: JwkParts<'_>) -> Result<Self, Error>;
fn from_jwk(jwk: &str) -> Result<Self, Error> { ... }
fn from_jwk_slice(jwk: &[u8]) -> Result<Self, Error> { ... }
}
Expand description
Support for loading a key instance from a JWK
Required Methods
fn from_jwk_parts(jwk: JwkParts<'_>) -> Result<Self, Error>
fn from_jwk_parts(jwk: JwkParts<'_>) -> Result<Self, Error>
Import the key from a pre-parsed JWK
Provided Methods
Implementations on Foreign Types
Implementors
impl FromJwk for Ed25519KeyPair
Available on crate feature
ed25519
only.impl FromJwk for K256KeyPair
Available on crate feature
k256
only.impl FromJwk for P256KeyPair
Available on crate feature
p256
only.impl FromJwk for X25519KeyPair
Available on crate feature
ed25519
only.impl<Pk: BlsPublicKeyType> FromJwk for BlsKeyPair<Pk>
Available on crate feature
bls
only.