toGenesisOutpoint
scrypt-ts-opcat / toGenesisOutpoint
Function: toGenesisOutpoint()
toGenesisOutpoint(
utxo
):ByteString
Defined in: packages/scrypt-ts-opcat/src/utils/proof.ts:29
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.
Parameters
utxo
The UTXO to convert
Returns
The genesis outpoint as a hex-encoded ByteString