Safe Haskell | None |
---|---|
Language | Haskell2010 |
Point serialisation using https://tools.ietf.org/id/draft-jivsov-ecc-compact-05.html It is unclear if 02 is smallest y or not so the following is used in the first 2 bytes 01 - Point at infinity 02 - Compressed repr i.e. x only but use smallest y on decode 03 - Compressed repr i.e. x only but use largest y on decode 04 -- Uncompressed repr i.e. x & y
Documentation
Instances
FromUncompressedForm Jivsov Source # | |
Defined in Pairing.Serialize.Jivsov | |
FromSerialisedForm Jivsov Source # | |
MkUncompressedForm Jivsov Source # | |
Defined in Pairing.Serialize.Jivsov serializePointUncompressed :: (ByteRepr b, FromX b, Eq b) => Jivsov -> Point b -> Maybe LByteString Source # serializeUncompressed :: ByteRepr c => Jivsov -> c -> Maybe LByteString Source # | |
MkCompressedForm Jivsov Source # | |
Defined in Pairing.Serialize.Jivsov serializeCompressed :: (ByteRepr b, FromX b, Ord b) => Jivsov -> Point b -> Maybe LByteString Source # |