hsblst-0.0.1: Haskell bindings to BLST
Safe HaskellSafe-Inferred
LanguageHaskell2010

Crypto.BLST.Internal.Types

Description

Types used for the high-level interface.

Synopsis

Documentation

newtype Signature c m Source #

Signature representation.

Constructors

Signature (Affine (CurveToMsgPoint c)) 

Instances

Instances details
Show (Signature c m) Source # 
Instance details

Defined in Crypto.BLST.Internal.Types

Methods

showsPrec :: Int -> Signature c m -> ShowS #

show :: Signature c m -> String #

showList :: [Signature c m] -> ShowS #

NFData (Signature c m) Source # 
Instance details

Defined in Crypto.BLST.Internal.Types

Methods

rnf :: Signature c m -> () #

Eq (Signature c m) Source # 
Instance details

Defined in Crypto.BLST.Internal.Types

Methods

(==) :: Signature c m -> Signature c m -> Bool #

(/=) :: Signature c m -> Signature c m -> Bool #

type ByteSize 'Compress (Signature c _1) Source # 
Instance details

Defined in Crypto.BLST.Internal.Types

type ByteSize 'Serialize (Signature c _1) Source # 
Instance details

Defined in Crypto.BLST.Internal.Types

newtype PublicKey c Source #

Public key representation.

Constructors

PublicKey (Affine (CurveToPkPoint c)) 

Instances

Instances details
Show (PublicKey c) Source # 
Instance details

Defined in Crypto.BLST.Internal.Types

NFData (PublicKey c) Source # 
Instance details

Defined in Crypto.BLST.Internal.Types

Methods

rnf :: PublicKey c -> () #

Eq (PublicKey c) Source # 
Instance details

Defined in Crypto.BLST.Internal.Types

Methods

(==) :: PublicKey c -> PublicKey c -> Bool #

(/=) :: PublicKey c -> PublicKey c -> Bool #

type ByteSize 'Compress (PublicKey c) Source # 
Instance details

Defined in Crypto.BLST.Internal.Types

type ByteSize 'Serialize (PublicKey c) Source # 
Instance details

Defined in Crypto.BLST.Internal.Types

newtype SecretKey Source #

Representation for the secret key.

Constructors

SecretKey Scalar 

Instances

Instances details
Show SecretKey Source # 
Instance details

Defined in Crypto.BLST.Internal.Types

NFData SecretKey Source # 
Instance details

Defined in Crypto.BLST.Internal.Types

Methods

rnf :: SecretKey -> () #

Eq SecretKey Source # 
Instance details

Defined in Crypto.BLST.Internal.Types

type ByteSize 'Serialize SecretKey Source # 
Instance details

Defined in Crypto.BLST.Internal.Types

type family ByteSize soc a Source #

Size in bytes of serialized/compressed representations of basic types.

data SerializeOrCompress Source #

Data kind flag for ByteSize.

Constructors

Serialize 
Compress 

byteSize :: forall soc a. KnownNat (ByteSize soc a) => Int Source #

Convenience function to get byte size as an Int value.