Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion snapshots/semver-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"src/L1/proofs/AggregateVerifier.sol:AggregateVerifier": {
"initCodeHash": "0x84c6bf00e337c889993c409f18b17986f9d9546ac6754f7730962459d301c21d",
"sourceCodeHash": "0x57938108a4aae689564e15c96e46b8ab0908725fd7cb0431112e601acdab9988"
"sourceCodeHash": "0x15952c01559b5c8e08faba110a49da9fb8c20e7bd4a62f7884c902847783e201"
},
"src/L1/proofs/AnchorStateRegistry.sol:AnchorStateRegistry": {
"initCodeHash": "0x6f3afd2d0ef97a82ca3111976322b99343a270e54cd4a405028f2f29c75f7fb1",
Expand Down
8 changes: 6 additions & 2 deletions src/L1/proofs/AggregateVerifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,10 @@ contract AggregateVerifier is Clone, ReentrancyGuard, ISemver {
}

/// @notice Initializes the contract.
/// @param proof The proof.
/// @param proof Encoding: uint8 proofType || bytes32 l1OriginHash || uint256 l1OriginNumber || verifier payload.
/// @dev This function may only be called once.
/// @dev First byte of the proof is the proof type.
/// @dev The proof-supplied L1 origin hash is verified against the supplied block number and journaled. It need not
/// equal `l1Head()`, which the factory captures at game creation for proofs submitted after initialization.
function initializeWithInitData(bytes calldata proof) external payable virtual {
// The game must not have already been initialized.
if (initialized) revert AlreadyInitialized();
Expand Down Expand Up @@ -807,6 +808,9 @@ contract AggregateVerifier is Clone, ReentrancyGuard, ISemver {
}

/// @notice Getter for the parent hash of the L1 block when the dispute game was created.
/// @dev Proofs submitted through `verifyProposalProof`, `challenge`, and `nullify` journal this factory-captured
/// hash. Initialization instead journals the independently verified L1 origin hash supplied to
/// `initializeWithInitData`.
function l1Head() public pure returns (Hash) {
return Hash.wrap(_getArgBytes32(0x34));
}
Expand Down
Loading