Skip to content

Commit

Permalink
fix(protocol): Non-recursive abi.encode for Zk Verifier (#15344)
Browse files Browse the repository at this point in the history
  • Loading branch information
CeciliaZ030 authored Dec 7, 2023
1 parent 72eb781 commit 8fc51b4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/protocol/contracts/L1/verifiers/PseZkVerifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,18 @@ contract PseZkVerifier is EssentialContract, IVerifier {
pure
returns (bytes32 instance)
{
return keccak256(abi.encode(tran, prover, metaHash, txListHash, pointValue));
return keccak256(
abi.encode(
tran.parentHash,
tran.blockHash,
tran.signalRoot,
tran.graffiti,
prover,
metaHash,
txListHash,
pointValue
)
);
}

function getVerifierName(uint16 id) public pure returns (bytes32) {
Expand Down

0 comments on commit 8fc51b4

Please sign in to comment.