Guys who know how to get private key (hex) if I know public key (hex) ?Thx for support

  • 1
    One of the core principle of bitcoin security is to hide the private key from the public key.
    – Saxtheowl
    Sep 14, 2021 at 15:45

1 Answer 1


It is practically impossible. The idea of a public/private key pair is that you can publish your public key without anyone being able to efficiently deduce your private key from it. That's why you can only spend bitcoin from addresses that you have the private key for.

There are two ways that come to my mind how to obtain a private key given the public key, however both are (currently) unfeasible:

  1. Brute force: generate random private keys and test if they are by chance the one private keys for your public key. But this process will take unimaginably long.
  2. Shor's algorithm: which is a quantum computer algorithm for integer factorization that allows you to calculate the private key given the public key, however we don't have quantum computers with the required number of qubits yet.

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