Answer the question
In order to leave comments, you need to log in
How does a bitcoin payer compose a blocking script without a public key?
Let me explain the essence of the issue. Consider, for example, the following transaction:
Payer was provided by the address translation 1nT8wyJjV7LBhuv993qoQ2R2k6HvpPFwg
He took it and made a blocking script:
OP_DUP
OP_HASH160
0898894fdd1b1bfde9bfa4a73f24c1ff995b0232
OP_EQUALVERIFY
OP_CHECKSIG
Where 0898894fdd1b1bfde9bfa4a73f24c1ff995b0232 - it HASH160 from my public key. How did he get it o_o?
On Habré, I was imbued with an article where I remembered this statement
:: Link to the article
The figure shows that it is impossible to get the public key from the address. And what about HASH160 from it? Unclear. If I decide to transfer to someone, I will have to ask for the public key, and they will only give me the address.
So how to get 0898894fdd1b1bfde9bfa4a73f24c1ff995b0232 from 1nT8wyJjV7LBhuv993qoQ2R2k6HvpPFwg?
Answer the question
In order to leave comments, you need to log in
Oh, I understood everything, it was all just an address, this is a hash from a public key in base58 format, only with a checksum. That is, you need to reverse convert from base 58 to hexadecimal form and discard the checksum, well, and also the first byte 00.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question