-
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.
- Loading branch information
Showing
9 changed files
with
30 additions
and
45 deletions.
There are no files selected for viewing
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 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,30 @@ | ||
pragma circom 2.1.9; | ||
|
||
include "aes-gcm/nivc/aes-gctr-nivc.circom"; | ||
include "http/nivc/parse_and_lock_start_line.circom"; | ||
include "http/nivc/lock_header.circom"; | ||
include "http/nivc/body_mask.circom"; | ||
include "json/nivc/parse.circom"; | ||
include "json/nivc/masker.circom"; | ||
include "json/nivc/masker.circom"; | ||
include "json/nivc/extractor.circom"; | ||
|
||
// AES -> HTTP Parse -> http lock header -> http body mask -> json parse -> json_mask_object/json_mask_array -> extract value | ||
template WEPPROOF { | ||
|
||
component aes_gctr_nivc = AESGCTRFOLD(48); | ||
component http_parse = ParseAndLockStartLine(48, 16, 8, 3, 2); | ||
component http_lock_header = LockHeader(48, 16, 12, 16); | ||
component http_body_mask = HTTPMaskBodyNIVC(48, 16); | ||
component json_parse = JsonParseNIVC(48, 16); | ||
// need logic to specif which json type | ||
// object or array | ||
component json_mask_object = JsonMaskObjectNIVC(48, 16, 4); | ||
component json_mask_array = JsonMaskArrayIndexNIVC(48, 16); | ||
// extract value | ||
component extract_value = JsonParseNIVC(48, 16); | ||
} | ||
|
||
// = AESGCTRFOLD(48); | ||
component main = WEPPROOF(); | ||
|