block-core / blockcore

Open source .NET Core Bitcoin based blockchain node in C#
https://www.blockcore.net
219 stars 90 forks source link

Sweeping a Private Key #125

Open sondreb opened 4 years ago

sondreb commented 4 years ago

Easy way to import private key (swipe) should be added to the node and REST API.

This is not import per se, but an swipe. Swipe means the funds available on the private key, is sent to a new unused address in the HD wallet.

Difference explained here: https://99bitcoins.com/bitcoin-wallet/paper/private-key-sweep-import/

This will allow us to release and make the paperwallet available for Blockcore chains.

sondreb commented 4 years ago

It would be valuable if someone took the time and effort to look at this issue and come up with a solution for private key swiping on Blockcore. Having a paperwallet capability is a great way to share coins, especially on live streams, gift cards to friends, etc.

https://en.bitcoin.it/wiki/Wallet_import_format

xandronus commented 4 years ago

Great idea - I'll take a stab at this. Implement this? https://en.bitcoin.it/wiki/Sweepprivkey_proposal Maybe first as API and then we can add it to RPC if it hardens in bitcoin core?