Safe Haskell | None |
---|---|
Language | Haskell98 |
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.
- type PrivateKey = Text
- importPrivateKey :: Client -> PrivateKey -> Maybe Account -> IO ()
- dumpPrivateKey :: Client -> Address -> IO PrivateKey
Documentation
type PrivateKey = Text Source
A textual representation of a bitcoin private key.
:: 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.