import { BacktraceInfo, ByteString, TxHashPreimage } from '../smart-contract/types/index.js'; import { UTXO } from '../globalTypes.js'; /** * Converts a UTXO to its genesis outpoint format. * The genesis outpoint is constructed by reversing the txId bytes and appending * the output index as a 4-byte little-endian string. * * @param utxo - The UTXO to convert * @returns The genesis outpoint as a hex-encoded ByteString */ export declare const toGenesisOutpoint: (utxo: UTXO) => ByteString; /** * convert raw txHash preimage buffer to TxHashPreimage struct * @param txHashPreimageBuf * @returns */ export declare const toTxHashPreimage: (txHashPreimageBuf: Uint8Array) => TxHashPreimage; /** * prevPrevTx: input1 + input2 + ... = output1 + output2 + ... * prevTx: input1(prevPrevTx.output1) + input2 + ... = output1 + output2 + ... * curTx: input1(prevTx.output1) + input2 + ... = output1 + output2 + ... * * if we want to backtrace curTx.input1, the arguments should be: * * @param prevTxHex: prevTx.toHex() * @param prevPrevTxHex: prevPrevTx.toHex() * @param prevTxInputIndex: prevTx.input1.inputIndex, here is 0 * @returns */ export declare function getBackTraceInfo(prevTxHex: string, prevPrevTxHex: string, prevTxInputIndex: number): BacktraceInfo; //# sourceMappingURL=proof.d.ts.map