move into unit test

This commit is contained in:
motemotech
2024-10-08 23:04:14 +09:00
parent 34eb3f546b
commit 3a7e1d52aa
2 changed files with 10 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ import { Proof } from "../types";
export function generateMockRSAProveVerifierInputs({
nullifier = "1",
revealedData_packed = ["2", "3", "4"],
older_than = ["5", "6", "7"],
older_than = ["49", "56"],
pubkey_disclosed = ["0", "0", "0", "0","0", "0", "0", "0","0", "0", "0", "0","0", "0", "0", "0","0", "0", "0", "0","0", "0", "0", "0","0", "0", "0", "0","0", "0", "0", "0"],
forbidden_contries_list_packed_disclose = ["8", "9"],
ofac_result = "10",
@@ -108,4 +108,13 @@ function getDateNum(date: Date = new Date()): string[] {
];
return dateNum.map(num => num.toString());
}
export function convertProofTypeIntoInput(proof: Proof) {
return {
a: proof.proof.a,
b: proof.proof.b,
c: proof.proof.c,
pubSignals: proof.pub_signals
}
}