Skip to content

Commit

Permalink
remove excess stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Autoparallel committed Dec 11, 2024
1 parent 06c6920 commit a2d1d9d
Show file tree
Hide file tree
Showing 17 changed files with 10 additions and 1,291 deletions.
474 changes: 0 additions & 474 deletions circuits/json/interpreter.circom

This file was deleted.

32 changes: 0 additions & 32 deletions circuits/json/nivc/extractor.circom

This file was deleted.

136 changes: 0 additions & 136 deletions circuits/json/nivc/masker.circom

This file was deleted.

23 changes: 0 additions & 23 deletions circuits/test/full/full.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,6 @@ const json_key3_mask_hash = DataHasher(json_key3_mask);
describe("Example NIVC Proof", async () => {
let PlaintextAuthentication: WitnessTester<["key", "nonce", "counter", "plainText", "step_in"], ["step_out"]>;
let HTTPVerification: WitnessTester<["step_in", "data", "main_digests"], ["step_out"]>;
let json_mask_object_circuit: WitnessTester<["step_in", "data", "key", "keyLen"], ["step_out"]>;
let json_mask_arr_circuit: WitnessTester<["step_in", "data", "index"], ["step_out"]>;
let extract_value_circuit: WitnessTester<["step_in", "data"], ["step_out"]>;

const MAX_NUMBER_OF_HEADERS = 2;
const DATA_BYTES = 320;
Expand All @@ -153,26 +150,6 @@ describe("Example NIVC Proof", async () => {
});
console.log("#constraints (HTTPVerification):", await HTTPVerification.getConstraintCount());

json_mask_object_circuit = await circomkit.WitnessTester(`JsonMaskObjectNIVC`, {
file: "json/nivc/masker",
template: "JsonMaskObjectNIVC",
params: [DATA_BYTES, MAX_STACK_HEIGHT, MAX_KEY_LENGTH],
});
console.log("#constraints (JSON-MASK-OBJECT):", await json_mask_object_circuit.getConstraintCount());

json_mask_arr_circuit = await circomkit.WitnessTester(`JsonMaskArrayIndexNIVC`, {
file: "json/nivc/masker",
template: "JsonMaskArrayIndexNIVC",
params: [DATA_BYTES, MAX_STACK_HEIGHT],
});
console.log("#constraints (JSON-MASK-ARRAY-INDEX):", await json_mask_arr_circuit.getConstraintCount());

extract_value_circuit = await circomkit.WitnessTester(`JsonMaskExtractFinal`, {
file: "json/nivc/extractor",
template: "MaskExtractFinal",
params: [DATA_BYTES, MAX_VALUE_LENGTH],
});
console.log("#constraints (JSON-MASK-EXTRACT-FINAL):", await extract_value_circuit.getConstraintCount());
});

it("Spotify Example", async () => {
Expand Down
Loading

0 comments on commit a2d1d9d

Please sign in to comment.