| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Crypto.BLST.Internal.Types
Description
Types used for the high-level interface.
Synopsis
- newtype SecretKey = SecretKey Scalar
- newtype PublicKey (c :: Curve) = PublicKey (Affine (CurveToPkPoint c))
- newtype Signature (c :: Curve) (m :: EncodeMethod) = Signature (Affine (CurveToMsgPoint c))
- type family ByteSize (soc :: SerializeOrCompress) a :: Nat
- data SerializeOrCompress
- byteSize :: forall (soc :: SerializeOrCompress) a. KnownNat (ByteSize soc a) => Int
Documentation
Representation for the secret key.
newtype PublicKey (c :: Curve) Source #
Public key representation.
Constructors
| PublicKey (Affine (CurveToPkPoint c)) |
Instances
newtype Signature (c :: Curve) (m :: EncodeMethod) Source #
Signature representation.
Constructors
| Signature (Affine (CurveToMsgPoint c)) |
Instances
| Show (Signature c m) Source # | |
| NFData (Signature c m) Source # | |
Defined in Crypto.BLST.Internal.Types | |
| Eq (Signature c m) Source # | |
| type ByteSize 'Compress (Signature c _1) Source # | |
Defined in Crypto.BLST.Internal.Types | |
| type ByteSize 'Serialize (Signature c _1) Source # | |
Defined in Crypto.BLST.Internal.Types | |
type family ByteSize (soc :: SerializeOrCompress) a :: Nat Source #
Size in bytes of serialized/compressed representations of basic types.
Instances
| type ByteSize 'Serialize SecretKey Source # | |
Defined in Crypto.BLST.Internal.Types | |
| type ByteSize 'Compress (PublicKey c) Source # | |
Defined in Crypto.BLST.Internal.Types | |
| type ByteSize 'Serialize (PublicKey c) Source # | |
Defined in Crypto.BLST.Internal.Types | |
| type ByteSize 'Compress (Signature c _1) Source # | |
Defined in Crypto.BLST.Internal.Types | |
| type ByteSize 'Serialize (Signature c _1) Source # | |
Defined in Crypto.BLST.Internal.Types | |