iotaledger / identity.rs

Implementation of the Decentralized Identity standards such as DID and Verifiable Credentials by W3C for the IOTA Tangle.
https://www.iota.org
Apache License 2.0
299 stars 85 forks source link

Add ZK BBS+-based selectively disclosable credentials (JPT) #1355

Closed UMR1352 closed 4 months ago

UMR1352 commented 5 months ago

Description of change

Implement zero knowledge JPT encoded selectively disclosable credential following IETF's specification.

Links to any relevant issues

Closes #144 Closes #1324

Type of change

How the change has been tested

Added unit and integration tests, examples for both WASM and Rust targets.

Change checklist

wulfraem commented 5 months ago

Also tests::test_jwk_storage::write_to_disk (in identity_stronghold) runs into an error on my machine:

$ cargo test tests::test_jwk_storage::write_to_disk -- --exact
    Finished test [unoptimized + debuginfo] target(s) in 0.15s
     Running unittests src/lib.rs (/Users/swo/projects/iota/identity.rs-2/target/debug/deps/identity_stronghold-2e61cbd91c5befb5)

running 1 test
test tests::test_jwk_storage::write_to_disk ... FAILED

failures:

---- tests::test_jwk_storage::write_to_disk stdout ----
thread 'tests::test_jwk_storage::write_to_disk' panicked at identity_stronghold/src/tests/test_jwk_storage.rs:97:3:
assertion failed: exists
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

failures:
    tests::test_jwk_storage::write_to_disk

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 12 filtered out; finished in 0.02s
wulfraem commented 5 months ago

CI errors looks like to fail due to feature "bbs-plus" not being enabled in identity_stronghold.

Works locally if I start the tests with cargo test --features "bbs-plus". ^^