Bitcoin Forum
April 26, 2024, 07:04:57 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Please help with understanding of specification text  (Read 803 times)
Forp (OP)
Full Member
***
Offline Offline

Activity: 195
Merit: 100


View Profile
June 11, 2011, 04:31:30 PM
 #1

https://en.bitcoin.it/wiki/Script reads:

The script for a typical Bitcoin transfer to destination Bitcoin address D simply encumbers future spending of the bitcoins with two things: the spender must provide a public key that, when hashed, yields destination address D embedded in the script, and a signature to show evidence of the private key corresponding to the public key just provided.

and I am unfortunately too stupid to understand this.

The spender wants to transfer money to destinatin address D. This destination address is the hash of the public key of the account to which the money is transfered. Right ?

But how can the spender produce a signature to show evidence of the private key? The spender does not have the private key to the "public key just provided", since this is the place he sends the money to.

So, obviously my understanding is wrong here.

Where is my mistake ?
1714115097
Hero Member
*
Offline Offline

Posts: 1714115097

View Profile Personal Message (Offline)

Ignore
1714115097
Reply with quote  #2

1714115097
Report to moderator
1714115097
Hero Member
*
Offline Offline

Posts: 1714115097

View Profile Personal Message (Offline)

Ignore
1714115097
Reply with quote  #2

1714115097
Report to moderator
1714115097
Hero Member
*
Offline Offline

Posts: 1714115097

View Profile Personal Message (Offline)

Ignore
1714115097
Reply with quote  #2

1714115097
Report to moderator
Bitcoin addresses contain a checksum, so it is very unlikely that mistyping an address will cause you to lose money.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714115097
Hero Member
*
Offline Offline

Posts: 1714115097

View Profile Personal Message (Offline)

Ignore
1714115097
Reply with quote  #2

1714115097
Report to moderator
1714115097
Hero Member
*
Offline Offline

Posts: 1714115097

View Profile Personal Message (Offline)

Ignore
1714115097
Reply with quote  #2

1714115097
Report to moderator
joan
Jr. Member
*
Offline Offline

Activity: 56
Merit: 1



View Profile
June 11, 2011, 05:22:43 PM
 #2

The spender wants to transfer money to destinatin address D.
Here.
The spender controls address D and wants to transfer money to someone else.

Alice send money to Bob on his address D.
To spend them again, Bob will have to 1. Have the public key corresponding to the address D, 2. have the private key corresponding to the public key.
The script is evaluated to see if someone has the right to redeem received coins.
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5180
Merit: 12885


View Profile
June 11, 2011, 05:59:40 PM
 #3

The sender encumbers the coins with restrictions. The person who spends those coins meets the specified restrictions.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
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!