Skip to content

Commit

Permalink
rename ofac circuits
Browse files Browse the repository at this point in the history
  • Loading branch information
remicolin committed Aug 18, 2024
1 parent 255b2cc commit 9fa4196
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions circuits/circuits/ofac/ofac_name.circom
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include "../utils/getCommonLength.circom";
include "../utils/validatePassport.circom";
include "../utils/smt.circom";

template ProveNameNotInOfac(nLevels) {
template OFAC_NAME(nLevels) {
signal input secret;
signal input attestation_id;
signal input pubkey_leaf;
Expand Down Expand Up @@ -49,4 +49,4 @@ template ProveNameNotInOfac(nLevels) {

}

component main { public [ merkle_root,smt_root ] } = ProveNameNotInOfac(16);
component main { public [ merkle_root,smt_root ] } = OFAC_NAME(16);
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ include "../utils/getCommonLength.circom";
include "../utils/validatePassport.circom";
include "../utils/smt.circom";

template ProveNameDobNotInOfac(nLevels) {
template OFAC_NAME_DOB(nLevels) {
signal input secret;
signal input attestation_id;
signal input pubkey_leaf;
Expand Down Expand Up @@ -56,4 +56,4 @@ template ProveNameDobNotInOfac(nLevels) {
proofLevel <== 2;
}

component main { public [ merkle_root,smt_root ] } = ProveNameDobNotInOfac(16);
component main { public [ merkle_root,smt_root ] } = OFAC_NAME_DOB(16);
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include "../utils/getCommonLength.circom";
include "../utils/validatePassport.circom";
include "../utils/smt.circom";

template ProvePassportNotInOfac(nLevels) {
template OFAC_PASSPORT_NUMBER(nLevels) {
signal input secret;
signal input attestation_id;
signal input pubkey_leaf;
Expand Down Expand Up @@ -45,4 +45,4 @@ template ProvePassportNotInOfac(nLevels) {
proofLevel <== 3;
}

component main { public [ merkle_root,smt_root ] } = ProvePassportNotInOfac(16);
component main { public [ merkle_root,smt_root ] } = OFAC_PASSPORT_NUMBER(16);
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ tree.insert(BigInt(mockInputs.commitment));
// 3. Invalid proof : Correct path but wrong corresponding siblings ; fails due to calculatedRoot != smt_root

// Level 3 : Passport match in OfacList
describe('start testing ofac_passportNo_verifier.circom', function () {
describe('start testing ofac_passport_number.circom', function () {
this.timeout(0);
let passno_smt = new SMT(hash, true);
let memSmtInputs: any;
let nonMemSmtInputs: any;

before(async () => {
circuit = await wasm_tester(
path.join(__dirname, '../../circuits/ofac/ofac_passportNo_verifier.circom'),
path.join(__dirname, '../../circuits/ofac/ofac_passport_number.circom'),
{
include: [
'node_modules',
Expand Down Expand Up @@ -167,15 +167,15 @@ describe('start testing ofac_passportNo_verifier.circom', function () {
});

// Level 2 : NameDob match in OfacList
describe('start testing ofac_nameDob_verifier.circom', function () {
describe('start testing ofac_name_dob.circom', function () {
this.timeout(0);
let namedob_smt = new SMT(hash, true);
let memSmtInputs: any;
let nonMemSmtInputs: any;

before(async () => {
circuit = await wasm_tester(
path.join(__dirname, '../../circuits/ofac/ofac_nameDob_verifier.circom'),
path.join(__dirname, '../../circuits/ofac/ofac_name_dob.circom'),
{
include: [
'node_modules',
Expand Down Expand Up @@ -257,15 +257,15 @@ describe('start testing ofac_nameDob_verifier.circom', function () {
});

// Level 1 : Name match in OfacList
describe('start testing ofac_name_verifier.circom', function () {
describe('start testing ofac_name.circom', function () {
this.timeout(0);
let name_smt = new SMT(hash, true);
let memSmtInputs: any;
let nonMemSmtInputs: any;

before(async () => {
circuit = await wasm_tester(
path.join(__dirname, '../../circuits/ofac/ofac_name_verifier.circom'),
path.join(__dirname, '../../circuits/ofac/ofac_name.circom'),
{
include: [
'node_modules',
Expand Down

0 comments on commit 9fa4196

Please sign in to comment.