cardano-addresses
Safe HaskellNone
LanguageHaskell2010

Cardano.Address.Crypto.BIP39.Dictionary

Contents

Description

Vendored from cardano-crypto (Apache-2.0). Original: Crypto.Encoding.BIP39.Dictionary

Basement types replaced: Offset String -> Word16 NormalForm -> NFData TryFrom -> Maybe-returning function

Synopsis

Dictionary

data Dictionary #

Describes the properties of a BIP39 word dictionary.

data WordIndex #

Index of a mnemonic word in the Dictionary.

WordIndex values are in the range [0..2047].

wordIndex :: Word16 -> WordIndex #

Create a WordIndex, erroring if out of range.

unWordIndex :: WordIndex -> Word16 #

Extract the raw index.

newtype DictionaryError #

Errors from dictionary lookup.