/** * Result of decoding a P2SH input that uses the Agora-style input-data format. * * Format follows ecash-agora ad script (ad.ts parseAdScriptSig, partial.ts adScript): * - scriptSig = * - lokad first for chronik lokadId indexing * - Redeem script: OP_CHECKSIGVERIFY pushBytes(data) OP_EQUALVERIFY pushBytes(lokad) OP_EQUAL */ export interface DecodedInputData { /** 4-byte lokad ID (for chronik indexing) */ lokadId: Uint8Array; /** Arbitrary data bytes */ data: Uint8Array; /** Sender's P2PKH address (from pubkey in scriptSig) */ address: string; } /** * Decode scriptSig from a P2SH input that uses the Agora-style input-data format. * * Built: scriptSig = [lokad, data, sig, pubkey, redeemScript] * Redeem script: OP_CHECKSIG pushBytes(data) OP_EQUALVERIFY pushBytes(lokad) OP_EQUAL * * @param scriptSig - The scriptSig bytes from the spending input * @param prefix - Address prefix (default 'ecash') * @returns Decoded lokadId, data, and address, or undefined if the format doesn't match */ export declare function decodeInputData(scriptSig: Uint8Array, prefix?: string): DecodedInputData | undefined; //# sourceMappingURL=inputData.d.ts.map