HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Modulebyron-spec-ledger-1.1.0.1Haskell2010

Byron.Spec.Ledger.Core

  • 13 types
  • 3 classes
  • 20 values
newtypenewtype Hash
#

An encoded hash of part of the system.

Nothing is used to signal to the elaborators (i.e. the algorithms that translate abstract data into data concrete) that they should produce an invalid concrete hash.

Constructors

Instances11Eq, Data, Ord, Show, Generic, Hashable, …
classclass HasHash a where
#

Hash part of the ledger payload

Methods

Instances7HasHash, …
  • HasHash AddrDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
  • HasHash VKeyDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
  • HasHash VKeyGenesisDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
  • HasHash TxBodyDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.UTxO
  • HasHash [DCert]Defined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • HasHash [Tx]Defined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.UTxO
  • HasHash (Maybe UProp, [Vote])Defined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Update
newtypenewtype Owner
#

Representation of the owner of key pair.

Constructors

Instances13Eq, Data, Ord, Show, Generic, Hashable, …
classclass HasOwner a where
#

Methods

Instances4HasOwner
  • HasOwner AddrDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
  • HasOwner SKeyDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
  • HasOwner VKeyDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
  • HasOwner VKeyGenesisDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
newtypenewtype SKey
#

Signing Key.

Constructors

Instances11Eq, Data, Ord, Show, Generic, NoThunks, …
newtypenewtype VKey
#

Verification Key.

Constructors

Instances19Eq, Data, Ord, Show, Generic, Hashable, …
newtypenewtype VKeyGenesis
#

A genesis key is a specialisation of a generic VKey.

Instances24Eq, Data, Ord, Show, Generic, Hashable, …
valuemkVkGenesisSet
  1. :: Word8

    Number of genesis keys

  2. -> Set VKeyGenesis
#

Make a set of genesis keys. The genesis keys are continuously numbered from 0 to the given number of genesis keys minus 1.

datadata KeyPair
#

Key Pair.

Constructors

Instances7Eq, Ord, Show, Generic, NoThunks, HasTypeReps, …
datadata Sig a
#

A digital signature.

Constructors

Instances9Eq, Data, Ord, Show, Generic, Hashable, …
valuesign :: SKey -> a -> Sig a
#

Produce a digital signature

newtypenewtype Epoch
#

Constructors

Instances15Eq, Data, Num, Ord, Show, Generic, …
  • Eq EpochDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
  • Data EpochDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
  • Num EpochDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
  • Ord EpochDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
  • Show EpochDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
  • Generic EpochDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
  • Hashable EpochDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
  • NoThunks EpochDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
  • ToCBOR EpochDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
  • EncCBOR EpochDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
  • HasTypeReps EpochDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
  • HasEpoch DSEnv EpochDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • HasKeyEpochDelegations DIState (Set (Epoch, VKeyGenesis))Defined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • HasKeyEpochDelegations DSState (Set (Epoch, VKeyGenesis))Defined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • type Rep Epoch = D1 ('MetaData "Epoch" "Byron.Spec.Ledger.Core" "byron-spec-ledger-1.1.0.1-IG07fLX99Su7spby3aHJ3g" 'True) (C1 ('MetaCons "Epoch" 'PrefixI 'True) (S1 ('MetaSel ('Just "unEpoch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))Defined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
newtypenewtype Slot
#

Constructors

Instances16Eq, Data, Ord, Show, Generic, Hashable, …
newtypenewtype SlotCount
#

A number of slots.

We use this newtype to distinguish between a cardinal slot and a relative period of slots, and also to distinguish between number of slots and number of blocks.

Instances12Eq, Data, Num, Ord, Show, Generic, …
value(*.) :: Word64 -> BlockCount -> SlotCount
#

Multiply the block count by the given constant. This function does not check for overflow.

newtypenewtype BlockCount
#
Instances14Eq, Num, Ord, Show, Generic, Hashable, …
newtypenewtype Addr
#

The address of a transaction output, used to identify the owner.

Constructors

Instances13Eq, Data, Ord, Show, Generic, Hashable, …
newtypenewtype Lovelace
#

A unit of value held by a UTxO.

Instances17Enum, Eq, Integral, Data, Num, Ord, …
classclass Relation m where
#

Associated types

Methods

Instances5Relation
  • Relation UTxODefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.UTxO
  • Relation (Set (a, b))Defined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
  • Relation [(a, b)]Defined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
  • Relation (Map k v)Defined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
  • (Ord k, Ord v) => Relation (Bimap k v)Defined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Core
value(∪+) :: (Ord a, Ord b, Num b) => Map a b -> Map a b -> Map a b
#

Union override plus is (AB)∪(BA)∪{k|->v1+v2 | k|->v1 : A / k|->v2 : B}