Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashPoseidon ¶
HashPoseidon implements the HashFunction interface for the Poseidon hash
func (HashPoseidon[E]) Hash ¶
func (f HashPoseidon[E]) Hash(b ...[]byte) ([]byte, error)
Hash implements the hash method for the HashFunction HashPoseidon. It expects the byte arrays to be little-endian representations of big.Int values.
func (HashPoseidon[E]) Len ¶
func (HashPoseidon[E]) Len() int
Len returns the length of the Hash output
func (HashPoseidon[E]) Type ¶
func (HashPoseidon[E]) Type() []byte
Type returns the type of HashFunction for the HashPoseidon
Click to show internal directories.
Click to hide internal directories.