cardano-protocol-tpraos-1.4.0.0: Cardano Protocol: Transitional Praos
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Protocol.Crypto

Description

Package all the crypto constraints into one place.

Synopsis

Documentation

class (UnsoundPureKESAlgorithm (KES c), VRFAlgorithm (VRF c), ContextKES (KES c) ~ (), ContextVRF (VRF c) ~ (), Typeable c) ⇒ Crypto c Source #

Associated Types

type KES c Source #

type VRF c Source #

Instances

Instances details
Crypto StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto.Internal

Associated Types

type KES StandardCrypto Source #

type VRF StandardCrypto Source #

data StandardCrypto Source #

The same crypto used on the net

Instances

Instances details
Crypto StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto.Internal

Associated Types

type KES StandardCrypto Source #

type VRF StandardCrypto Source #

PraosCrypto StandardCrypto Source # 
Instance details

Defined in Cardano.Protocol.TPraos.API

type KES StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto.Internal

type VRF StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto.Internal

newtype VRFVerKeyHash (r ∷ KeyRoleVRF) Source #

Discriminated hash of VRF Verification Key

Instances

Instances details
FromJSON (VRFVerKeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

FromJSONKey (VRFVerKeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

ToJSON (VRFVerKeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

ToJSONKey (VRFVerKeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

Generic (VRFVerKeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

Associated Types

type Rep (VRFVerKeyHash r) ∷ TypeType Source #

Show (VRFVerKeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

Typeable r ⇒ FromCBOR (VRFVerKeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

Typeable r ⇒ ToCBOR (VRFVerKeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

toCBORVRFVerKeyHash r → Encoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (VRFVerKeyHash r) → Size Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [VRFVerKeyHash r] → Size Source #

Typeable r ⇒ DecCBOR (VRFVerKeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

Typeable r ⇒ EncCBOR (VRFVerKeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

encCBORVRFVerKeyHash r → Encoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy (VRFVerKeyHash r) → Size Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [VRFVerKeyHash r] → Size Source #

Default (VRFVerKeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

defVRFVerKeyHash r Source #

NFData (VRFVerKeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

Methods

rnfVRFVerKeyHash r → () Source #

Eq (VRFVerKeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

Ord (VRFVerKeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

NoThunks (VRFVerKeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes

type Rep (VRFVerKeyHash r) 
Instance details

Defined in Cardano.Ledger.Hashes