Skip to main content

Deterministic ARC76 account derivation for Bitcoin Cash (CashAddr addresses). https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0076.md

Project description

arc76-bitcoincash

ARC76 Account

Deterministic ARC76 account derivation for Bitcoin Cash (CashAddr addresses).

Usage

pip install arc76-bitcoincash
from arc76.bitcoincash import get_account, get_email_account

account = get_account(password)  # slot 0
print(account.address())         # CashAddr address, e.g. "bitcoincash:q..."
print(account.wif())             # WIF-encoded private key (same encoding Bitcoin uses)

email_account = get_email_account(email, password)

Both functions return a BitcoinCashAccount(private_key, public_key) — Bitcoin Cash uses the same secp256k1 keys as Bitcoin, only the address format differs:

  • private_key — the raw 32-byte secp256k1 private key (identical to the ARC76 seed).
  • public_key — the 33-byte compressed secp256k1 public key.
  • .address(prefix="bitcoincash") — the CashAddr (P2PKH) address.
  • .wif() — the WIF-encoded private key (the same encoding arc76-bitcoin uses).

Elliptic-curve operations use coincurve (Python bindings for libsecp256k1, the same library Bitcoin Core uses). CashAddr encoding is implemented internally against the CashAddr spec rather than via a third-party dependency, since no actively-maintained CashAddr package exists on PyPI; it's covered by known-answer tests shared with the dotnet/typescript packages.

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, and arc76-ethereum derive 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 (or slot) per chain if you need isolation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arc76_bitcoincash-1.2.2026080407.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arc76_bitcoincash-1.2.2026080407-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file arc76_bitcoincash-1.2.2026080407.tar.gz.

File metadata

File hashes

Hashes for arc76_bitcoincash-1.2.2026080407.tar.gz
Algorithm Hash digest
SHA256 7a36551e02f171732193e4b4ca23282632cf76494824b1d43d33ecc814d041db
MD5 6dac39c53c6f5b2911803cbdfc72fc23
BLAKE2b-256 816bac9f8ff7d221be450ee4088805e6080be72b34b052c2654834e880c4d050

See more details on using hashes here.

Provenance

The following attestation bundles were made for arc76_bitcoincash-1.2.2026080407.tar.gz:

Publisher: publish-pypi.yml on scholtz/ARC76Account

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file arc76_bitcoincash-1.2.2026080407-py3-none-any.whl.

File metadata

File hashes

Hashes for arc76_bitcoincash-1.2.2026080407-py3-none-any.whl
Algorithm Hash digest
SHA256 522df42a4b921fb832ad7c91ffab287616ac3b4b9175b7feec97d4080dc087b1
MD5 85dffb95160fc9896482afa3c11dd3f5
BLAKE2b-256 c87b0bd7a00e37fa2a364eb91fd5bc915b8040dc846ad20caffdb4fe8718a7c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for arc76_bitcoincash-1.2.2026080407-py3-none-any.whl:

Publisher: publish-pypi.yml on scholtz/ARC76Account

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page