generated from napi-rs/package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
56 lines (54 loc) · 1.97 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* tslint:disable */
/* eslint-disable */
/* auto-generated by NAPI-RS */
export function setupFromCircomR1CsBn128(
r1CsFilePath: string,
commitWitnessCount: number,
seed: number,
pathPk: string,
pathVk: string,
): void
export function setupFromCircomR1CsBls12381(
r1CsFilePath: string,
commitWitnessCount: number,
seed: number,
pathPk: string,
pathVk: string,
): void
export function proveRangeBn128(
r1CsFilePath: string,
wasmFilePath: string,
pkFilePath: string,
proofFilePath: string,
inputString: string,
seed: number,
): void
export function proveRangeBls12381(
r1CsFilePath: string,
wasmFilePath: string,
pkFilePath: string,
proofFilePath: string,
inputString: string,
seed: number,
): void
export function verifyRangeBn128(vkPath: string, proofFilePath: string): boolean
export function verifyRangeBls12381(vkPath: string, proofFilePath: string): boolean
export function getProofBn128(proofFilePath: string): string
export function aggregateProofCommitmentBn128(proofFilePaths: Array<string>, saveFilePath: string): void
export function aggregateProofCommitmentBls12381(proofFilePaths: Array<string>, saveFilePath: string): void
export function getAggregatedCommitmentBn128(aggregatedCommitmentFilePath: string): string
export function getAggregatedCommitmentBls12381(aggregatedCommitmentFilePath: string): string
export function aggregateOpeningKeysBn128(openingKeyFilePaths: Array<string>, saveFilePath: string): void
export function aggregateOpeningKeysBls12381(openingKeyFilePaths: Array<string>, saveFilePath: string): void
export function updateAggregatedCommitmentBn128(
r1CsFilePath: string,
keyFilePath: string,
wasmFilePath: string,
proofFilePath: string,
aggregatedCommitmentFilePath: string,
aggregatedOpeningKeyFilePath: string,
updateValue: string,
seed: number,
): void
export function updateAggregatedCommitmentBls12381(): void
export function calculatePedersenCommitmentBn128(provingFilePath: string, m: string, v: string): string