Bytes To Private Key
convert bytes seed to private key hex
Convert and Generated Bytes To Private Key (HEX)
from Blockthon.Wallet import getBytes, Bytes_To_PrivateKey
# generated random bytes without repeat
bytes_str = getBytes()
# convert bytes to hex private key
privatekey = Bytes_To_PrivateKey(bytestring=bytes_str)
Last updated