Skip to content

Commit

Permalink
SdJwt shouldn't be serializable / deserializable with serde
Browse files Browse the repository at this point in the history
  • Loading branch information
UMR1352 committed Mar 6, 2024
1 parent a41c2b6 commit 96bd015
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sd_jwt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ use std::str::FromStr;
use crate::Error;
use crate::Result;
use itertools::Itertools;
use serde_with::DeserializeFromStr;
use serde_with::SerializeDisplay;

/// Representation of an SD-JWT of the format
/// `<Issuer-signed JWT>~<Disclosure 1>~<Disclosure 2>~...~<Disclosure N>~<optional KB-JWT>`.
#[derive(Debug, Clone, Eq, PartialEq, SerializeDisplay, DeserializeFromStr)]
#[derive(Debug, Clone, Eq, PartialEq)]
pub struct SdJwt {
/// The JWT part.
pub jwt: String,
Expand Down

0 comments on commit 96bd015

Please sign in to comment.