def secret_to_wif(secret):
PREFIX = "80"
hex_string = hex(secret)[2:].zfill(64)
pre_hash = PREFIX + hex_string
The "
Address" in the result is generated from the compressed public key, yet the "
WIF" has no compressed pubKey flag (
0x01).
Although you included "
Address Legacy" which is the actual pair of the WIF in the result, the term used is just confusing since those are both "
legacy addresses".
You should name them accordingly and include the WIF with 0x01 flag.
e.g:
Address (Compressed): 1PMNFXcWEdJxWdEeHPC3YRZwmphmL5rULn
WIF: L2YjUUxPdD55hmAnjT7UVaW2owY4dVtBwRvoH1tM63g1Dc6768iz
Address (Uncompressed): 14c2Y66TWB1fKq24cMrVtx9UrUSiifJjNs
WIF: 5K2JKv1KGTJEkg1QW6v88qNXmcvFsQmDuCzW4dT8ivd2QnzU1b4
Index: 71905415171631158767425490770033565803263757038737608778444906751809395954820
As a side note: you should enclose the script inside [code][/code] tags so it wont be affected by the forum's post format.
-------------//-------------
I have another code that can generate any characteristic name you want in any position in the portfolio, if you want, let me know and I'll post it here
Examples: 1Nx8dUJf^^MoNey^^N4tffTNxYnbVFNmjeAWrH
Vanitysearch can already do that with:
./vanitysearch bc1q****test**** or
./vanitysearch bc1q********test