As per my understanding from the book "Mastering bitcoin", a transaction output contains three things
- Amount - Bitcoin Value in Satoshis
- Locking-Script-Size - Locking-Script length in bytes, to follow
- Locking-Script -A script defining the conditions needed to spend the output
Now let us say a transaction input points to UTXOs mentioned in one of the transaction output through transaction hash and a validation software is able satisfy the scriptPubKey(locking script) using script‐ Sig(unlocking script).
Questions regarding this case
- What would happen to the UTXOs mentioned in the output of parent transaction? Would it get vanished in the transaction or any change would happen?
Only a valid transaction that correctly satisfies the conditions of the UTXO results in the UTXO being marked as “spent” and removed from the set of available (unspent) UTXO.
This was a statement from the book, now is there any seperate pool of UTXOs or it just meant the transaction lying at the leaf nodes of merkel tree? And what does
removed from the set of available (unspent) UTXO.
- Would the output of the child transaction contain the same transaction ids as the its parent'output contained?
Assume when the spender tried to see what all he can spend i.e the transactions directed to its bitcoin address then these were the transaction output which he got
[<7dbc497969c7475e45d952c4a872e213fb15d45e5cd3473c386a71a1b0c136a1:0 with 25000000 Satoshis>, \ <7f42eda67921ee92eae5f79bd37c68c9cb859b899ce70dba68c48338857b7818:0 with 16100000 Satoshis>, \ <6596fd070679de96e405d52b51b8e1d644029108ec4cbfe451454486796a1ecf:0 with 16050000 Satoshis>]
Please enlighten me if I am missing out on something.