arnaucube
arnaucube/circomlibPublic Self-hosted repository
Change pedersen length to 251
Jordi Baylina jordi@baylina.cat
Tue, 13 Nov 2018 13:40:42 +0100
commit

fcc61f9237ea1b4a67b6cad2ffeaf0ba9148e1c7

parent

4b147eca7f713dc38e1c3f116d8d5ebdadedb88b

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M test/pedersen.js → test/pedersen.js

@@ -88,7 +88,7 @@ });

it("Should pedersen all ones", async () => { let w, xout, yout; - const allOnes = bigInt("1").shl(253).sub(bigInt("1")); + const allOnes = bigInt("1").shl(251).sub(bigInt("1")); w = circuit.calculateWitness({ in: [allOnes, allOnes]}); xout = w[circuit.getSignalIdx("main.out[0]")];