New answers tagged

1

If I get your code and use "e41b45e722251672c01a28e4fada590471fea09f90d13b143033ed3a1107ef49" as secret hex value AKA secret private key... then I get result: "12sF1DbBbPaoNYrs28Qm7waiCcAVoF93Nn" which is uncompressed public address. Check my script, it is more extended, but with a copule of imports for an educational point of view, to ...


1

Indeed to use bitcoinrpc, you need to set the username and password in bitcoin.conf by: rpcauth=user:salt$hash of password which you can generate using https://github.com/bitcoin/bitcoin/blob/master/share/rpcauth/rpcauth.py. Simply shutdown bitcoind, add this to bitcoin.conf, restart, and you'll immediately be able to run commands in python like print(...


1

Yes, I'd say the simplest way is to use python bip39 implementation of trezor, this one file should be enough with methods: to_seed - to convert list of the words into seed and to_hd_master_key - to generate master xpub/xpriv It doesn't support further derivations (which require a bit more dependencies), for which I'd suggest using bip32 library.


0

As the others mentioned, the short answer is no, but from a WIF(Wallet import format) key you can determine if the address is compressed or not by checking the last byte if it is 0x01.


0

If you just need a command line, you can try pip3 install btc-address-dump. Here is an example: $ btc_address_dump "olympic wine chicken argue unaware bundle tunnel grid spider slot spell need" mnemonic = olympic wine chicken argue unaware bundle tunnel grid spider slot spell need private key (hex) = ...


Top 50 recent answers are included