Author

Topic: Input scripts have keys? (Read 209 times)

brand new
Activity: 0
Merit: 0
November 02, 2019, 06:20:20 AM
#3
Usually (but not all) inuts script have two tables, first: 70-72 bytes, second 33 or 65 bytes.
This second table is public key? Where this is in Bitcoin documentation?

I am also unable to find Bitcoin documentation. Do let me know if you find the answer.
https://theelectricsmoker.com/
sr. member
Activity: 279
Merit: 435
October 29, 2019, 07:52:31 AM
#2
This second table is public key?

Hi,

Yes : for spending an usual P2(W)PKH, the input(/witness) is
Code:
.

Because the locking script (scriptpubkey/witness program) is in this case
Code:
OP_DUP OP_HASH160  OP_EQUALVERIFY OP_CHECKSIG
Once having verified that the public key matches the hash in the locking script, there is only OP_CHECKSIG left, which takes and verifies that the signature matches the public key.

Quote
Where this is in Bitcoin documentation?
You can find more about OP_CHECKSIG on the wiki :
https://en.bitcoin.it/wiki/OP_CHECKSIG
member
Activity: 138
Merit: 25
October 29, 2019, 06:34:42 AM
#1
Usually (but not all) inuts script have two tables, first: 70-72 bytes, second 33 or 65 bytes.
This second table is public key? Where this is in Bitcoin documentation?
Jump to: