@cryptkeeperzk/rlnjs
Version:
Client library for generating and using RLN ZK proofs, is a forked repo from main Rate-Limiting-Nullifier/rlnjs to make it work with Cryptkeeper Browser Extension using `@cryptkeeperzk/snarkjs` and `@cryptkeeperzk/ffjavascript`
31 lines (26 loc) • 532 B
text/typescript
export type StrBigInt = string | bigint
/**
* snarkjs proof.
*/
export type Proof = {
pi_a: StrBigInt[]
pi_b: StrBigInt[][]
pi_c: StrBigInt[]
protocol: string
curve: string
}
/**
* snarkjs verification key.
*/
export type VerificationKey = {
protocol: string,
curve: string,
nPublic: number,
vk_alpha_1: string[],
vk_beta_2: string[][],
vk_gamma_2: string[][],
vk_delta_2: string[][],
vk_alphabeta_12: string[][][],
IC: string[][],
}
export { MerkleProof } from '@zk-kit/incremental-merkle-tree'