-
Notifications
You must be signed in to change notification settings - Fork 9
feat: Final docs pass #49
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
dad1612
feat: Final docs pass
wwared b95404a
fix: Address in-line comments
wwared eab39f8
fix: Apply suggestions from code review
wwared 1734200
chore: Update plonk fixtures
wwared 11dbcc7
chore: Update docs for new rustfmt/rustdoc lints
wwared 1d50941
chore: Add VKs to the docs
wwared cfb7b8e
fix: fetch-depth in tag-release
wwared ac47d5c
fix: Add rustfmt/clippy to rust-toolchain.toml
wwared 1abf687
chore: Apply suggestions from code review
wwared 18d096b
fix: Add `SHARD_BATCH_SIZE=0` to commands
wwared 200b8a6
fix: update static aptos data (#50)
tchataigner 616898e
fix: Makefile formatting
wwared dab72c3
feat: Add short blob proof section in overview
wwared fee574b
fix: Properly swap the bench RUN_PARALLEL blocks
wwared 7212d89
fix: Update proof_server.rs bench, add times
wwared File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,11 @@ | |
Our Light Client is able to produce SNARK proofs that can be verified on-chain. This section will cover how to run the | ||
benchmarks for the on-chain verification. | ||
|
||
To be able to execute such tests our repository contains a project called `solidity` is based | ||
To be able to execute such tests the repository contains a project called `solidity` that is based | ||
off [Foundry](https://github.com/foundry-rs/foundry) which demonstrates the Solidity verification using so-called | ||
fixtures (JSON files) containing the proof data (proof itself, public values and verification key) required for running | ||
the verification for both epoch-change and inclusion programs. | ||
the verification for both epoch-change and inclusion programs. These fixtures are generated from a SNARK proof generated | ||
by the proof servers, but currently the fixtures generated are meant for simple testing only. | ||
|
||
The contracts used for testing can be found in the [sphinx-contracts](https://github.com/lurk-lab/sphinx-contracts) | ||
repository which is used as a dependency. | ||
|
@@ -59,7 +60,7 @@ export the fixture file to the relevant place (`solidity/contracts/src/plonk_fix | |
To run the `fixture-generator` for the inclusion program, execute the following command: | ||
|
||
```bash | ||
RUST_LOG=info RUSTFLAGS="-C target-cpu=native --cfg tokio_unstable" SHARD_SIZE=4194304 SHARD_BATCH_SIZE=0 cargo +nightly run --release --features aptos --bin generate-fixture -- --program inclusion | ||
RUST_LOG=info RUSTFLAGS="-C target-cpu=native --cfg tokio_unstable -C opt-level=3" SHARD_SIZE=4194304 SHARD_BATCH_SIZE=0 cargo +nightly-2024-05-31 run --release --features aptos --bin generate-fixture -- --program inclusion | ||
``` | ||
|
||
> **Tips** | ||
|
@@ -69,7 +70,7 @@ RUST_LOG=info RUSTFLAGS="-C target-cpu=native --cfg tokio_unstable" SHARD_SIZE=4 | |
> **Note** | ||
> | ||
> You might be encountering issue with updating `sphinx-contracts` Foundry dependency, in this case try manually | ||
> specifying accessing the submodule via SSH | ||
> specifying accessing the submodule via SSH like this: | ||
> ``` | ||
> git config submodule.aptos/solidity/contracts/lib/sphinx-contracts.url [email protected]:lurk-lab/sphinx-contracts | ||
> ``` | ||
> ``` |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.