verify_presentation_jwt

Function verify_presentation_jwt 

Source
pub fn verify_presentation_jwt(
    jwt_str: &str,
    verifier: &dyn Verifier,
    expected_nonce: Option<&str>,
    expected_audience: Option<&str>,
) -> Result<VerifiablePresentation>
Expand description

Verify a JWT-encoded Verifiable Presentation.

Verifies the signature and extracts the VerifiablePresentation from the vp claim. If expected_nonce or expected_audience are provided, the corresponding JWT claims are validated.