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

Cardano.Ledger.Address

Synopsis

Documentation

serialiseAddr :: Addr crypto -> ByteString Source #

Serialise an address to the external format.

deserialiseAddr :: Crypto crypto => ByteString -> Maybe ( Addr crypto) 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).

deserialiseAddrStakeRef :: Crypto crypto => ByteString -> Maybe ( StakeReference crypto) Source #

Deserialise a stake refence from a address. This will fail if this is a Bootstrap address (or malformed).

data Addr crypto Source #

An address for UTxO.

Contents of Addr data type are intentionally left as lazy, otherwise operating on compact form of an address will result in redundant work.

Instances

Instances details
Eq ( Addr crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

Ord ( Addr crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

Show ( Addr crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

Generic ( Addr crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

Associated Types

type Rep ( Addr crypto) :: Type -> Type Source #

Methods

from :: Addr crypto -> Rep ( Addr crypto) x Source #

to :: Rep ( Addr crypto) x -> Addr crypto Source #

NFData ( Addr crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

Methods

rnf :: Addr crypto -> () Source #

ToJSON ( Addr crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

ToJSONKey ( Addr crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

Crypto crypto => FromJSON ( Addr crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

Crypto crypto => FromJSONKey ( Addr crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

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

Defined in Cardano.Ledger.Address

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

Defined in Cardano.Ledger.Address

NoThunks ( Addr crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

type Rep ( Addr crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

newtype BootstrapAddress crypto Source #

Instances

Instances details
Eq ( BootstrapAddress crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

Ord ( BootstrapAddress crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

Show ( BootstrapAddress crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

Generic ( BootstrapAddress crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

Associated Types

type Rep ( BootstrapAddress crypto) :: Type -> Type Source #

NFData ( BootstrapAddress crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

NoThunks ( BootstrapAddress crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

type Rep ( BootstrapAddress crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

type Rep ( BootstrapAddress crypto) = D1 (' MetaData "BootstrapAddress" "Cardano.Ledger.Address" "cardano-ledger-core-0.1.0.0-3EJt5rxsPizAWHDEqGPh9V" ' True ) ( C1 (' MetaCons "BootstrapAddress" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unBootstrapAddress") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Address )))

bootstrapAddressAttrsSize :: BootstrapAddress crypto -> Int Source #

The size of the extra attributes in a bootstrp (ie Byron) address. Used to help enforce that people do not post huge ones on the chain.

isBootstrapRedeemer :: BootstrapAddress crypto -> Bool Source #

Return True if a given address is a redeemer address from the Byron Era

data RewardAcnt crypto Source #

An account based address for rewards

Instances

Instances details
Eq ( RewardAcnt crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

Ord ( RewardAcnt crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

Show ( RewardAcnt crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

Generic ( RewardAcnt crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

Associated Types

type Rep ( RewardAcnt crypto) :: Type -> Type Source #

NFData ( RewardAcnt crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

Methods

rnf :: RewardAcnt crypto -> () Source #

Crypto crypto => ToJSON ( RewardAcnt crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

Crypto crypto => ToJSONKey ( RewardAcnt crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

Crypto crypto => FromJSON ( RewardAcnt crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

Crypto crypto => FromJSONKey ( RewardAcnt crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

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

Defined in Cardano.Ledger.Address

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

Defined in Cardano.Ledger.Address

NoThunks ( RewardAcnt crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

type Rep ( RewardAcnt crypto) Source #
Instance details

Defined in Cardano.Ledger.Address

type Rep ( RewardAcnt crypto) = D1 (' MetaData "RewardAcnt" "Cardano.Ledger.Address" "cardano-ledger-core-0.1.0.0-3EJt5rxsPizAWHDEqGPh9V" ' False ) ( C1 (' MetaCons "RewardAcnt" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "getRwdNetwork") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Network ) :*: S1 (' MetaSel (' Just "getRwdCred") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( Credential ' Staking crypto))))

serialiseRewardAcnt :: RewardAcnt crypto -> ByteString Source #

Serialise a reward account to the external format.

deserialiseRewardAcnt :: Crypto crypto => ByteString -> Maybe ( RewardAcnt crypto) 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).