Function sd_jwt::create_sd_jwt
source · [−]pub fn create_sd_jwt(
issuer: &Vec<u8>,
issuer_url: &str,
user_claims: Value,
exp: Option<u64>,
holder: Option<&Vec<u8>>
) -> Result<(Value, String, Value, String), SDError>
Expand description
Returns a Value, sd-jwt as serialized string, SVC value, and svc as serialized string.
Arguments
issuer
- The issuer RSA certificate as a reference to Vec. issuer_url
- The reference to the issuer URL.user_claims
- The map of user claims to be added in the JWT.exp
- Optional expiration value as u64.holder
- Optional holder binding public key