I was wondering if there is a way to obtain public key of a public address where the address does not have any output transaction

  • 1
    Are you looking for the public key to your own address or someone else's?
    – Murch
    Jul 15, 2021 at 10:59
  • I'm looking for the public key of the btc puzzle
    – rage0920
    Jul 15, 2021 at 20:34

1 Answer 1


I assume that you are talking about a Pay to Public Key Hash (P2PKH) address.

Cryptographic hash functions have the pre-image resistance property:

Given a hash value h, it should be difficult to find a message m for which h = hash(m).

P2PKH addresses encode a locking script that commits funds to the hash of a public key. Given that the address only provides the hash, it is not possible to guess the public key from the address as that would require breaking the pre-image resistance property of RIPEMD-160.

  • So it is not possible to get the public key?
    – rage0920
    Jul 16, 2021 at 9:20
  • No, you cannot learn the original value if you only have a hash.
    – Murch
    Jul 18, 2021 at 16:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.