Bitcoin
A$ 81,867
WINkLink
A$ 0.0008190
Ethereum
A$ 5,394.3

Retrieving a WIF bits private key

Suppose I have a Wif private key from Electrum 4.0.9:

L2pt3eVopnxfBBvMwrJV2saZeAyQfF77UQSH5WGj5q9LBS6WWBmN ( this one or the other generated from the seed is non used of course )

with a corresponding public key:

14k8mYFC1LBWiBN8WSxpJN48jQYX1FZ6kz

I am using the code from the book “programming bitcoin” and the way we create private key is by converting the bits of a secret phrase like this:

secret = little_endian_to_int(hash256(b'dat_test_private_key'))

So I was thinking I just had to put the private key derived from L2pt3eVopnxfBBvMwrJV2saZeAyQfF77UQSH5WGj5q9LBS6WWBmN instead of “dat_test_private_key”

then we do more step to get our private key here:

https://github.com/jimmysong/programmingbitcoin/blob/master/code-ch13/ecc.py

Then to get our public key:

public_key = print(private_key.point.address(testnet=False))

But no mater what I tried I dont have the same public key as electrum, so I guess I must be off something or they use a different WIF format or the way they derive public key

Related Posts

Leave a Reply

Subscribe To Newsletter

For updates and exclusive offers, enter your e-mail below.

Donate To Cryptonic Australia


Donate BTC: 1MPYuHUKm3AhNivMSngqLnoEbpNEecHeEK
Donate Doge: DDYybw7H8zx8EYU74JrGW8WwmYh9AGuyMC
Donate WinK: TDiXutqKE3P17LpZMQh3SDBCGSkAC6iEjB




How do I discover my lacking bitcoin on Bitcore?
October 23, 2021
Israel on Its Method to Design Digital Shekel Primarily based on Ethereum (Report)
October 23, 2021
Analyst Places Bitcoin Backside At $50,000, Right here’s Why
October 22, 2021




How do I discover my lacking bitcoin on Bitcore?
October 23, 2021
Israel on Its Method to Design Digital Shekel Primarily based on Ethereum (Report)
October 23, 2021
Analyst Places Bitcoin Backside At $50,000, Right here’s Why
October 22, 2021


CryptoCurrencyAUDChange 1hChange 24hChange 7d
Bitcoin81,867 0.16 % 3.11 % 1.12 %
Ethereum5,394.3 0.04 % 2.78 % 3.63 %
Binance Coin646.79 0.12 % 1.03 % 1.42 %
Tether1.340 0.17 % 0.11 % 0.22 %
Cardano2.900 0.07 % 1.97 % 2.80 %
Solana268.65 0.25 % 1.27 % 23.05 %
XRP1.460 0.37 % 1.66 % 4.89 %
Polkadot59.38 0.14 % 1.57 % 1.70 %
USD Coin1.340 0.15 % 0.19 % 0.18 %
Dogecoin0.3302 0.21 % 0.46 % 4.88 %

Recent Comments

Allison wick

I was a victim of WDC Markets investment scam some months ago myself. It was...

Greatness

he is the best when it comes to recovery, he helped recover my funds without...

URL

... [Trackback] [...] There you will find 63491 more Infos: cryptonic.com.au/evaluation-suggests-bitcoin-robust-palms-are-shopping-for-this-dip/ [...]