cardano-ledger-core-0.1.0.0: Core components of Cardano ledgers from the Shelley release on.
Safe Haskell None
Language Haskell2010

Cardano.Ledger.Hashes

Description

Various identifiers in the ledger are hashes of particular structures. While the structures may change from era to era, the hash will remain the same, and we can refer to the hash of, say, a transaction, without knowing the actual transaction type. As such, we define a number of these hashes here.

Synopsis

Era-independent hash type identifiers.

Script hashes

newtype ScriptHash crypto Source #

Instances

Instances details
Eq ( ScriptHash crypto) Source #
Instance details

Defined in Cardano.Ledger.Hashes

Ord ( ScriptHash crypto) Source #
Instance details

Defined in Cardano.Ledger.Hashes

Show ( ScriptHash crypto) Source #
Instance details

Defined in Cardano.Ledger.Hashes

Generic ( ScriptHash crypto) Source #
Instance details

Defined in Cardano.Ledger.Hashes

Associated Types

type Rep ( ScriptHash crypto) :: Type -> Type Source #

NFData ( ScriptHash crypto) Source #
Instance details

Defined in Cardano.Ledger.Hashes

Methods

rnf :: ScriptHash crypto -> () Source #

Crypto crypto => ToJSON ( ScriptHash crypto) Source #
Instance details

Defined in Cardano.Ledger.Hashes

Crypto crypto => FromJSON ( ScriptHash crypto) Source #
Instance details

Defined in Cardano.Ledger.Hashes

Crypto crypto => ToCBOR ( ScriptHash crypto) Source #
Instance details

Defined in Cardano.Ledger.Hashes

Crypto crypto => FromCBOR ( ScriptHash crypto) Source #
Instance details

Defined in Cardano.Ledger.Hashes

NoThunks ( ScriptHash crypto) Source #
Instance details

Defined in Cardano.Ledger.Hashes

type Rep ( ScriptHash crypto) Source #
Instance details

Defined in Cardano.Ledger.Hashes

type Rep ( ScriptHash crypto) = D1 (' MetaData "ScriptHash" "Cardano.Ledger.Hashes" "cardano-ledger-core-0.1.0.0-3EJt5rxsPizAWHDEqGPh9V" ' True ) ( C1 (' MetaCons "ScriptHash" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Hash ( ADDRHASH crypto) EraIndependentScript ))))