Commit d9c9d480 authored by clabby's avatar clabby

Remove `StepInput` and `OracleInput` from `Proof`

parent f405495a
...@@ -94,9 +94,6 @@ type Proof struct { ...@@ -94,9 +94,6 @@ type Proof struct {
OracleKey hexutil.Bytes `json:"oracle-key,omitempty"` OracleKey hexutil.Bytes `json:"oracle-key,omitempty"`
OracleValue hexutil.Bytes `json:"oracle-value,omitempty"` OracleValue hexutil.Bytes `json:"oracle-value,omitempty"`
OracleOffset uint32 `json:"oracle-offset,omitempty"` OracleOffset uint32 `json:"oracle-offset,omitempty"`
StepInput hexutil.Bytes `json:"step-input"`
OracleInput hexutil.Bytes `json:"oracle-input"`
} }
type rawHint string type rawHint string
...@@ -348,14 +345,8 @@ func Run(ctx *cli.Context) error { ...@@ -348,14 +345,8 @@ func Run(ctx *cli.Context) error {
Post: postStateHash, Post: postStateHash,
StateData: witness.State, StateData: witness.State,
ProofData: witness.MemProof, ProofData: witness.MemProof,
StepInput: witness.EncodeStepInput(0),
} }
if witness.HasPreimage() { if witness.HasPreimage() {
inp, err := witness.EncodePreimageOracleInput(0)
if err != nil {
return fmt.Errorf("failed to encode pre-image oracle input: %w", err)
}
proof.OracleInput = inp
proof.OracleKey = witness.PreimageKey[:] proof.OracleKey = witness.PreimageKey[:]
proof.OracleValue = witness.PreimageValue proof.OracleValue = witness.PreimageValue
proof.OracleOffset = witness.PreimageOffset proof.OracleOffset = witness.PreimageOffset
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment