A
A
Anton Misyagin2021-04-17 10:09:28
bitcoin
Anton Misyagin, 2021-04-17 10:09:28

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
3ff4e5f939a847b2aa40bfe4701f4bd9.png
:: 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

1 answer(s)
A
Anton Misyagin, 2021-04-22
@sunnmas

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 question

Ask a Question

731 491 924 answers to any question