Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
b35164df
Commit
b35164df
authored
Nov 23, 2022
by
clabby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change signature of L2OutputOracle function
parent
3ce0ddee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
withdrawals.md
specs/withdrawals.md
+2
-2
No files found.
specs/withdrawals.md
View file @
b35164df
...
@@ -64,7 +64,7 @@ This is a very simple contract that stores the a hash of the withdrawal data.
...
@@ -64,7 +64,7 @@ This is a very simple contract that stores the a hash of the withdrawal data.
These inputs include the withdrawal transaction data, inclusion proofs, and a block number. The block number
These inputs include the withdrawal transaction data, inclusion proofs, and a block number. The block number
must be one for which an L2 output root exists, which commits to the withdrawal as registered on L2.
must be one for which an L2 output root exists, which commits to the withdrawal as registered on L2.
2.
The
`OptimismPortal`
contract retrieves the output root for the given block number from the
`L2OutputOracle`
's
2.
The
`OptimismPortal`
contract retrieves the output root for the given block number from the
`L2OutputOracle`
's
`get
NextProposedOutput
()`
function, and performs the remainder of the verification process internally.
`get
L2OutputAfter
()`
function, and performs the remainder of the verification process internally.
3.
If proof verification fails, the call reverts. Otherwise the call is forwarded, and the hash is recorded to
3.
If proof verification fails, the call reverts. Otherwise the call is forwarded, and the hash is recorded to
prevent it from being re-proven. Note that the withdrawal can be proven more than once if the corresponding
prevent it from being re-proven. Note that the withdrawal can be proven more than once if the corresponding
output root changes.
output root changes.
...
@@ -173,7 +173,7 @@ The following inputs are required to prove and finalize a withdrawal:
...
@@ -173,7 +173,7 @@ The following inputs are required to prove and finalize a withdrawal:
These inputs must satisfy the following conditions:
These inputs must satisfy the following conditions:
1.
The
`l2BlockNumber`
must be the block number that corresponds to the
`OutputProposal`
being proven.
1.
The
`l2BlockNumber`
must be the block number that corresponds to the
`OutputProposal`
being proven.
1.
`L2OutputOracle.get
NextProposedOutput
(l2BlockNumber)`
returns a non-zero
`OutputProposal`
.
1.
`L2OutputOracle.get
L2OutputAfter
(l2BlockNumber)`
returns a non-zero
`OutputProposal`
.
1.
The keccak256 hash of the
`outputRootProof`
values is equal to the
`outputRoot`
.
1.
The keccak256 hash of the
`outputRootProof`
values is equal to the
`outputRoot`
.
1.
The
`withdrawalProof`
is a valid inclusion proof demonstrating that a hash of the Withdrawal transaction data
1.
The
`withdrawalProof`
is a valid inclusion proof demonstrating that a hash of the Withdrawal transaction data
is contained in the storage of the L2ToL1MessagePasser contract on L2.
is contained in the storage of the L2ToL1MessagePasser contract on L2.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment