Skip to content

Commit

Permalink
feat: upgrade input JSON creation (#14)
Browse files Browse the repository at this point in the history
* add: `reddit_response.json`

* refactor tests + add failing case

* easier fix

* test: parse to key

* tests: key parsing

* bug: `next_end_of_kv` on read `:`

* fix: `end_of_kv` bug

* test: find value

* tests: `inside_value` and `inside_value_to_exit`

* test: parse to NEXT key

* parses JSON with two string keys

* WIP: value inside value

* comment

* refactor (#10)

* wip: start with bitmask

* WIP: time to start testing

* tests: `ArrayAdd` and `ArrayMul`

* tests passing

* update comments

* feat: 2 key depth 1 json

* 2 kv json and all tests passing

* nested json works!!!

* reduce constraints

* cleanup

* rename variables

* more cleaning

* more cleanup

* make comments clean

* WAYLON NITPICKING ME LOL

* feat: improved CLI for witness

* gitignore input.json

* Update main.rs

* Squashed commit of the following:
  • Loading branch information
Autoparallel authored Aug 15, 2024
1 parent ed2c440 commit 9b6f694
Show file tree
Hide file tree
Showing 11 changed files with 282 additions and 1,172 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ node_modules/*
build/*
ptau/*
circuits/test/*.circom
circuits/main/*
circuits/main/*
inputs/**/*.json
220 changes: 208 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[workspace]
members = ["create_witness"]

[package]
name = "extractor"
version = "0.1.0"
name = "witness"
edition = "2021"

[dependencies]
serde = { version = "1.0.204", features = ["derive"] }
serde_json = "1.0.120"
clap = { version = "4.5.14", features = ["derive"] }
7 changes: 0 additions & 7 deletions create_witness/Cargo.toml

This file was deleted.

96 changes: 0 additions & 96 deletions create_witness/src/main.rs

This file was deleted.

Loading

0 comments on commit 9b6f694

Please sign in to comment.