Uniquely identifying a UTXO

Uniquely identifying a UTXO

I see two ways:

Txid + index

Txid + script hash

Pros of the txid + index:

  • Simple and short

Cons of txid + index:

  • It relies on array iteration being deterministic and all third party services using the same iteration method.

Txid + script hash does not rely on iteration order and since script hashes are stored on the blockchain they are not malleable after 6 confirmations.

Which would be the preferred way to go?

https://ift.tt/2tNe9WJ

Comments

Popular posts from this blog

New z-enemy 1.26 Nvidia GPU Miner With Improved Performance

New coin daemon crashes ReadBlockFromDisk: Errors in block header at CBlockDiskPos(nFile=0, nPos=8)