-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* init: v0.6.0 staging - adds CHANGELOG.md - bumps version - deletes extra builds - updates main.rs - updates circuits.json * chore: remove unused circuit material (#72) * 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 * feat: `DataHasher` takes -1 as padding (#76) * feat: authentication of ciphertext hash (#77) * fix: HTTP formatting constraints (#78) * fix: http headers max * fix: verify HTTP machine state at end * use --O1 in build * use `--O2` flag * Update Makefile * delete out-of-sync docs * delete unused example files * delete rogue logs * add rust cache * remove deprecated docs * add git for private repos * remove circuit warnings * place rust cache at correct step --------- Co-authored-by: lonerapier <[email protected]>
- Loading branch information
1 parent
bfc120b
commit 34c23ef
Showing
100 changed files
with
527 additions
and
7,265 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
|
||
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/). | ||
|
||
|
||
## [UNRELEASED] [0.6.0] - 2024-12-3 | ||
|
||
### Added | ||
|
||
### Changed | ||
#### Circuit Builds | ||
- Removed `512b` build path | ||
- Removed `aes_gctr_nivc_*b.circom` from build | ||
|
||
#### Artifacts | ||
- Adjusted circuit names: | ||
- `aes_gctr_nivc` and `chacha20-nivc` replaced with a more suitable name: `plaintext_authentication` | ||
- Runs with `512b` per fold | ||
- `http_nivc` replaced with more suitable name: `http_verification` | ||
|
||
### Fixed | ||
- TODO | ||
|
||
### Notes | ||
- **Total circuits:** 5 | ||
- **Circuit sizes:** | ||
- `plaintext_authentication_1024b` | ||
- non-linear constraints: `365,484` | ||
- linear-constraints: `40,463` | ||
- Theoretical storage size: `(40,463 + 365,484) * 3 * 32 bytes = 38,971,912 bytes ≈ 39 MB` | ||
- R1CS file: `121.3MB` | ||
- Graph file: `13.1MB` | ||
- **WARNINGS:** Yes. Run `circomkit compile plaintext_authentication_1024b` | ||
- `http_verification_1024b`: | ||
- non-linear constaints: `546,895` **(WARNING: greater than `2^19 == 524,288`)** | ||
- linear-constraints: `543,804` | ||
- Theoretical storage size: `(546,895 + 543,804) * 3 * 32 bytes = 104,707,104 bytes ≈ 105 MB` | ||
- R1CS file: `246.4MB` | ||
- Graph file: `16.5MB` | ||
- **WARNINGS:** Yes. Run `circomkit compile http_verification_1024b` | ||
- `json_mask_object_1024b`: | ||
- non-linear constraints: `550,001` **(WARNING: greater than `2^20 == 524,288`)** | ||
- linear-constraints: `316,205` | ||
- Theoretical storage size: `(550,001 + 316,205) * 3 * 32 bytes = 83,155,776 bytes ≈ 83 MB` | ||
- R1CS file: `109MB` | ||
- Graph file: `9.3MB` | ||
- **WARNINGS:** Yes. Run `circomkit compile json_mask_object_1024b` | ||
- `json_mask_array_index_1024b`: | ||
- non-linear constraints: `295,146` | ||
- linear-constraints: `194,082` | ||
- Theoretical storage size: `(295,146 + 194,082) * 3 * 32 bytes = 46,966,080 bytes ≈ 47 MB` | ||
- R1CS file: `67.4MB` | ||
- Graph file: `7.4MB` | ||
- **WARNINGS:** Yes. Run `circomkit compile json_mask_array_index_1024b` | ||
- `json_extract_value_1024b`: | ||
- non-linear constraints == `32,039` | ||
- linear-constraints: `18,644` | ||
- Theoretical storage size: `(32,039 + 18,644) * 3 * 32 bytes = 4,865,568 bytes ≈ 4.8 MB` | ||
- R1CS file: `11.1MB` | ||
- Graph file: `949KB` | ||
- **Estimated expanded R1CS base memory requirements:** `2^{20} * 32 * 5 ~ 168MB`$ | ||
- **Circuit param file sizes (SNARK):** | ||
- `aux_params`: `115.1MB` | ||
- `prover_key`: `100.7MB` | ||
- `verifier_key`: `780.3MB` | ||
- **Circuit param file sizes (ppSNARK):** | ||
- `aux_params`: `836MB` **(WARNING: THIS IS LARGE)** | ||
- `prover_key`: `5.86GB` **(WARNING: THIS IS EXTREMELY LARGE!!!)** | ||
- `verifier_key`: `16.8MB` | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pragma circom 2.1.9; | ||
|
||
include "../../circuits/http/verification.circom"; | ||
|
||
component main { public [step_in] } = HTTPVerification(1024, 25); |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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 |
---|---|---|
|
@@ -4,5 +4,6 @@ | |
"curve": "bn128", | ||
"includes": [ | ||
"node_modules" | ||
] | ||
], | ||
"optimization": 2 | ||
} |
Oops, something went wrong.