Browse Source

Merge pull request #524 from hermeznetwork/feature/swapProofB

Swap proof b vector
feature/sql-semaphore1
Eduard S 3 years ago
committed by GitHub
parent
commit
0d34126a42
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      coordinator/pipeline.go

+ 3
- 2
coordinator/pipeline.go

@ -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[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]}, ProofC: [2]*big.Int{proof.PiC[0], proof.PiC[1]},
} }

Loading…
Cancel
Save