pairing-0.5.0: 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