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
1ed0167b
Commit
1ed0167b
authored
Nov 24, 2022
by
clabby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix list numbering
parent
b35164df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
withdrawals.md
specs/withdrawals.md
+6
-6
No files found.
specs/withdrawals.md
View file @
1ed0167b
...
@@ -63,18 +63,18 @@ This is a very simple contract that stores the a hash of the withdrawal data.
...
@@ -63,18 +63,18 @@ This is a very simple contract that stores the a hash of the withdrawal data.
not be the same entity which initiated the withdrawal on L2.
not be the same entity which initiated the withdrawal on L2.
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
1
.
The
`OptimismPortal`
contract retrieves the output root for the given block number from the
`L2OutputOracle`
's
`getL2OutputAfter()`
function, and performs the remainder of the verification process internally.
`getL2OutputAfter()`
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
1
.
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.
4
.
After the withdrawal is proven, it enters a 7 day challenge period, allowing time for other network participants
1
.
After the withdrawal is proven, it enters a 7 day challenge period, allowing time for other network participants
to challenge its integrity.
to challenge its integrity.
5
.
Once the challenge period has passed, a relayer submits the withdrawal transaction once again to the
1
.
Once the challenge period has passed, a relayer submits the withdrawal transaction once again to the
`OptimismPortal`
contract. Again, the relayer need not be the same entity which initiated the withdrawal on L2.
`OptimismPortal`
contract. Again, the relayer need not be the same entity which initiated the withdrawal on L2.
6
.
The
`OptimismPortal`
contract receives the withdrawal transaction data and verifies that the withdrawal has
1
.
The
`OptimismPortal`
contract receives the withdrawal transaction data and verifies that the withdrawal has
both been proven and passed the challenge period.
both been proven and passed the challenge period.
7
.
If the requirements are not met, the call reverts. Otherwise the call is forwarded, and the hash is recorded to
1
.
If the requirements are not met, the call reverts. Otherwise the call is forwarded, and the hash is recorded to
prevent it from being replayed.
prevent it from being replayed.
## The L2ToL1MessagePasser Contract
## The L2ToL1MessagePasser Contract
...
...
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