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