mirror of
https://github.com/tornadocash/circomlibjs.git
synced 2024-12-12 04:37:09 +01:00
Fix limit in poseidon
This commit is contained in:
parent
54847b37fd
commit
7c16ea34c7
@ -20,7 +20,7 @@ const pow5 = a => F.mul(a, F.square(F.square(a, a)));
|
||||
|
||||
function poseidon(inputs) {
|
||||
assert(inputs.length > 0);
|
||||
assert(inputs.length < N_ROUNDS_P.length - 1);
|
||||
assert(inputs.length <= N_ROUNDS_P.length);
|
||||
|
||||
const t = inputs.length + 1;
|
||||
const nRoundsF = N_ROUNDS_F;
|
||||
|
@ -20,7 +20,7 @@ const pow5 = a => F.mul(a, F.square(F.square(a, a)));
|
||||
|
||||
function poseidon(inputs) {
|
||||
assert(inputs.length > 0);
|
||||
assert(inputs.length < N_ROUNDS_P.length - 1);
|
||||
assert(inputs.length <= N_ROUNDS_P.length);
|
||||
|
||||
const t = inputs.length + 1;
|
||||
const nRoundsF = N_ROUNDS_F;
|
||||
|
Loading…
Reference in New Issue
Block a user