package bls12-381-hash

  1. Overview
  2. Docs

Module Poseidon.MakeSource

Generate your own Poseidon instance

Parameters

module Parameters : sig ... end

Signature

Sourcetype ctxt

Context of the permutation

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

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

Sourceval apply_permutation : ctxt -> unit

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

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

get ctxt returns the state of the permutation