Skip to content

Commit 13fa799

Browse files
feat: Add JwkSet type. (#692)
1 parent 559f30e commit 13fa799

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

crates/jwk/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ pub use algorithm::Algorithm;
1717
mod resolver;
1818
pub use resolver::*;
1919

20+
mod set;
21+
pub use set::*;
22+
2023
#[cfg(feature = "ripemd-160")]
2124
pub mod ripemd160;
2225

crates/jwk/src/set.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
use serde::{Deserialize, Serialize};
2+
3+
use super::JWK;
4+
5+
/// JWK Set.
6+
///
7+
/// See: <https://www.rfc-editor.org/rfc/rfc7517#section-5>
8+
#[derive(Debug, Default, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
9+
pub struct JwkSet {
10+
/// Keys.
11+
///
12+
/// See: <https://www.rfc-editor.org/rfc/rfc7517#section-5.1>
13+
pub keys: Vec<JWK>,
14+
}

0 commit comments

Comments
 (0)