Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

poseidon2-r1cs-bls12-381

R1CS Poseidon2 compress gadget over BLS12-381 Fr.

This crate matches:

It is compress-only and keeps constants in source.

API

  • compress(left, right) -> Scalar: native reference computation.
  • gadget::compress_allocated(cs, left, right) -> AllocatedNum<Scalar>: R1CS gadget.

This crate is gadget-centric. A test-only circuit wrapper lives in tests/compress_vectors.rs to run vector conformance checks.

Test vectors

Vector fixtures are committed in-repo at tests/vectors.json.

Run tests:

cargo test

About

Gnark compatible Poseidon2 compress function over BLS12-381 for Bellman

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages