Generate mnemonic phrases and derive Ethereum, Bech32, P2PKH, and P2SH addresses
Project description
from cryptskeletonkey import generate_mnemonic, derive_eth_address, derive_btc_address
mnemonic = generate_mnemonic() eth_address = derive_eth_address(mnemonic) btc_address_p2pkh = derive_btc_address(mnemonic, 'p2pkh') btc_address_p2sh = derive_btc_address(mnemonic, 'p2sh') btc_address_bech32 = derive_btc_address(mnemonic, 'bech32')
print(f"Mnemonic: {mnemonic}") print(f"Ethereum Address: {eth_address}") print(f"Bitcoin P2PKH Address: {btc_address_p2pkh}") print(f"Bitcoin P2SH Address: {btc_address_p2sh}") print(f"Bitcoin Bech32 Address: {btc_address_bech32}")
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 Distribution
File details
Details for the file cryptskeletonkey-7.7.7.tar.gz
.
File metadata
- Download URL: cryptskeletonkey-7.7.7.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31ec76fa5142fb26633e0a5a2c25faad9c916a3ff699c03492c7fc7b5982375d |
|
MD5 | f0b04aecc0be23f648dc89467ac26af3 |
|
BLAKE2b-256 | 0c6c02ed2285ca040ce38a92c512a7ea86f39acd39bf4f5b733048fa296e3ed1 |
File details
Details for the file cryptskeletonkey-7.7.7-py3-none-any.whl
.
File metadata
- Download URL: cryptskeletonkey-7.7.7-py3-none-any.whl
- Upload date:
- Size: 1.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35099085b46841e7d95a100ff4f4cd9b6cb3447fbf4d4fbc5c778c8c22e89cc2 |
|
MD5 | 262407f5ad50b782619362bf709ad246 |
|
BLAKE2b-256 | b9ce291cd70d94a2d3363e10693b0b6d0daf1403ce4273200c00fcf5535a1df4 |