package bls12-381-hash

  1. Overview
  2. Docs

Generate your own Poseidon instance

Parameters

module Parameters : sig ... end

Signature

type ctxt

Context of the permutation

val init : Bls12_381.Fr.t array -> ctxt

init inputs returns a new context with an initialised state with the value inputs.

val apply_permutation : ctxt -> unit

apply_permutation ctxt applies a permutation on the state. The context is modified.

val get : ctxt -> Bls12_381.Fr.t array

get ctxt returns the state of the permutation

OCaml

Innovation. Community. Security.