export interface EthSignature { r: Buffer; s: Buffer; recovery: 0 | 1; } export declare function getPublicKeyUncompressed(privateKey: Buffer | Uint8Array): Buffer; /** * Generate a fresh secp256k1 secret key. Uses the platform CSPRNG via * noble's utility, which is uniform over the valid scalar range (handles * the vanishingly small bias of raw 256-bit random against N). */ export declare function randomSecretKey(): Buffer; /** * Signs a 32-byte digest and returns the Ethereum-shaped components. * The noble v3 recovered format is `recovery || r || s` (recovery is byte 0). */ export declare function signDigest(digest: Buffer | Uint8Array, privateKey: Buffer | Uint8Array): EthSignature; /** * Recover the 65-byte uncompressed public key (with 0x04 prefix) from a digest and signature. * Used in tests and address derivation from signature. */ export declare function recoverPublicKey(digest: Buffer | Uint8Array, sig: EthSignature): Buffer; //# sourceMappingURL=secp.d.ts.map