10gic / btc-address-dump Goto Github PK
View Code? Open in Web Editor NEWA utility for dump BTC address from mnemonic words or private key or public key, Bitcoin forks are also supported.
License: MIT License
A utility for dump BTC address from mnemonic words or private key or public key, Bitcoin forks are also supported.
License: MIT License
import btc_address_dump File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/btc_address_dump/__init__.py", line 4, in <module> from .btc_address_dump import main_entry File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/btc_address_dump/btc_address_dump.py", line 10, in <module> import mnemonic_util File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/btc_address_dump/mnemonic_util.py", line 15, in <module> import common_util File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/btc_address_dump/common_util.py", line 55, in <module> def pubkey_from_bytes_to_point(pubkey: bytes) -> tuple[int, int]: TypeError: 'type' object is not subscriptable
What's going on here? The module should work with python3.8.5, yes?
Hi! I think you can implement it easily anyway, but I will just share my little code for a mnemonic checker here. The input in the function must be a list of integers in [0,2047], so convert the word list first. However, the mnemonic length is not checked (e.g. divisibility by 3). Kthxbye!
...runs away...
P.S. excuse for the license hahaha
EDIT: I suggest that if the mnemonic is invalid according to BIP-39, just display a notice before displaying the keys & addresses, and do not block the user.
Can you this tool with forked coin from BTC ?
onathandoe@MacBook-Air-3 ~ % btc_address_dump 349571e1211343f73984b48e7d11d8695b806f7a9be347d14f1c78d3b7abacab
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/bin/btc_address_dump", line 8, in
sys.exit(run_main())
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/btc_address_dump/init.py", line 10, in run_main
main_entry(sys.argv)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/btc_address_dump/btc_address_dump.py", line 169, in main_entry
public_key_uncompressed = common_util.prikey_to_pubkey(private_key, compressed=False)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/btc_address_dump/common_util.py", line 88, in prikey_to_pubkey
return pubkey_from_point_to_bytes(pubkey_point.x(), pubkey_point.y(), compressed)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/btc_address_dump/common_util.py", line 76, in pubkey_from_point_to_bytes
x_bytes = x.to_bytes(32, byteorder='big')
AttributeError: 'mpz' object has no attribute 'to_bytes'
hello Sir, Please add balance report, history, qr receive and send to address? wou'd be awesome cli wallet. thanksππ
can provide the command of compile and install dependency ?
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: no commands supplied
when i run
btc_address_dump -d bip86 --taproot-output-pubkey 0x4a6f5e3a0dc3a293d0938ef6d7d91cba8bc7615f0107963333320534c2cde210
taproot output pubkey = 4a6f5e3a0dc3a293d0938ef6d7d91cba8bc7615f0107963333320534c2cde210
bech32m address (p2tr) = bc1pffh4uwsdcw3f85yn3mmd0kguh29uwc2lqyrevvenxgznfskduggq04scrt
the p2tr address seems wrong.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.