pgp-wordlist-0.1.0.1: Translate between binary data and a human-readable collection of words.

Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Text.PgpWordlist.Internal.Types

Synopsis

Documentation

newtype PgpWordlist Source

Abstract representation of a PGP word list.

data TranslationError Source

Possible translation errors from a list of PGP words to binary format.

Constructors

BadWord Text

Word is not recognized

BadParity Text Word8

Word is recognized, but from the wrong alphabet. Duplicates, omissions, and neighbour transpositions are often cause for this.

newtype EvenWord Source

Word that is supposed to occur in an even position

Constructors

EvenWord 

Fields

unEvenWord :: Text
 

newtype OddWord Source

Word that is supposed to occur in an odd position

Constructors

OddWord 

Fields

unOddWord :: Text