| Safe Haskell | Safe-Inferred |
|---|---|
| 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 ∷ 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 | |
data StandardCrypto Source #
The same crypto used on the net
Instances
| Crypto StandardCrypto | |
Defined in Cardano.Ledger.Crypto.Internal | |
| 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
Constructors
| VRFVerKeyHash | |
Fields | |
Instances
data KeyRoleVRF Source #
Constructors
| StakePoolVRF | |
| GenDelegVRF | |
| BlockIssuerVRF |
hashVerKeyVRF ∷ Crypto c ⇒ VerKeyVRF (VRF c) → VRFVerKeyHash (r ∷ KeyRoleVRF) Source #