Skip to content

Commit

Permalink
Merge branch 'main' into feat/did-key
Browse files Browse the repository at this point in the history
  • Loading branch information
eike-hass committed Jun 21, 2024
2 parents 585d4d1 + e1e2542 commit d5387b6
Show file tree
Hide file tree
Showing 20 changed files with 87 additions and 68 deletions.
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
# Changelog

## [v1.3.1](https://github.com/iotaledger/identity.rs/tree/v1.3.1) (2024-06-12)

[Full Changelog](https://github.com/iotaledger/identity.rs/compare/v1.3.0...v1.3.1)

### Patch

- Pin and bump `bls12_381_plus` dependency [\#1378](https://github.com/iotaledger/identity.rs/pull/1378)

# Changelog

## [v1.3.0](https://github.com/iotaledger/identity.rs/tree/v1.3.0) (2024-05-28)

[Full Changelog](https://github.com/iotaledger/identity.rs/compare/v1.2.0...v1.3.0)

### Added
- Add ZK BBS+-based selectively disclosable credentials (JPT) [\#1355](https://github.com/iotaledger/identity.rs/pull/1355)

- Add ZK BBS+-based selectively disclosable credentials \(JPT\) [\#1355](https://github.com/iotaledger/identity.rs/pull/1355)
- Add EcDSA verifier [\#1353](https://github.com/iotaledger/identity.rs/pull/1353)

### Patch
- Support for specification-compliant verification method type `JsonWebKey2020` [\#1367](https://github.com/iotaledger/identity.rs/pull/1367)

- Support for specification-compliant verification method type `JsonWebKey2020` [\#1367](https://github.com/iotaledger/identity.rs/pull/1367)

## [v1.2.0](https://github.com/iotaledger/identity.rs/tree/v1.2.0) (2024-03-27)

Expand Down
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ If you want to include IOTA Identity in your project, simply add it as a depende

```toml
[dependencies]
identity_iota = { version = "1.3.0" }
identity_iota = { version = "1.3.1" }
```

To try out the [examples](https://github.com/iotaledger/identity.rs/blob/HEAD/examples), you can also do this:
Expand Down Expand Up @@ -88,7 +88,7 @@ version = "1.0.0"
edition = "2021"

[dependencies]
identity_iota = { version = "1.3.0", features = ["memstore"] }
identity_iota = { version = "1.3.1", features = ["memstore"] }
iota-sdk = { version = "1.0.2", default-features = true, features = ["tls", "client", "stronghold"] }
tokio = { version = "1", features = ["full"] }
anyhow = "1.0.62"
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
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl WasmJptCredentialValidatorUtils {
WasmJptCredentialValidatorUtils
}

/// Utility for extracting the issuer field of a {@link `Credential`} as a DID.
/// Utility for extracting the issuer field of a {@link Credential} as a DID.
/// # Errors
/// Fails if the issuer field is not a valid DID.
#[wasm_bindgen(js_name = "extractIssuer")]
Expand Down
3 changes: 2 additions & 1 deletion examples/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[package]
name = "examples"
version = "1.3.0"
version = "1.3.1"
authors = ["IOTA Stiftung"]
edition = "2021"
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_core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "identity_core"
version = "1.3.0"
version = "1.3.1"
authors.workspace = true
edition.workspace = true
homepage.workspace = true
Expand Down
13 changes: 7 additions & 6 deletions identity_credential/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "identity_credential"
version = "1.3.0"
version = "1.3.1"
authors = ["IOTA Stiftung"]
edition = "2021"
homepage.workspace = true
Expand All @@ -13,12 +13,13 @@ description = "An implementation of the Verifiable Credentials standard."

[dependencies]
async-trait = { version = "0.1.64", default-features = false }
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 }
identity_did = { version = "=1.3.0", path = "../identity_did", default-features = false }
identity_document = { version = "=1.3.0", path = "../identity_document", default-features = false }
identity_verification = { version = "=1.3.0", path = "../identity_verification", default-features = false }
identity_core = { version = "=1.3.1", path = "../identity_core", default-features = false }
identity_did = { version = "=1.3.1", path = "../identity_did", default-features = false }
identity_document = { version = "=1.3.1", path = "../identity_document", default-features = false }
identity_verification = { version = "=1.3.1", path = "../identity_verification", default-features = false }
indexmap = { version = "2.0", default-features = false, features = ["std", "serde"] }
itertools = { version = "0.11", default-features = false, features = ["use_std"], optional = true }
json-proof-token = { workspace = true, optional = true }
Expand Down Expand Up @@ -58,7 +59,7 @@ validator = ["dep:itertools", "dep:serde_repr", "credential", "presentation"]
domain-linkage = ["validator"]
domain-linkage-fetch = ["domain-linkage", "dep:reqwest", "dep:futures"]
sd-jwt = ["credential", "validator", "dep:sd-jwt-payload"]
jpt-bbs-plus = ["credential", "validator", "dep:zkryptium", "dep:json-proof-token"]
jpt-bbs-plus = ["credential", "validator", "dep:zkryptium", "dep:bls12_381_plus", "dep:json-proof-token"]

[lints]
workspace = true
4 changes: 2 additions & 2 deletions identity_did/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "identity_did"
version = "1.3.0"
version = "1.3.1"
authors.workspace = true
edition = "2021"
homepage.workspace = true
Expand All @@ -13,7 +13,7 @@ description = "Agnostic implementation of the Decentralized Identifiers (DID) st
[dependencies]
did_url_parser = { version = "0.2.0", features = ["std", "serde"] }
form_urlencoded = { version = "1.2.0", default-features = false, features = ["alloc"] }
identity_core = { version = "=1.3.0", path = "../identity_core" }
identity_core = { version = "=1.3.1", path = "../identity_core" }
serde.workspace = true
strum.workspace = true
thiserror.workspace = true
Expand Down
8 changes: 4 additions & 4 deletions identity_document/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "identity_document"
version = "1.3.0"
version = "1.3.1"
authors.workspace = true
edition.workspace = true
homepage.workspace = true
Expand All @@ -13,9 +13,9 @@ description = "Method-agnostic implementation of the Decentralized Identifiers (

[dependencies]
did_url_parser = { version = "0.2.0", features = ["std", "serde"] }
identity_core = { version = "=1.3.0", path = "../identity_core" }
identity_did = { version = "=1.3.0", path = "../identity_did" }
identity_verification = { version = "=1.3.0", path = "../identity_verification", default-features = false }
identity_core = { version = "=1.3.1", path = "../identity_core" }
identity_did = { version = "=1.3.1", path = "../identity_did" }
identity_verification = { version = "=1.3.1", path = "../identity_verification", default-features = false }
indexmap = { version = "2.0", default-features = false, features = ["std", "serde"] }
serde.workspace = true
strum.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions identity_ecdsa_verifier/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "identity_ecdsa_verifier"
version = "1.3.0"
version = "1.3.1"
authors = ["IOTA Stiftung", "Filancore GmbH"]
edition.workspace = true
homepage.workspace = true
Expand All @@ -15,7 +15,7 @@ description = "JWS ECDSA signature verification for IOTA Identity"
workspace = true

[dependencies]
identity_verification = { version = "=1.3.0", path = "../identity_verification", default-features = false }
identity_verification = { version = "=1.3.1", path = "../identity_verification", default-features = false }
k256 = { version = "0.13.3", default-features = false, features = ["std", "ecdsa", "ecdsa-core"], optional = true }
p256 = { version = "0.13.2", default-features = false, features = ["std", "ecdsa", "ecdsa-core"], optional = true }
signature = { version = "2", default-features = false }
Expand Down
4 changes: 2 additions & 2 deletions identity_eddsa_verifier/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "identity_eddsa_verifier"
version = "1.3.0"
version = "1.3.1"
authors.workspace = true
edition.workspace = true
homepage.workspace = true
Expand All @@ -12,7 +12,7 @@ rust-version.workspace = true
description = "JWS EdDSA signature verification for IOTA Identity"

[dependencies]
identity_jose = { version = "=1.3.0", path = "../identity_jose", default-features = false }
identity_jose = { version = "=1.3.1", path = "../identity_jose", default-features = false }
iota-crypto = { version = "0.23", default-features = false, features = ["std"] }

[features]
Expand Down
18 changes: 9 additions & 9 deletions identity_iota/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "identity_iota"
version = "1.3.0"
version = "1.3.1"
authors.workspace = true
edition.workspace = true
homepage.workspace = true
Expand All @@ -12,14 +12,14 @@ rust-version.workspace = true
description = "Framework for Self-Sovereign Identity with IOTA DID."

[dependencies]
identity_core = { version = "=1.3.0", path = "../identity_core", default-features = false }
identity_credential = { version = "=1.3.0", path = "../identity_credential", features = ["validator"], default-features = false }
identity_did = { version = "=1.3.0", path = "../identity_did", default-features = false }
identity_document = { version = "=1.3.0", path = "../identity_document", default-features = false }
identity_iota_core = { version = "=1.3.0", path = "../identity_iota_core", default-features = false }
identity_resolver = { version = "=1.3.0", path = "../identity_resolver", default-features = false, optional = true }
identity_storage = { version = "=1.3.0", path = "../identity_storage", default-features = false, features = ["iota-document"] }
identity_verification = { version = "=1.3.0", path = "../identity_verification", default-features = false }
identity_core = { version = "=1.3.1", path = "../identity_core", default-features = false }
identity_credential = { version = "=1.3.1", path = "../identity_credential", features = ["validator"], default-features = false }
identity_did = { version = "=1.3.1", path = "../identity_did", default-features = false }
identity_document = { version = "=1.3.1", path = "../identity_document", default-features = false }
identity_iota_core = { version = "=1.3.1", path = "../identity_iota_core", default-features = false }
identity_resolver = { version = "=1.3.1", path = "../identity_resolver", default-features = false, optional = true }
identity_storage = { version = "=1.3.1", path = "../identity_storage", default-features = false, features = ["iota-document"] }
identity_verification = { version = "=1.3.1", path = "../identity_verification", default-features = false }

[dev-dependencies]
anyhow = "1.0.64"
Expand Down
4 changes: 2 additions & 2 deletions identity_iota/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ If you want to include IOTA Identity in your project, simply add it as a depende

```toml
[dependencies]
identity_iota = { version = "1.3.0" }
identity_iota = { version = "1.3.1" }
```

To try out the [examples](https://github.com/iotaledger/identity.rs/blob/HEAD/examples), you can also do this:
Expand Down Expand Up @@ -88,7 +88,7 @@ version = "1.0.0"
edition = "2021"

[dependencies]
identity_iota = { version = "1.3.0", features = ["memstore"] }
identity_iota = { version = "1.3.1", features = ["memstore"] }
iota-sdk = { version = "1.0.2", default-features = true, features = ["tls", "client", "stronghold"] }
tokio = { version = "1", features = ["full"] }
anyhow = "1.0.62"
Expand Down
12 changes: 6 additions & 6 deletions identity_iota_core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "identity_iota_core"
version = "1.3.0"
version = "1.3.1"
authors.workspace = true
edition.workspace = true
homepage.workspace = true
Expand All @@ -14,11 +14,11 @@ description = "An IOTA Ledger integration for the IOTA DID Method."
[dependencies]
async-trait = { version = "0.1.56", default-features = false, optional = true }
futures = { version = "0.3", default-features = false }
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 = ["validator"] }
identity_did = { version = "=1.3.0", path = "../identity_did", default-features = false }
identity_document = { version = "=1.3.0", path = "../identity_document", default-features = false }
identity_verification = { version = "=1.3.0", path = "../identity_verification", default-features = false }
identity_core = { version = "=1.3.1", path = "../identity_core", default-features = false }
identity_credential = { version = "=1.3.1", path = "../identity_credential", default-features = false, features = ["validator"] }
identity_did = { version = "=1.3.1", path = "../identity_did", default-features = false }
identity_document = { version = "=1.3.1", path = "../identity_document", default-features = false }
identity_verification = { version = "=1.3.1", path = "../identity_verification", default-features = false }
iota-sdk = { version = "1.1.5", default-features = false, features = ["serde", "std"], optional = true }
num-derive = { version = "0.4", default-features = false }
num-traits = { version = "0.2", default-features = false, features = ["std"] }
Expand Down
5 changes: 3 additions & 2 deletions identity_jose/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "identity_jose"
version = "1.3.0"
version = "1.3.1"
authors.workspace = true
edition.workspace = true
homepage.workspace = true
Expand All @@ -12,7 +12,8 @@ rust-version.workspace = true
description = "A library for JOSE (JSON Object Signing and Encryption)"

[dependencies]
identity_core = { version = "=1.3.0", path = "../identity_core", default-features = false }
bls12_381_plus.workspace = true
identity_core = { version = "=1.3.1", path = "../identity_core", default-features = false }
iota-crypto = { version = "0.23", default-features = false, features = ["std", "sha"] }
json-proof-token.workspace = true
serde.workspace = true
Expand Down
12 changes: 6 additions & 6 deletions identity_resolver/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "identity_resolver"
version = "1.3.0"
version = "1.3.1"
authors.workspace = true
edition.workspace = true
homepage.workspace = true
Expand All @@ -15,16 +15,16 @@ description = "DID Resolution utilities for the identity.rs library."
# This is currently necessary for the ResolutionHandler trait. This can be made an optional dependency if alternative ways of attaching handlers are introduced.
async-trait = { version = "0.1", default-features = false }
futures = { version = "0.3" }
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 = ["validator"] }
identity_did = { version = "=1.3.0", path = "../identity_did", default-features = false }
identity_document = { version = "=1.3.0", path = "../identity_document", default-features = false }
identity_core = { version = "=1.3.1", path = "../identity_core", default-features = false }
identity_credential = { version = "=1.3.1", path = "../identity_credential", default-features = false, features = ["validator"] }
identity_did = { version = "=1.3.1", path = "../identity_did", default-features = false }
identity_document = { version = "=1.3.1", path = "../identity_document", default-features = false }
serde = { version = "1.0", default-features = false, features = ["std", "derive"] }
strum.workspace = true
thiserror = { version = "1.0", default-features = false }

[dependencies.identity_iota_core]
version = "=1.3.0"
version = "=1.3.1"
path = "../identity_iota_core"
default-features = false
features = ["send-sync-client-ext", "iota-client"]
Expand Down
21 changes: 11 additions & 10 deletions identity_storage/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "identity_storage"
version = "1.3.0"
version = "1.3.1"
authors.workspace = true
edition.workspace = true
homepage.workspace = true
Expand All @@ -14,13 +14,14 @@ 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"] }
identity_did = { version = "=1.3.0", path = "../identity_did", default-features = false }
identity_document = { version = "=1.3.0", path = "../identity_document", default-features = false }
identity_iota_core = { version = "=1.3.0", path = "../identity_iota_core", default-features = false, optional = true }
identity_verification = { version = "=1.3.0", path = "../identity_verification", default_features = false }
identity_core = { version = "=1.3.1", path = "../identity_core", default-features = false }
identity_credential = { version = "=1.3.1", path = "../identity_credential", default-features = false, features = ["credential", "presentation", "revocation-bitmap"] }
identity_did = { version = "=1.3.1", path = "../identity_did", default-features = false }
identity_document = { version = "=1.3.1", path = "../identity_document", default-features = false }
identity_iota_core = { version = "=1.3.1", path = "../identity_iota_core", default-features = false, optional = true }
identity_verification = { version = "=1.3.1", path = "../identity_verification", default_features = false }
iota-crypto = { version = "0.23", default-features = false, features = ["ed25519"], optional = true }
json-proof-token = { workspace = true, optional = true }
rand = { version = "0.8.5", default-features = false, features = ["std", "std_rng"], optional = true }
Expand All @@ -32,8 +33,8 @@ tokio = { version = "1.29.0", default-features = false, features = ["macros", "s
zkryptium = { workspace = true, optional = true }

[dev-dependencies]
identity_credential = { version = "=1.3.0", path = "../identity_credential", features = ["revocation-bitmap"] }
identity_eddsa_verifier = { version = "=1.3.0", path = "../identity_eddsa_verifier", default-features = false, features = ["ed25519"] }
identity_credential = { version = "=1.3.1", path = "../identity_credential", features = ["revocation-bitmap"] }
identity_eddsa_verifier = { version = "=1.3.1", path = "../identity_eddsa_verifier", default-features = false, features = ["ed25519"] }
once_cell = { version = "1.18", default-features = false }
tokio = { version = "1.29.0", default-features = false, features = ["macros", "sync", "rt"] }

Expand All @@ -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
Loading

0 comments on commit d5387b6

Please sign in to comment.