cardano-ledger-shelley-1.16.0.0: Shelley Ledger Executable Model
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Ledger.Shelley.TxWits

Synopsis

Documentation

decodeWits ∷ ∀ era s. EraScript era ⇒ Decoder s (Annotator (ShelleyTxWitsRaw era)) Source #

data ShelleyTxWits era where Source #

Bundled Patterns

pattern ShelleyTxWits ∷ ∀ era. EraScript era ⇒ Set (WitVKey 'Witness) → Map ScriptHash (Script era) → Set BootstrapWitnessShelleyTxWits era 

Instances

Instances details
Memoized ShelleyTxWits Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Associated Types

type RawType ShelleyTxWits = (r ∷ TypeType) Source #

EraScript era ⇒ Monoid (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

EraScript era ⇒ Semigroup (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Generic (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Associated Types

type Rep (ShelleyTxWits era) ∷ TypeType Source #

Methods

fromShelleyTxWits era → Rep (ShelleyTxWits era) x Source #

toRep (ShelleyTxWits era) x → ShelleyTxWits era Source #

EraScript era ⇒ Show (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Typeable era ⇒ ToCBOR (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Methods

toCBORShelleyTxWits era → Encoding Source #

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

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

EraScript era ⇒ DecCBOR (Annotator (ShelleyTxWits era)) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Era era ⇒ EncCBOR (ShelleyTxWits era) Source #

Encodes memoized bytes created upon construction.

Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Methods

encCBORShelleyTxWits era → Encoding Source #

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

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

SafeToHash (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

(TxWits era ~ ShelleyTxWits era, EraTxWits era) ⇒ EqRaw (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Methods

eqRawShelleyTxWits era → ShelleyTxWits era → Bool Source #

(Era era, NFData (Script era), NFData (WitVKey 'Witness), NFData BootstrapWitness) ⇒ NFData (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Methods

rnfShelleyTxWits era → () Source #

EraScript era ⇒ Eq (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Methods

(==)ShelleyTxWits era → ShelleyTxWits era → Bool Source #

(/=)ShelleyTxWits era → ShelleyTxWits era → Bool Source #

EraScript era ⇒ NoThunks (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

type RawType ShelleyTxWits Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

type Rep (ShelleyTxWits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

type Rep (ShelleyTxWits era) = D1 ('MetaData "ShelleyTxWits" "Cardano.Ledger.Shelley.TxWits" "cardano-ledger-shelley-1.16.0.0-inplace" 'True) (C1 ('MetaCons "ShelleyTxWitsConstr" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes ShelleyTxWitsRaw era))))

data ShelleyTxWitsRaw era Source #

Instances

Instances details
Generic (ShelleyTxWitsRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Associated Types

type Rep (ShelleyTxWitsRaw era) ∷ TypeType Source #

EraScript era ⇒ Show (ShelleyTxWitsRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

EraScript era ⇒ DecCBOR (Annotator (ShelleyTxWitsRaw era)) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

(Era era, EncCBOR (Script era)) ⇒ EncCBOR (ShelleyTxWitsRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Methods

encCBORShelleyTxWitsRaw era → Encoding Source #

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

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

(Era era, NFData (Script era), NFData (WitVKey 'Witness), NFData BootstrapWitness) ⇒ NFData (ShelleyTxWitsRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

Methods

rnfShelleyTxWitsRaw era → () Source #

EraScript era ⇒ Eq (ShelleyTxWitsRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

EraScript era ⇒ NoThunks (ShelleyTxWitsRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

type Rep (ShelleyTxWitsRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

type Rep (ShelleyTxWitsRaw era) = D1 ('MetaData "ShelleyTxWitsRaw" "Cardano.Ledger.Shelley.TxWits" "cardano-ledger-shelley-1.16.0.0-inplace" 'False) (C1 ('MetaCons "ShelleyTxWitsRaw" 'PrefixI 'True) (S1 ('MetaSel ('Just "addrWits'") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set (WitVKey 'Witness))) :*: (S1 ('MetaSel ('Just "scriptWits'") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map ScriptHash (Script era))) :*: S1 ('MetaSel ('Just "bootWits'") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set BootstrapWitness)))))

scriptShelleyTxWitsLEraScript era ⇒ Lens' (ShelleyTxWits era) (Map ScriptHash (Script era)) Source #

Script witness setter and getter for ShelleyTxWits. The setter does update memoized binary representation.

addrShelleyTxWitsLEraScript era ⇒ Lens' (ShelleyTxWits era) (Set (WitVKey 'Witness)) Source #

Addresses witness setter and getter for ShelleyTxWits. The setter does update memoized binary representation.

bootAddrShelleyTxWitsLEraScript era ⇒ Lens' (ShelleyTxWits era) (Set BootstrapWitness) Source #

Bootstrap Addresses witness setter and getter for ShelleyTxWits. The setter does update memoized binary representation.

shelleyEqTxWitsRawEraTxWits era ⇒ TxWits era → TxWits era → Bool Source #

mapTraverseableDecoderATraversable f ⇒ Decoder s (f (Annotator a)) → (f a → m b) → Decoder s (Annotator (m b)) Source #

Re-exports

data WitVKey (kr ∷ KeyRole) where Source #

Proof/Witness that a transaction is authorized by the given key holder.

Bundled Patterns

pattern WitVKeyTypeable kr ⇒ VKey kr → SignedDSIGN DSIGN (Hash HASH EraIndependentTxBody) → WitVKey kr 

Instances

Instances details
Generic (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Associated Types

type Rep (WitVKey kr) ∷ TypeType Source #

Methods

fromWitVKey kr → Rep (WitVKey kr) x Source #

toRep (WitVKey kr) x → WitVKey kr Source #

Show (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

showsPrecIntWitVKey kr → ShowS Source #

showWitVKey kr → String Source #

showList ∷ [WitVKey kr] → ShowS Source #

Typeable kr ⇒ ToCBOR (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

toCBORWitVKey kr → Encoding Source #

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

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

Typeable kr ⇒ DecCBOR (Annotator (WitVKey kr)) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Typeable kr ⇒ EncCBOR (WitVKey kr)

Encodes memoized bytes created upon construction.

Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

encCBORWitVKey kr → Encoding Source #

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

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

Typeable kr ⇒ EqRaw (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

eqRawWitVKey kr → WitVKey kr → Bool Source #

NFData (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

rnfWitVKey kr → () Source #

Eq (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

(==)WitVKey kr → WitVKey kr → Bool Source #

(/=)WitVKey kr → WitVKey kr → Bool Source #

Typeable kr ⇒ Ord (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

compareWitVKey kr → WitVKey kr → Ordering Source #

(<)WitVKey kr → WitVKey kr → Bool Source #

(<=)WitVKey kr → WitVKey kr → Bool Source #

(>)WitVKey kr → WitVKey kr → Bool Source #

(>=)WitVKey kr → WitVKey kr → Bool Source #

maxWitVKey kr → WitVKey kr → WitVKey kr Source #

minWitVKey kr → WitVKey kr → WitVKey kr Source #

Typeable kr ⇒ NoThunks (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

type Rep (WitVKey kr) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

type Rep (WitVKey kr) = D1 ('MetaData "WitVKey" "Cardano.Ledger.Keys.WitVKey" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "WitVKeyInternal" 'PrefixI 'True) ((S1 ('MetaSel ('Just "wvkKey") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (VKey kr)) :*: S1 ('MetaSel ('Just "wvkSig") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (SignedDSIGN DSIGN (Hash HASH EraIndependentTxBody)))) :*: (S1 ('MetaSel ('Just "wvkKeyHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (KeyHash 'Witness)) :*: S1 ('MetaSel ('Just "wvkBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))))

Orphan instances