pairing-0.4.1: Bilinear pairings

Safe HaskellNone
LanguageHaskell2010

Pairing.Serialize.Types

Description

Base API for Point serialisation for G1, G2 and GT

Documentation

class MkCompressedForm a where Source #

Methods

serializeCompressed :: (ByteRepr b, FromX b, Ord b) => a -> Point b -> Maybe LByteString Source #

The serialisation may fail if y cannot be obtained from x

class FromSerialisedForm a where Source #

Methods

unserializePoint :: (ByteRepr b, FromX b, Ord b, Show b, Validate (Point b)) => a -> Point b -> LByteString -> Either Text (Point b) Source #

class FromUncompressedForm a where Source #

Methods

unserialize :: (ByteRepr b, Validate b, Eq b, Show b) => a -> b -> LByteString -> Either Text b Source #

Instances
FromUncompressedForm Jivsov Source # 
Instance details

Defined in Pairing.Serialize.Jivsov

Methods

unserialize :: (ByteRepr b, Validate b, Eq b, Show b) => Jivsov -> b -> LByteString -> Either Text b Source #