poseidon

package
v0.0.0-...-8eb9916 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const NROUNDSF = 6 //nolint:golint

Variables

View Source
var NROUNDSP = 53

For loopring only.

View Source
var NROUNDSPMAP = map[int]int{6: 52, 7: 52}

if input is in this map, use corresponding value as NROUNDSP

Functions

func Hash

func Hash(inpBI []*big.Int) (*big.Int, error)

Hash computes the Poseidon hash for the given inputs

func HashWithParams

func HashWithParams(inpBI []*big.Int, nRoundsP int) (*big.Int, error)

Hash computes the Poseidon 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