Skip to content

Commit

Permalink
Reintroduce ssi-sd-jwt.
Browse files Browse the repository at this point in the history
  • Loading branch information
timothee-haudebourg committed Mar 26, 2024
1 parent bfdb996 commit 06d24be
Show file tree
Hide file tree
Showing 19 changed files with 35 additions and 38 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ ssi-ssh = { path = "./crates/ssh", version = "0.2", default-features = false }
ssi-claims-core = { path = "./crates/claims/core", version = "0.1", default-features = false }
ssi-jws = { path = "./crates/claims/crates/jws", version = "0.2", default-features = false }
ssi-jwt = { path = "./crates/claims/crates/jwt", version = "0.2", default-features = false }
ssi-sd-jwt = { path = "./crates/claims/crates/sd-jwt", version = "0.2", default-features = false }
ssi-vc = { path = "./crates/claims/crates/vc", version = "0.3", default-features = false }
ssi-data-integrity-core = { path = "./crates/claims/crates/data-integrity/core", version = "0.1", default-features = false }
ssi-data-integrity-suites = { path = "./crates/claims/crates/data-integrity/suites", version = "0.1", default-features = false }
Expand Down Expand Up @@ -98,6 +99,7 @@ educe = "0.4.22"
pin-project = "1.1.3"
futures = "0.3.28"
linked-data = "0.1.2"
rand = "0.8"
rand_chacha = "0.3.1"
contextual = "0.1.6"
lazy_static = "1.4.0"
Expand Down
1 change: 1 addition & 0 deletions crates/claims/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ ssi-verification-methods.workspace = true
ssi-claims-core.workspace = true
ssi-jws.workspace = true
ssi-jwt.workspace = true
ssi-sd-jwt.workspace = true
ssi-vc.workspace = true
ssi-data-integrity.workspace = true
ssi-dids-core.workspace = true
Expand Down
13 changes: 1 addition & 12 deletions crates/claims/crates/data-integrity/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,4 @@ linked-data.workspace = true
serde.workspace = true
serde_json.workspace = true
json-syntax.workspace = true
thiserror.workspace = true

# [dev-dependencies]
# async-std = { version = "1.9", features = ["attributes"] }
# # treeldr-rust-macros.workspace = true
# static-iref.workspace = true
# rand = "0.7"
# hashbrown = "0.13.0"
# iref = { workspace = true, features = ["hashbrown"] }
# xsd-types.workspace = true
# chrono.workspace = true
# serde = { workspace = true, features = ["derive"] }
thiserror.workspace = true
1 change: 0 additions & 1 deletion crates/claims/crates/data-integrity/suites/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ serde_jcs = { workspace = true, optional = true }

[dev-dependencies]
async-std = { version = "1.9", features = ["attributes"] }
# treeldr-rust-macros.workspace = true
static-iref.workspace = true
rand = "0.7"
hashbrown = "0.13.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/claims/crates/jws/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ ed25519-dalek = { workspace = true, optional = true }
sha2 = { workspace = true, optional = true }
sha3 = { workspace = true, optional = true }
rsa = { workspace = true, optional = true }
rand = { version = "0.8", optional = true }
rand = { workspace = true, optional = true }
ring = { version = "0.16", optional = true }
iref.workspace = true
ssi-crypto.workspace = true
Expand Down
24 changes: 24 additions & 0 deletions crates/claims/crates/sd-jwt/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[package]
name = "ssi-sd-jwt"
version = "0.2.0"
edition = "2021"
authors = ["Spruce Systems, Inc."]
license = "Apache-2.0"
description = "Implementation of SD-JWT for the ssi library."
repository = "https://github.com/spruceid/ssi/"
documentation = "https://docs.rs/ssi-sd-jwt/"

[dependencies]
base64.workspace = true
rand.workspace = true
serde = { workspace = true, features = ["derive"] }
serde_json.workspace = true
sha2.workspace = true
ssi-jwk.workspace = true
ssi-jws.workspace = true
ssi-jwt.workspace = true
thiserror.workspace = true

[dev-dependencies]
hex-literal = "0.4.1"
ssi-jws = { workspace = true, features = ["secp256r1"] }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions crates/claims/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ pub use ssi_jwt as jwt;

pub use jwt::JWTClaims;

/// Selective Disclosure for JWTs (SD-JWT).
///
/// See: <https://www.ietf.org/archive/id/draft-ietf-oauth-selective-disclosure-jwt-08.html>
pub use ssi_sd_jwt as sd_jwt;

/// W3C Verifiable Credentials (VC).
///
/// See: <https://www.w3.org/TR/vc-data-model>
Expand Down
2 changes: 1 addition & 1 deletion crates/jwk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ p256 = { workspace = true, optional = true, features = ["ecdsa"] }
p384 = { workspace = true, optional = true, features = ["ecdsa"] }
ring = { version = "0.16", optional = true }
rsa = { workspace = true, optional = true }
rand = { version = "0.8", optional = true }
rand = { workspace = true, optional = true }
ed25519-dalek = { workspace = true, optional = true, features = ["rand_core"] }
lazy_static = "1.4"
bs58 = { workspace = true, features = ["check"], optional = true }
Expand Down
23 changes: 0 additions & 23 deletions ssi-sd-jwt/Cargo.toml

This file was deleted.

0 comments on commit 06d24be

Please sign in to comment.