@iden3/js-crypto
Version:
Crypto primitives for iden3
16 lines • 517 B
TypeScript
import { F1Field } from '../ff';
export declare const OPT: {
C: bigint[][];
S: bigint[][];
M: bigint[][][];
P: bigint[][][];
};
export declare class Poseidon {
static F: F1Field;
static hash(inputs: bigint[]): bigint;
static hashBytes(msg: Uint8Array): bigint;
static hashBytesX(msg: Uint8Array, frameSize: number): bigint;
static spongeHashX(inputs: bigint[], frameSize: number): bigint;
}
export declare const poseidon: typeof Poseidon;
//# sourceMappingURL=poseidon-opt.d.ts.map