cardano-api-1.35.4
Safe Haskell None
Language Haskell2010

Cardano.Api.Shelley

Description

This module provides a library interface that is intended to be the complete API for Shelley covering everything, including exposing constructors for the lower level types.

Synopsis

Documentation

Genesis

data ShelleyGenesis era Source #

Shelley genesis information

Note that this is needed only for a pure Shelley network, hence it being defined here rather than in its own module. In mainnet, Shelley will transition naturally from Byron, and thus will never have its own genesis information.

Instances

Instances details
Eq ( ShelleyGenesis era)
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Show ( ShelleyGenesis era)
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Generic ( ShelleyGenesis era)
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Associated Types

type Rep ( ShelleyGenesis era) :: Type -> Type Source #

Era era => ToJSON ( ShelleyGenesis era)
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Era era => FromJSON ( ShelleyGenesis era)
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Era era => ToCBOR ( ShelleyGenesis era)
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Era era => FromCBOR ( ShelleyGenesis era)
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Era era => NoThunks ( ShelleyGenesis era)
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

type Rep ( ShelleyGenesis era)
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

type Rep ( ShelleyGenesis era) = D1 (' MetaData "ShelleyGenesis" "Cardano.Ledger.Shelley.Genesis" "cardano-ledger-shelley-0.1.0.0-4LNBTpyKcsy6EW18a3tTt2" ' False ) ( C1 (' MetaCons "ShelleyGenesis" ' PrefixI ' True ) ((( S1 (' MetaSel (' Just "sgSystemStart") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 UTCTime ) :*: ( S1 (' MetaSel (' Just "sgNetworkMagic") ' NoSourceUnpackedness ' SourceStrict ' DecidedUnpack ) ( Rec0 Word32 ) :*: S1 (' MetaSel (' Just "sgNetworkId") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Network ))) :*: (( S1 (' MetaSel (' Just "sgActiveSlotsCoeff") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 PositiveUnitInterval ) :*: S1 (' MetaSel (' Just "sgSecurityParam") ' NoSourceUnpackedness ' SourceStrict ' DecidedUnpack ) ( Rec0 Word64 )) :*: ( S1 (' MetaSel (' Just "sgEpochLength") ' NoSourceUnpackedness ' SourceStrict ' DecidedUnpack ) ( Rec0 EpochSize ) :*: S1 (' MetaSel (' Just "sgSlotsPerKESPeriod") ' NoSourceUnpackedness ' SourceStrict ' DecidedUnpack ) ( Rec0 Word64 )))) :*: ((( S1 (' MetaSel (' Just "sgMaxKESEvolutions") ' NoSourceUnpackedness ' SourceStrict ' DecidedUnpack ) ( Rec0 Word64 ) :*: S1 (' MetaSel (' Just "sgSlotLength") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 NominalDiffTime )) :*: ( S1 (' MetaSel (' Just "sgUpdateQuorum") ' NoSourceUnpackedness ' SourceStrict ' DecidedUnpack ) ( Rec0 Word64 ) :*: S1 (' MetaSel (' Just "sgMaxLovelaceSupply") ' NoSourceUnpackedness ' SourceStrict ' DecidedUnpack ) ( Rec0 Word64 ))) :*: (( S1 (' MetaSel (' Just "sgProtocolParams") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( PParams era)) :*: S1 (' MetaSel (' Just "sgGenDelegs") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( Map ( KeyHash ' Genesis ( Crypto era)) ( GenDelegPair ( Crypto era))))) :*: ( S1 (' MetaSel (' Just "sgInitialFunds") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( Map ( Addr ( Crypto era)) Coin )) :*: S1 (' MetaSel (' Just "sgStaking") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( ShelleyGenesisStaking ( Crypto era))))))))
type TranslationError ( AlonzoEra c) ShelleyGenesis
Instance details

Defined in Cardano.Ledger.Alonzo.Translation

type TranslationError ( BabbageEra c) ShelleyGenesis
Instance details

Defined in Cardano.Ledger.Babbage.Translation

type TranslationError ( AllegraEra c) ShelleyGenesis
Instance details

Defined in Cardano.Ledger.Allegra.Translation

type TranslationError ( MaryEra c) ShelleyGenesis
Instance details

Defined in Cardano.Ledger.Mary.Translation

shelleyGenesisDefaults :: ShelleyGenesis crypto Source #

Some reasonable starting defaults for constructing a ShelleyGenesis .

You must override at least the following fields for this to be useful:

Cryptographic key interface

class ( Eq ( VerificationKey keyrole), Show ( VerificationKey keyrole), SerialiseAsRawBytes ( Hash keyrole), HasTextEnvelope ( VerificationKey keyrole), HasTextEnvelope ( SigningKey keyrole)) => Key keyrole where Source #

An interface for cryptographic keys used for signatures with a SigningKey and a VerificationKey key.

This interface does not provide actual signing or verifying functions since this API is concerned with the management of keys: generating and serialising.

Associated Types

data VerificationKey keyrole :: Type Source #

The type of cryptographic verification key, for each key role.

data SigningKey keyrole :: Type Source #

The type of cryptographic signing key, for each key role.

Methods

getVerificationKey :: SigningKey keyrole -> VerificationKey keyrole Source #

Get the corresponding verification key from a signing key.

deterministicSigningKey :: AsType keyrole -> Seed -> SigningKey keyrole Source #

Generate a SigningKey deterministically, given a Seed . The required size of the seed is given by deterministicSigningKeySeedSize .

deterministicSigningKeySeedSize :: AsType keyrole -> Word Source #

verificationKeyHash :: VerificationKey keyrole -> Hash keyrole Source #

Instances

Instances details
Key StakePoolKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

Key GenesisUTxOKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

Key GenesisDelegateExtendedKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

Key GenesisDelegateKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

Key GenesisExtendedKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

Key GenesisKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

Key StakeExtendedKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

Key StakeKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

Key PaymentExtendedKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

Key PaymentKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

Key ByronKeyLegacy Source #
Instance details

Defined in Cardano.Api.KeysByron

Key ByronKey Source #
Instance details

Defined in Cardano.Api.KeysByron

Key VrfKey Source #
Instance details

Defined in Cardano.Api.KeysPraos

Key KesKey Source #
Instance details

Defined in Cardano.Api.KeysPraos

Hashes

data family Hash keyrole :: Type Source #

Instances

Instances details
Eq ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( Hash GenesisUTxOKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( Hash GenesisDelegateExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( Hash GenesisDelegateKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( Hash GenesisExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( Hash GenesisKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( Hash StakeExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( Hash StakeKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( Hash PaymentExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( Hash PaymentKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( Hash ScriptData ) Source #
Instance details

Defined in Cardano.Api.ScriptData

Eq ( Hash ByronKeyLegacy ) Source #
Instance details

Defined in Cardano.Api.KeysByron

Eq ( Hash ByronKey ) Source #
Instance details

Defined in Cardano.Api.KeysByron

Eq ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Eq ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Eq ( Hash StakePoolMetadata ) Source #
Instance details

Defined in Cardano.Api.StakePoolMetadata

Eq ( Hash BlockHeader ) Source #
Instance details

Defined in Cardano.Api.Block

Ord ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Ord ( Hash GenesisUTxOKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Ord ( Hash GenesisDelegateExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Ord ( Hash GenesisDelegateKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Ord ( Hash GenesisExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Ord ( Hash GenesisKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Ord ( Hash StakeExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Ord ( Hash StakeKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Ord ( Hash PaymentExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Ord ( Hash PaymentKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Ord ( Hash ScriptData ) Source #
Instance details

Defined in Cardano.Api.ScriptData

Ord ( Hash ByronKeyLegacy ) Source #
Instance details

Defined in Cardano.Api.KeysByron

Ord ( Hash ByronKey ) Source #
Instance details

Defined in Cardano.Api.KeysByron

Ord ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Ord ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Ord ( Hash BlockHeader ) Source #
Instance details

Defined in Cardano.Api.Block

Show ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( Hash GenesisUTxOKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( Hash GenesisDelegateExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( Hash GenesisDelegateKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( Hash GenesisExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( Hash GenesisKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( Hash StakeExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( Hash StakeKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( Hash PaymentExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( Hash PaymentKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( Hash ScriptData ) Source #
Instance details

Defined in Cardano.Api.ScriptData

Show ( Hash ByronKeyLegacy ) Source #
Instance details

Defined in Cardano.Api.KeysByron

Show ( Hash ByronKey ) Source #
Instance details

Defined in Cardano.Api.KeysByron

Show ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Show ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Show ( Hash StakePoolMetadata ) Source #
Instance details

Defined in Cardano.Api.StakePoolMetadata

Show ( Hash BlockHeader ) Source #
Instance details

Defined in Cardano.Api.Block

IsString ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( Hash GenesisUTxOKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( Hash GenesisDelegateExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( Hash GenesisDelegateKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( Hash GenesisExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( Hash GenesisKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( Hash StakeExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( Hash StakeKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( Hash PaymentExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( Hash PaymentKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( Hash ScriptData ) Source #
Instance details

Defined in Cardano.Api.ScriptData

IsString ( Hash ByronKeyLegacy ) Source #
Instance details

Defined in Cardano.Api.KeysByron

IsString ( Hash ByronKey ) Source #
Instance details

Defined in Cardano.Api.KeysByron

IsString ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

IsString ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

IsString ( Hash BlockHeader ) Source #
Instance details

Defined in Cardano.Api.Block

ToJSON ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToJSON ( Hash ScriptData ) Source #
Instance details

Defined in Cardano.Api.ScriptData

ToJSON ( Hash BlockHeader ) Source #
Instance details

Defined in Cardano.Api.Block

ToJSONKey ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToJSONKey ( Hash ScriptData ) Source #
Instance details

Defined in Cardano.Api.ScriptData

FromJSON ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromJSON ( Hash ScriptData ) Source #
Instance details

Defined in Cardano.Api.ScriptData

FromJSON ( Hash BlockHeader ) Source #
Instance details

Defined in Cardano.Api.Block

FromJSONKey ( Hash ScriptData ) Source #
Instance details

Defined in Cardano.Api.ScriptData

ToCBOR ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( Hash GenesisUTxOKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( Hash GenesisDelegateExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( Hash GenesisDelegateKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( Hash GenesisExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( Hash GenesisKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( Hash StakeExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( Hash StakeKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( Hash PaymentExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( Hash PaymentKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( Hash ByronKeyLegacy ) Source #
Instance details

Defined in Cardano.Api.KeysByron

ToCBOR ( Hash ByronKey ) Source #
Instance details

Defined in Cardano.Api.KeysByron

ToCBOR ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

ToCBOR ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

FromCBOR ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( Hash GenesisUTxOKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( Hash GenesisDelegateExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( Hash GenesisDelegateKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( Hash GenesisExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( Hash GenesisKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( Hash StakeExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( Hash StakeKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( Hash PaymentExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( Hash PaymentKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( Hash ByronKeyLegacy ) Source #
Instance details

Defined in Cardano.Api.KeysByron

FromCBOR ( Hash ByronKey ) Source #
Instance details

Defined in Cardano.Api.KeysByron

FromCBOR ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

FromCBOR ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

HasTypeProxy a => HasTypeProxy ( Hash a) Source #
Instance details

Defined in Cardano.Api.Hash

Associated Types

data AsType ( Hash a) Source #

SerialiseAsCBOR ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( Hash GenesisUTxOKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( Hash GenesisDelegateExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( Hash GenesisDelegateKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( Hash GenesisExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( Hash GenesisKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( Hash StakeExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( Hash StakeKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( Hash PaymentExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( Hash PaymentKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( Hash ByronKeyLegacy ) Source #
Instance details

Defined in Cardano.Api.KeysByron

SerialiseAsCBOR ( Hash ByronKey ) Source #
Instance details

Defined in Cardano.Api.KeysByron

SerialiseAsCBOR ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsCBOR ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsRawBytes ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( Hash GenesisUTxOKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( Hash GenesisDelegateExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( Hash GenesisDelegateKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( Hash GenesisExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( Hash GenesisKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( Hash StakeExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( Hash StakeKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( Hash PaymentExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( Hash PaymentKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( Hash ScriptData ) Source #
Instance details

Defined in Cardano.Api.ScriptData

SerialiseAsRawBytes ( Hash ByronKeyLegacy ) Source #
Instance details

Defined in Cardano.Api.KeysByron

SerialiseAsRawBytes ( Hash ByronKey ) Source #
Instance details

Defined in Cardano.Api.KeysByron

SerialiseAsRawBytes ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsRawBytes ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsRawBytes ( Hash StakePoolMetadata ) Source #
Instance details

Defined in Cardano.Api.StakePoolMetadata

SerialiseAsRawBytes ( Hash BlockHeader ) Source #
Instance details

Defined in Cardano.Api.Block

SerialiseAsBech32 ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash StakePoolKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash GenesisUTxOKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash GenesisDelegateExtendedKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash GenesisDelegateKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash GenesisExtendedKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash GenesisKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash StakeExtendedKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash StakeKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash PaymentExtendedKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash PaymentKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash ScriptData Source #
Instance details

Defined in Cardano.Api.ScriptData

newtype Hash ByronKeyLegacy Source #
Instance details

Defined in Cardano.Api.KeysByron

newtype Hash ByronKey Source #
Instance details

Defined in Cardano.Api.KeysByron

newtype Hash VrfKey Source #
Instance details

Defined in Cardano.Api.KeysPraos

newtype Hash KesKey Source #
Instance details

Defined in Cardano.Api.KeysPraos

newtype Hash StakePoolMetadata Source #
Instance details

Defined in Cardano.Api.StakePoolMetadata

newtype Hash BlockHeader Source #

For now at least we use a fixed concrete hash type for all modes and era. The different eras do use different types, but it's all the same underlying representation.

Instance details

Defined in Cardano.Api.Block

data AsType ( Hash a) Source #
Instance details

Defined in Cardano.Api.Hash

Payment addresses

Constructing and inspecting Shelley payment addresses

data Address addrtype where Source #

Addresses are used as locations where assets live. The address determines the rights needed to spend assets at the address: in particular holding some signing key or being able to satisfy the conditions of a script.

There are currently two types of address:

  • Byron addresses, which use the type tag ByronAddr ; and
  • Shelley addresses, which use the type tag ShelleyAddr . Notably, Shelley addresses support scripts and stake delegation.

The address type is subtly from the ledger era in which each address type is valid: while Byron addresses are the only choice in the Byron era, the Shelley era and all subsequent eras support both Byron and Shelley addresses. The Address type param only says the type of the address (either Byron or Shelley). The AddressInEra type connects the address type with the era in which it is supported.

Constructors

ShelleyAddress :: Network -> PaymentCredential StandardCrypto -> StakeReference StandardCrypto -> Address ShelleyAddr

Shelley addresses allow delegation. Shelley addresses were introduced in Shelley era and are thus supported from the Shelley era onwards

Instances

Instances details
Eq ( Address addrtype) Source #
Instance details

Defined in Cardano.Api.Address

Ord ( Address addrtype) Source #
Instance details

Defined in Cardano.Api.Address

Show ( Address addrtype) Source #
Instance details

Defined in Cardano.Api.Address

HasTypeProxy addrtype => HasTypeProxy ( Address addrtype) Source #
Instance details

Defined in Cardano.Api.Address

Associated Types

data AsType ( Address addrtype) Source #

SerialiseAsRawBytes ( Address ShelleyAddr ) Source #
Instance details

Defined in Cardano.Api.Address

SerialiseAsRawBytes ( Address ByronAddr ) Source #
Instance details

Defined in Cardano.Api.Address

SerialiseAsBech32 ( Address ShelleyAddr ) Source #
Instance details

Defined in Cardano.Api.Address

SerialiseAddress ( Address ShelleyAddr ) Source #
Instance details

Defined in Cardano.Api.Address

SerialiseAddress ( Address ByronAddr ) Source #
Instance details

Defined in Cardano.Api.Address

data AsType ( Address addrtype) Source #
Instance details

Defined in Cardano.Api.Address

data AsType ( Address addrtype) = AsAddress ( AsType addrtype)

Stake addresses

data StakeAddress where Source #

Instances

Instances details
Eq StakeAddress Source #
Instance details

Defined in Cardano.Api.Address

Ord StakeAddress Source #
Instance details

Defined in Cardano.Api.Address

Show StakeAddress Source #
Instance details

Defined in Cardano.Api.Address

ToJSON StakeAddress Source #
Instance details

Defined in Cardano.Api.Address

FromJSON StakeAddress Source #
Instance details

Defined in Cardano.Api.Address

HasTypeProxy StakeAddress Source #
Instance details

Defined in Cardano.Api.Address

SerialiseAsRawBytes StakeAddress Source #
Instance details

Defined in Cardano.Api.Address

SerialiseAsBech32 StakeAddress Source #
Instance details

Defined in Cardano.Api.Address

SerialiseAddress StakeAddress Source #
Instance details

Defined in Cardano.Api.Address

data AsType StakeAddress Source #
Instance details

Defined in Cardano.Api.Address