15 releases

0.3.1 Oct 15, 2024
0.2.3 Sep 19, 2024
0.2.2 Apr 29, 2024
0.2.1 Mar 27, 2024
0.1.6 Nov 16, 2023

#105 in Authentication

Download history 886/week @ 2024-07-29 851/week @ 2024-08-05 1384/week @ 2024-08-12 1859/week @ 2024-08-19 1224/week @ 2024-08-26 1160/week @ 2024-09-02 1390/week @ 2024-09-09 1160/week @ 2024-09-16 906/week @ 2024-09-23 701/week @ 2024-09-30 678/week @ 2024-10-07 1014/week @ 2024-10-14 488/week @ 2024-10-21 412/week @ 2024-10-28 669/week @ 2024-11-04 442/week @ 2024-11-11

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

Apache-2.0 and maybe LGPL-3.0+

295KB
6K SLoC

ZKryptium

License

Description

ZKryptium provides an implementation in accordance with:

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.

Getting Started

Requirements

Usage

BBS+:
[dependencies]
zkryptium = { version = "0.3.0", default-features = false, features = ["bbsplus"] }
CL2003:
  • see the requirements above
[dependencies]
zkryptium = { version = "0.3.0", default-features = false, features = ["cl03"] }

Examples

Take a look at the examples.

You can run the example based on the BBS+ Signature Scheme with:

cargo run --example bbsplus <ciphersuite>
Available Ciphersuites:
  • BLS12-381-SHA-256
  • BLS12-381-SHAKE-256

You can run the example based on the CL2003 Signature Scheme with:

cargo run --example cl03 <ciphersuite>
Available Ciphersuites:
  • CL1024-SHA-256

Test

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

cargo test

Dependencies

~10–14MB
~223K SLoC