Skip to content

abenso/poseidon377

 
 

Repository files navigation

Poseidon

This repository contains:

Audits

poseidon-paramgen was audited by NCC Group in Summer 2022. Note that the audit covered only the parameter generation described in the original Poseidon paper. The Poseidon2 parameter generation is not yet audited.

Benchmarks

Run criterion benchmarks using:

cargo bench

This will generate a report at target/criterion/report/index.html.

Performance benchmarked on commit 9750f5ff01d11f158f111a1a75401901049e5575 on a 2023 Macbook Pro M2 (12 core CPU) with 32 GB memory using our 4-to-1 optimized poseidon hash takes 47.3µs, or ~21,141 hashes/second.

Generate Test Vectors

There is a test utility that will generate the proving and verifying keys for the R1CS tests. These keys are pre-generated to guard against breaking changes to the circuits (e.g. when upgrading Arkworks dependencies).

cargo test generate_test_vectors -- --ignored

About

An instantiation of the Poseidon hash for use with decaf377

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 98.6%
  • Sage 1.4%