DEV Community

Cover image for Private Key To Mnemonic
Mmdrza for blockthon

Posted on

Private Key To Mnemonic

installing package in windows :
pip install blockthon
installing on Linux / debian:

sudo apt-get install -y autoconf automake build-essential libffi-dev libtool pkg-config python3-dev
pip3 install blockthon
Enter fullscreen mode Exit fullscreen mode

Generated and convert Private Key Hex To Mnemonic with Blockthon in python:

from Blockthon.Wallet import PrivateKey, PrivateKey_To_Mnemonics

# generated random private key hex without any repeat
privatekey = PrivateKey()
# convert Private Key (hex) to Mnemonic word's
mnemonicWords = PrivateKey_To_Mnemonics(privatekey)
Enter fullscreen mode Exit fullscreen mode

Top comments (0)