Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Package all the crypto constraints into one place.
Synopsis
- class (UnsoundPureKESAlgorithm (KES c), VRFAlgorithm (VRF c), ContextKES (KES c) ~ (), ContextVRF (VRF c) ~ (), Typeable c) ⇒ Crypto c where
- data StandardCrypto
- newtype VRFVerKeyHash (r ∷ KeyRoleVRF) = VRFVerKeyHash {}
- data KeyRoleVRF
- hashVerKeyVRF ∷ Crypto c ⇒ VerKeyVRF (VRF c) → VRFVerKeyHash (r ∷ KeyRoleVRF)
Documentation
class (UnsoundPureKESAlgorithm (KES c), VRFAlgorithm (VRF c), ContextKES (KES c) ~ (), ContextVRF (VRF c) ~ (), Typeable c) ⇒ Crypto c Source #
Instances
Crypto StandardCrypto | |
Defined in Cardano.Ledger.Crypto.Internal type KES StandardCrypto Source # type VRF StandardCrypto Source # |
data StandardCrypto Source #
The same crypto used on the net
Instances
Crypto StandardCrypto | |
Defined in Cardano.Ledger.Crypto.Internal type KES StandardCrypto Source # type VRF StandardCrypto Source # | |
PraosCrypto StandardCrypto Source # | |
Defined in Cardano.Protocol.TPraos.API | |
type KES StandardCrypto | |
Defined in Cardano.Ledger.Crypto.Internal | |
type VRF StandardCrypto | |
Defined in Cardano.Ledger.Crypto.Internal |
newtype VRFVerKeyHash (r ∷ KeyRoleVRF) Source #
Discriminated hash of VRF Verification Key
Instances
hashVerKeyVRF ∷ Crypto c ⇒ VerKeyVRF (VRF c) → VRFVerKeyHash (r ∷ KeyRoleVRF) Source #