Files
2P-PSI/pkg/mp_psi.d.ts
enrico.eth e6e8dbab6f fix mp-psi package (#4)
* fix BFV params

* unite convert functions

* add support for arbitrary bit vector size

* chore: `mp-psi` bump `0.1.7`

* chore: `mp-psi` bump `0.1.8`

update readme of the `pkg`

* chore: bump `0.1.9`

Minor readme fixes

* chore: add runtime performance benches

* chore: code polishing

* chore: update wasm bidnings

* feat: add `bandwidth_benches` (partial)

* chore: update benches

* fix: minor

* chore: minor fix

* chore: add API documentation

* chore: update benches

* chore: update readme

---------

Co-authored-by: Janmajaya Mall <janmajayamall@protonmail.com>
2024-01-23 22:26:44 +05:30

71 lines
2.5 KiB
TypeScript

/* tslint:disable */
/* eslint-disable */
/**
* @returns {any}
*/
export function state0_bindgen(): any;
/**
* @param {any} message_a_to_b
* @param {Uint32Array} bit_vector
* @returns {any}
*/
export function state1_bindgen(message_a_to_b: any, bit_vector: Uint32Array): any;
/**
* @param {any} private_output_a_state0
* @param {any} public_output_a_state0
* @param {any} message_b_to_a
* @param {Uint32Array} bit_vector
* @returns {any}
*/
export function state2_bindgen(private_output_a_state0: any, public_output_a_state0: any, message_b_to_a: any, bit_vector: Uint32Array): any;
/**
* @param {any} private_output_b_state1
* @param {any} public_output_b_state1
* @param {any} message_a_to_b
* @returns {any}
*/
export function state3_bindgen(private_output_b_state1: any, public_output_b_state1: any, message_a_to_b: any): any;
/**
* @param {any} public_output_a_state2
* @param {any} message_b_to_a
* @returns {Uint32Array}
*/
export function state4_bindgen(public_output_a_state2: any, message_b_to_a: any): Uint32Array;
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
export interface InitOutput {
readonly memory: WebAssembly.Memory;
readonly state0_bindgen: () => number;
readonly state1_bindgen: (a: number, b: number, c: number) => number;
readonly state2_bindgen: (a: number, b: number, c: number, d: number, e: number) => number;
readonly state3_bindgen: (a: number, b: number, c: number) => number;
readonly state4_bindgen: (a: number, b: number, c: number) => void;
readonly __wbindgen_malloc: (a: number, b: number) => number;
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
readonly __wbindgen_exn_store: (a: number) => void;
}
export type SyncInitInput = BufferSource | WebAssembly.Module;
/**
* Instantiates the given `module`, which can either be bytes or
* a precompiled `WebAssembly.Module`.
*
* @param {SyncInitInput} module
*
* @returns {InitOutput}
*/
export function initSync(module: SyncInitInput): InitOutput;
/**
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
* for everything else, calls `WebAssembly.instantiate` directly.
*
* @param {InitInput | Promise<InitInput>} module_or_path
*
* @returns {Promise<InitOutput>}
*/
export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;