Bitcoin Forum
May 27, 2024, 09:58:32 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Who can tell me what actually happen (In plain words) when I send BTC to another  (Read 310 times)
Metros (OP)
Full Member
***
Offline Offline

Activity: 308
Merit: 100


View Profile
July 30, 2017, 04:18:12 PM
 #1

Since there is no main-server, how does my wallet know where to send the BTC at?

prometheum
Newbie
*
Offline Offline

Activity: 55
Merit: 0


View Profile
July 31, 2017, 02:48:41 AM
 #2

It uses a distributed ledger which is defined below.

This is an excerpt from investopedia.

A distributed ledger is a database that is consensually shared and synchronized across network spread across multiple sites, institutions or geographies. It allows transactions to have public "witnesses," thereby making a cyberattack more difficult. The participant at each node of the network can access the recordings shared across that network and can own an identical copy of it. Further, any changes or additions made to the ledger are reflected and copied to all participants in a matter of seconds or minutes. Underlying the distributed ledger technology is the blockchain, which is the technology that underlies bitcoin.
xenotrunksx
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
July 31, 2017, 03:08:18 AM
 #3

Your wallet doesn't really "send" BTC anywhere.  Roughly speaking your wallet software submits a request to update an online database (blockchain) to anyone that is willing to listen on the network.  People listening on the network (nodes) relay the update (transaction) until it is approved (added to a block by miners).  The signature from your private key verifies that the update request you submit is valid and you have the authority to modify ownership of that part of the database (blockchain).

.....I think.
IadixDev
Full Member
***
Offline Offline

Activity: 322
Merit: 151


They're tactical


View Profile WWW
July 31, 2017, 03:14:50 AM
 #4

When you "send btc" you sign a transaction with the btc you own as input, and the output(s) contain the script with the public key (destination address) corresponding to the private key to spend it.

This transaction is then sent to the network, and added to the memory pool to be mined in the next block.

When the next block is mined, it will be propagated to other nodes, and the bitcoin can be spent using the private key corresponding to the public key in the output script.

The btc are not localized specially anywhere, but all node keep track of all the spendable bitcoin associated with the script to spend it which contain the public key, or the hash of the public key.

Anyone who own the private key associated with the public key in the script can then spend those btc.

Smarty14392
Sr. Member
****
Offline Offline

Activity: 560
Merit: 286



View Profile
July 31, 2017, 04:52:54 AM
 #5

It's actually quite simple. Your wallet is a collection of private keys, each identified by an ID. When you send bitcoins to someone, those are just assigned to one of those private keys. The information is stored in the database known as blockchain.
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!