Skip to content

Commit 2f8f2a2

Browse files
authored
Update verifier docs for validium (#145)
1 parent 55c0717 commit 2f8f2a2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/libraries/verifier/ZkEvmVerifierPostFeynman.sol

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ contract ZkEvmVerifierPostFeynman is IZkEvmVerifierV2 {
2828
bytes32 public immutable verifierDigest2;
2929

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

3335
/***************
@@ -54,8 +56,8 @@ contract ZkEvmVerifierPostFeynman is IZkEvmVerifierV2 {
5456
///
5557
/// @dev Encoding for `publicInput`. And this is exactly the same as `ZkEvmVerifierV2`.
5658
/// ```text
57-
/// | layer2ChainId | msgQueueHash | numBatches | prevStateRoot | prevBatchHash | postStateRoot | batchHash | withdrawRoot |
58-
/// | 8 bytes | 32 bytes | 4 bytes | 32 bytes | 32 bytes | 32 bytes | 32 bytes | 32 bytes |
59+
/// | layer2ChainId | msgQueueHash | numBatches | prevStateRoot | prevBatchHash | postStateRoot | batchHash | withdrawRoot | validium ? encryptionKey |
60+
/// | 8 bytes | 32 bytes | 4 bytes | 32 bytes | 32 bytes | 32 bytes | 32 bytes | 32 bytes | 33 bytes |
5961
/// ```
6062
function verify(bytes calldata bundleProof, bytes calldata publicInput) external view override {
6163
address _verifier = plonkVerifier;

0 commit comments

Comments
 (0)