bismuthfoundation / BismuthRPC

[Released] A Json-RPC Server for Bismuth Crypto Currency
GNU General Public License v3.0
7 stars 8 forks source link

Importprivkey #14

Closed EggPool closed 6 years ago

EggPool commented 6 years ago

From https://github.com/EggPool/BismuthRPC/blob/master/RPCServer/Commands.md

Add this method in wallet.py (and link from nodeclient)

importprivkey - (bitcoinprivkey) (account) (rescan=true)
Adds a private key (as returned by dumpprivkey) to your wallet. This may take a while, as a rescan is done, looking for existing transactions. Optional (rescan) parameter added in 0.8.0.

Check with node code and tools from @maccaspacca. Add methods to keys.py that take a private key, regenerates public key as well as address.
https://bitcoin.org/en/developer-reference#importprivkey

iyomisc commented 6 years ago

Done https://github.com/EggPool/BismuthRPC/pull/16

EggPool commented 6 years ago

Thanks! Merged.