Private Key (hex) to Mnemonic

convert private key hex to mnemonic with blockthon

first generated private key with blockthon:

import Blockthon as block

privatekey = block.PrivateKey()

convert private key (hex) to mnemonic with size: 12 (12 word)

mnemonic_words = block.PrivateKey_To_Mnemonic(privatekey)

full code example:

import Blockthon as block

privatekey = block.PrivateKey()
mnemonic_words = block.PrivateKey_To_Mnemonic(privatekey)

Last updated