Skip to content
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

Merged
merged 6 commits into from
Oct 20, 2022
Merged

Add option to verify proofs to neard #7840

merged 6 commits into from
Oct 20, 2022

Conversation

mm-near
Copy link
Contributor

@mm-near mm-near commented Oct 17, 2022

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

@mm-near mm-near requested a review from a team as a code owner October 17, 2022 12:08
@mm-near mm-near requested a review from nikurt October 17, 2022 12:08
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.")
Copy link
Contributor

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

Copy link
Contributor Author

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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bad refactor. thanks.

@near-bulldozer near-bulldozer bot merged commit 19bbc61 into master Oct 20, 2022
@near-bulldozer near-bulldozer bot deleted the 1010_proofs branch October 20, 2022 09:52
nikurt pushed a commit that referenced this pull request Nov 9, 2022
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
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants