cardano-ledger-byron-1.0.1.0: The blockchain layer of Cardano during the Byron era
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Chain.Genesis.Delegation

Synopsis

Documentation

newtype GenesisDelegation Source #

This type contains genesis state of heavyweight delegation. It wraps a map where keys are issuers and values are delegation certificates. There are some invariants:

  1. In each pair delegate must differ from issuer, i. e. no revocations.
  2. PSKs must be consistent with keys in the map, i. e. issuer's ID must be equal to the key in the map.
  3. Delegates can't be issuers, i. e. transitive delegation is not supported. It's not needed in genesis, it can always be reduced.

Instances

Instances details
Show GenesisDelegation Source # 
Instance details

Defined in Cardano.Chain.Genesis.Delegation

FromCBOR GenesisDelegation Source # 
Instance details

Defined in Cardano.Chain.Genesis.Delegation

ToCBOR GenesisDelegation Source # 
Instance details

Defined in Cardano.Chain.Genesis.Delegation

DecCBOR GenesisDelegation Source # 
Instance details

Defined in Cardano.Chain.Genesis.Delegation

EncCBOR GenesisDelegation Source # 
Instance details

Defined in Cardano.Chain.Genesis.Delegation

Eq GenesisDelegation Source # 
Instance details

Defined in Cardano.Chain.Genesis.Delegation

NoThunks GenesisDelegation Source # 
Instance details

Defined in Cardano.Chain.Genesis.Delegation

MonadError SchemaError m ⇒ FromJSON m GenesisDelegation Source # 
Instance details

Defined in Cardano.Chain.Genesis.Delegation

Monad m ⇒ ToJSON m GenesisDelegation Source # 
Instance details

Defined in Cardano.Chain.Genesis.Delegation