electrum-mnemonic-0.1.3: easy to remember mnemonic for a high-entropy value

Safe HaskellSafe
LanguageHaskell98

Data.Mnemonic.Electrum

Synopsis

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

decode :: String -> Maybe Integer Source #

Decode an electrum mnemonic

type Hex = String Source #

A string that represents a hexadecimal number.

encodeHex :: Hex -> String Source #

Generates a mnemonic for a hexidecimal string using the Electrum word list. Fully compatable with Electrum.