16 releases

0.3.2 Dec 16, 2024
0.3.1 Oct 15, 2024
0.3.0 Sep 20, 2024
0.2.2 Apr 29, 2024
0.1.6 Nov 16, 2023

#81 in Authentication

Download history 485/week @ 2024-10-20 423/week @ 2024-10-27 674/week @ 2024-11-03 437/week @ 2024-11-10 733/week @ 2024-11-17 978/week @ 2024-11-24 1372/week @ 2024-12-01 1417/week @ 2024-12-08 1069/week @ 2024-12-15 149/week @ 2024-12-22 383/week @ 2024-12-29 865/week @ 2025-01-05 1265/week @ 2025-01-12 1691/week @ 2025-01-19 1551/week @ 2025-01-26 1497/week @ 2025-02-02

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

Apache-2.0 and maybe LGPL-3.0+

290KB
6K 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.3.2", default-features = false, features = ["bbsplus"] }
CL2003:
[dependencies]
zkryptium = { version = "0.3.2", 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>
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

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

~11–14MB
~225K SLoC