Module poseidon

Source
Expand description

Poseidon This file defines wrapper for the Poseidon hash function that are used in the Mina codebase.

It is a wrapper around the Poseidon implementation in the mina_poseidon crate. It is required as the native OCaml implementation of Mina does use the Rust implementation defined in the crate mina_poseidon instead of defining its own natively in OCaml for performance reasons. The bindings in OCaml can be found in src/lib/crypto/kimchi_bindings/pasta_fp_poseidon and src/lib/crypto/kimchi_bindings/pasta_fq_poseidon in the Mina codebase.

Functionsยง

caml_pasta_fp_poseidon_block_cipher
caml_pasta_fq_poseidon_block_cipher