Skip to content

Commit

Permalink
feat(protocol): update PlonkVerifer (#13741)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha authored May 13, 2023
1 parent 497d7ab commit 523f95b
Show file tree
Hide file tree
Showing 7 changed files with 1,388 additions and 4,311 deletions.
10 changes: 9 additions & 1 deletion packages/protocol/contracts/L1/libs/LibProving.sol
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,15 @@ library LibProving {

(bool verified, bytes memory ret) = resolver
.resolve(LibUtils.getVerifierName(evidence.verifierId), false)
.staticcall(bytes.concat(instance, evidence.proof));
.staticcall(
bytes.concat(
bytes16(0),
bytes16(instance), // left 16 bytes of the given instance
bytes16(0),
bytes16(uint128(uint256(instance))), // right 16 bytes of the given instance
evidence.proof
)
);

if (
!verified ||
Expand Down
Loading

0 comments on commit 523f95b

Please sign in to comment.