Hot 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(...


Only top voted, non community-wiki answers of a minimum length are eligible