Skip to main content

It's HDWallet Generator for Ethereum blockchain.

Project description

Cobra-HDWallet Cobra

It's HDWallet Generator for Ethereum blockchain.

You can paset Mnemonic(Seed) or Private-Key on Metamask or MyEtherWallet

GitHub PyPI - Python Version

Installation

Install cobra-hdwallet

pip install cobra-hdwallet

Usage

# Creating HDWallet Hdwallet

from cobra_hdwallet import HDWallet

# init HDWallet
hdWallet = HDWallet()

# Generate seed
mnemonic = hdWallet.generate_mnemonic("english")

# Check seed it is not required
# if not hdWallet.check_mnemonic(mnemonic, "english"):
#     exit()

# Create HDWallet by seed and password.
# enHDWallet = hdWallet.create_hdwallet(mnemonic) # Without password
enHDWallet = hdWallet.create_hdwallet(mnemonic, "password")

# Print Generated HDWallet
print(enHDWallet)

OUTPUT

{
    'coin': '...',
    'name': '...', 
    'address': '...', 
    'mnemonic': '...',
    'wif': '...', 
    'finger_print': '...', 
    'chain_code': '...', 
    'private_key': '...',
    'public_key': '...', 
    'uncompressed_public_key': '...', 
    'serialized': {
        'private_key_hex': '...', 
        'public_key_hex': '...', 
        'xprivate_key_base58': '...', 
        'xpublic_key_base58': '...'
    }
}

# Get HDWallet form Private Key Hdwallet-Private

from cobra_hdwallet import HDWallet

# init HDWallet
hdWallet = HDWallet()

# Get HDWallet from private key
private_key = 'bc42cee69a730913a84df8b70eee15517c0b56e8c8cc36ba3d11bbad91ee5456'
pvHDWallet = hdWallet.hdwallet_from_private(private_key)

# Print HDWallet
print(pvHDWallet)

OUTPUT

{
    'coin': '...',
    'name': '...',
    'address': '...',
    'wif': '...',
    'finger_print': '...',
    'private_key': '...',
    'public_key': '...',
    'uncompressed_public_key': '...'
}

Further help

# Cobra Framework

Go check out the Cobra.

Author

# Meheret Tesfaye @meherett.

Donation

Donate with Bitcoin Donate with Ethereum

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cobra-hdwallet-0.1.0.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

cobra_hdwallet-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file cobra-hdwallet-0.1.0.tar.gz.

File metadata

  • Download URL: cobra-hdwallet-0.1.0.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.11.1 setuptools/40.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for cobra-hdwallet-0.1.0.tar.gz
Algorithm Hash digest
SHA256 851a2f629002c767cffa4b9398566727e681c8c321d1a9656cb13586dbf549b6
MD5 3cc0c40ccc1b1e4ee9b768b28769d2b3
BLAKE2b-256 70f72284b6050a86a07be2a52b1ae81eaaaee578caa341bf96da84331b79760f

See more details on using hashes here.

File details

Details for the file cobra_hdwallet-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cobra_hdwallet-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.11.1 setuptools/40.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for cobra_hdwallet-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f91afbe1921e39b6786942ebfae455de55bbbd9ec478978649480e701321907
MD5 66a1913bdeffaaa0508ccb4953c7f9bf
BLAKE2b-256 64026199207680914c3b9564de211f472d8333174c33dc7901e34993de10581e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page