Modulecardano-crypto-class-2.5.1.0
Cardano.Crypto.KES.Class
- 3 types
- 4 classes
- 33 values
- Packagecardano-crypto-class-2.5.1.0
- Exports40
- LicenceApache-2.0
Deprecated. Use decodeFixedSized instead
value
decodeSignKeyKES :: (UnsoundKESAlgorithm v, MonadST m, MonadThrow m) => Decoder s (m (Maybe (SignKeyKES v)))Deprecated. Use decodeFixedSized instead
value
decodeUnsoundPureSignKeyKES :: UnsoundPureKESAlgorithm v => Decoder s (UnsoundPureSignKeyKES 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 fixedSize instead
Deprecated. Use fixedSize instead
Deprecated. In favor of signKeySizeKES
Deprecated. Use fixedSize instead
Deprecated. Use fixedSize instead
class
class (Typeable v, Show (VerKeyKES v), Eq (VerKeyKES v), Show (SigKES v), Eq (SigKES v), NoThunks (SigKES v), NoThunks (SignKeyKES v), NoThunks (VerKeyKES v), KnownNat (SeedSizeKES v), KnownNat (VerKeySizeKES v), KnownNat (SignKeySizeKES v), KnownNat (SigSizeKES v), KnownNat (TotalPeriodsKES v), FixedSizeCodec (VerKeyKES v), FixedSizeCodec (SigKES v)) => KESAlgorithm v whereAssociated types
data family VerKeyKES vdata family SigKES vdata family SignKeyKES vtype family SeedSizeKES v :: Nattype family VerKeySizeKES v :: Nattype family SignKeySizeKES v :: Nattype family SigSizeKES v :: Nattype family TotalPeriodsKES v :: Nattype family SizeVerKeyKES v :: Nattype family SizeSignKeyKES v :: Nattype family SizeSigKES v :: Nattype family ContextKES vtype family Signable v :: Type -> Constraint
Methods
algorithmNameKES :: proxy v -> StringhashVerKeyKES :: HashAlgorithm h => VerKeyKES v -> Hash h (VerKeyKES v)verifyKES :: (Signable v a, HasCallStack) => ContextKES v -> VerKeyKES v -> Period -> a -> SigKES v -> Either String ()totalPeriodsKES :: proxy v -> WordrawSerialiseVerKeyKES :: VerKeyKES v -> ByteStringrawSerialiseSigKES :: SigKES v -> ByteStringrawDeserialiseVerKeyKES :: ByteString -> Maybe (VerKeyKES v)rawDeserialiseSigKES :: ByteString -> Maybe (SigKES v)deriveVerKeyKES :: (MonadST m, MonadThrow m) => SignKeyKES v -> m (VerKeyKES v)signKES :: (Signable v a, MonadST m, MonadThrow m) => ContextKES v -> Period -> a -> SignKeyKES v -> m (SigKES v)updateKESWith :: (MonadST m, MonadThrow m) => MLockedAllocator m -> ContextKES v -> SignKeyKES v -> Period -> m (Maybe (SignKeyKES v))genKeyKESWith :: (MonadST m, MonadThrow m) => MLockedAllocator m -> MLockedSeed (SeedSizeKES v) -> m (SignKeyKES v)forgetSignKeyKESWith :: (MonadST m, MonadThrow m) => MLockedAllocator m -> SignKeyKES v -> m ()
Instances7KESAlgorithm, …
KESAlgorithm NeverKESDefined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.NeverUsedKnownNat t => KESAlgorithm (MockKES t)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.Mock(DSIGNMAlgorithm d, KnownNat (FixedSize (VerKeyDSIGN d)), KnownNat (FixedSize (SigDSIGN d))) => KESAlgorithm (SingleKES d)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.Single(DSIGNMAlgorithm d, KnownNat (SigSizeDSIGN d + VerKeySizeDSIGN d)) => KESAlgorithm (CompactSingleKES d)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.CompactSingle(DSIGNMAlgorithm d, KnownNat t, KnownNat (SeedSizeDSIGN d * t), KnownNat (VerKeySizeDSIGN d * t), KnownNat (SignKeySizeDSIGN d * t)) => KESAlgorithm (SimpleKES d t)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.Simple(KESAlgorithm d, SodiumHashAlgorithm h, HashSize h ~ SeedSizeKES d, KnownNat ((SignKeySizeKES d + SeedSizeKES d) + (Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.Sum2
* VerKeySizeKES d)), KnownNat (SigSizeKES d + (VerKeySizeKES d *2
)), KnownNat (2
* TotalPeriodsKES d)) => KESAlgorithm (SumKES h d)(OptimizedKESAlgorithm d, SodiumHashAlgorithm h, HashSize h ~ SeedSizeKES d, NoThunks (VerKeyKES (CompactSumKES h d)), KnownNat (VerKeySizeKES (CompactSumKES h d)), KnownNat (SignKeySizeKES (CompactSumKES h d)), KnownNat (SigSizeKES (CompactSumKES h d)), KnownNat (Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.CompactSum2
* TotalPeriodsKES d)) => KESAlgorithm (CompactSumKES h d)
Methods
verifySigKES :: (Signable v a, HasCallStack) => ContextKES v -> Period -> a -> SigKES v -> Either String ()verKeyFromSigKES :: ContextKES v -> Period -> SigKES v -> VerKeyKES v
Instances2OptimizedKESAlgorithm
(KESAlgorithm (CompactSingleKES d), DSIGNMAlgorithm d) => OptimizedKESAlgorithm (CompactSingleKES d)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.CompactSingle(KESAlgorithm (CompactSumKES h d), OptimizedKESAlgorithm d, HashAlgorithm h) => OptimizedKESAlgorithm (CompactSumKES h d)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.CompactSum
Constructors
Instances5Eq, Show, Generic, NoThunks, Rep
(KESAlgorithm v, Eq (SignKeyKES v)) => Eq (SignKeyWithPeriodKES v)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.Class(KESAlgorithm v, Show (SignKeyKES v)) => Show (SignKeyWithPeriodKES v)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.ClassGeneric (SignKeyWithPeriodKES v)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.ClassKESAlgorithm v => NoThunks (SignKeyWithPeriodKES v)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.Classtype Rep (SignKeyWithPeriodKES v) = D1 ('MetaDataDefined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.Class"SignKeyWithPeriodKES"
"Cardano.Crypto.KES.Class"
"cardano-crypto-class-2.5.1.0-2YbSTqCvsz43JrgaH5m8D0"
'False) (C1 ('MetaCons"SignKeyWithPeriodKES"
'PrefixI 'True) (S1 ('MetaSel ('Just"skWithoutPeriodKES"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (SignKeyKES v)) :*: S1 ('MetaSel ('Just"periodKES"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Period)))
Instances7Eq, Show, Generic, NoThunks, FixedSizeCodec, Rep, …
KESAlgorithm v => Eq (SignedKES v a)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.ClassKESAlgorithm v => Show (SignedKES v a)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.ClassGeneric (SignedKES v a)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.ClassKESAlgorithm v => NoThunks (SignedKES v a)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.ClassKESAlgorithm v => FixedSizeCodec (SignedKES v a)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.Classtype Rep (SignedKES v a) = D1 ('MetaDataDefined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.Class"SignedKES"
"Cardano.Crypto.KES.Class"
"cardano-crypto-class-2.5.1.0-2YbSTqCvsz43JrgaH5m8D0"
'True) (C1 ('MetaCons"SignedKES"
'PrefixI 'True) (S1 ('MetaSel ('Just"getSig"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SigKES v))))type FixedSize (SignedKES v a) = FixedSize (SigKES v)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.Class
Methods
rawDeserialiseSignKeyKESWith :: (MonadST m, MonadThrow m) => MLockedAllocator m -> ByteString -> m (Maybe (SignKeyKES v))rawSerialiseSignKeyKES :: (MonadST m, MonadThrow m) => SignKeyKES v -> m ByteString
Instances7UnsoundKESAlgorithm, …
UnsoundKESAlgorithm NeverKESDefined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.NeverUsedKnownNat t => UnsoundKESAlgorithm (MockKES t)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.Mock(KESAlgorithm (CompactSingleKES d), UnsoundDSIGNMAlgorithm d) => UnsoundKESAlgorithm (CompactSingleKES d)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.CompactSingle(KESAlgorithm (SingleKES d), UnsoundDSIGNMAlgorithm d) => UnsoundKESAlgorithm (SingleKES d)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.Single(UnsoundDSIGNMAlgorithm d, KnownNat t, KESAlgorithm (SimpleKES d t)) => UnsoundKESAlgorithm (SimpleKES d t)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.Simple(KESAlgorithm (CompactSumKES h d), UnsoundKESAlgorithm d) => UnsoundKESAlgorithm (CompactSumKES h d)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.CompactSum(KESAlgorithm (SumKES h d), UnsoundKESAlgorithm d) => UnsoundKESAlgorithm (SumKES h d)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.Sum
class
class (KESAlgorithm v, NoThunks (UnsoundPureSignKeyKES v), FixedSizeCodec (UnsoundPureSignKeyKES v)) => UnsoundPureKESAlgorithm v whereAssociated types
data family UnsoundPureSignKeyKES v
Methods
unsoundPureSignKES :: Signable v a => ContextKES v -> Period -> a -> UnsoundPureSignKeyKES v -> SigKES vunsoundPureUpdateKES :: ContextKES v -> UnsoundPureSignKeyKES v -> Period -> Maybe (UnsoundPureSignKeyKES v)unsoundPureGenKeyKES :: Seed -> UnsoundPureSignKeyKES vunsoundPureDeriveVerKeyKES :: UnsoundPureSignKeyKES v -> VerKeyKES vunsoundPureSignKeyKESToSoundSignKeyKES :: (MonadST m, MonadThrow m) => UnsoundPureSignKeyKES v -> m (SignKeyKES v)rawSerialiseUnsoundPureSignKeyKES :: UnsoundPureSignKeyKES v -> ByteStringrawDeserialiseUnsoundPureSignKeyKES :: ByteString -> Maybe (UnsoundPureSignKeyKES v)
Instances7UnsoundPureKESAlgorithm, …
UnsoundPureKESAlgorithm NeverKESDefined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.NeverUsedKnownNat t => UnsoundPureKESAlgorithm (MockKES t)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.Mock(KESAlgorithm (CompactSingleKES d), UnsoundDSIGNMAlgorithm d) => UnsoundPureKESAlgorithm (CompactSingleKES d)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.CompactSingle(KESAlgorithm (SingleKES d), UnsoundDSIGNMAlgorithm d) => UnsoundPureKESAlgorithm (SingleKES d)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.Single(KESAlgorithm (CompactSumKES h d), HashAlgorithm h, UnsoundPureKESAlgorithm d) => UnsoundPureKESAlgorithm (CompactSumKES h d)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.CompactSum(KESAlgorithm (SimpleKES d t), KnownNat t, DSIGNAlgorithm d, UnsoundDSIGNMAlgorithm d) => UnsoundPureKESAlgorithm (SimpleKES d t)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.Simple(KESAlgorithm (SumKES h d), HashAlgorithm h, UnsoundPureKESAlgorithm d) => UnsoundPureKESAlgorithm (SumKES h d)Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.KES.Sum