21 releases

0.6.1 Jan 14, 2026
0.6.0 Jul 14, 2025
0.5.0 May 14, 2025
0.4.0 Mar 17, 2025
0.1.6 Nov 16, 2023

#90 in Cryptography

Download history 707/week @ 2025-12-27 1053/week @ 2026-01-03 1203/week @ 2026-01-10 1403/week @ 2026-01-17 1012/week @ 2026-01-24 1463/week @ 2026-01-31 1100/week @ 2026-02-07 1374/week @ 2026-02-14 2443/week @ 2026-02-21 2432/week @ 2026-02-28 4638/week @ 2026-03-07 3487/week @ 2026-03-14 2967/week @ 2026-03-21 3892/week @ 2026-03-28 2813/week @ 2026-04-04 2814/week @ 2026-04-11

13,195 downloads per month
Used in 24 crates (6 directly)

Apache-2.0 and maybe LGPL-3.0+

380KB
7K SLoC

ZKryptium

License

Description

ZKryptium library provides an implementation of:

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

Getting Started

Requirements

Usage

BBS+:
[dependencies]
zkryptium = { version = "0.6.1", default-features = false, features = ["bbsplus"] }
BBS+ Blind signature:
[dependencies]
zkryptium = { version = "0.6.1", default-features = false, features = ["bbsplus", "bbsplus_blind"] }
BBS+ per Verifier Linkability:
[dependencies]
zkryptium = { version = "0.6.1", default-features = true}
CL2003:
[dependencies]
zkryptium = { version = "0.6.1", default-features = false, features = ["cl03"] }

Examples

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>
cargo run --example bbsplus_nym <ciphersuite>
Available Ciphersuites:
  • BLS12-381-SHA-256
  • BLS12-381-SHAKE-256

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>
Available Ciphersuites:
  • CL1024-SHA-256
  • CL2048-SHA-256
  • CL3072-SHA-256

Test

To test the library you can launch the test vectors with:

cargo test

Adopted by

We’re proud to be adopted by companies around the world. Here are a few of the organizations leveraging our library:

Dependencies

~3.5–5.5MB
~108K SLoC