diff --git a/src/key_binding_jwt_claims.rs b/src/key_binding_jwt_claims.rs index e83acda..e8dcdf5 100644 --- a/src/key_binding_jwt_claims.rs +++ b/src/key_binding_jwt_claims.rs @@ -24,6 +24,8 @@ pub struct KeyBindingJwtClaims { } impl KeyBindingJwtClaims { + pub const KB_JWT_HEADER_TYP: &'static str = " kb+jwt"; + /// Creates a new [`KeyBindingJwtClaims`]. /// When `issued_at` is left as None, it will automatically default to the current time /// diff --git a/src/sd_jwt.rs b/src/sd_jwt.rs index f17ad50..a0682ec 100644 --- a/src/sd_jwt.rs +++ b/src/sd_jwt.rs @@ -6,10 +6,12 @@ use std::fmt::Display; use crate::Error; use crate::Result; use itertools::Itertools; +use serde::Deserialize; +use serde::Serialize; /// Representation of an SD-JWT of the format /// `~~~...~~`. -#[derive(Debug, Clone, Eq, PartialEq)] +#[derive(Debug, Clone, Eq, PartialEq, Serialize, Deserialize)] pub struct SdJwt { /// The JWT part. pub jwt: String,