Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
- data EraIndependentTxBody
- data EraIndependentBlockHeader
- data EraIndependentBlockBody
- data EraIndependentMetadata
- data EraIndependentScript
- data EraIndependentData
- data EraIndependentScriptData
- data EraIndependentTxAuxData
- data EraIndependentPParamView
- data EraIndependentScriptIntegrity
- newtype ScriptHash c = ScriptHash (Hash (ADDRHASH c) EraIndependentScript)
- type DataHash c = SafeHash c EraIndependentData
Era-independent hash type identifiers.
data EraIndependentTxBody Source #
data EraIndependentScript Source #
data EraIndependentData Source #
Instances
Crypto c ⇒ HeapWords (StrictMaybe (DataHash c)) Source # | |
Defined in Cardano.Ledger.Plutus.Data | |
EraCrypto era ~ c ⇒ HashAnnotated (BinaryData era) EraIndependentData c Source # | |
Defined in Cardano.Ledger.Plutus.Data indexProxy ∷ BinaryData era → Proxy EraIndependentData Source # hashAnnotated ∷ BinaryData era → SafeHash c EraIndependentData Source # | |
EraCrypto era ~ c ⇒ HashAnnotated (Data era) EraIndependentData c Source # | |
Defined in Cardano.Ledger.Plutus.Data indexProxy ∷ Data era → Proxy EraIndependentData Source # hashAnnotated ∷ Data era → SafeHash c EraIndependentData Source # |
Script hashes
newtype ScriptHash c Source #
Instances
type DataHash c = SafeHash c EraIndependentData Source #