Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Dictionary = Dictionary { }
- data WordIndex
- wordIndex :: Offset String -> WordIndex
- unWordIndex :: WordIndex -> Offset String
- data DictionaryError = ErrInvalidDictionaryWord String
Dictionary
data Dictionary Source #
this discribe the property of the Dictionary and will alllow to
convert from a mnemonic phrase to
MnemonicSentence
This is especially needed to build the BIP39
Seed
Dictionary | |
|
Index of the mnemonic word in the
Dictionary
WordIndex
are within range of [0..2047]
Instances
Bounded WordIndex Source # | |
Enum WordIndex Source # | |
Defined in Crypto.Encoding.BIP39.Dictionary succ :: WordIndex -> WordIndex Source # pred :: WordIndex -> WordIndex Source # toEnum :: Int -> WordIndex Source # fromEnum :: WordIndex -> Int Source # enumFrom :: WordIndex -> [ WordIndex ] Source # enumFromThen :: WordIndex -> WordIndex -> [ WordIndex ] Source # enumFromTo :: WordIndex -> WordIndex -> [ WordIndex ] Source # enumFromThenTo :: WordIndex -> WordIndex -> WordIndex -> [ WordIndex ] Source # |
|
Eq WordIndex Source # | |
Ord WordIndex Source # | |
Defined in Crypto.Encoding.BIP39.Dictionary |
|
Show WordIndex Source # | |
NormalForm WordIndex Source # | |
Defined in Crypto.Encoding.BIP39.Dictionary toNormalForm :: WordIndex -> () Source # |
|
TryFrom Int WordIndex Source # | |
TryFrom ( Offset String ) WordIndex Source # | |
data DictionaryError Source #
Instances
Show DictionaryError Source # | |
Defined in Crypto.Encoding.BIP39.Dictionary |