poseidon

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2023 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NROUNDSF const from original paper
	NROUNDSF = 8
	// NROUNDSP const from original paper
	NROUNDSP = 22
	// CAPLEN const
	CAPLEN = 4
)

Variables

View Source
var (

	// C is a constant array of element
	C []*ffg.Element
	// M is a matrix
	M [][]*ffg.Element
	// P is a matrix
	P [][]*ffg.Element
	// S is a array of element
	S []*ffg.Element
)

Functions

func Hash

func Hash(inpBI [NROUNDSF]uint64, capBI [CAPLEN]uint64) ([CAPLEN]uint64, error)

Hash computes the hash for the given inputs

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL