4 releases (breaking)
0.4.0 | Jul 5, 2023 |
---|---|
0.3.0 | Apr 27, 2023 |
0.2.0 | Apr 19, 2023 |
0.1.0 | Dec 1, 2022 |
#1562 in Math
212 downloads per month
110KB
2K
SLoC
poseidon-paramgen
This crate is an independent implementation of Poseidon parameter generation.
lib.rs
:
Module for generating parameters for the Poseidon SNARK-friendly hash function.
This crate will, given a choice of:
- M, the desired security level (in bits),
- t, the width of the desired hash function, e.g. $t=3$ corresponds to 2-to-1 hash.
- p, the prime modulus,
allow_inverse
, whether or not to allow an inverse alpha for the Sbox layer.
generate the best choice of parameters, for both the unoptimized version of Poseidon specified in the Poseidon paper, as well as the optimizations described in Appendix B.
Dependencies
~3–4.5MB
~85K SLoC