Crate qp_poseidon_core

Crate qp_poseidon_core 

Source

Re-exports§

pub use serialization::p3_backend::GF as P3GF;
pub use qp_poseidon_constants as constants;

Modules§

serialization

Structs§

Poseidon2State

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