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

docs: verifier crate docs #1764

Merged
merged 9 commits into from
Nov 7, 2024
Merged

docs: verifier crate docs #1764

merged 9 commits into from
Nov 7, 2024

Conversation

yuwen01
Copy link
Contributor

@yuwen01 yuwen01 commented Nov 6, 2024

Documents the verifier crate. Assumes that v3.2.0 is released and that docs.rs contains information on sp1-verifier.

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:

Copy link
Contributor Author

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.

Copy link

github-actions bot commented Nov 6, 2024

SP1 Performance Test Results

Branch: yuwen/verifier-docs
Commit: 387d02e
Author: yuwen01

program cycles execute (mHz) core (kHZ) compress (KHz) time success
fibonacci 11291 0.17 2.85 0.47 24s
ssz-withdrawals 2757356 17.05 128.39 35.66 1m17s
tendermint 12593597 6.73 269.46 100.89 2m7s

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

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

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

Copy link
Contributor

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

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.

@yuwen01 yuwen01 merged commit 1a25bc4 into dev Nov 7, 2024
16 checks passed
@yuwen01 yuwen01 deleted the yuwen/verifier-docs branch November 7, 2024 01:42
yuwen01 added a commit that referenced this pull request Nov 8, 2024
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