/** * Internal utilities for YubiKey signing operations */ /** * Normalize s value to lower half of curve order (canonical form required by Ethereum) */ export declare function normalizeS(s: Uint8Array): Uint8Array; /** * Recover the v value by trying both recovery IDs * @param hash The message hash that was signed * @param r The r component of the signature * @param s The s component of the signature (must be normalized) * @param expectedAddress The Ethereum address we expect to recover * @returns The recovery ID (0 or 1) */ export declare function recoverV(hash: Uint8Array, r: Uint8Array, s: Uint8Array, expectedAddress: `0x${string}`): number; /** * Convert hex string to Uint8Array */ export declare function hexToUint8Array(hex: string): Uint8Array; /** * Convert Uint8Array to hex string */ export declare function uint8ArrayToHex(bytes: Uint8Array): `0x${string}`; /** * Ensure hex string has 0x prefix */ export declare function ensureHex(value: string): `0x${string}`; /** * Remove 0x prefix from hex string */ export declare function stripHex(value: string): string; //# sourceMappingURL=utils.d.ts.map