/** * Asserts a condition and throws when it fails. * @param condition Condition to evaluate. * @param message Error message when condition fails. */ export declare function assert(condition: boolean, message: string): void; /** * Checks whether input is a 32-byte scalar. * @param x Input bytes. * @returns True when input is a scalar. */ export declare function isScalar(x: Uint8Array): boolean; /** * Validates a secp256k1 private key range. * @param privateKey Private key bytes. * @returns True when key is valid. */ export declare function isValidPrivateKey(privateKey: Uint8Array): boolean; /** * Compares two byte arrays lexicographically. * @param a First byte array. * @param b Second byte array. * @returns -1, 0, or 1 depending on comparison result. */ export declare function compareBuffers(a: Uint8Array, b: Uint8Array): number; /** * Compares two byte arrays in constant time. * @param b1 First byte array. * @param b2 Second byte array. * @returns True when arrays are equal. */ export declare function equalConstTime(b1: Uint8Array, b2: Uint8Array): boolean; /** * Validates random key length constraints. * @param length Requested length. * @returns True when length is valid. */ export declare function isValidKeyLength(length: number): boolean; /** * Validates a private key and throws when invalid. * @param privateKey Private key bytes. */ export declare function checkPrivateKey(privateKey: Uint8Array): void; /** * Validates a public key and throws when invalid. * @param publicKey Public key bytes. */ export declare function checkPublicKey(publicKey: Uint8Array): void; /** * Validates message bytes and throws when invalid. * @param msg Message bytes. */ export declare function checkMessage(msg: Uint8Array): void; //# sourceMappingURL=validators.d.ts.map