/** * Bitcoin Signature Module * * Handles conversion of Ethereum-format signatures to Bitcoin DER format. * Implements BIP 62 s-value normalization and DER encoding. * * CRITICAL: Handles both prefixed (0x...) and non-prefixed hex strings correctly. * LIT Protocol returns signatures without 0x prefix. */ /** * Convert Ethereum signature to Bitcoin DER format * * CRITICAL FIX: Conditional prefix removal * - LIT Protocol returns {r: '59f9d5b0...', s: '6b5a9233...'} (NO 0x prefix) * - Must check for prefix before slicing to avoid removing first data byte * * @param sig - Ethereum signature {r: string, s: string} * @returns DER-encoded signature (hex string) */ export declare function ethereumSignatureToBtcSignature(sig: { r: string; s: string; }): string; //# sourceMappingURL=signature.d.ts.map