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

release: v0.6.0 #65

Merged
merged 16 commits into from
Dec 6, 2024
Merged

release: v0.6.0 #65

merged 16 commits into from
Dec 6, 2024

Conversation

Autoparallel
Copy link
Contributor

@Autoparallel Autoparallel commented Dec 3, 2024

WIP: Staging

Tasks:

@Autoparallel
Copy link
Contributor Author

Branch is clean now, force push done!

- adds CHANGELOG.md
- bumps version
- deletes extra builds
- updates main.rs
- updates circuits.json
* remove: extra HTTP material

* remove: aes

* fix: tests

* remove: old `circuits.json`

* cleanup: JSON

* Delete json_nivc.circom

* Delete extractor.circom

* remove: unneeded utils

* remove: more utils

* consolidate bytes

* fix: build
* fix: http headers max

* fix: verify HTTP machine state at end
@Autoparallel Autoparallel marked this pull request as ready for review December 5, 2024 17:45
}
for (var j = 0 ; j < 4 ; j++) {
bigEndianCiphertext[i*4 + j] <== toCiphertextBytes[i].words[j];
bigEndianCiphertext[i*4 + j] <== isPadding[i * 4 + j] * (-1 - toCiphertextBytes[i].words[j]) + toCiphertextBytes[i].words[j]; // equal to: (isPadding[i * 4 + j] * (-1)) + (1 - isPadding[i * 4 + j]) * toCiphertextBytes[i].words[j];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

Copy link
Contributor

@0xJepsen 0xJepsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is amazing. Love the complexity reduction and cutting down on dead code paths

Makefile Outdated
@@ -20,7 +20,7 @@ build:
@set -e;
@for circuit in $(CIRCOM_FILES); do \
echo "Processing $${circuit}..."; \
circom "$${circuit}" --r1cs --wasm -o "$$(dirname $${circuit})/artifacts" -l node_modules; \
circom "$${circuit}" --r1cs --wasm --O1 -o "$$(dirname $${circuit})/artifacts" -l node_modules; \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opt --02 is broken?

Copy link
Collaborator

@lonerapier lonerapier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sleep score after this PR lands: 10 -> 90

Seriously, so much of this is just dead weight. Thanks for spending time to clean this up thoroughly. this will also reduce amount of TODOs significantly.

I have really really minor nits along with following questions:

  1. Can we remove dead docs from docs/ and README?
    a. Can we also add new really small doc for NIVC circuits? Can be totally done in a separate PR. Actually, i'll myself really love to do that.
  2. Circuit sizes is really huge right now, and it's for all circuits. My suspicion is on DataHasher, because that is only new common thing added to all circuits. Anyways, we should definitely check and bench the constraint size and r1cs size of circuit. (I am happy to do that)
  3. Can we remove unused example files in examples/ directory?

@@ -0,0 +1,73 @@

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will the changelog be manually updated for each major revision?

.gitignore Show resolved Hide resolved
circuits/json/nivc/masker.circom Outdated Show resolved Hide resolved
circuits/json/parser/machine.circom Show resolved Hide resolved
circuits/json/parser/parser.circom Show resolved Hide resolved
circuits/test/utils/search.test.ts Outdated Show resolved Hide resolved
circuits/http/verification.circom Show resolved Hide resolved
@lonerapier lonerapier self-requested a review December 6, 2024 12:32
Copy link
Collaborator

@lonerapier lonerapier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deleted old unused docs/example files and removed some circuit warnings.

v0.6.0, say it loudd

@lonerapier lonerapier merged commit 34c23ef into main Dec 6, 2024
3 checks passed
@lonerapier lonerapier deleted the release/v0-6-0 branch December 6, 2024 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment