From 20efa9cfc5d72f78e96cfea5d66514289a9328d1 Mon Sep 17 00:00:00 2001 From: invocamanman Date: Wed, 3 Feb 2021 12:18:50 +0100 Subject: [PATCH] swap proof b vector --- coordinator/pipeline.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/coordinator/pipeline.go b/coordinator/pipeline.go index 97d8665..95bda7f 100644 --- a/coordinator/pipeline.go +++ b/coordinator/pipeline.go @@ -425,9 +425,10 @@ func prepareForgeBatchArgs(batchInfo *BatchInfo) *eth.RollupForgeBatchArgs { 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]}, }