Skip to main content

Cobra-HDWallet Cobra

It's HDWallet Generator for Ethereum blockchain.

You can paste Mnemonic(Seed) or Private-Key on Metamask/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

Bitcoin 3JiPsp6bT6PkXF3f9yZsL5hrdQwtVuXXAk
Ethereum 0xD32AAEDF28A848e21040B6F643861A9077F83106

Metadata

Release files for cobra-hdwallet 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cobra-hdwallet 0.3.1
File Size Uploaded Provenance Actions
cobra-hdwallet-0.3.1.tar.gz 29.8 kB Without provenance Details for cobra-hdwallet-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cobra-hdwallet 0.3.1
File Interpreter ABI Platform Actions
cobra_hdwallet-0.3.1-py3-none-any.whl Python 3 none any Details for cobra_hdwallet-0.3.1-py3-none-any.whl

Total release size: 37.5 kB

Release files / cobra-hdwallet-0.3.1.tar.gz

Download URL cobra-hdwallet-0.3.1.tar.gz
Size 29.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a11aa95c84dd8672a7d8f7d07e8a78998de27ab5c25a45f6e673a764fe5d1d9c
BLAKE2b-256 checksum
How to use checksums
046bc8d3c7ae9f696e4126717cd3ba89409a50cdc34064e6c87d4614c1534986
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

Release files / cobra_hdwallet-0.3.1-py3-none-any.whl

Download URL cobra_hdwallet-0.3.1-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
385957922c2b169ce097501f6e7d59f6cfb3841a51b4084d46ac2a037798d4a9
BLAKE2b-256 checksum
How to use checksums
329ec34f5d29ef23eb28da405a436e19fee570f0bba8771a29cb529e3842f3c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

Security for cobra-hdwallet 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page