Safe Haskell | Safe |
---|---|
Language | Haskell98 |
- encode :: Integer -> String
- decode :: String -> Maybe Integer
- encode' :: WordList -> Integer -> String
- decode' :: WordList -> String -> Maybe Integer
- type Hex = String
- encodeHex :: Hex -> String
- decodeHex :: String -> Maybe Hex
- encodeHex' :: WordList -> Hex -> String
- decodeHex' :: WordList -> String -> Maybe Hex
Documentation
encode :: Integer -> String Source #
Generate a mnemonic for an arbitrary Integer using the Electrum word list.
Note about Electrum compatability:
When encoding, Electrum only operates on inputs in chunks of 8 hex digits.
This encoder is more flexible, supporting input Integers of any size
(although they cannot be negative). However, it will not always yeild
the same result as Electrum's encoder. For that, use encodeHex