🔐
Blockthon
HomeGithubMmdrza
  • install
  • Private Key
    • Private Key To Address
    • Private Key To Bytes
    • Private Key To Mnemonic
    • Private Key To Binary
    • Private Key To Decimal
    • Private Key To Wif
    • Private Key To xprv
    • Private Key To UnCompress
    • Private Key To Compress
    • Private Key From Passphrase
    • Private Key From Root Key
    • Private Key From Binary
    • Public Key Hash Address
  • Mnemonic
    • Mnemonic To Private Key
    • Mnemonic To Bytes
    • Mnemonic To XPRV (Root Key)
  • Public Key
    • Public Key Hash Address
  • Bytes (seed)
    • Bytes To Mnemonic
    • Bytes To Private Key
    • Bytes To Public Key
    • Bytes To WIF
  • Address
Powered by GitBook
On this page
  1. Private Key

Private Key To Wif

Generated Private Key and Convert To WIF

generated random private key hex to wif with Blockthon:

from Blockthon.Wallet import PrivateKey, PrivateKey_To_Wif

# Generated Private Key Hex:
privatekey = PrivateKey()
# convert hex Private key to wif:
wif = PrivateKey_To_Wif(privatekey)

for convert private key hex to wif compress or wif uncompress:

from Blockthon.Wallet import PrivateKey, PrivateKey_To_Wif

privatekey = PrivateKey()
# Convert private key hex to wif compressed
wif_compress = PrivateKey_To_Wif(privatekey, compress=True)
# convert Private key hex to uncompress wif 
wif_uncompress = PrivateKey_To_Wif(privatekey, compress=False)
PreviousPrivate Key To DecimalNextPrivate Key To xprv

Last updated 1 year ago