Ethereum BIP32 HD Wallet implementation
Project description
eth-bip32
eth-bip32 is a Python package for deriving Ethereum addresses from HD wallets using extended public keys (xpub).
Installation
You can install eth-bip32 using pip:
pip install eth_bip32
Usage
Here's a basic example of how to use eth-bip32:
from eth_bip32 import HDWallet
xpub = "xpub6CqGnXKKteadngNJV3YFVCawwJL2nzBkRj7VYZRSAsLpdmLZ4WnRKhqYZaXbqDtWqqAdyuQCMnV2ECgzRFMNiskHscRg51XN5iVzMvgRtdt"
path = "m/0/1/1/0"
wallet = HDWallet(xpub)
derived_wallet = wallet.from_path(path)
ethereum_address = derived_wallet.address()
print(f"Derived Ethereum address: {ethereum_address}")
Local build
pip install .
Test
python -m unittest discover -v tests
License
This project is licensed under the MIT License.
Dependencies
ecdsa
Credits
This implementation was inspired by and references concepts from the following libraries:
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
Built Distributions
File details
Details for the file eth_bip32-0.1.1.tar.gz
.
File metadata
- Download URL: eth_bip32-0.1.1.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 490630de976de7864e0405de9388c47c5056d691411542465e74b8ac76d624b3 |
|
MD5 | 35a5b70994128c04ab0899c1ea68c783 |
|
BLAKE2b-256 | baf5ed8ff58e4c867efa2f86b4bf75a69e13c8c090b8f555e687b950f16a8e5d |
File details
Details for the file eth_bip32-0.1.1-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: eth_bip32-0.1.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 15.3 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c37512b43ced2121010837cb4a03ad914f1329a91cd32a13ba40dd71a51367d |
|
MD5 | 968312e26e1acb6b42cf2ba408bd5d28 |
|
BLAKE2b-256 | 0fddefdf6712888d7febce114645dcb52586820cb7af1ac55eb541b11c61788e |
File details
Details for the file eth_bip32-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: eth_bip32-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 22.5 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17235f08db173c4cd06a3681cec08dcbffe0d56cfd44a19a376568ac2fd89720 |
|
MD5 | 4ea4feb96d87b1ffbe1c6eff9546d112 |
|
BLAKE2b-256 | ada7244b0fc194debc01bb794e1a7c7e1fccd3f82e47e014d195de08b97c4ac0 |
File details
Details for the file eth_bip32-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
.
File metadata
- Download URL: eth_bip32-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 12.6 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4a4b965b16793766aa89b7cc781f1597e77cb725c90b9336dba8170cb477977 |
|
MD5 | 8e6bd957362151627af5b0d20e3e5ab3 |
|
BLAKE2b-256 | e557326f51eb46b71d3b4dbb54ddd9ec5f1d8f1d67d317f724ded6d89b14fa11 |
File details
Details for the file eth_bip32-0.1.1-cp311-cp311-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: eth_bip32-0.1.1-cp311-cp311-macosx_10_9_x86_64.whl
- Upload date:
- Size: 12.4 kB
- Tags: CPython 3.11, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15c3f847064c148b4b736020d1adad915fcbfd1262e30cf6f43fe3152d6127ab |
|
MD5 | af5d988d1347e26547770839a53c020e |
|
BLAKE2b-256 | d390ca69544722ca3b6eecc55efaec83f3733e2a7769019a843afa13f9f67019 |
File details
Details for the file eth_bip32-0.1.1-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: eth_bip32-0.1.1-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 15.3 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 526690638f27089d09f6d16868703101bd7ee72b08aa5e05fa99ec9da69c6aa4 |
|
MD5 | 049ac9e2f723e725a509763a9064a240 |
|
BLAKE2b-256 | 045f3e90318f392a77df22afe8b63d8943c6a5800fd994f0d9c1a647bbb86999 |
File details
Details for the file eth_bip32-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: eth_bip32-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 22.5 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9821231fc9a2749ddce8fd7e1350df316c8d968c461a320c03cd36ae44f0e48a |
|
MD5 | ed341b342697b1b94c7d84a013f6f2e4 |
|
BLAKE2b-256 | 769a7c666e5d916a108dfe0385e754770ddb89602120b6bccdc49723379d4201 |
File details
Details for the file eth_bip32-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: eth_bip32-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 12.6 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3da7f345861fe894539a739c66ceec27c69751a182d3c9f8244243135ca8afd |
|
MD5 | 64dece99385f844c6350ffcb340153f7 |
|
BLAKE2b-256 | c1afb499f5b11b5789105b4ffc58595acc66115bc6804f7d46a7c81a9134139d |
File details
Details for the file eth_bip32-0.1.1-cp310-cp310-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: eth_bip32-0.1.1-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 12.4 kB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 252ac9faa3f48e85b51425d10012e25257b54ceed7c222611fb1f40fd0cbafbc |
|
MD5 | 3f9f019ac8b7df77c06714c6349eca53 |
|
BLAKE2b-256 | 0db7d795d4bce930b4f7a533d1580899288e5b3729c08469bbe99c65cec7043e |
File details
Details for the file eth_bip32-0.1.1-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: eth_bip32-0.1.1-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 15.3 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9efb29b18c2618b79e29eaedea72d8752462b6614401f594e6627de4c8c7f0f4 |
|
MD5 | e2a4846011be8e6384565ef89182459c |
|
BLAKE2b-256 | a13a19d1f0ebe2eb17b16b25296903498fe9288a514fc1c57acb6038c4bec77f |
File details
Details for the file eth_bip32-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: eth_bip32-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 22.4 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71f7545a4a3d10206217193951e5791ea497ba0c4d54b41f2e4efe86dec23aff |
|
MD5 | ac0801b24d359a94f1175c8cbd2c89da |
|
BLAKE2b-256 | fb2af92aa663203e2d12e56a5d2968474ac77f1d9d21b9e41e7afdc1244845b3 |
File details
Details for the file eth_bip32-0.1.1-cp39-cp39-macosx_11_0_arm64.whl
.
File metadata
- Download URL: eth_bip32-0.1.1-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 12.6 kB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fac84bdc822b048a10e04dc14e7c6ec9fcb98f69f67f82a6ffe6064e40b14d93 |
|
MD5 | 92e4c9efe2ced57334c607f9a3da09d5 |
|
BLAKE2b-256 | c9a1b8556ce37afa88cbf77e5f2d168a22f40ddc0d32ae421da45d5bbadebb4b |
File details
Details for the file eth_bip32-0.1.1-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: eth_bip32-0.1.1-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 12.4 kB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d0a4e347bab5ce5609f5fe11fa93d6fcfb8ea3042dd22850f3f070efe341edc |
|
MD5 | 7958a5c86d0d49356a0860e4a7433da3 |
|
BLAKE2b-256 | 39e2a9aa590e2f8687340f0a51174dff505de9c84de11dbe97277292fd5a81f5 |