shelley-spec-ledger-0.1.0.0
Safe HaskellNone
LanguageHaskell98

Shelley.Spec.Ledger.API.ByronTranslation

Synopsis

Documentation

mkInitialShelleyLedgerView ∷ ∀ c. ShelleyGenesis (ShelleyEra c) → LedgerView c Source #

We construct a LedgerView using the Shelley genesis config in the same way as translateToShelleyLedgerState.

Exported for testing purposes

translateTxIdByronToShelley ∷ (Crypto c, ADDRHASH c ~ Blake2b_224) ⇒ TxIdTxId (ShelleyEra c) Source #

We use the same hashing algorithm so we can unwrap and rewrap the bytes. We don't care about the type that is hashed, which will differ going from Byron to Shelley, we just use the hashes as IDs.