Bitcoin Forum
May 06, 2024, 10:23:40 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Transaction inputs and outputs not needed?  (Read 361 times)
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
May 10, 2018, 06:12:39 AM
 #21

Hi, guys
I finally decided to to go with UTXO's model because:
It becomes really messy when it comes to using money from multiple Unspent transactions into a new transaction. Then you need to keep the list of "parent transactions" into the new one. There are more user cases when Inputs/Outputs model solves it better.

How is this now different from your first approach?
You now just named it UTXO instead of 'previous transactions'.



And one more question - when I use a standalone wallet software - does it downloads the transactions locally or it downloads only UTXO's?
And if only UTXO's then how the parent transaction's signature is verified locally? Because without having the whole TX locally we cannot hash it an verify a signature

With 'standalone wallet software' you mean a full node client?
If so: A full node downloads the whole blockchain (every block) and verifies them, 'building a list' of UTXO's.
And a block does, of course, have the whole transaction included. It wouldn't be verifiable if this wasn't the case.

A lightweight client on the other hand does not store anything (besides wallet information of course).
Such a client (e.g. electrum) does query an online server to get the current status of UTXO's associated to your addresses.

1715034220
Hero Member
*
Offline Offline

Posts: 1715034220

View Profile Personal Message (Offline)

Ignore
1715034220
Reply with quote  #2

1715034220
Report to moderator
1715034220
Hero Member
*
Offline Offline

Posts: 1715034220

View Profile Personal Message (Offline)

Ignore
1715034220
Reply with quote  #2

1715034220
Report to moderator
1715034220
Hero Member
*
Offline Offline

Posts: 1715034220

View Profile Personal Message (Offline)

Ignore
1715034220
Reply with quote  #2

1715034220
Report to moderator
Transactions must be included in a block to be properly completed. When you send a transaction, it is broadcast to miners. Miners can then optionally include it in their next blocks. Miners will be more inclined to include your transaction if it has a higher transaction fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
eugene111 (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
May 10, 2018, 09:28:23 AM
Last edit: May 10, 2018, 10:03:16 AM by eugene111
 #22

Hi, guys
I finally decided to to go with UTXO's model because:
It becomes really messy when it comes to using money from multiple Unspent transactions into a new transaction. Then you need to keep the list of "parent transactions" into the new one. There are more user cases when Inputs/Outputs model solves it better.


How is this now different from your first approach?
You now just named it UTXO instead of 'previous transactions'.

With UTXO if we create one transaction - it may have 3 outputs(and more of course): 1. For a receiver, 2. For a sender if he needs charge, 3. Tx with a miner fee
In case of "Unspent transactions" we create 3 transactions:  1. For a receiver, 2. For a sender if he needs charge, 3. Tx with a miner fee
I still cannot imagine all possible cases where such amount of transactions can be a serious drawback.
At least (for "Unspent transactions") it may be more difficult to track history because in case of UTXO we can see 3 operations in a single transaction and in case of "Unspent transactions" we need somehow to determine whether they 3 were created at once(but I'm not it's important)

Also in case of "Unspent transactions" each transaction should contain a reference to a parent TX (the TX which money it spent). Actually this is the same as Input does. So looks like not a big win also.

So looks like UTXOs has a slight leverage here
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!