Bitcoin Forum
November 04, 2024, 10:13:29 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Help me understand the intricacies off transactions  (Read 741 times)
BookLover (OP)
Hero Member
*****
Offline Offline

Activity: 533
Merit: 500


^Bitcoin Library of Congress.


View Profile
February 23, 2013, 05:11:18 PM
 #1

Generally when one sends coins two transactions are made, one to the desired recipient, and one to a "change" address.  For example:

Lets say I have 10 coins in address A.  I send 7 coins to Bob.  Now Bob has 7 coins, address A has zero coins, and I have a "change" address with 3 coins.

So the transaction is signed with A's private key and now everyone knows the private key for address A.  What happens if someone sends 10 more coins to Address A?  Can anyone access the coins in address A now?

Thanks for spending your time reading and hopefully answering this question! Wink Cheesy

deeplink
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


In cryptography we trust


View Profile
February 23, 2013, 05:15:00 PM
 #2

So the transaction is signed with A's private key and now everyone knows the private key for address A.  What happens if someone sends 10 more coins to Address A?  Can anyone access the coins in address A now?

If A signes the transaction with the private key, it can be validated with A's public key. The private key always remains unknown to anyone but A.

See Public-key cryptography
Akka
Legendary
*
Offline Offline

Activity: 1232
Merit: 1001



View Profile
February 23, 2013, 05:16:00 PM
 #3

So the transaction is signed with A's private key and now everyone knows the private key for address A. 

No, you Private key is still a secret. When you know the public key (BTC-Adress) you can proof that a message has been signed with it. For more read: http://en.wikipedia.org/wiki/Public-key_cryptography

You Address A is still good.

All previous versions of currency will no longer be supported as of this update
deeplink
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


In cryptography we trust


View Profile
February 23, 2013, 05:17:38 PM
 #4

lol Akka, we think alike  Wink
BookLover (OP)
Hero Member
*****
Offline Offline

Activity: 533
Merit: 500


^Bitcoin Library of Congress.


View Profile
February 23, 2013, 06:45:12 PM
 #5

Thanks, for the fast replies and the links.  This has been very helpful.

Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
February 23, 2013, 11:13:08 PM
 #6

Generally when one sends coins two transactions are made, one to the desired recipient, and one to a "change" address.

Just to clarify that, there are not two transactions.  There is still just one transaction but that transaction has two outputs.   

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


BookLover (OP)
Hero Member
*****
Offline Offline

Activity: 533
Merit: 500


^Bitcoin Library of Congress.


View Profile
February 24, 2013, 03:11:12 PM
 #7

It is also possible for transactions to have multiple inputs.  But all that wasn't really relevant to the question.  I only mentioned the "change" address because I thought it might have something to do with the answer.

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!