10gic / btc-address-dump

A utility for dump BTC address from mnemonic words or private key or public key, Bitcoin forks are also supported.
MIT License
58 stars 26 forks source link

Can you this tool with btc forked coin ? #3

Closed cno-dom closed 3 years ago

cno-dom commented 3 years ago

Can you this tool with forked coin from BTC ?

10gic commented 3 years ago

Currently, LTC is supported.

cno-dom commented 3 years ago

when can use this tool ?

10gic commented 3 years ago

Already upload to pypi, you can install it by pip3 install -U btc-address-dump.

Here is an example about ltc:

$ btc_address_dump -c ltc 6vP4eghhU3Gs8S1hgk2XNgD319ctMXzTZsWW8wLjEDjLHjyahvu
private key (hex) = a5db75d914f69dbfe2edef6c505cd21071711ffe0f7eeee3c7349691a24028ad
private key (WIF) = 6vP4eghhU3Gs8S1hgk2XNgD319ctMXzTZsWW8wLjEDjLHjyahvu
private key (WIF compressed) = T8cP7LEdcM32FoQ6aQuj4g47qf3PfdncG5wDc2r5PMBr8tYRCZU8
public key (uncompressed) = 045172d0a472f5943716bd1e6fcb13c6932f6add5ae32360ae2f374755c30b729098870b022b89bce1f544ed9cc3d1eebb7439dbebea9a0ae42f1808ab4c509ea8
public key (compressed) = 025172d0a472f5943716bd1e6fcb13c6932f6add5ae32360ae2f374755c30b7290
hash160 of uncompressed public key = f140de3d8c5d59f298f34778b2cdcbc56345b601
hash160 of compressed public key = 916eea42bfa275cc6a55168b0e6f2aac1784dee0
legacy address (p2pkh uncompressed) = LhDapZU7HLJDm5e5DBPmwFpNsvijsRiUa7
legacy address (p2pkh compressed) = LYUw7YU6ztGo2Jnws9AbH7PMBdkv5ocDke
p2sh-segwit address (p2sh p2wpkh) = MBEdkEujMnRYwRjp2goZDJD5YEVnytLKv1
bech32 address (p2wpkh) = ltc1qj9hw5s4l5f6uc6j4z69sume24stcfhhqrs62wj
cno-dom commented 3 years ago

how about other new coin ? how to use it ?

10gic commented 3 years ago

Other coins are not supported currently.

cno-dom commented 3 years ago

if other coin cloned from Bitcoin can use it ?

10gic commented 3 years ago

It's easy to enhance this tool for other bitcoin fork chains. Just like it supports litecoin: https://github.com/10gic/btc-address-dump/blob/99a78f51f96dafd7b2b94756e854030aa112da70/btc_address_dump/btc_address_dump.py#L67

cno-dom commented 3 years ago

ok I understand. can I send you a pull request to add new coin ?

10gic commented 3 years ago

Sure, pull requests are welcome.

cno-dom commented 3 years ago

noted and thanks.

10gic commented 3 years ago

Now, Bitcoin forks can be supported by just changing https://github.com/10gic/btc-address-dump/blob/main/btc_address_dump/coins.yaml