-
Notifications
You must be signed in to change notification settings - Fork 652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to verify proofs to neard #7840
Conversation
neard/src/cli.rs
Outdated
.unwrap(); | ||
let reader = BufReader::new(file); | ||
let light_client_rpc_response: Value = serde_json::from_reader(reader) | ||
.with_context(|| "Failed to deserialize the genesis records.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failed to deserialize the proof
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ups..
neard/src/cli.rs
Outdated
let outcome_hashes = light_client_proof.outcome_proof.clone().to_hashes(); | ||
println!("Hashes of the outcome are: {:?}", outcome_hashes); | ||
|
||
//let outcome = light_client_proof.outcome_proof.outcome; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bad refactor. thanks.
After this PR, you'll be able to verify the JSON proof that you've received from calling EXPERIMENTAL_light_client_proof using: ``` ./neard verify-proof --json-file-path foo.json ```
After this PR, you'll be able to verify the JSON proof that you've received from calling EXPERIMENTAL_light_client_proof using: