-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update pd circuit * add http circuit * fix: `PlaintextAuthentication` tests * fix: `HTTPVerification` test -- no body * fix: `HTTPVerification` -- with body * Update package.json * fix: `PlaintextAuthentication` -- multi component * fix: uncomment tests * fix: uncomment pt auth tests * json circuit with tests * add 2 full tests * complete tests * req+res proving starts * update HTTP.step_in[6] to be body_ciphertext_digest_pow_var * add final test * finish tests * fix tests * initial setup * refactor * cleanup + initial public io * WIP: json parser * save state * more progress * Update parser.rs * Update parser.rs * Update parser.rs * Update parser.rs * refactor + From trait * reworking * refactored * one working test * more tests and fixes * stronger test * checked things by hand like a pro * feat: http parser * update circuits inputs * fix: add more fields to `RawJsonMachine` * fix: parsing number status * fix: use field elements * fix: parsing number clear * revert: extraction.test.ts * WIP: fix HTTP parser * fix: consistent header counting * fix: CRLF in body * move to single lib * add `inner_main_digest` to http parser * fix(http): remove last machine state * fix rust tests * wip: update * add serialization methods * fix parser bug, and remove unused code * simplify authentication circuit step_out * add flatten to httpmachine * remove logs * fix max rom length size * fix more logs * remove toods, clippy, and simplify http byteorpad * remove `ByteOrPad::as_bytes` * increase max rom length to 20 * add circuit diagram * add final value verification --------- Co-authored-by: Colin Roberts <[email protected]>
- Loading branch information
1 parent
bc071c1
commit e17bf08
Showing
42 changed files
with
3,281 additions
and
500 deletions.
There are no files selected for viewing
This file contains 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,4 +1,4 @@ | ||
/target | ||
**/target | ||
|
||
node_modules/* | ||
|
||
|
This file contains 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,46 @@ | ||
# Rustfmt configuration | ||
# Opinionated whitespace and tabs. The most important of these are imports and width settings. | ||
# Others may want to borrow or change these to their own liking. | ||
# https://rust-lang.github.io/rustfmt | ||
|
||
# version-related | ||
unstable_features=true | ||
use_try_shorthand=true # replace any `try!` (2015 Rust) with `?` | ||
|
||
# misc formatting | ||
condense_wildcard_suffixes =true # replace: (a,b,_,_)=(1, 2, 3, 4); -> (a,b,..)=(1, 2, 3, 4); | ||
format_code_in_doc_comments =true # format code blocks in doc comments | ||
format_macro_matchers =true # $a: ident -> $a:ident | ||
format_strings =true # break and insert newlines for long string literals | ||
match_block_trailing_comma =true # include comma in match blocks after '}' | ||
normalize_comments =true # convert /*..*/ to //.. where possible | ||
reorder_impl_items =true # move `type` and `const` declarations to top of impl block | ||
struct_field_align_threshold=20 # align struct arguments' types vertically | ||
use_field_init_shorthand =true # struct initialization short {x: x} -> {x} | ||
|
||
# reduce whitespace | ||
blank_lines_upper_bound=1 # default: 1. Sometimes useful to change to 0 to condense a file. | ||
brace_style ="PreferSameLine" # prefer starting `{` without inserting extra \n | ||
fn_single_line =true # if it's a short 1-liner, let it be a short 1-liner | ||
match_arm_blocks =false # remove unnecessary {} in match arms | ||
newline_style ="Unix" # not auto, we won the culture war. \n over \r\n | ||
overflow_delimited_expr=true # prefer ]); to ]\n); | ||
where_single_line =true # put where on a single line if possible | ||
|
||
# imports preferences | ||
group_imports ="StdExternalCrate" # create import groupings for std, external libs, and internal deps | ||
imports_granularity="Crate" # aggressively group imports | ||
|
||
# width settings: everything to 100 | ||
comment_width =100 # default: 80 | ||
inline_attribute_width=60 # inlines #[cfg(test)]\nmod test -> #[cfg(test)] mod test | ||
max_width =100 # default: 100 | ||
use_small_heuristics ="Max" # don't ever newline short of `max_width`. | ||
wrap_comments =true # wrap comments at `comment_width` | ||
# format_strings = true # wrap strings at `max_length` | ||
|
||
# tabs and spaces | ||
hard_tabs =false # (def: false) use spaces over tabs | ||
tab_spaces=2 # 2 > 4, it's just math. | ||
|
||
ignore=["tls"] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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,8 +1,36 @@ | ||
[package] | ||
name = "create-pp" | ||
name = "web-proof-circuits" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[[bin]] | ||
name = "create_pp" | ||
path = "src/main.rs" | ||
|
||
[lib] | ||
name = "web_proof_circuits_witness_generator" | ||
path = "lib/src/lib.rs" | ||
|
||
[dependencies] | ||
proofs = { git = "https://github.com/pluto/web-prover", rev = "d8c81d5" } | ||
anyhow = "1.0" | ||
|
||
serde = "1.0" | ||
serde_json = "1.0" | ||
|
||
client-side-prover = { git = "https://github.com/pluto/client-side-prover", rev = "8e7eb839e901dcee416179116bb0f9c4f7ae683c" } | ||
|
||
ff = { version = "0.13", default-features = false, features = ["derive"] } | ||
|
||
thiserror = "2.0" | ||
|
||
light-poseidon = { git = "https://github.com/pluto/light-poseidon" } | ||
|
||
ark-bn254 = "=0.4.0" | ||
halo2curves = "0.6.1" | ||
|
||
sppark = "=0.1.10" # lock this or cry | ||
num-bigint = "0.4" | ||
|
||
[dev-dependencies] | ||
rstest = "0.24" |
This file contains 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 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 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 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 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 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 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 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 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.