Giter Site home page Giter Site logo

btc-address-dump's People

Contributors

10gic avatar gruve-p avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

btc-address-dump's Issues

Why do I get an error when importing the module to python?

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?

Checking the mnemonic

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.

mpz object has no attribute 'to_bytes'

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'

I need your help

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

the p2tr address seems wrong.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.