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

Cardano.Chain.Delegation.Certificate

Synopsis

Certificate

data ACertificate a Source #

Delegation certificate allowing the delegateVK to sign blocks on behalf of issuerVK

Each delegator can publish at most one Certificate per EpochNumber, and that EpochNumber must correspond to the current or next EpochNumber at the time of publishing

Constructors

UnsafeACertificate 

Fields

Instances

Instances details
Functor ACertificate Source # 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

Methods

fmap ∷ (a → b) → ACertificate a → ACertificate b Source #

(<$) ∷ a → ACertificate b → ACertificate a Source #

FromCBOR Certificate Source # 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

ToCBOR Certificate Source # 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

Methods

toCBORCertificateEncoding Source #

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

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

DecCBOR Certificate Source # 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

EncCBOR Certificate Source # 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

Methods

encCBORCertificateEncoding Source #

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

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

MonadError SchemaError m ⇒ FromJSON m Certificate Source # 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

Monad m ⇒ ToJSON m Certificate Source # 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

Methods

toJSONCertificate → m JSValue Source #

ToJSON a ⇒ ToJSON (ACertificate a) Source # 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

Generic (ACertificate a) Source # 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

Associated Types

type Rep (ACertificate a) ∷ TypeType Source #

Show a ⇒ Show (ACertificate a) Source # 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

FromCBOR (ACertificate ByteSpan) Source # 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

Decoded (ACertificate ByteString) Source # 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

Associated Types

type BaseType (ACertificate ByteString) Source #

DecCBOR (ACertificate ByteSpan) Source # 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

NFData a ⇒ NFData (ACertificate a) Source # 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

Methods

rnfACertificate a → () Source #

Buildable (ACertificate a) Source # 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

Methods

buildACertificate a → Builder Source #

Eq a ⇒ Eq (ACertificate a) Source # 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

Ord a ⇒ Ord (ACertificate a) Source # 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

NoThunks a ⇒ NoThunks (ACertificate a) Source # 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

type Rep (ACertificate a) Source # 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

type Rep (ACertificate a) = D1 ('MetaData "ACertificate" "Cardano.Chain.Delegation.Certificate" "cardano-ledger-byron-1.0.1.0-inplace" 'False) (C1 ('MetaCons "UnsafeACertificate" 'PrefixI 'True) ((S1 ('MetaSel ('Just "aEpoch") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Annotated EpochNumber a)) :*: S1 ('MetaSel ('Just "issuerVK") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 VerificationKey)) :*: (S1 ('MetaSel ('Just "delegateVK") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 VerificationKey) :*: (S1 ('MetaSel ('Just "signature") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Signature EpochNumber)) :*: S1 ('MetaSel ('Just "annotation") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a)))))
type BaseType (ACertificate ByteString) Source # 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

type CertificateId = Hash Certificate Source #

A delegation certificate identifier (the Hash of a Certificate).

Certificate Constructors

signCertificateProtocolMagicIdVerificationKeyEpochNumberSafeSignerCertificate Source #

Create a Certificate, signing it with the provided safe signer.

unsafeCertificate Source #

Arguments

EpochNumber 
VerificationKey

The issuer of the certificate. See UnsafeACertificate.

VerificationKey

The delegate of the certificate. See UnsafeACertificate.

Signature EpochNumber 
Certificate 

Create a certificate using the provided signature.

Certificate Accessor

Certificate Predicate