arnaucube
arnaucube/hermez-nodePublic Self-hosted repository
Merge pull request #524 from hermeznetwork/feature/swapProofB

Swap proof b vector
Eduard S eduard@iden3.io
Wed, 03 Feb 2021 12:34:36 +0100
commit

0d34126a4240e81e6c2391110947263152876ed6

parent

7ce60f0200a88d8eb9be6caf9155c123ec349a7b

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

jump to
M coordinator/pipeline.go → coordinator/pipeline.go

@@ -425,9 +425,10 @@ // Circuit selector

VerifierIdx: batchInfo.VerifierIdx, L1Batch: batchInfo.L1Batch, ProofA: [2]*big.Int{proof.PiA[0], proof.PiA[1]}, + // Implementation of the verifier need a swap on the proofB vector ProofB: [2][2]*big.Int{ - {proof.PiB[0][0], proof.PiB[0][1]}, - {proof.PiB[1][0], proof.PiB[1][1]}, + {proof.PiB[0][1], proof.PiB[0][0]}, + {proof.PiB[1][1], proof.PiB[1][0]}, }, ProofC: [2]*big.Int{proof.PiC[0], proof.PiC[1]}, }