UNPKG

@shard-auth/client

Version:

Next-generation API authentication without secret keys - MPC-based authentication with FROST threshold signatures

11 lines 665 B
/** * FROST数学的演算 * 定数時間実装でタイミング攻撃を防ぐ */ export declare function randomBytes(length: number): Buffer; export declare function computeLagrangeCoefficient(participantIndex: number, participantIndices: number[]): bigint; export declare function hash(domain: string, ...inputs: Buffer[]): Buffer; export declare function evaluatePolynomial(coefficients: bigint[], x: bigint, order: bigint): bigint; export declare function generatePolynomialCoefficients(secret: bigint, threshold: number, order: bigint): bigint[]; export declare function constantTimeEqual(a: Buffer, b: Buffer): boolean; //# sourceMappingURL=math.d.ts.map