cardano-ledger-core-1.15.1.0: Core components of Cardano ledgers from the Shelley release on.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Ledger.Core.Address

Contents

Description

This module contains previous implementations for Addr and CoompactAddr deserialization. This is used as an alternative implementation for testing and as a perforance reference for benchmarking.

Synopsis

Documentation

deserialiseAddrOld ∷ ∀ c m. (Crypto c, MonadFail m) ⇒ ByteString → m (Addr c) Source #

Deserialise an address from the external format. This will fail if the input data is not in the right format (or if there is trailing data).

deserialiseRewardAccountOld ∷ ∀ c m. (Crypto c, MonadFail m) ⇒ ByteString → m (RewardAccount c) Source #

Deserialise an reward account from the external format. This will fail if the input data is not in the right format (or if there is trailing data).

decompactAddrOldCrypto c ⇒ CompactAddr c → Addr c Source #

This is an old decompacter that didn't guard against random junk at the end.

decompactAddrOldLazy ∷ ∀ c. Crypto c ⇒ CompactAddr c → Addr c Source #

This lazy deserializer is kept around purely for benchmarking, so we can verify that new deserializer decodeAddrStateT is doing the work lazily.

Deprecations

deserialiseRewardAcntOld ∷ ∀ c m. (Crypto c, MonadFail m) ⇒ ByteString → m (RewardAccount c) Source #

Deprecated: Use deserialiseRewardAccountOld instead