Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/libraries/verifier/ZkEvmVerifierPostFeynman.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ contract ZkEvmVerifierPostFeynman is IZkEvmVerifierV2 {
bytes32 public immutable verifierDigest2;

/// @notice The version of the protocol.
/// @dev The protocol version for Validium@v1 onwards encodes `domain` and `version` such that
/// @dev protocolVersion = (domain << 6) + version.
uint256 public immutable protocolVersion;

/***************
Expand All @@ -54,8 +56,8 @@ contract ZkEvmVerifierPostFeynman is IZkEvmVerifierV2 {
///
/// @dev Encoding for `publicInput`. And this is exactly the same as `ZkEvmVerifierV2`.
/// ```text
/// | layer2ChainId | msgQueueHash | numBatches | prevStateRoot | prevBatchHash | postStateRoot | batchHash | withdrawRoot |
/// | 8 bytes | 32 bytes | 4 bytes | 32 bytes | 32 bytes | 32 bytes | 32 bytes | 32 bytes |
/// | layer2ChainId | msgQueueHash | numBatches | prevStateRoot | prevBatchHash | postStateRoot | batchHash | withdrawRoot | validium ? encryptionKey |
/// | 8 bytes | 32 bytes | 4 bytes | 32 bytes | 32 bytes | 32 bytes | 32 bytes | 32 bytes | 33 bytes |
/// ```
function verify(bytes calldata bundleProof, bytes calldata publicInput) external view override {
address _verifier = plonkVerifier;
Expand Down
Loading