zkryptium

Crates.iozkryptium
lib.rszkryptium
version0.3.1
sourcesrc
created_at2023-10-24 15:47:03.360474
updated_at2024-10-15 10:06:38.269212
descriptionRust crypto library for zero-knowledge proofs
homepage
repositoryhttps://github.com/Cybersecurity-LINKS/zkryptium
max_upload_size
id1012525
size620,522
(AleCla97)

documentation

README

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
Commit count: 191

cargo fmt