Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Types for lower-level bindings
Synopsis
- type SkSerializeSize = 32
- type P2CompressSize = 96
- type P2SerializeSize = 192
- type P1CompressSize = 48
- type P1SerializeSize = 96
- data EncodeMethod
- newtype PairingCtx = PairingCtx Bytes
- newtype Scalar = Scalar (SizedByteArray (SizeOf Scalar) ScrubbedBytes)
- newtype Affine (a :: PointKind) = Affine {
- unAffine :: SizedByteArray (SizeOf (Affine a)) Bytes
- newtype Point (a :: PointKind) = Point (SizedByteArray (SizeOf (Point a)) Bytes)
- type family SizeOf t
- data PointKind
Documentation
type SkSerializeSize = 32 Source #
Scalar serialized size.
type P2CompressSize = 96 Source #
Compressed serialized size of P2
.
type P2SerializeSize = 192 Source #
Serialized size of P2
.
type P1CompressSize = 48 Source #
Compressed serialized size of P1
.
type P1SerializeSize = 96 Source #
Serialized size of P1
.
data EncodeMethod Source #
Flag to choose whether values are hashed or encoded to the curve.
Instances
newtype PairingCtx Source #
Pairing context.
Instances
NFData PairingCtx Source # | |
Defined in Crypto.BLST.Internal.Bindings.Types rnf :: PairingCtx -> () # |
Scalar value representation.
newtype Affine (a :: PointKind) Source #
Affine point representation.
newtype Point (a :: PointKind) Source #
Point representation.
Point (SizedByteArray (SizeOf (Point a)) Bytes) |
Size of type's representation in bytes.
Instances
type SizeOf Scalar Source # | |
Defined in Crypto.BLST.Internal.Bindings | |
type SizeOf (Affine 'P1) Source # | |
Defined in Crypto.BLST.Internal.Bindings | |
type SizeOf (Affine 'P2) Source # | |
Defined in Crypto.BLST.Internal.Bindings | |
type SizeOf (Point 'P1) Source # | |
Defined in Crypto.BLST.Internal.Bindings | |
type SizeOf (Point 'P2) Source # | |
Defined in Crypto.BLST.Internal.Bindings |