mirror of
https://github.com/logos-messaging/js-rln.git
synced 2026-01-04 06:33:09 +00:00
style: run format
This commit is contained in:
parent
134ae1de45
commit
518b32bc8a
90
src/zerokit/rln_wasm.d.ts
vendored
90
src/zerokit/rln_wasm.d.ts
vendored
@ -1,59 +1,73 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
/**
|
||||
*/
|
||||
*/
|
||||
export function init_panic_hook(): void;
|
||||
/**
|
||||
* @param {number} tree_height
|
||||
* @param {Uint8Array} zkey
|
||||
* @param {Uint8Array} vk
|
||||
* @returns {number}
|
||||
*/
|
||||
export function newRLN(tree_height: number, zkey: Uint8Array, vk: Uint8Array): number;
|
||||
* @param {number} tree_height
|
||||
* @param {Uint8Array} zkey
|
||||
* @param {Uint8Array} vk
|
||||
* @returns {number}
|
||||
*/
|
||||
export function newRLN(
|
||||
tree_height: number,
|
||||
zkey: Uint8Array,
|
||||
vk: Uint8Array
|
||||
): number;
|
||||
/**
|
||||
* @param {number} ctx
|
||||
* @param {Uint8Array} input
|
||||
* @returns {Uint8Array}
|
||||
*/
|
||||
export function getSerializedRLNWitness(ctx: number, input: Uint8Array): Uint8Array;
|
||||
* @param {number} ctx
|
||||
* @param {Uint8Array} input
|
||||
* @returns {Uint8Array}
|
||||
*/
|
||||
export function getSerializedRLNWitness(
|
||||
ctx: number,
|
||||
input: Uint8Array
|
||||
): Uint8Array;
|
||||
/**
|
||||
* @param {number} ctx
|
||||
* @param {Uint8Array} input
|
||||
*/
|
||||
* @param {number} ctx
|
||||
* @param {Uint8Array} input
|
||||
*/
|
||||
export function insertMember(ctx: number, input: Uint8Array): void;
|
||||
/**
|
||||
* @param {number} ctx
|
||||
* @param {Uint8Array} serialized_witness
|
||||
* @returns {object}
|
||||
*/
|
||||
export function RLNWitnessToJson(ctx: number, serialized_witness: Uint8Array): object;
|
||||
* @param {number} ctx
|
||||
* @param {Uint8Array} serialized_witness
|
||||
* @returns {object}
|
||||
*/
|
||||
export function RLNWitnessToJson(
|
||||
ctx: number,
|
||||
serialized_witness: Uint8Array
|
||||
): object;
|
||||
/**
|
||||
* @param {number} ctx
|
||||
* @param {(bigint)[]} calculated_witness
|
||||
* @param {Uint8Array} serialized_witness
|
||||
* @returns {Uint8Array}
|
||||
*/
|
||||
export function generate_rln_proof_with_witness(ctx: number, calculated_witness: (bigint)[], serialized_witness: Uint8Array): Uint8Array;
|
||||
* @param {number} ctx
|
||||
* @param {(bigint)[]} calculated_witness
|
||||
* @param {Uint8Array} serialized_witness
|
||||
* @returns {Uint8Array}
|
||||
*/
|
||||
export function generate_rln_proof_with_witness(
|
||||
ctx: number,
|
||||
calculated_witness: bigint[],
|
||||
serialized_witness: Uint8Array
|
||||
): Uint8Array;
|
||||
/**
|
||||
* @param {number} ctx
|
||||
* @returns {Uint8Array}
|
||||
*/
|
||||
* @param {number} ctx
|
||||
* @returns {Uint8Array}
|
||||
*/
|
||||
export function generateMembershipKey(ctx: number): Uint8Array;
|
||||
/**
|
||||
* @param {number} ctx
|
||||
* @param {Uint8Array} proof
|
||||
* @returns {boolean}
|
||||
*/
|
||||
* @param {number} ctx
|
||||
* @param {Uint8Array} proof
|
||||
* @returns {boolean}
|
||||
*/
|
||||
export function verifyProof(ctx: number, proof: Uint8Array): boolean;
|
||||
/**
|
||||
*/
|
||||
*/
|
||||
export class RLN {
|
||||
free(): void;
|
||||
}
|
||||
/**
|
||||
* A struct representing an aborted instruction execution, with a message
|
||||
* indicating the cause.
|
||||
*/
|
||||
* A struct representing an aborted instruction execution, with a message
|
||||
* indicating the cause.
|
||||
*/
|
||||
export class WasmerRuntimeError {
|
||||
free(): void;
|
||||
}
|
||||
|
||||
10
src/zerokit/rln_wasm_bg.wasm.d.ts
vendored
10
src/zerokit/rln_wasm_bg.wasm.d.ts
vendored
@ -1,12 +1,18 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export const memory: WebAssembly.Memory;
|
||||
export function __wbg_rln_free(a: number): void;
|
||||
export function newRLN(a: number, b: number, c: number): number;
|
||||
export function getSerializedRLNWitness(a: number, b: number): number;
|
||||
export function insertMember(a: number, b: number, c: number): void;
|
||||
export function RLNWitnessToJson(a: number, b: number): number;
|
||||
export function generate_rln_proof_with_witness(a: number, b: number, c: number, d: number, e: number): void;
|
||||
export function generate_rln_proof_with_witness(
|
||||
a: number,
|
||||
b: number,
|
||||
c: number,
|
||||
d: number,
|
||||
e: number
|
||||
): void;
|
||||
export function generateMembershipKey(a: number, b: number): void;
|
||||
export function verifyProof(a: number, b: number): number;
|
||||
export function init_panic_hook(): void;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user