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
e81bed16
Unverified
Commit
e81bed16
authored
Jul 18, 2023
by
OptimismBot
Committed by
GitHub
Jul 18, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6321 from ethereum-optimism/aj/cannon-separate-data
cannon: Include inputs in proof files
parents
5ac54ae2
44222bed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
run.go
cannon/cmd/run.go
+10
-0
No files found.
cannon/cmd/run.go
View file @
e81bed16
...
...
@@ -88,6 +88,12 @@ type Proof struct {
Pre
common
.
Hash
`json:"pre"`
Post
common
.
Hash
`json:"post"`
StateData
hexutil
.
Bytes
`json:"state-data"`
ProofData
hexutil
.
Bytes
`json:"proof-data"`
OracleKey
hexutil
.
Bytes
`json:"oracle-key,omitempty"`
OracleValue
hexutil
.
Bytes
`json:"oracle-value,omitempty"`
StepInput
hexutil
.
Bytes
`json:"step-input"`
OracleInput
hexutil
.
Bytes
`json:"oracle-input"`
}
...
...
@@ -314,6 +320,8 @@ func Run(ctx *cli.Context) error {
Step
:
step
,
Pre
:
preStateHash
,
Post
:
postStateHash
,
StateData
:
witness
.
State
,
ProofData
:
witness
.
MemProof
,
StepInput
:
witness
.
EncodeStepInput
(),
}
if
witness
.
HasPreimage
()
{
...
...
@@ -322,6 +330,8 @@ func Run(ctx *cli.Context) error {
return
fmt
.
Errorf
(
"failed to encode pre-image oracle input: %w"
,
err
)
}
proof
.
OracleInput
=
inp
proof
.
OracleKey
=
witness
.
PreimageKey
[
:
]
proof
.
OracleValue
=
witness
.
PreimageValue
}
if
err
:=
writeJSON
[
*
Proof
](
fmt
.
Sprintf
(
proofFmt
,
step
),
proof
,
true
);
err
!=
nil
{
return
fmt
.
Errorf
(
"failed to write proof data: %w"
,
err
)
...
...
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