0

I have an ecdsa public key how to get the private key of this public key; 0222d2deda24c03b2cc2b458c35780c62b6b5603c088709f17607b7ecf1399e4d7 how to solve this on python I am using Pydroid 3 on my mobile any sources to do this any code for this and also tell me how to do this on termux not random entering public key and finding private key hex can any body can help me

  • 2
    This is not possible. If it were, anyone could steal anyone's bitcoin. – Pieter Wuille Aug 29 at 20:28
1

There is no math that would get the private key from a public key. That is the whole point of the Elliptic-Curve Cryptography. You can always get the public key from a private key, but not the opposite since this would mean that anybody could spend the Bitcoins of anybody and Bitcoin itself would be worthless.

| improve this answer | |
  • Ok do you have any code to do it – Srijayaram H Aug 29 at 14:38
  • Thank you how to compress an public key and private key send me python codes – Srijayaram H Aug 29 at 17:19
  • If the y coordinate of the public key is an even number, then the compressed public key starts with the byte '02' followed by the x coordinate. If it is an odd number then the compressed public key starts with the byte '03' followed by the x coordinate. Here is some code from a great book where I learnt a lot from: github.com/jimmysong/programmingbitcoin/blob/master/code-ch05/… – Oscar Serna Aug 29 at 19:35
  • your public key is already compressed since it only has 33 bytes (1 byte for the y coordinate and 32 bytes for the x coordinate) Also, it starts with 02 which means the y coordinate is an even number. If it were not compressed then it would start with the byte '04' – Oscar Serna Aug 29 at 19:39

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.