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

Cardano.Ledger.Shelley.API.ByronTranslation

Synopsis

Documentation

Exported for testing purposes

translateTxIdByronToShelley ∷ (Crypto c, ADDRHASH c ~ Blake2b_224) ⇒ TxIdTxId 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.