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

What exactly is a block?

Firmware With Unlocked Overclock for Bitmain Antminer Z9 Equihash ASIC Miners

How to use this nodejs script (by:Raghav Sood) that have been posted on the stackexchange