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

Cardano.Ledger.CompactAddress

Synopsis

Documentation

decompactAddr :: forall crypto. Crypto crypto => CompactAddr crypto -> Addr crypto Source #

newtype CompactAddr crypto Source #

Instances

Instances details
Eq ( CompactAddr crypto) Source #
Instance details

Defined in Cardano.Ledger.CompactAddress

Ord ( CompactAddr crypto) Source #
Instance details

Defined in Cardano.Ledger.CompactAddress

Crypto c => Show ( CompactAddr c) Source #
Instance details

Defined in Cardano.Ledger.CompactAddress

NFData ( CompactAddr crypto) Source #
Instance details

Defined in Cardano.Ledger.CompactAddress

Methods

rnf :: CompactAddr crypto -> () Source #

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

Defined in Cardano.Ledger.CompactAddress

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

Defined in Cardano.Ledger.CompactAddress

isPayCredScriptCompactAddr :: CompactAddr crypto -> Bool Source #

Efficiently check whether compated adddress is an address with a credential that is a payment script.

isBootstrapCompactAddr :: CompactAddr crypto -> Bool Source #

Efficiently check whether compated adddress is a Byron address.

decodeAddr :: forall crypto m. ( Crypto crypto, MonadFail m) => ByteString -> m ( Addr crypto) Source #

fromCborAddr :: forall crypto s. Crypto crypto => Decoder s ( Addr crypto) Source #

fromCborBothAddr :: forall crypto s. Crypto crypto => Decoder s ( Addr crypto, CompactAddr crypto) Source #

decodeRewardAcnt :: forall crypto b m. ( Crypto crypto, AddressBuffer b, MonadFail m) => b -> m ( RewardAcnt crypto) Source #

Exported for benchmarking only

decompactAddrLazy :: forall crypto. Crypto crypto => CompactAddr crypto -> Addr crypto Source #

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