Re-exports§
pub use serialization::p3_backend::GF as P3GF;pub use qp_poseidon_constants as constants;
Modules§
Structs§
Constants§
- FIELD_
ELEMENT_ PREIMAGE_ PADDING_ LEN - The number of field elements to which inputs are padded in circuit-compatible hashing functions.
Functions§
- double_
hash_ variable_ length - Double hash (preimage -> hash -> hash) field elements without any padding
- hash_
padded_ bytes - Hash bytes with constant padding to size C to ensure consistent circuit behavior NOTE: Will panic if felt encoded input exceeds capacity of C
- hash_
squeeze_ twice - Hash with 512-bit output by squeezing the sponge twice
- hash_
variable_ length - Hash field elements without any padding
- hash_
variable_ length_ bytes - Hash bytes without any padding NOTE: Not domain-separated from hash_variable_length; use with caution
- poseidon2_
from_ seed