Skip to content

Commit

Permalink
Add Ord to JwkId and JWK (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
mystenmark authored Aug 28, 2023
1 parent 1e1ee2b commit 91360ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fastcrypto-zkp/src/bn254/zk_login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const MAX_EXTRACTABLE_STR_LEN: u16 = 150;
const MAX_EXTRACTABLE_STR_LEN_B64: u16 = 4 * (1 + MAX_EXTRACTABLE_STR_LEN / 3);

/// Key to identify a JWK, consists of iss and kid.
#[derive(Debug, Clone, Hash, Eq, PartialEq, Serialize, Deserialize)]
#[derive(Debug, Clone, Hash, Eq, PartialEq, Serialize, Deserialize, PartialOrd, Ord)]
pub struct JwkId {
/// iss string that identifies the OIDC provider.
pub iss: String,
Expand Down Expand Up @@ -128,7 +128,7 @@ impl OIDCProvider {
/// Struct that contains info for a JWK. A list of them for different kids can
/// be retrieved from the JWK endpoint (e.g. <https://www.googleapis.com/oauth2/v3/certs>).
/// The JWK is used to verify the JWT token.
#[derive(PartialEq, Eq, Hash, Debug, Clone, Serialize, Deserialize)]
#[derive(PartialEq, Eq, Hash, Debug, Clone, Serialize, Deserialize, PartialOrd, Ord)]
pub struct JWK {
/// Key type parameter, https://datatracker.ietf.org/doc/html/rfc7517#section-4.1
pub kty: String,
Expand Down

0 comments on commit 91360ec

Please sign in to comment.