Skip to content

Commit

Permalink
pin bls12_381_plus in more places
Browse files Browse the repository at this point in the history
- additional crates that use `zkryptium`
- crates that use `json-proof-token`
  • Loading branch information
wulfraem committed Jun 12, 2024
1 parent dde7ec2 commit dca9acb
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ members = [
exclude = ["bindings/wasm", "bindings/grpc"]

[workspace.dependencies]
bls12_381_plus = { version = "=0.8.15" }
serde = { version = "1.0", default-features = false, features = ["alloc", "derive"] }
thiserror = { version = "1.0", default-features = false }
strum = { version = "0.25", default-features = false, features = ["std", "derive"] }
Expand Down
1 change: 1 addition & 0 deletions bindings/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ crate-type = ["cdylib", "rlib"]

[dependencies]
async-trait = { version = "0.1", default-features = false }
bls12_381_plus = "=0.8.15"
console_error_panic_hook = { version = "0.1" }
futures = { version = "0.3" }
identity_eddsa_verifier = { path = "../../identity_eddsa_verifier", default-features = false, features = ["ed25519"] }
Expand Down
1 change: 1 addition & 0 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ publish = false

[dependencies]
anyhow = "1.0.62"
bls12_381_plus.workspace = true
identity_eddsa_verifier = { path = "../identity_eddsa_verifier", default-features = false }
identity_iota = { path = "../identity_iota", default-features = false, features = ["iota-client", "client", "memstore", "domain-linkage", "revocation-bitmap", "status-list-2021", "jpt-bbs-plus"] }
identity_stronghold = { path = "../identity_stronghold", default-features = false, features = ["bbs-plus"] }
Expand Down
2 changes: 1 addition & 1 deletion identity_credential/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ description = "An implementation of the Verifiable Credentials standard."

[dependencies]
async-trait = { version = "0.1.64", default-features = false }
bls12_381_plus = { version = "=0.8.15", optional = true }
bls12_381_plus = { workspace = true, optional = true }
flate2 = { version = "1.0.28", default-features = false, features = ["rust_backend"], optional = true }
futures = { version = "0.3", default-features = false, optional = true }
identity_core = { version = "=1.3.0", path = "../identity_core", default-features = false }
Expand Down
1 change: 1 addition & 0 deletions identity_jose/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ rust-version.workspace = true
description = "A library for JOSE (JSON Object Signing and Encryption)"

[dependencies]
bls12_381_plus.workspace = true
identity_core = { version = "=1.3.0", path = "../identity_core", default-features = false }
iota-crypto = { version = "0.23", default-features = false, features = ["std", "sha"] }
json-proof-token.workspace = true
Expand Down
3 changes: 2 additions & 1 deletion identity_storage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ description = "Abstractions over storage for cryptographic keys used in DID Docu
[dependencies]
anyhow = "1.0.82"
async-trait = { version = "0.1.64", default-features = false }
bls12_381_plus = { workspace = true, optional = true }
futures = { version = "0.3.27", default-features = false, features = ["async-await"] }
identity_core = { version = "=1.3.0", path = "../identity_core", default-features = false }
identity_credential = { version = "=1.3.0", path = "../identity_credential", default-features = false, features = ["credential", "presentation", "revocation-bitmap"] }
Expand Down Expand Up @@ -46,7 +47,7 @@ send-sync-storage = []
# Implements the JwkStorageDocumentExt trait for IotaDocument
iota-document = ["dep:identity_iota_core"]
# Enables JSON Proof Token & BBS+ related features
jpt-bbs-plus = ["identity_credential/jpt-bbs-plus", "dep:zkryptium", "dep:json-proof-token"]
jpt-bbs-plus = ["identity_credential/jpt-bbs-plus", "dep:zkryptium", "dep:bls12_381_plus", "dep:json-proof-token"]

[lints]
workspace = true
4 changes: 3 additions & 1 deletion identity_stronghold/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ description = "Secure JWK storage with Stronghold for IOTA Identity"

[dependencies]
async-trait = { version = "0.1.64", default-features = false }
bls12_381_plus = { workspace = true, optional = true }
identity_storage = { version = "=1.3.0", path = "../identity_storage", default_features = false }
identity_verification = { version = "=1.3.0", path = "../identity_verification", default_features = false }
iota-crypto = { version = "0.23", default-features = false, features = ["ed25519"] }
Expand All @@ -26,6 +27,7 @@ zkryptium = { workspace = true, optional = true }

[dev-dependencies]
anyhow = "1.0.82"
bls12_381_plus = { workspace = true }
identity_did = { version = "=1.3.0", path = "../identity_did", default_features = false }
identity_storage = { version = "=1.3.0", path = "../identity_storage", default_features = false, features = ["jpt-bbs-plus"] }
json-proof-token = { workspace = true }
Expand All @@ -36,7 +38,7 @@ zkryptium = { workspace = true }
default = []
# Enables `Send` + `Sync` bounds for the trait implementations on `StrongholdStorage`.
send-sync-storage = ["identity_storage/send-sync-storage"]
bbs-plus = ["identity_storage/jpt-bbs-plus", "dep:zkryptium", "dep:json-proof-token"]
bbs-plus = ["identity_storage/jpt-bbs-plus", "dep:zkryptium", "dep:bls12_381_plus", "dep:json-proof-token"]

[lints]
workspace = true

0 comments on commit dca9acb

Please sign in to comment.