sign_credential_jwt

Function sign_credential_jwt 

Source
pub fn sign_credential_jwt(
    vc: &VerifiableCredential,
    signer: &dyn Signer,
    kid: &str,
) -> Result<String>
Expand description

Sign a VerifiableCredential as a JWT.

Returns the compact JWT serialization. The kid should be a DID URL identifying the verification method (e.g., did:key:z6Mk...#z6Mk...).

Per the VC-JWT spec, valid_from maps to nbf and valid_until maps to exp. An iat (issued-at) claim is always included.