-
Notifications
You must be signed in to change notification settings - Fork 41
Adds SPARK #345
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
Open
batmendbar
wants to merge
75
commits into
main
Choose a base branch
from
adds-spark-squashed
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Adds SPARK #345
Changes from 57 commits
Commits
Show all changes
75 commits
Select commit
Hold shift + click to select a range
a3a6f30
Add SPARK
batmendbar c53d3d2
Merge main into adds-spark-squashed
batmendbar 5d9fef0
Remove comments
batmendbar 6108fc8
Format
batmendbar fb9f3fc
Cleanup
batmendbar 0fb0d8e
split commitments
batmendbar 3cdbf0d
Merge branch 'main' into adds-spark-squashed
batmendbar f9bcf09
combine files
batmendbar ff5c3bd
format
batmendbar 2a65bae
recompute timestamps on prover
batmendbar 6e94a18
change file write
batmendbar 44390ac
file write and ci change
batmendbar af2245b
fix ci
batmendbar abba4c4
format
batmendbar 7c7d47d
update tracing
batmendbar c69eab7
combines prepare and spark-prove into a server
batmendbar 5e15c6e
parallelize and update end-to-end.yml
batmendbar c7d174a
cleanup
batmendbar d96ad02
cleanup
batmendbar 69ab9c7
cleanup
batmendbar 941d799
format
batmendbar 09056f9
organize tracing
batmendbar 8bbeb5d
Format and organize
batmendbar db411d5
merge
batmendbar 1062d1d
Adds temporary transcript draining
batmendbar c5cbc91
format
batmendbar 70111ef
Separate spark query from noir proof
batmendbar ce1c677
limit message size
batmendbar 76cbf24
stop user-given server write
batmendbar 19f6ab9
zero check
batmendbar 0afba35
write spark commitment to a file
batmendbar 96530fa
cli command to natively verify spark proofs
batmendbar 58e01e7
move spark commitments to setup
batmendbar 83d95eb
use request in DS instance
batmendbar 9c3eae6
format
batmendbar a2d65c1
Merge branch 'main' into adds-spark-squashed
batmendbar dcec2d0
fix CI errors
batmendbar b0ddd0d
remove spark server
batmendbar 6a7f053
merge whir proofs
batmendbar e7cf195
use reference to optimize
batmendbar 9762059
optimize gpa4 vector building
batmendbar 1b3f44b
initialize once optimization
batmendbar a4fd935
gpa base layer refactor
batmendbar dc07d98
simplify rayon
batmendbar 7bbbd5c
adds hash engine to spark
batmendbar d233b5c
adds cli flag for spark
batmendbar 52f8b94
Removes clone
batmendbar 1b2bdce
format
batmendbar 98c6a08
fix docs
batmendbar e7839be
Decouple from batching randomness
batmendbar d45bb7c
Spark batch request
batmendbar 3d31fca
separate path for single request
batmendbar aadb89f
format
batmendbar 7a2ca2a
update spark.md
batmendbar 14cc661
update ci
batmendbar 55cdbd8
cleanup
batmendbar 73240c7
merge with main
batmendbar 835986c
Merge branch 'main' into adds-spark-squashed
batmendbar 6b2d19d
Serialize Spark Witness
batmendbar d0615ee
Ensure requests share the same row
batmendbar 6462834
SPARK uses snake case
batmendbar 1612ea1
Combine spark query files
batmendbar d04875c
Use specified hash in spark
batmendbar f1b7b9a
Adds helper function for hint reading
batmendbar fd5ebb6
Groups function parameters
batmendbar 9e368e2
Save timestamps as integers
batmendbar e9161cc
Remove gpa duplication
batmendbar 5be9e49
Simplified Spark structs
batmendbar 0bd4615
fix spark flag
batmendbar df0edfa
format
batmendbar 990a448
Move SparkSetup into PKV
batmendbar 6faaf66
cleanup
batmendbar 707765f
cleanup
batmendbar b47e33d
Merge branch 'main' into adds-spark-squashed
batmendbar 930b401
cleanup
batmendbar 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
Some comments aren't visible on the classic Files Changed page.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| [package] | ||
| name = "basic" | ||
| name = "power" | ||
| type = "bin" | ||
| authors = [""] | ||
| compiler_version = ">=0.22.0" | ||
|
|
||
Binary file not shown.
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 |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| use { | ||
| crate::{utils::serde_ark, FieldElement}, | ||
| serde::{Deserialize, Serialize}, | ||
| sha3::{Digest, Sha3_256}, | ||
| }; | ||
|
|
||
| #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] | ||
| pub struct Point { | ||
| #[serde(with = "serde_ark")] | ||
| pub row: Vec<FieldElement>, | ||
| #[serde(with = "serde_ark")] | ||
| pub col: Vec<FieldElement>, | ||
| } | ||
|
|
||
| #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] | ||
| pub struct R1CSSparkQuery { | ||
| pub point_to_evaluate: Point, | ||
| #[serde(with = "serde_ark")] | ||
| pub claimed_a: FieldElement, | ||
| #[serde(with = "serde_ark")] | ||
| pub claimed_b: FieldElement, | ||
| #[serde(with = "serde_ark")] | ||
| pub claimed_c: FieldElement, | ||
| } | ||
|
|
||
| impl R1CSSparkQuery { | ||
| pub fn hash_bytes(&self) -> [u8; 32] { | ||
| hash_query_set(std::slice::from_ref(self)) | ||
| } | ||
| } | ||
|
|
||
| pub fn hash_query_set(queries: &[R1CSSparkQuery]) -> [u8; 32] { | ||
| let bytes = postcard::to_allocvec(queries).expect("serializing R1CSSparkQuery set"); | ||
|
batmendbar marked this conversation as resolved.
Outdated
|
||
| Sha3_256::digest(&bytes).into() | ||
| } | ||
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
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.