It's HDWallet Generator for Ethereum blockchain.
Project description
Cobra-HDWallet
It's HDWallet Generator for Ethereum blockchain.
You can paste Mnemonic(Seed) or Private-Key on Metamask/MyEtherWallet
Installation
Install cobra-hdwallet
pip install cobra-hdwallet
Usage
# Creating 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
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
Project details
Release history Release notifications | RSS feed
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.2.0.tar.gz
(27.7 kB
view hashes)
Built Distribution
Close
Hashes for cobra_hdwallet-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 796d9746736dfd6239351c195021b0bac340b5bbec62dcc8d92efa7d3f7c9b2c |
|
MD5 | a9e534e9e6a6b124f294f6895bae3cc7 |
|
BLAKE2b-256 | 877610bb71b25472b0d3dbe34c097847abfde1dd33f453c7e04ba0aa32d3417e |