13 releases

0.2.2 Apr 29, 2024
0.2.1 Mar 27, 2024
0.1.9 Feb 19, 2024
0.1.8 Dec 14, 2023
0.1.4 Oct 25, 2023

#719 in Cryptography

Download history 90/week @ 2024-02-13 56/week @ 2024-02-20 27/week @ 2024-02-27 1/week @ 2024-03-05 23/week @ 2024-03-12 133/week @ 2024-03-19 85/week @ 2024-03-26 44/week @ 2024-04-02 166/week @ 2024-04-23 143/week @ 2024-04-30

309 downloads per month
Used in json-proof-token

Apache-2.0 and maybe LGPL-3.0+

300KB
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.2.2", default-features = false, features = ["bbsplus"] }
CL2003:
  • see the requirements above
[dependencies]
zkryptium = { version = "0.2.2", 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

~9–13MB
~203K SLoC