-
Notifications
You must be signed in to change notification settings - Fork 334
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
docs: verifier crate docs #1764
Conversation
verify SP1 proofs in wasm. For a more detailed explanation of the process, please see the [README](https://github.com/succinctlabs/example-sp1-wasm-verifier/blob/main/README.md). | ||
|
||
At a high level, the process is as follows: | ||
|
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.
I want to give some sense of how to do wasm verification, but the process is kind of complicated.
See here for the entire process.
SP1 Performance Test Results Branch: yuwen/verifier-docs
|
[bn254](https://blog.succinct.xyz/succinctshipsprecompiles/) precompiles. For an example of this, see | ||
the [Groth16 Example](https://github.com/succinctlabs/sp1/tree/main/examples/groth16/). | ||
|
||
### Instafllation |
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.
typo
let vkey_hash = "0x00e60860c07bfc6e4c480286c0ddbb879674eb47f84b4ef041cf858b17aa0ed1"; | ||
|
||
let is_valid = | ||
crate::Groth16Verifier::verify(&proof, &public_inputs, vkey_hash, &crate::GROTH16_VK_BYTES) |
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.
you should show a more detailed example that includes also the import paths for these variables
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.
the crate:: is unrealistic
The [`example-sp1-wasm-verifier`](https://github.com/succinctlabs/example-sp1-wasm-verifier) demonstrates how to | ||
verify SP1 proofs in wasm. For a more detailed explanation of the process, please see the [README](https://github.com/succinctlabs/example-sp1-wasm-verifier/blob/main/README.md). | ||
|
||
At a high level, the process is as follows: |
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.
if you're gonna defer the docs to that repo, just delete this part imo.
Documents the verifier crate. Assumes that v3.2.0 is released and that docs.rs contains information on
sp1-verifier
.