WORK IN PROGRESS
This library is designed to facilitate the attachment of BBS+ signatures to RDF graphs, enabling the issuance of Verifiable Credentials. It also supports the aggregation of multiple Verifiable Credentials and allows for selective disclosure of their components. This results in the creation of Verifiable Presentations in the form of RDF datasets. The library utilizes the BBS+ signature scheme and proof-system library from docknetwork/crypto.
Ensure that Rust is installed on your system. Note: Starting with version 0.11.0, this crate requires Rust 1.81 or later due to updates in its dependencies, including Wasmer.
Add this crate to your project by running the following command:
cargo add rdf-proofs
cargo build
or
cargo build --release
cargo test
or
cargo test --release
Note: Some tests may fail with a stack overflow error, such as:
thread 'blind_signature::tests::blind_sign_and_unblind_and_verify_with_invalid_secret_failure' has overflowed its stack
fatal runtime error: stack overflow
To prevent this, you can increase the stack size. For example, setting it to 8MB, as suggested in the docknetwork/crypto README, works in most cases:
RUST_MIN_STACK=8388608 cargo test
TBD