mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
fix bad var names in merkle_tree_pubkey.circom
This commit is contained in:
committed by
0xturboblitz
parent
b2fd046b0e
commit
359a02e715
@@ -14,12 +14,12 @@ template MerkleTreePubkey_sha256WithRSAEncryption65537(n, k, nLevels, pubkeySize
|
||||
component chunk_data = ChunkData(n, k, chunk_size);
|
||||
chunk_data.data <== pubkey;
|
||||
|
||||
signal leaf_hash_input[1 + k3_chunked_size];
|
||||
signal leaf_hash_input[1 + chunk_size];
|
||||
leaf_hash_input[0] <== signatureAlgorithm;
|
||||
for (var i = 0; i < k3_chunked_size; i++) {
|
||||
for (var i = 0; i < chunk_size; i++) {
|
||||
leaf_hash_input[i+1] <== chunk_data.outputs[i];
|
||||
}
|
||||
signal leaf <== Poseidon(1 + k3_chunked_size)(leaf_hash_input);
|
||||
signal leaf <== Poseidon(1 + chunk_size)(leaf_hash_input);
|
||||
|
||||
// Verify inclusion in merkle tree
|
||||
signal computed_merkle_root <== MerkleTreeInclusionProof(nLevels)(leaf, path, siblings);
|
||||
|
||||
@@ -9,7 +9,7 @@ import { MAX_DATAHASHES_LEN, SignatureAlgorithm, TREE_DEPTH } from "../../common
|
||||
import { poseidon2 } from "poseidon-lite";
|
||||
import { IMT } from "@zk-kit/imt";
|
||||
|
||||
describe("start testing of proof_of_passport_majority.circom", function () {
|
||||
describe("start testing register.circom", function () {
|
||||
this.timeout(0);
|
||||
let inputs: any;
|
||||
let circuit: any;
|
||||
|
||||
@@ -10,7 +10,7 @@ import { IMT } from "@zk-kit/imt";
|
||||
import { mockPassportData_sha256WithRSAEncryption_65537 } from "../../common/src/utils/mockPassportData";
|
||||
import { generateCircuitInputs } from '../../common/src/utils/generateInputs';
|
||||
|
||||
describe("start testing of proof_of_passport_majority.circom", function () {
|
||||
describe("start testing register.circom", function () {
|
||||
this.timeout(0);
|
||||
let inputs: any;
|
||||
let circuit: any;
|
||||
|
||||
Reference in New Issue
Block a user