# python-bip44
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/4e4aa71f4a234dca809d014b0b214220)](https://app.codacy.com/gh/kigawas/python-bip44/dashboard)
[![CI](https://img.shields.io/github/actions/workflow/status/kigawas/python-bip44/ci.yml)](https://github.com/kigawas/python-bip44/actions)
[![Codecov](https://img.shields.io/codecov/c/github/kigawas/python-bip44.svg)](https://codecov.io/gh/kigawas/python-bip44)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/bip44.svg)](https://pypi.org/project/bip44/)
[![PyPI](https://img.shields.io/pypi/v/bip44.svg)](https://pypi.org/project/bip44/)
[![License](https://img.shields.io/github/license/kigawas/python-bip44.svg)](https://github.com/kigawas/python-bip44)
Simple Python [bip44](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki) implementation. [Mnemonic](https://github.com/trezor/python-mnemonic) + [bip32](https://github.com/darosior/python-bip32).
## Install
`pip install bip44`
## Quick Start
```python
>>> from coincurve import PrivateKey
>>> from bip44 import Wallet
>>> from bip44.utils import get_eth_addr
>>> mnemonic = "purity tunnel grid error scout long fruit false embody caught skin gate"
>>> w = Wallet(mnemonic)
>>> sk, pk = w.derive_account("eth", account=0)
>>> sk = PrivateKey(sk)
>>> sk.public_key.format() == pk
True
>>> get_eth_addr(pk)
'0x7aD23D6eD9a1D98E240988BED0d78e8C81Ec296C'
```
## Release Notes
### 0.1.1 ~ 0.1.5
- Support Python 3.10, 3.11, 3.12, 3.13
- Bump dependencies
- Drop Python 3.6, 3.7
### 0.1.0
- First beta release
- Bump dependencies
### 0.0.1 ~ 0.0.7
- Alpha releases
Raw data
{
"_id": null,
"home_page": "https://github.com/kigawas/python-bip44",
"name": "bip44",
"maintainer": "Weiliang Li",
"docs_url": null,
"requires_python": "<4.0.0,>=3.8.1",
"maintainer_email": "to.be.impressive@gmail.com",
"keywords": "bitcoin, ethereum, elliptic curves, cryptocurrency, blockchain",
"author": "Weiliang Li",
"author_email": "to.be.impressive@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/b5/d3/2809482b2fc5f003304f4b443efe6a8493696df341717efec2154f7c2e1c/bip44-0.1.5.tar.gz",
"platform": null,
"description": "# python-bip44\n\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/4e4aa71f4a234dca809d014b0b214220)](https://app.codacy.com/gh/kigawas/python-bip44/dashboard)\n[![CI](https://img.shields.io/github/actions/workflow/status/kigawas/python-bip44/ci.yml)](https://github.com/kigawas/python-bip44/actions)\n[![Codecov](https://img.shields.io/codecov/c/github/kigawas/python-bip44.svg)](https://codecov.io/gh/kigawas/python-bip44)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/bip44.svg)](https://pypi.org/project/bip44/)\n[![PyPI](https://img.shields.io/pypi/v/bip44.svg)](https://pypi.org/project/bip44/)\n[![License](https://img.shields.io/github/license/kigawas/python-bip44.svg)](https://github.com/kigawas/python-bip44)\n\nSimple Python [bip44](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki) implementation. [Mnemonic](https://github.com/trezor/python-mnemonic) + [bip32](https://github.com/darosior/python-bip32).\n\n## Install\n\n`pip install bip44`\n\n## Quick Start\n\n```python\n>>> from coincurve import PrivateKey\n>>> from bip44 import Wallet\n>>> from bip44.utils import get_eth_addr\n>>> mnemonic = \"purity tunnel grid error scout long fruit false embody caught skin gate\"\n>>> w = Wallet(mnemonic)\n>>> sk, pk = w.derive_account(\"eth\", account=0)\n>>> sk = PrivateKey(sk)\n>>> sk.public_key.format() == pk\nTrue\n>>> get_eth_addr(pk)\n'0x7aD23D6eD9a1D98E240988BED0d78e8C81Ec296C'\n```\n\n## Release Notes\n\n### 0.1.1 ~ 0.1.5\n\n- Support Python 3.10, 3.11, 3.12, 3.13\n- Bump dependencies\n- Drop Python 3.6, 3.7\n\n### 0.1.0\n\n- First beta release\n- Bump dependencies\n\n### 0.0.1 ~ 0.0.7\n\n- Alpha releases\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Simple Python bip44 implementation. Mnemonic + bip32.",
"version": "0.1.5",
"project_urls": {
"Homepage": "https://github.com/kigawas/python-bip44",
"Repository": "https://github.com/kigawas/python-bip44"
},
"split_keywords": [
"bitcoin",
" ethereum",
" elliptic curves",
" cryptocurrency",
" blockchain"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "88414c49a4c77bd1d10c752fae02ffbd1a333231c2cf3e7087dcdce7af026fdb",
"md5": "23ff60b14c1e443f85fb4cffc32fac8a",
"sha256": "41c5d5e3698cfa1c4db4049635eaa0cc02d923f9bf94a5acdcd3e6215da6721c"
},
"downloads": -1,
"filename": "bip44-0.1.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "23ff60b14c1e443f85fb4cffc32fac8a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0.0,>=3.8.1",
"size": 5062,
"upload_time": "2024-11-25T15:55:55",
"upload_time_iso_8601": "2024-11-25T15:55:55.744257Z",
"url": "https://files.pythonhosted.org/packages/88/41/4c49a4c77bd1d10c752fae02ffbd1a333231c2cf3e7087dcdce7af026fdb/bip44-0.1.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b5d32809482b2fc5f003304f4b443efe6a8493696df341717efec2154f7c2e1c",
"md5": "1872bc59da11e4126051314f7ab4a3cf",
"sha256": "18d02bc30cf340bc026bc55f1ea5257aaf1f0256e9260a7baf7a1a883f6702b4"
},
"downloads": -1,
"filename": "bip44-0.1.5.tar.gz",
"has_sig": false,
"md5_digest": "1872bc59da11e4126051314f7ab4a3cf",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0.0,>=3.8.1",
"size": 4086,
"upload_time": "2024-11-25T15:55:57",
"upload_time_iso_8601": "2024-11-25T15:55:57.301767Z",
"url": "https://files.pythonhosted.org/packages/b5/d3/2809482b2fc5f003304f4b443efe6a8493696df341717efec2154f7c2e1c/bip44-0.1.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-25 15:55:57",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "kigawas",
"github_project": "python-bip44",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "bip44"
}