poseidon

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0, MIT Imports: 2 Imported by: 7

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