pairing-0.4.1: Bilinear pairings

Safe HaskellNone
LanguageHaskell2010

Pairing.Serialize.MCLWasm

Description

MCL WASM (https:/github.comherumi/mcl-wasm) serialisation support MCL WASM uses the following algorithm to serialise P = (x, y) in G1 if P.isZero() then 64-bytes zero. otherwise, d = x.serialize() if (y.isOdd()) d[MSB] |= 0x80 On analysis of the GT format, each element of GT is simply LSB serialised and appended as a continuous bytestring, using the element length to split each point

Documentation

data MCLWASM Source #

Constructors

MCLWASM 
Instances
Eq MCLWASM Source # 
Instance details

Defined in Pairing.Serialize.MCLWasm

Methods

(==) :: MCLWASM -> MCLWASM -> Bool #

(/=) :: MCLWASM -> MCLWASM -> Bool #

Show MCLWASM Source # 
Instance details

Defined in Pairing.Serialize.MCLWasm

FromSerialisedForm MCLWASM Source # 
Instance details

Defined in Pairing.Serialize.MCLWasm

MkCompressedForm MCLWASM Source # 
Instance details

Defined in Pairing.Serialize.MCLWasm