Skip to main content
Version: Next

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/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/abstract/poseidon.d.ts:13


splitConstants

splitConstants(rc, t): bigint[][]

Parameters

NameType
rcbigint[]
tnumber

Returns

bigint[][]

Defined in

node_modules/@noble/curves/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/abstract/poseidon.d.ts:26