| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.Protocol.Crypto
Description
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 ∷ ∀ c (r ∷ KeyRoleVRF). Crypto c ⇒ VerKeyVRF (VRF c) → VRFVerKeyHash r
Documentation
class (UnsoundPureKESAlgorithm (KES c), VRFAlgorithm (VRF c), ContextKES (KES c) ~ (), ContextVRF (VRF c) ~ (), Typeable c) ⇒ Crypto c Source #
Instances
| Crypto StandardCrypto Source # | |||||||||
Defined in Cardano.Protocol.Crypto Associated Types
| |||||||||
data StandardCrypto Source #
The same crypto used on the net
Instances
| Crypto StandardCrypto Source # | |||||||||
Defined in Cardano.Protocol.Crypto Associated Types
| |||||||||
| PraosCrypto StandardCrypto Source # | |||||||||
Defined in Cardano.Protocol.TPraos.API | |||||||||
| type KES StandardCrypto Source # | |||||||||
Defined in Cardano.Protocol.Crypto | |||||||||
| type VRF StandardCrypto Source # | |||||||||
Defined in Cardano.Protocol.Crypto | |||||||||
newtype VRFVerKeyHash (r ∷ KeyRoleVRF) Source #
Discriminated hash of VRF Verification Key
Constructors
| VRFVerKeyHash | |
Fields | |
Instances
data KeyRoleVRF Source #
Constructors
| StakePoolVRF | |
| GenDelegVRF | |
| BlockIssuerVRF |
hashVerKeyVRF ∷ ∀ c (r ∷ KeyRoleVRF). Crypto c ⇒ VerKeyVRF (VRF c) → VRFVerKeyHash r Source #