Skip to main content
Version: 6.11.0

Namespace: poseidon

hash.poseidon

Hashes Exports

Type Aliases​

PoseidonOpts​

Ƭ PoseidonOpts: Object

Type declaration​

NameType
FpIField<bigint>
tnumber
roundsFullnumber
roundsPartialnumber
sboxPower?number
reversePartialPowIdx?boolean
mdsbigint[][]
roundConstantsbigint[][]

Defined in​

node_modules/@noble/curves/esm/abstract/poseidon.d.ts:3

Functions​

validateOpts​

â–¸ validateOpts(opts): Readonly<{ rounds: number ; sboxFn: (n: bigint) => bigint ; roundConstants: bigint[][] ; mds: bigint[][] ; Fp: IField<bigint> ; t: number ; roundsFull: number ; roundsPartial: number ; sboxPower?: number ; reversePartialPowIdx?: boolean }>

Parameters​

NameType
optsPoseidonOpts

Returns​

Readonly<{ rounds: number ; sboxFn: (n: bigint) => bigint ; roundConstants: bigint[][] ; mds: bigint[][] ; Fp: IField<bigint> ; t: number ; roundsFull: number ; roundsPartial: number ; sboxPower?: number ; reversePartialPowIdx?: boolean }>

Defined in​

node_modules/@noble/curves/esm/abstract/poseidon.d.ts:13


splitConstants​

â–¸ splitConstants(rc, t): bigint[][]

Parameters​

NameType
rcbigint[]
tnumber

Returns​

bigint[][]

Defined in​

node_modules/@noble/curves/esm/abstract/poseidon.d.ts:25


poseidon​

â–¸ poseidon(opts): (values: bigint[]) => bigint[]

Parameters​

NameType
optsPoseidonOpts

Returns​

fn

â–¸ (values): bigint[]

Parameters​
NameType
valuesbigint[]
Returns​

bigint[]

NameType
roundConstantsbigint[][]

Defined in​

node_modules/@noble/curves/esm/abstract/poseidon.d.ts:26