Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class ByteRepr a where Source #
mkRepr :: a -> Maybe ByteString Source #
fromRepr :: a -> ByteString -> Maybe a Source #
reprLength :: a -> Int Source #
Instances
ByteRepr Fq Source # | |
Defined in Pairing.Fq | |
ByteRepr Fq2 Source # | |
Defined in Pairing.Fq2 | |
ByteRepr Fq6 Source # | |
Defined in Pairing.Fq6 | |
ByteRepr Fq12 Source # | |
Defined in Pairing.Fq12 |
toBytes :: Integer -> ByteString Source #
toPaddedBytes :: Int -> Integer -> Maybe ByteString Source #