Safe Haskell | None |
---|---|
Language | Haskell2010 |
SLIP-0032 is an extended serialization format for BIP-0032 wallets.
This implementation is based on the draft SLIP-0032 spec.
Please refer to the BIP32 module from
the bip32 library to
find more about Index
and Chain
.
Please refer to the Bitcoin.Keys module from
the bitcoin-keys library to
find more about Pub
and Prv
.
Synopsis
- parse :: ByteString -> Maybe (Either XPub XPrv)
- parseXPub :: ByteString -> Maybe XPub
- parseXPrv :: ByteString -> Maybe XPrv
- parseText :: Text -> Maybe (Either XPub XPrv)
- parseXPubText :: Text -> Maybe XPub
- parseXPrvText :: Text -> Maybe XPrv
- renderXPub :: XPub -> ByteString
- renderXPrv :: XPrv -> ByteString
- renderXPubText :: XPub -> Text
- renderXPrvText :: XPrv -> Text
- data XPub = XPub !Path !Chain !Pub
- data XPrv = XPrv !Path !Chain !Prv
- data Path
- path :: [Index] -> Maybe Path
- unPath :: Path -> [Index]
Parsing
Text
Rendering
renderXPub :: XPub -> ByteString Source #
Render an XPub
using the SLIP-0032 encoding.
renderXPrv :: XPrv -> ByteString Source #
Render an XPub
using the SLIP-0032 encoding.
Text
renderXPubText :: XPub -> Text Source #
renderXPrvText :: XPrv -> Text Source #
Public key
Extended public key.
Private key
Extended private key.
Path
Derivation path.
Construct with path
.