Bitcoin Forum
December 14, 2024, 07:49:08 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How is coin ownership verified (technically)  (Read 932 times)
tanascius (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 08, 2011, 09:41:03 PM
 #1

Hi,

please consider the following example:
* I bought 10 BCs from ten different people. The ten necessary transactions are scattered through the blockchain (I bought some bitcoins years ago, some just days ago).
* Now I spend the ten BCs and send them to a new owner

I am wondering how the ownership of the ten coins are verified by the nodes. Are there lookup tables for each account implemented, so all nodes just know that my account owns 10 BCs. Or do they look for the ten different transactions in the whole blockchain and search the history? (It certainly could be done both ways, but which one is actually used in current implementations?)

Now, what happens, when I received the 10 BCs with 10 different adresses? Does my client know, that it has to create ten transactions with ten different signatures to get the 10 BCs to the new owner? Or can the 10 BCs be combined somehow?

Thanks for your help!
ArdaXi
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
June 08, 2011, 09:46:59 PM
 #2

Have a look at the wiki page.

Basically, the way it works is, for every coin you reference the output at which it was sent to you as an input. Those have your public key in it. You then sign the transaction using your key. The nodes check whether the two match.
tanascius (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 08, 2011, 10:05:36 PM
 #3

Thanks - I'am wondering how I could miss this information ... but the wiki explains it all.
Pages: [1]
  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!