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

Tor proxy on Electrum, what does Port: 9150 and 9050 mean?

Is there any python library could be used to decodescript in output

Lightning network (lnd): What's the best way to report lnd server issues/ask for help with channels that won't close?