Change pedersen length to 251

This commit is contained in:
Jordi Baylina 2018-11-13 13:40:42 +01:00
parent 4b147eca7f
commit fcc61f9237
No known key found for this signature in database
GPG Key ID: 7480C80C1BE43112

@ -88,7 +88,7 @@ describe("Double Pedersen test", function() {
it("Should pedersen all ones", async () => { it("Should pedersen all ones", async () => {
let w, xout, yout; 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]}); w = circuit.calculateWitness({ in: [allOnes, allOnes]});
xout = w[circuit.getSignalIdx("main.out[0]")]; xout = w[circuit.getSignalIdx("main.out[0]")];