network-bitcoin-1.2.1: An interface to bitcoind.

Safe HaskellNone

Network.Bitcoin.Dump

Description

An interface to bitcoind's available private key calls. The implementation of these functions can be found at https://github.com/bitcoin/bitcoin/blob/master/src/rpcdump.cpp.

If any APIs are missing, patches are always welcome. If you look at the source of this module, you'll see that the interface code is trivial.

Synopsis

Documentation

type PrivateKey = TextSource

A textual representation of a bitcoin private key.

importPrivateKeySource

Arguments

:: Auth 
-> PrivateKey 
-> Maybe Account

An optional label for the key.

-> IO () 

Adds a private key (as returned by dumpprivkey) to your wallet.

dumpPrivateKey :: Auth -> Address -> IO PrivateKeySource

Reveals the private key corresponding to the given address.