Crates.io | zkryptium |
lib.rs | zkryptium |
version | 0.3.2 |
source | src |
created_at | 2023-10-24 15:47:03.360474 |
updated_at | 2024-12-16 13:39:20.616341 |
description | Rust crypto library for zero-knowledge proofs |
homepage | |
repository | https://github.com/Cybersecurity-LINKS/zkryptium |
max_upload_size | |
id | 1012525 |
size | 608,317 |
ZKryptium library provides an implementation of:
BBS+(draft-irtf-cfrg-bbs-signatures-07) signature scheme
Blind BBS Signatures (draft-kalos-bbs-blind-signatures-01) signature scheme
CL2003 (https://link.springer.com/chapter/10.1007/3-540-36413-7_20) signature scheme
This library enables the creation of zero-knowledge proofs, exposing cryptographic primitives facilitating the development of a Verifiable Credentials (VCs) system capable of handling both Anonymous Credentials and Selective Disclosure Credentials.
WARNING: for CL2003 use a version from v0.3.2 onwards that uses a new secure cryptographic implementation of the Pseudo Random Number Generator ThreadRng
Rust (>= 1.65)
Cargo (>= 1.65)
The ZKryptium CL03 implementation also depends on the Rug crate which depends on GMP, MPFR and MPC libraries through the low-level FFI bindings in the gmp-mpfr-sys crate, which needs some setup to build; the gmp-mpfr-sys documentation has some details on usage under GNU/Linux, macOS and Windows.
[dependencies]
zkryptium = { version = "0.3.2", default-features = false, features = ["bbsplus"] }
[dependencies]
zkryptium = { version = "0.3.2", default-features = false, features = ["cl03"] }
Take a look at the examples.
You can run the examples based on the BBS+ Signature Scheme with:
cargo run --example bbsplus <ciphersuite>
cargo run --example bbsplus_blind <ciphersuite>
You can run the examples based on the CL2003 Signature Scheme with:
cargo run --features="cl03" --example cl03 <ciphersuite>
cargo run --features="cl03" --example cl03_multiattr <ciphersuite>
CL1024-SHA-256
To test the library you can launch the test vectors with:
cargo test
We’re proud to be adopted by companies around the world. Here are a few of the organizations leveraging our library: