Skip to main content

wallet-recovery

Authorized crypto-wallet recovery — rebuild access to a wallet you own from the part of the secret you still remember. Runs entirely on your own machine, offline; your secret never leaves it.

Companion to the interactive explainer how-bitcoin-crypto-works.netlify.app.

✅ Recover a wallet you own, or are authorized in writing to recover (e.g. an heir/executor). You supply your own partial secret + your own public address; the tool searches only the small space your memory defines and stops when a candidate derives to your address.

❌ It does not scan the blockchain, does not enumerate strangers' addresses, and will not help you "open" a wallet that isn't yours. A dormant/old/"lost" coin is not ownerless — it belongs to someone or their heirs, and taking it is theft. If you ever find a weakness in someone else's wallet: disclose it to the owner, never sweep. Possessing a stranger's key is the crime, published or not.

Install

pip install walletrecover             # core (ecdsa, base58)
pip install "walletrecover[fast]"     # + coincurve, ~100x faster search
pip install "walletrecover[bip39]"    # + bip-utils, for seed-phrase cases

Use — owner-run CLI

After pip install, the walletrecover command is available (from a clone instead, use python -m walletrecover.recover ...):

# free feasibility check first — honest ETA + verdict, no secret needed
walletrecover estimate 16777216

# a hex private key with a few forgotten characters (mark them with ?)
walletrecover hexkey cdb98e...b353f9?? 1YourOwnAddress...

# a passphrase/brainwallet you remember the stem of (+ a forgotten tail)
walletrecover passphrase "myWallet2019_" 1YourOwnAddress... --charset 0123456789 --length 3

# built-in self-test on a wallet generated locally (proves it works)
walletrecover selftest
  • Verifies against both compressed and uncompressed P2PKH addresses — old 2009–2011 Bitcoin Core wallets used uncompressed keys.
  • estimate benchmarks your machine's real rate and prints SOLVABLE / BORDERLINE / INFEASIBLE — it won't sell hope on a search larger than the universe.
  • BIP39 seed cases (missing word via checksum, wrong order, forgotten passphrase) activate with pip install bip-utils (scaffolded in recover.py).

Also here

  • weakkey_research.py — educational, white-hat: demonstrates the two famous failure classes (ECDSA reused-nonce, brainwallet/weak-entropy) on self-generated keys only. It teaches why weak keys fail; it holds no real key and touches nothing on-chain.
  • AUTHORIZATION.md — engagement + written-authorization template (not legal advice).
  • INTAKE.md — how to run an honest free feasibility assessment, with hard decline triggers.

Why open-source a recovery tool?

So you don't have to trust a black box with your wallet. Read it, run it offline, keep your secret on your own machine. Same spirit as other open recovery tools — the honesty is the product.

License

MIT © Sardor Razikov. The cryptography (secp256k1, SHA-256, BIP39) is public and unbroken; recovery relies on your remembered information, not on any weakness in the math.

Metadata

Release files for walletrecover 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for walletrecover 0.1.0
File Size Uploaded Provenance Actions
walletrecover-0.1.0.tar.gz 11.5 kB Without provenance Details for walletrecover-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for walletrecover 0.1.0
File Interpreter ABI Platform Actions
walletrecover-0.1.0-py3-none-any.whl Python 3 none any Details for walletrecover-0.1.0-py3-none-any.whl

Total release size: 23.0 kB

Release files / walletrecover-0.1.0.tar.gz

Download URL walletrecover-0.1.0.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e22beb15b2b55a112182597b94da44371db6be47d738a588eda4c3bbafb844ba
BLAKE2b-256 checksum
How to use checksums
602ce71c44c2a0349a32ec681778a1eaf17de7fbbfd60d28e7c49ed81fa26591
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / walletrecover-0.1.0-py3-none-any.whl

Download URL walletrecover-0.1.0-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a32c17ea211e34c2ddf822ab5d9bc4124f602c1695053575a9de559bceb03104
BLAKE2b-256 checksum
How to use checksums
b1aef560963a567be3fa23db8661af681b951b64308667766c9a606ea717504f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for walletrecover 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page