Namespace: poseidon
hash.poseidon
Hashes Exports
Type Aliases​
PoseidonOpts​
Ƭ PoseidonOpts: Object
Type declaration​
Name | Type |
---|---|
Fp | IField <bigint > |
t | number |
roundsFull | number |
roundsPartial | number |
sboxPower? | number |
reversePartialPowIdx? | boolean |
mds | bigint [][] |
roundConstants | bigint [][] |
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​
Name | Type |
---|---|
opts | PoseidonOpts |
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​
Name | Type |
---|---|
rc | bigint [] |
t | number |
Returns​
bigint
[][]
Defined in​
node_modules/@noble/curves/esm/abstract/poseidon.d.ts:25
poseidon​
â–¸ poseidon(opts
): (values
: bigint
[]) => bigint
[]
Parameters​
Name | Type |
---|---|
opts | PoseidonOpts |
Returns​
fn
â–¸ (values
): bigint
[]
Parameters​
Name | Type |
---|---|
values | bigint [] |
Returns​
bigint
[]
Name | Type |
---|---|
roundConstants | bigint [][] |
Defined in​
node_modules/@noble/curves/esm/abstract/poseidon.d.ts:26