Author

Topic: Question about P2PKH (Read 161 times)

jr. member
Activity: 113
Merit: 5
May 09, 2019, 01:45:21 AM
#3
Thank you.

From:
https://bitcoin.org/en/transactions-guide#introduction

Code:
An secp256k1 signature made by using the ECDSA cryptographic formula to combine certain transaction data
 (described below) with Bob’s private key. This lets the pubkey script verify that Bob owns the private key which
created the public key.
staff
Activity: 3458
Merit: 6793
Just writing some code
May 09, 2019, 01:00:08 AM
#2
Because the redeeming condition requires the pubKey and the sig, does it mean anyone with the pubKey and sig can redeem the bitcoin?
Yes. Anyone who can provide the public key and a valid signature can spend that output. However there is no one signature; the signature is specific to the spending transaction. So in order to create a valid signature, you also need to have the private key for the public key.
jr. member
Activity: 113
Merit: 5
May 09, 2019, 12:48:41 AM
#1
I read this article in https://en.bitcoin.it/wiki/Transaction

P2PKH uses :
Code:
scriptPubKey: OP_DUP OP_HASH160  OP_EQUALVERIFY OP_CHECKSIG
scriptSig:

scriptSig is supplied by the redeemer. scriptPubKey is from the referred previous transaction.

For example. i send bitcoin to the recipient using the pubkeyHash of the recipient. Because the redeeming condition requires the pubKey and the sig, does it mean anyone with the pubKey and sig can redeem the bitcoin?
Jump to: