Skip to main content

decode_credential

Function decode_credential 

Source
pub fn decode_credential(
    jwt: &Jwt,
) -> Result<DecodedCredential, ValidationError>
Available on crate feature vc only.
Expand description

Decodes a VCDM 1.1 credential JWT without verifying or validating anything.

ยงErrors

ValidationError::Jws, ValidationError::Payload, ValidationError::UnexpectedTyp or ValidationError::Credential when the token does not decode to a credential, and ValidationError::SdJwtPayload when it is the issuer-signed JWT of an SD-JWT.