Deterministic ARC76 account derivation for Bitcoin (native SegWit / bech32 addresses). https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0076.md
Project description
arc76-bitcoin
Deterministic ARC76 account derivation for Bitcoin (native SegWit / bech32 addresses).
Usage
pip install arc76-bitcoin
from arc76.bitcoin import get_account, get_email_account
account = get_account(password) # slot 0
print(account.address()) # bech32 P2WPKH address, e.g. "bc1..."
print(account.wif()) # WIF-encoded private key
email_account = get_email_account(email, password)
Both functions return a BitcoinAccount(private_key, public_key):
private_key— the raw 32-byte secp256k1 private key (identical to the ARC76 seed).public_key— the 33-byte compressed secp256k1 public key..address(hrp="bc")— the native SegWit (bech32, P2WPKH) address; passhrp="tb"for testnet..wif()— the WIF-encoded private key (compressed-public-key convention).
Elliptic-curve operations use coincurve, Python
bindings for libsecp256k1 — the same
constant-time, side-channel-hardened library Bitcoin Core itself uses for secp256k1. RIPEMD-160
(for the address hash) is taken from pycryptodome
rather than the standard library, since hashlib's ripemd160 depends on OpenSSL's legacy
provider being enabled (not guaranteed on OpenSSL 3.0+); pycryptodome ships its own
implementation so address derivation doesn't silently vary by platform.
Please use a password of at least 50 characters for real accounts — the account's security is entirely the password's security.
⚠️ Same-curve chains share the literal same private key.
arc76-bitcoin,arc76-bitcoincash, andarc76-ethereumderive the identical secp256k1 private key from the same password/email/slot — leaking the key on one of those chains leaks it on all of them. Use a different password (orslot) per chain if you need isolation.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file arc76_bitcoin-1.1.2026080321.tar.gz.
File metadata
- Download URL: arc76_bitcoin-1.1.2026080321.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
604f4d62636ced5ddfe6fa842b635c17814a930205387359dc745928a61b769d
|
|
| MD5 |
4c766b9581722abf0312c186f7f0d6e8
|
|
| BLAKE2b-256 |
a767011539ba570e8ce98d7ff77bea991055a790026214af24c57e94b979300c
|
Provenance
The following attestation bundles were made for arc76_bitcoin-1.1.2026080321.tar.gz:
Publisher:
publish-pypi.yml on scholtz/ARC76Account
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
arc76_bitcoin-1.1.2026080321.tar.gz -
Subject digest:
604f4d62636ced5ddfe6fa842b635c17814a930205387359dc745928a61b769d - Sigstore transparency entry: 2337244378
- Sigstore integration time:
-
Permalink:
scholtz/ARC76Account@aa8378e8f748d495bd97683b383d1cbd590b6ba4 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/scholtz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@aa8378e8f748d495bd97683b383d1cbd590b6ba4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file arc76_bitcoin-1.1.2026080321-py3-none-any.whl.
File metadata
- Download URL: arc76_bitcoin-1.1.2026080321-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
411ba3ef9e48e78ca7b57bf375c351dd80e42fe19c49e2794cd41f39df95b503
|
|
| MD5 |
4316cfcf82957ec8c3039b1c13b46219
|
|
| BLAKE2b-256 |
064e137b18521732453d2554442f559ce200c4e4f9c9d4d088410abd9aa4c45d
|
Provenance
The following attestation bundles were made for arc76_bitcoin-1.1.2026080321-py3-none-any.whl:
Publisher:
publish-pypi.yml on scholtz/ARC76Account
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
arc76_bitcoin-1.1.2026080321-py3-none-any.whl -
Subject digest:
411ba3ef9e48e78ca7b57bf375c351dd80e42fe19c49e2794cd41f39df95b503 - Sigstore transparency entry: 2337244396
- Sigstore integration time:
-
Permalink:
scholtz/ARC76Account@aa8378e8f748d495bd97683b383d1cbd590b6ba4 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/scholtz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@aa8378e8f748d495bd97683b383d1cbd590b6ba4 -
Trigger Event:
push
-
Statement type: