2023-11-01 12:15:25 +09:00
2023-11-01 12:15:25 +09:00
2023-06-22 09:00:38 +09:00
2023-09-21 20:33:32 +09:00
2022-02-27 16:58:44 +09:00
2023-10-31 18:59:36 +09:00

zk-toolkit

Cryptographic primitive library built from scratch

Goal

To implement cryptographic primitives in the simplest form without using any optimization

What's implemented so far

  • Pinnochio verifiable computation (protocol 2)
    • Equation parser
    • R1CS
    • QAP
    • Proof generation and verification
  • BLS12-381
    • Extension fields
    • Miller's algorithm
    • Weil/Tate pairing
    • Key generation, sign and verify
  • Bulletproofs
    • Range proof
    • Inner product argument
  • Ed25519
    • EdDSA key generation, sign and veriry
  • Secp256k1
    • ECDSA key generation, sign and verify
  • Weierstrass curve
    • Affine coordinate operations
    • Jacobian coordinate operations
  • Generic HMAC
  • SHA256 and SHA512 hashers
  • Prime finite field
    • Scalar and vector operations

What's NOT implemented so far

  • Arbitrary-precision unsigned integer
  • Random number generator
Description
No description provided
Readme GPL-3.0 954 KiB
Languages
Rust 100%