proof type

Former-commit-id: 4b330981acce89d0a3d9a9121d4e08f9d5700d9e [formerly e457fd494e]
Former-commit-id: 4a8aeb161e4a6f0d4cea1a6fd728d516d3c203fb
This commit is contained in:
Andrija Novakovic
2021-10-25 11:53:27 +02:00
parent 478bb835df
commit 12556732e6
2 changed files with 12 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@libsem/types",
"version": "1.0.3",
"version": "1.0.4",
"description": "Common type definitions for Semaphore modules.",
"main": "src/index.ts",
"types": "dist/index.d.ts",

View File

@@ -3,8 +3,18 @@ export interface Identity {
identityTrapdoor: bigint
}
export type Proof = {
proof: {
pi_a: Array<string>,
pi_b: [ [Array<string>], [Array<string>], [Array<string>] ],
pi_c: Array<string>
protocol: string,
curve: string
},
}
export interface IProof {
proof: any
proof: Proof
publicSignals: Array<bigint | string>
}