Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Cardano/Crypto/Wallet.hs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ unXPrv (XPrv e) = unEncryptedKey e

xpub :: ByteString -> Either String XPub
xpub bs
| B.length bs /= 64 = Left ("error: xprv needs to be 64 bytes: got " ++ show (B.length bs) ++ " bytes")
| B.length bs /= 64 = Left ("error: xpub needs to be 64 bytes: got " ++ show (B.length bs) ++ " bytes")
| otherwise =
let (b1, b2) = B.splitAt 32 bs
in Right $ XPub b1 (ChainCode $ convert b2)
Expand Down