network-bitcoin-1.8.1: An interface to bitcoind.

Safe HaskellNone
LanguageHaskell98

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 = Text Source

A textual representation of a bitcoin private key.

importPrivateKey Source

Arguments

:: Client 
-> PrivateKey 
-> Maybe Account

An optional label for the key.

-> IO () 

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

dumpPrivateKey :: Client -> Address -> IO PrivateKey Source

Reveals the private key corresponding to the given address.