poseidonM31

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	POW_5_GATE_ID     uint64 = 12345
	POW_5_COST_PSEUDO int    = 20
)

Functions

func PoseidonM31x16HashToState

func PoseidonM31x16HashToState(
	api frontend.API, fs []frontend.Variable) ([]frontend.Variable, uint)

func PoseidonM31x16Permutate

func PoseidonM31x16Permutate(
	api frontend.API, state []frontend.Variable) []frontend.Variable

func Power5

func Power5(field *big.Int, inputs []*big.Int, outputs []*big.Int) error

Types

type PoseidonM31x16Permutation

type PoseidonM31x16Permutation struct {
	State  [16]frontend.Variable
	Digest [16]frontend.Variable
}

func (*PoseidonM31x16Permutation) Define

type PoseidonM31x16Sponge

type PoseidonM31x16Sponge struct {
	ToBeHashed []frontend.Variable
	Digest     [16]frontend.Variable
}

func (*PoseidonM31x16Sponge) Define

func (p *PoseidonM31x16Sponge) Define(api frontend.API) error

Jump to

Keyboard shortcuts

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