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

Cardano.Ledger.Credential

Synopsis

Documentation

data Credential (kr :: KeyRole ) crypto Source #

Script hash or key hash for a payment or a staking object.

Note that credentials (unlike raw key hashes) do appear to vary from era to era, since they reference the hash of a script, which can change. This parameter is a phantom, however, so in actuality the instances will remain the same.

Constructors

ScriptHashObj !( ScriptHash crypto)
KeyHashObj !( KeyHash kr crypto)

Instances

Instances details
HasKeyRole Credential Source #
Instance details

Defined in Cardano.Ledger.Credential

Methods

coerceKeyRole :: forall (r :: KeyRole ) crypto (r' :: KeyRole ). Credential r crypto -> Credential r' crypto Source #

UnifiedView Coin ( Credential ' Staking crypto) ( KeyHash ' StakePool crypto) Ptr Ptr ( Credential ' Staking crypto) Source #
Instance details

Defined in Cardano.Ledger.UnifiedMap

UnifiedView Coin ( Credential ' Staking crypto) ( KeyHash ' StakePool crypto) Ptr ( Credential ' Staking crypto) Coin Source #
Instance details

Defined in Cardano.Ledger.UnifiedMap

UnifiedView Coin ( Credential ' Staking crypto) ( KeyHash ' StakePool crypto) Ptr ( Credential ' Staking crypto) ( KeyHash ' StakePool crypto) Source #
Instance details

Defined in Cardano.Ledger.UnifiedMap

Eq ( Credential kr crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

Ord ( Credential kr crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

Show ( Credential kr crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

Generic ( Credential kr crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

Associated Types

type Rep ( Credential kr crypto) :: Type -> Type Source #

NFData ( Credential kr crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

Methods

rnf :: Credential kr crypto -> () Source #

Crypto crypto => ToJSON ( Credential kr crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

Crypto crypto => ToJSONKey ( Credential kr crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

Crypto crypto => FromJSON ( Credential kr crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

Crypto crypto => FromJSONKey ( Credential kr crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

( Typeable kr, Crypto crypto) => ToCBOR ( Credential kr crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

( Typeable kr, Crypto crypto) => FromCBOR ( Credential kr crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

NoThunks ( Credential kr crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

type Rep ( Credential kr crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

type Rep ( Credential kr crypto) = D1 (' MetaData "Credential" "Cardano.Ledger.Credential" "cardano-ledger-core-0.1.0.0-3EJt5rxsPizAWHDEqGPh9V" ' False ) ( C1 (' MetaCons "ScriptHashObj" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( ScriptHash crypto))) :+: C1 (' MetaCons "KeyHashObj" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( KeyHash kr crypto))))

newtype GenesisCredential crypto Source #

Instances

Instances details
Eq ( GenesisCredential crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

Ord ( GenesisCredential crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

Show ( GenesisCredential crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

Generic ( GenesisCredential crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

Associated Types

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

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

Defined in Cardano.Ledger.Credential

type Rep ( GenesisCredential crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

type Rep ( GenesisCredential crypto) = D1 (' MetaData "GenesisCredential" "Cardano.Ledger.Credential" "cardano-ledger-core-0.1.0.0-3EJt5rxsPizAWHDEqGPh9V" ' True ) ( C1 (' MetaCons "GenesisCredential" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unGenesisCredential") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( KeyHash ' Genesis crypto))))

data Ptr Source #

Pointer to a slot number, transaction index and an index in certificate list.

Instances

Instances details
Eq Ptr Source #
Instance details

Defined in Cardano.Ledger.Credential

Ord Ptr Source #
Instance details

Defined in Cardano.Ledger.Credential

Show Ptr Source #
Instance details

Defined in Cardano.Ledger.Credential

Generic Ptr Source #
Instance details

Defined in Cardano.Ledger.Credential

Associated Types

type Rep Ptr :: Type -> Type Source #

NFData Ptr Source #
Instance details

Defined in Cardano.Ledger.Credential

Methods

rnf :: Ptr -> () Source #

ToCBOR Ptr Source #
Instance details

Defined in Cardano.Ledger.Credential

FromCBOR Ptr Source #
Instance details

Defined in Cardano.Ledger.Credential

NoThunks Ptr Source #
Instance details

Defined in Cardano.Ledger.Credential

FromCBORGroup Ptr Source #
Instance details

Defined in Cardano.Ledger.Credential

ToCBORGroup Ptr Source #
Instance details

Defined in Cardano.Ledger.Credential

UnifiedView Coin ( Credential ' Staking crypto) ( KeyHash ' StakePool crypto) Ptr Ptr ( Credential ' Staking crypto) Source #
Instance details

Defined in Cardano.Ledger.UnifiedMap

UnifiedView Coin ( Credential ' Staking crypto) ( KeyHash ' StakePool crypto) Ptr ( Credential ' Staking crypto) Coin Source #
Instance details

Defined in Cardano.Ledger.UnifiedMap

UnifiedView Coin ( Credential ' Staking crypto) ( KeyHash ' StakePool crypto) Ptr ( Credential ' Staking crypto) ( KeyHash ' StakePool crypto) Source #
Instance details

Defined in Cardano.Ledger.UnifiedMap

type Rep Ptr Source #
Instance details

Defined in Cardano.Ledger.Credential

data StakeReference crypto Source #

Instances

Instances details
Eq ( StakeReference crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

Ord ( StakeReference crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

Show ( StakeReference crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

Generic ( StakeReference crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

Associated Types

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

NFData ( StakeReference crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

NoThunks ( StakeReference crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential

type Rep ( StakeReference crypto) Source #
Instance details

Defined in Cardano.Ledger.Credential