🔐
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
  • Convert and Generated Bytes To Public Key
  • Convert Bytes To Public Key Compress
  1. Bytes (seed)

Bytes To Public Key

Convert and Generated Bytes To Public Key

from Blockthon.Wallet import getBytes, Bytes_To_PublicKey
# generated random bytes without repeat
bytes_str = getBytes()
# Convert Bytes To Public Key (un compress)
public_key = Bytes_To_PublicKey(bytes_str)

Convert Bytes To Public Key Compress

from Blockthon.Wallet import getBytes, Bytes_To_PublicKey
# generated random bytes without repeat
bytes_str = getBytes()
# Convert Bytes To Public Key Compress
public_key = Bytes_To_PublicKey(bytes_str, compress=True)
PreviousBytes To Private KeyNextBytes To WIF