/** * Convert a 64-byte raw r || s signature to DER per RFC 3279 ยง2.2.3. * Output length is variable: 8 bytes minimum (r = s = 1 byte each, no * sign-pad), 72 bytes maximum (both components 32 bytes with high bit * set, each picking up a 0x00 sign-pad). * * @throws TypeError if `sig` is not a Uint8Array * @throws RangeError if `sig.length !== 64` */ export declare function ecdsaSignatureToDer(sig: Uint8Array): Uint8Array; /** * Convert a DER ECDSA-P256 signature to 64-byte raw r || s. Rejects * any DER syntax violation via SigningError('sig-malformed-input'): * see the file-level header for the rejection rules. * * Semantic value rejections (r = 0, s = 0, high-s, off-range) are * deferred to the WASM verify path; this function only enforces DER * structure. * * @throws TypeError if `der` is not a Uint8Array * @throws SigningError('sig-malformed-input') on any DER syntax error */ export declare function ecdsaSignatureFromDer(der: Uint8Array): Uint8Array;