Documentation ¶
Index ¶
Constants ¶
View Source
const ( // n = floor(log2(Q)) N = 253 SeedC = "poseidon_constants" SeedM = "poseidon_matrix_0000" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PoseidonParams ¶
type PoseidonParams struct {
// contains filtered or unexported fields
}
func NewPoseidonParams ¶
func NewPoseidonParams(t int, nRoundsF int, nRoundsP int, securityTarget int) (*PoseidonParams, error)
get the param will use in the poseidon permutation(return err if param is not valid as poseidon params)
Click to show internal directories.
Click to hide internal directories.