mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
swap proof b vector
This commit is contained in:
@@ -425,9 +425,10 @@ func prepareForgeBatchArgs(batchInfo *BatchInfo) *eth.RollupForgeBatchArgs {
|
|||||||
VerifierIdx: batchInfo.VerifierIdx,
|
VerifierIdx: batchInfo.VerifierIdx,
|
||||||
L1Batch: batchInfo.L1Batch,
|
L1Batch: batchInfo.L1Batch,
|
||||||
ProofA: [2]*big.Int{proof.PiA[0], proof.PiA[1]},
|
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{
|
ProofB: [2][2]*big.Int{
|
||||||
{proof.PiB[0][0], proof.PiB[0][1]},
|
{proof.PiB[0][1], proof.PiB[0][0]},
|
||||||
{proof.PiB[1][0], proof.PiB[1][1]},
|
{proof.PiB[1][1], proof.PiB[1][0]},
|
||||||
},
|
},
|
||||||
ProofC: [2]*big.Int{proof.PiC[0], proof.PiC[1]},
|
ProofC: [2]*big.Int{proof.PiC[0], proof.PiC[1]},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user