Skip to content

Commit dbb4412

Browse files
wulfraemFrederik Rothenberger
authored andcommitted
Pin and bump bls12_381_plus dependency (iotaledger#1378)
1 parent 63d3683 commit dbb4412

File tree

7 files changed

+11
-3
lines changed

7 files changed

+11
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ members = [
2020
exclude = ["bindings/wasm", "bindings/grpc"]
2121

2222
[workspace.dependencies]
23+
bls12_381_plus = { version = "=0.8.15" }
2324
serde = { version = "1.0", default-features = false, features = ["alloc", "derive"] }
2425
thiserror = { version = "1.0", default-features = false }
2526
strum = { version = "0.25", default-features = false, features = ["std", "derive"] }

bindings/wasm/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ crate-type = ["cdylib", "rlib"]
1717

1818
[dependencies]
1919
async-trait = { version = "0.1", default-features = false }
20+
bls12_381_plus = "=0.8.15"
2021
console_error_panic_hook = { version = "0.1" }
2122
futures = { version = "0.3" }
2223
identity_eddsa_verifier = { path = "../../identity_eddsa_verifier", default-features = false, features = ["ed25519"] }

examples/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ publish = false
77

88
[dependencies]
99
anyhow = "1.0.62"
10+
bls12_381_plus.workspace = true
1011
identity_eddsa_verifier = { path = "../identity_eddsa_verifier", default-features = false }
1112
identity_iota = { path = "../identity_iota", default-features = false, features = ["iota-client", "client", "memstore", "domain-linkage", "revocation-bitmap", "status-list-2021", "jpt-bbs-plus"] }
1213
identity_stronghold = { path = "../identity_stronghold", default-features = false, features = ["bbs-plus"] }

identity_credential/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ description = "An implementation of the Verifiable Credentials standard."
1313

1414
[dependencies]
1515
async-trait = { version = "0.1.64", default-features = false }
16+
bls12_381_plus = { workspace = true, optional = true }
1617
flate2 = { version = "1.0.28", default-features = false, features = ["rust_backend"], optional = true }
1718
futures = { version = "0.3", default-features = false, optional = true }
1819
identity_core = { version = "=1.3.0", path = "../identity_core", default-features = false }
@@ -58,7 +59,7 @@ validator = ["dep:itertools", "dep:serde_repr", "credential", "presentation"]
5859
domain-linkage = ["validator"]
5960
domain-linkage-fetch = ["domain-linkage", "dep:reqwest", "dep:futures"]
6061
sd-jwt = ["credential", "validator", "dep:sd-jwt-payload"]
61-
jpt-bbs-plus = ["credential", "validator", "dep:zkryptium", "dep:json-proof-token"]
62+
jpt-bbs-plus = ["credential", "validator", "dep:zkryptium", "dep:bls12_381_plus", "dep:json-proof-token"]
6263
ic-wasm = []
6364

6465
[lints]

identity_jose/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ rust-version.workspace = true
1212
description = "A library for JOSE (JSON Object Signing and Encryption)"
1313

1414
[dependencies]
15+
bls12_381_plus.workspace = true
1516
identity_core = { version = "=1.3.0", path = "../identity_core", default-features = false }
1617
iota-crypto = { version = "0.23", default-features = false, features = ["std", "sha"] }
1718
json-proof-token.workspace = true

identity_storage/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ description = "Abstractions over storage for cryptographic keys used in DID Docu
1414
[dependencies]
1515
anyhow = "1.0.82"
1616
async-trait = { version = "0.1.64", default-features = false }
17+
bls12_381_plus = { workspace = true, optional = true }
1718
futures = { version = "0.3.27", default-features = false, features = ["async-await"] }
1819
identity_core = { version = "=1.3.0", path = "../identity_core", default-features = false }
1920
identity_credential = { version = "=1.3.0", path = "../identity_credential", default-features = false, features = ["credential", "presentation", "revocation-bitmap"] }
@@ -46,7 +47,7 @@ send-sync-storage = []
4647
# Implements the JwkStorageDocumentExt trait for IotaDocument
4748
iota-document = ["dep:identity_iota_core"]
4849
# Enables JSON Proof Token & BBS+ related features
49-
jpt-bbs-plus = ["identity_credential/jpt-bbs-plus", "dep:zkryptium", "dep:json-proof-token"]
50+
jpt-bbs-plus = ["identity_credential/jpt-bbs-plus", "dep:zkryptium", "dep:bls12_381_plus", "dep:json-proof-token"]
5051

5152
[lints]
5253
workspace = true

identity_stronghold/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ description = "Secure JWK storage with Stronghold for IOTA Identity"
1313

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

2728
[dev-dependencies]
2829
anyhow = "1.0.82"
30+
bls12_381_plus = { workspace = true }
2931
identity_did = { version = "=1.3.0", path = "../identity_did", default_features = false }
3032
identity_storage = { version = "=1.3.0", path = "../identity_storage", default_features = false, features = ["jpt-bbs-plus"] }
3133
json-proof-token = { workspace = true }
@@ -36,7 +38,7 @@ zkryptium = { workspace = true }
3638
default = []
3739
# Enables `Send` + `Sync` bounds for the trait implementations on `StrongholdStorage`.
3840
send-sync-storage = ["identity_storage/send-sync-storage"]
39-
bbs-plus = ["identity_storage/jpt-bbs-plus", "dep:zkryptium", "dep:json-proof-token"]
41+
bbs-plus = ["identity_storage/jpt-bbs-plus", "dep:zkryptium", "dep:bls12_381_plus", "dep:json-proof-token"]
4042

4143
[lints]
4244
workspace = true

0 commit comments

Comments
 (0)