Post
Topic
Board Development & Technical Discussion
Re: Relationship between public key and private key
by
satashi_nokamato
on 04/02/2024, 17:01:37 UTC
look
you forget a 0 before 2

correct value is =>>     Public key hex : 0400000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000

and this is =>> Public key ( wallet address p2pkh) :   16QaFeudRUt8NYy2yzjm3BMvG4xBbAsBFM


so , max private key hex : fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe
in clearly : 2^256 -1   or  16^64 -1

if calculate fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe  public key hex , result is : 04e0a65740c1c5148111a8305938c56322fbf345a18cb90cf48a788961c6b3ff918aaf0580fd9e8 be571e97bef4a067fa7911da0ff0e1a5f307fea63e3ecd903af
and publick key : 1JHzdjEL4xQ7yifAaQQKAfqPyAN92vfstP

and another

 public key hex : ( 0 )

public key ( wallet address p2pkh ) :  1FYMZEHnszCHKTBdFZ2DLrUuk3dGwYKQxh

SHA256   6e340b9cffb37a989ca544e6bb780a2c78901d3fb33738768511a30617afa01d
RipeMD-160   9f7fd096d37ed2c0e3f7f0cfc924beef4ffceb68

Add Version
Byte   009f7fd096d37ed2c0e3f7f0cfc924beef4ffceb68
Double


SHA256   7524061a0ca9cca8e0c2881fd447c20c821751e357dc7d960cd03cfc3b4cece0   

Add 4 Byte
Checksum   009f7fd096d37ed2c0e3f7f0cfc924beef4ffceb687524061a
   
Address   1FYMZEHnszCHKTBdFZ2DLrUuk3dGwYKQxh   
The correct key for your public key is this one.
Code:
0x000000000000000000000000000000014551231950b75fc4402da1732fc9bebd
You could get the correct key by doing your operation mod N. And N is
Code:
0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141
For the first address with funds you posted.
SHA-256 hash.
Code:
0x59ef1a5a00f35b1a722da56ca70b52a721f33998634d4fa4259301f170f7b6bd
RMD-160 hash.
Code:
0x3b4df4363caa9e3bd9da58020d3080be8230a4ae
Someone hashed the public key of point infinity and sent some funds to it, nobody has the private key for it.