Modulecardano-crypto-class-2.5.1.0
Cardano.Crypto.DSIGN.Class
- 2 types
- 4 classes
- 32 values
- Packagecardano-crypto-class-2.5.1.0
- Exports38
- LicenceApache-2.0
Deprecated. Use decodeFixedSized instead
Deprecated. Use decodeFixedSized instead
Deprecated. Use decodeFixedSized instead
value
decodeSignKeyDSIGNM :: (UnsoundDSIGNMAlgorithm v, MonadST m, MonadThrow m) => Decoder s (m (SignKeyDSIGNM v))Deprecated. Use decodeFixedSized instead
Deprecated. Use decodeFixedSized instead
Deprecated. Use encodeFixedSized instead
Deprecated. Use encodeFixedSized instead
Deprecated. Use encodeFixedSized instead
Deprecated. Use encodeFixedSized instead
Deprecated. Use encodeFixedSized instead
Deprecated. Use fixedSize instead
Deprecated. Use fixedSize instead
Deprecated. Use fixedSize instead
Deprecated. In favor of fixedSize
Deprecated. In favor of fixedSize
Deprecated. In favor of fixedSize
Deprecated. Use fixedSize instead
class
class (DSIGNAlgorithm v, Show (PossessionProofDSIGN v), Eq (PossessionProofDSIGN v), NoThunks (PossessionProofDSIGN v), KnownNat (PossessionProofSizeDSIGN v), FixedSizeCodec (PossessionProofDSIGN v)) => DSIGNAggregatable v whereAssociated types
type family PossessionProofSizeDSIGN v :: Natdata family PossessionProofDSIGN v
Methods
uncheckedAggregateVerKeysDSIGN :: HasCallStack => [VerKeyDSIGN v] -> Either String (VerKeyDSIGN v)aggregateSigsDSIGN :: HasCallStack => [SigDSIGN v] -> Either String (SigDSIGN v)createPossessionProofDSIGN :: HasCallStack => ContextDSIGN v -> SignKeyDSIGN v -> PossessionProofDSIGN vverifyPossessionProofDSIGN :: HasCallStack => ContextDSIGN v -> VerKeyDSIGN v -> PossessionProofDSIGN v -> Either String ()rawSerialisePossessionProofDSIGN :: PossessionProofDSIGN v -> ByteStringrawDeserialisePossessionProofDSIGN :: ByteString -> Maybe (PossessionProofDSIGN v)
Instances1DSIGNAggregatable
BLS12381CurveConstraints curve => DSIGNAggregatable (BLS12381DSIGN curve)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.DSIGN.BLS12381.Internal
class
class (Typeable v, Show (VerKeyDSIGN v), Eq (VerKeyDSIGN v), Show (SignKeyDSIGN v), Show (SigDSIGN v), Eq (SigDSIGN v), NoThunks (SigDSIGN v), NoThunks (SignKeyDSIGN v), NoThunks (VerKeyDSIGN v), KnownNat (SeedSizeDSIGN v), KnownNat (SignKeySizeDSIGN v), KnownNat (VerKeySizeDSIGN v), KnownNat (SigSizeDSIGN v), FixedSizeCodec (VerKeyDSIGN v), FixedSizeCodec (SignKeyDSIGN v), FixedSizeCodec (SigDSIGN v)) => DSIGNAlgorithm v whereAssociated types
type family SeedSizeDSIGN v :: Nattype family SignKeySizeDSIGN v :: Nattype family VerKeySizeDSIGN v :: Nattype family SigSizeDSIGN v :: Nattype family SizeSignKeyDSIGN v :: Nattype family SizeVerKeyDSIGN v :: Nattype family SizeSigDSIGN v :: Natdata family VerKeyDSIGN vdata family SignKeyDSIGN vdata family SigDSIGN vtype family ContextDSIGN vtype family Signable v :: Type -> Constrainttype family KeyGenContextDSIGN v
Methods
algorithmNameDSIGN :: proxy v -> StringderiveVerKeyDSIGN :: SignKeyDSIGN v -> VerKeyDSIGN vhashVerKeyDSIGN :: HashAlgorithm h => VerKeyDSIGN v -> Hash h (VerKeyDSIGN v)signDSIGN :: (Signable v a, HasCallStack) => ContextDSIGN v -> a -> SignKeyDSIGN v -> SigDSIGN vverifyDSIGN :: (Signable v a, HasCallStack) => ContextDSIGN v -> VerKeyDSIGN v -> a -> SigDSIGN v -> Either String ()genKeyDSIGN :: Seed -> SignKeyDSIGN vgenKeyDSIGNWithContext :: KeyGenContextDSIGN v -> Seed -> SignKeyDSIGN vrawSerialiseVerKeyDSIGN :: VerKeyDSIGN v -> ByteStringrawSerialiseSignKeyDSIGN :: SignKeyDSIGN v -> ByteStringrawSerialiseSigDSIGN :: SigDSIGN v -> ByteStringrawDeserialiseVerKeyDSIGN :: ByteString -> Maybe (VerKeyDSIGN v)rawDeserialiseSignKeyDSIGN :: ByteString -> Maybe (SignKeyDSIGN v)rawDeserialiseSigDSIGN :: ByteString -> Maybe (SigDSIGN v)
Instances7DSIGNAlgorithm, …
DSIGNAlgorithm EcdsaSecp256k1DSIGNDefined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.DSIGN.EcdsaSecp256k1DSIGNAlgorithm Ed25519DSIGNDefined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.DSIGN.Ed25519DSIGNAlgorithm Ed448DSIGNDefined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.DSIGN.Ed448DSIGNAlgorithm MockDSIGNDefined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.DSIGN.MockDSIGNAlgorithm NeverDSIGNDefined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.DSIGN.NeverUsedDSIGNAlgorithm SchnorrSecp256k1DSIGNDefined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.DSIGN.SchnorrSecp256k1BLS12381CurveConstraints curve => DSIGNAlgorithm (BLS12381DSIGN curve)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.DSIGN.BLS12381.Internal
Associated types
data family SignKeyDSIGNM v
Methods
deriveVerKeyDSIGNM :: (MonadThrow m, MonadST m) => SignKeyDSIGNM v -> m (VerKeyDSIGN v)signDSIGNM :: (Signable v a, MonadST m, MonadThrow m) => ContextDSIGN v -> a -> SignKeyDSIGNM v -> m (SigDSIGN v)genKeyDSIGNMWith :: (MonadST m, MonadThrow m) => MLockedAllocator m -> MLockedSeed (SeedSizeDSIGN v) -> m (SignKeyDSIGNM v)cloneKeyDSIGNMWith :: MonadST m => MLockedAllocator m -> SignKeyDSIGNM v -> m (SignKeyDSIGNM v)getSeedDSIGNMWith :: (MonadST m, MonadThrow m) => MLockedAllocator m -> Proxy v -> SignKeyDSIGNM v -> m (MLockedSeed (SeedSizeDSIGN v))forgetSignKeyDSIGNMWith :: (MonadST m, MonadThrow m) => MLockedAllocator m -> SignKeyDSIGNM v -> m ()
Instances1DSIGNMAlgorithm
DSIGNMAlgorithm Ed25519DSIGNDefined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.DSIGN.Ed25519
Constructors
SignedDSIGN (SigDSIGN v)
Instances8Eq, Show, Generic, NFData, NoThunks, FixedSizeCodec, …
DSIGNAlgorithm v => Eq (SignedDSIGN v a)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.DSIGN.ClassDSIGNAlgorithm v => Show (SignedDSIGN v a)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.DSIGN.ClassGeneric (SignedDSIGN v a)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.DSIGN.ClassNFData (SigDSIGN v) => NFData (SignedDSIGN v a)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.DSIGN.ClassDSIGNAlgorithm v => NoThunks (SignedDSIGN v a)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.DSIGN.ClassFixedSizeCodec (SigDSIGN v) => FixedSizeCodec (SignedDSIGN v a)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.DSIGN.Classtype Rep (SignedDSIGN v a) = D1 ('MetaDataDefined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.DSIGN.Class"SignedDSIGN"
"Cardano.Crypto.DSIGN.Class"
"cardano-crypto-class-2.5.1.0-2YbSTqCvsz43JrgaH5m8D0"
'True) (C1 ('MetaCons"SignedDSIGN"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SigDSIGN v))))type FixedSize (SignedDSIGN v a) = FixedSize (SigDSIGN v)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.DSIGN.Class
Methods
rawSerialiseSignKeyDSIGNM :: (MonadST m, MonadThrow m) => SignKeyDSIGNM v -> m ByteStringrawDeserialiseSignKeyDSIGNMWith :: (MonadST m, MonadThrow m) => MLockedAllocator m -> ByteString -> m (Maybe (SignKeyDSIGNM v))
Instances1UnsoundDSIGNMAlgorithm
UnsoundDSIGNMAlgorithm Ed25519DSIGNDefined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.DSIGN.Ed25519
Instances6Eq, Show, Semigroup, Monoid, NFData, NoThunks
Eq SeedDefined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.SeedShow SeedDefined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.SeedSemigroup SeedDefined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.SeedMonoid SeedDefined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.SeedNFData SeedDefined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.SeedNoThunks SeedDefined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.Seed