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

Building transactions

Constructing and inspecting transactions

data TxBody era where Source #

Constructors

ShelleyTxBody

Fields

newtype TxId Source #

Instances

Instances details
Eq TxId Source #
Instance details

Defined in Cardano.Api.TxIn

Ord TxId Source #
Instance details

Defined in Cardano.Api.TxIn

Show TxId Source #
Instance details

Defined in Cardano.Api.TxIn

IsString TxId Source #
Instance details

Defined in Cardano.Api.TxIn

ToJSON TxId Source #
Instance details

Defined in Cardano.Api.TxIn

ToJSONKey TxId Source #
Instance details

Defined in Cardano.Api.TxIn

FromJSON TxId Source #
Instance details

Defined in Cardano.Api.TxIn

FromJSONKey TxId Source #
Instance details

Defined in Cardano.Api.TxIn

HasTypeProxy TxId Source #
Instance details

Defined in Cardano.Api.TxIn

Associated Types

data AsType TxId Source #

SerialiseAsRawBytes TxId Source #
Instance details

Defined in Cardano.Api.TxIn

data AsType TxId Source #
Instance details

Defined in Cardano.Api.TxIn

data TxIn Source #

toShelleyTxIn :: TxIn -> TxIn StandardCrypto Source #

This function may overflow on the transaction index. Call sites must ensure that all uses of this function are appropriately guarded.

data TxOut ctx era Source #

Instances

Instances details
EraCast ( TxOut ctx) Source #
Instance details

Defined in Cardano.Api.TxBody

Eq ( TxOut ctx era) Source #
Instance details

Defined in Cardano.Api.TxBody

Show ( TxOut ctx era) Source #
Instance details

Defined in Cardano.Api.TxBody

IsCardanoEra era => ToJSON ( TxOut ctx era) Source #
Instance details

Defined in Cardano.Api.TxBody

( IsShelleyBasedEra era, IsCardanoEra era) => FromJSON ( TxOut CtxUTxO era) Source #
Instance details

Defined in Cardano.Api.TxBody

( IsShelleyBasedEra era, IsCardanoEra era) => FromJSON ( TxOut CtxTx era) Source #
Instance details

Defined in Cardano.Api.TxBody

toShelleyTxOut :: forall era ledgerera. ShelleyLedgerEra era ~ ledgerera => ShelleyBasedEra era -> TxOut CtxUTxO era -> TxOut ledgerera Source #

newtype TxIx Source #

Constructors

TxIx Word

newtype Lovelace Source #

Instances

Instances details
Enum Lovelace Source #
Instance details

Defined in Cardano.Api.Value

Eq Lovelace Source #
Instance details

Defined in Cardano.Api.Value

Integral Lovelace Source #
Instance details

Defined in Cardano.Api.Value

Num Lovelace Source #
Instance details

Defined in Cardano.Api.Value

Ord Lovelace Source #
Instance details

Defined in Cardano.Api.Value

Real Lovelace Source #
Instance details

Defined in Cardano.Api.Value

Show Lovelace Source #
Instance details

Defined in Cardano.Api.Value

Semigroup Lovelace Source #
Instance details

Defined in Cardano.Api.Value

Monoid Lovelace Source #
Instance details

Defined in Cardano.Api.Value

ToJSON Lovelace Source #
Instance details

Defined in Cardano.Api.Value

FromJSON Lovelace Source #
Instance details

Defined in Cardano.Api.Value

ToCBOR Lovelace Source #
Instance details

Defined in Cardano.Api.Value

FromCBOR Lovelace Source #
Instance details

Defined in Cardano.Api.Value

calcMinimumDeposit :: Value -> Lovelace -> Lovelace Source #

Calculate cost of making a UTxO entry for a given Value and mininimum UTxO value derived from the ProtocolParameters

Signing transactions

Creating transaction witnesses one by one, or all in one go.

data Tx era where Source #

Instances

Instances details
Eq ( InAnyCardanoEra Tx ) Source #
Instance details

Defined in Cardano.Api.Tx

Eq ( Tx era) Source #
Instance details

Defined in Cardano.Api.Tx

Show ( InAnyCardanoEra Tx ) Source #
Instance details

Defined in Cardano.Api.Tx

Show ( Tx era) Source #
Instance details

Defined in Cardano.Api.Tx

HasTypeProxy era => HasTypeProxy ( Tx era) Source #
Instance details

Defined in Cardano.Api.Tx

Associated Types

data AsType ( Tx era) Source #

IsCardanoEra era => SerialiseAsCBOR ( Tx era) Source #
Instance details

Defined in Cardano.Api.Tx

IsCardanoEra era => HasTextEnvelope ( Tx era) Source #
Instance details

Defined in Cardano.Api.Tx

data AsType ( Tx era) Source #
Instance details

Defined in Cardano.Api.Tx

data AsType ( Tx era) = AsTx ( AsType era)

Incremental signing and separate witnesses

data KeyWitness era where Source #

data ShelleySigningKey Source #

We support making key witnesses with both normal and extended signing keys.

Constructors

ShelleyNormalSigningKey ( SignKeyDSIGN StandardCrypto )

A normal ed25519 signing key

ShelleyExtendedSigningKey XPrv

An extended ed25519 signing key

Blocks

toConsensusPointHF :: HeaderHash block ~ OneEraHash xs => ChainPoint -> Point block Source #

Convert a Point for multi-era block type

Transaction metadata

Embedding additional structured data within transactions.

Protocol parameters

data ProtocolParameters Source #

The values of the set of updatable protocol parameters. At any particular point on the chain there is a current set of parameters in use.

These parameters can be updated (at epoch boundaries) via an UpdateProposal , which contains a ProtocolParametersUpdate .

The ProtocolParametersUpdate is essentially a diff for the ProtocolParameters .

There are also parameters fixed in the Genesis file. See GenesisParameters .

Constructors

ProtocolParameters

Fields

Instances

Instances details
Eq ProtocolParameters Source #
Instance details

Defined in Cardano.Api.ProtocolParameters

Show ProtocolParameters Source #
Instance details

Defined in Cardano.Api.ProtocolParameters

Generic ProtocolParameters Source #
Instance details

Defined in Cardano.Api.ProtocolParameters

ToJSON ProtocolParameters Source #
Instance details

Defined in Cardano.Api.ProtocolParameters

FromJSON ProtocolParameters Source #
Instance details

Defined in Cardano.Api.ProtocolParameters

type Rep ProtocolParameters Source #
Instance details

Defined in Cardano.Api.ProtocolParameters

type Rep ProtocolParameters = D1 (' MetaData "ProtocolParameters" "Cardano.Api.ProtocolParameters" "cardano-api-1.35.4-Y6XVmaPLTVDMjVyvYWRRR" ' False ) ( C1 (' MetaCons "ProtocolParameters" ' PrefixI ' True ) (((( S1 (' MetaSel (' Just "protocolParamProtocolVersion") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Natural , Natural )) :*: ( S1 (' MetaSel (' Just "protocolParamDecentralization") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Maybe Rational )) :*: S1 (' MetaSel (' Just "protocolParamExtraPraosEntropy") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Maybe PraosNonce )))) :*: ( S1 (' MetaSel (' Just "protocolParamMaxBlockHeaderSize") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Natural ) :*: ( S1 (' MetaSel (' Just "protocolParamMaxBlockBodySize") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Natural ) :*: S1 (' MetaSel (' Just "protocolParamMaxTxSize") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Natural )))) :*: (( S1 (' MetaSel (' Just "protocolParamTxFeeFixed") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Natural ) :*: ( S1 (' MetaSel (' Just "protocolParamTxFeePerByte") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Natural ) :*: S1 (' MetaSel (' Just "protocolParamMinUTxOValue") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Maybe Lovelace )))) :*: (( S1 (' MetaSel (' Just "protocolParamStakeAddressDeposit") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Lovelace ) :*: S1 (' MetaSel (' Just "protocolParamStakePoolDeposit") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Lovelace )) :*: ( S1 (' MetaSel (' Just "protocolParamMinPoolCost") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Lovelace ) :*: S1 (' MetaSel (' Just "protocolParamPoolRetireMaxEpoch") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 EpochNo ))))) :*: ((( S1 (' MetaSel (' Just "protocolParamStakePoolTargetNum") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Natural ) :*: ( S1 (' MetaSel (' Just "protocolParamPoolPledgeInfluence") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Rational ) :*: S1 (' MetaSel (' Just "protocolParamMonetaryExpansion") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Rational ))) :*: ( S1 (' MetaSel (' Just "protocolParamTreasuryCut") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Rational ) :*: ( S1 (' MetaSel (' Just "protocolParamUTxOCostPerWord") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Maybe Lovelace )) :*: S1 (' MetaSel (' Just "protocolParamCostModels") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Map AnyPlutusScriptVersion CostModel ))))) :*: (( S1 (' MetaSel (' Just "protocolParamPrices") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Maybe ExecutionUnitPrices )) :*: ( S1 (' MetaSel (' Just "protocolParamMaxTxExUnits") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Maybe ExecutionUnits )) :*: S1 (' MetaSel (' Just "protocolParamMaxBlockExUnits") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Maybe ExecutionUnits )))) :*: (( S1 (' MetaSel (' Just "protocolParamMaxValueSize") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Maybe Natural )) :*: S1 (' MetaSel (' Just "protocolParamCollateralPercent") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Maybe Natural ))) :*: ( S1 (' MetaSel (' Just "protocolParamMaxCollateralInputs") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Maybe Natural )) :*: S1 (' MetaSel (' Just "protocolParamUTxOCostPerByte") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Maybe Lovelace ))))))))

Scripts

fromShelleyMultiSig :: MultiSig StandardCrypto -> SimpleScript lang Source #

Conversion for the MultiSig language used by the Shelley era.

toAllegraTimelock :: forall lang. SimpleScript lang -> Timelock StandardCrypto Source #

Conversion for the Timelock language that is shared between the Allegra and Mary eras.

fromAllegraTimelock :: TimeLocksSupported lang -> Timelock StandardCrypto -> SimpleScript lang Source #

Conversion for the Timelock language that is shared between the Allegra and Mary eras.

data PlutusScript lang where Source #

Plutus scripts.

Note that Plutus scripts have a binary serialisation but no JSON serialisation.

Instances

Instances details
Eq ( PlutusScript lang) Source #
Instance details

Defined in Cardano.Api.Script

Ord ( PlutusScript lang) Source #
Instance details

Defined in Cardano.Api.Script

Show ( PlutusScript lang) Source #
Instance details

Defined in Cardano.Api.Script

( Typeable lang, HasTypeProxy lang) => ToCBOR ( PlutusScript lang) Source #
Instance details

Defined in Cardano.Api.Script

( Typeable lang, HasTypeProxy lang) => FromCBOR ( PlutusScript lang) Source #
Instance details

Defined in Cardano.Api.Script

HasTypeProxy lang => HasTypeProxy ( PlutusScript lang) Source #
Instance details

Defined in Cardano.Api.Script

Associated Types

data AsType ( PlutusScript lang) Source #

( HasTypeProxy lang, Typeable lang) => SerialiseAsCBOR ( PlutusScript lang) Source #
Instance details

Defined in Cardano.Api.Script

HasTypeProxy lang => SerialiseAsRawBytes ( PlutusScript lang) Source #
Instance details

Defined in Cardano.Api.Script

(IsPlutusScriptLanguage lang, Typeable lang) => HasTextEnvelope ( PlutusScript lang) Source #
Instance details

Defined in Cardano.Api.Script

data AsType ( PlutusScript lang) Source #
Instance details

Defined in Cardano.Api.Script

data PlutusScriptOrReferenceInput lang Source #

Scripts can now exist in the UTxO at a transaction output. We can reference these scripts via specification of a reference transaction input in order to witness spending inputs, withdrawals, certificates or to mint tokens. This datatype encapsulates this concept.

Reference Scripts

data ReferenceScript era where Source #

A reference scripts is a script that can exist at a transaction output. This greatly reduces the size of transactions that use scripts as the script no longer has to be added to the transaction, they can now be referenced via a transaction output.

Certificates

data Certificate Source #

Instances

Instances details
Eq Certificate Source #
Instance details

Defined in Cardano.Api.Certificate

Show Certificate Source #
Instance details

Defined in Cardano.Api.Certificate

ToCBOR Certificate Source #
Instance details

Defined in Cardano.Api.Certificate

FromCBOR Certificate Source #
Instance details

Defined in Cardano.Api.Certificate

HasTypeProxy Certificate Source #
Instance details

Defined in Cardano.Api.Certificate

SerialiseAsCBOR Certificate Source #
Instance details

Defined in Cardano.Api.Certificate

HasTextEnvelope Certificate Source #
Instance details

Defined in Cardano.Api.Certificate

data AsType Certificate Source #
Instance details

Defined in Cardano.Api.Certificate

Operational certificates

data OperationalCertificate Source #

Instances

Instances details
Eq OperationalCertificate Source #
Instance details

Defined in Cardano.Api.OperationalCertificate

Show OperationalCertificate Source #
Instance details

Defined in Cardano.Api.OperationalCertificate

ToCBOR OperationalCertificate Source #
Instance details

Defined in Cardano.Api.OperationalCertificate

FromCBOR OperationalCertificate Source #
Instance details

Defined in Cardano.Api.OperationalCertificate

HasTypeProxy OperationalCertificate Source #
Instance details

Defined in Cardano.Api.OperationalCertificate

SerialiseAsCBOR OperationalCertificate Source #
Instance details

Defined in Cardano.Api.OperationalCertificate

HasTextEnvelope OperationalCertificate Source #
Instance details

Defined in Cardano.Api.OperationalCertificate

data AsType OperationalCertificate Source #
Instance details

Defined in Cardano.Api.OperationalCertificate

data OperationalCertificateIssueCounter Source #

Instances

Instances details
Eq OperationalCertificateIssueCounter Source #
Instance details

Defined in Cardano.Api.OperationalCertificate

Show OperationalCertificateIssueCounter Source #
Instance details

Defined in Cardano.Api.OperationalCertificate

ToCBOR OperationalCertificateIssueCounter Source #
Instance details

Defined in Cardano.Api.OperationalCertificate

FromCBOR OperationalCertificateIssueCounter Source #
Instance details

Defined in Cardano.Api.OperationalCertificate

HasTypeProxy OperationalCertificateIssueCounter Source #
Instance details

Defined in Cardano.Api.OperationalCertificate

SerialiseAsCBOR OperationalCertificateIssueCounter Source #
Instance details

Defined in Cardano.Api.OperationalCertificate

HasTextEnvelope OperationalCertificateIssueCounter Source #
Instance details

Defined in Cardano.Api.OperationalCertificate

data AsType OperationalCertificateIssueCounter Source #
Instance details

Defined in Cardano.Api.OperationalCertificate

Stake Pool

data StakePoolMetadata Source #

A representation of the required fields for off-chain stake pool metadata.

Instances

Instances details
Eq StakePoolMetadata Source #
Instance details

Defined in Cardano.Api.StakePoolMetadata

Show StakePoolMetadata Source #
Instance details

Defined in Cardano.Api.StakePoolMetadata

FromJSON StakePoolMetadata Source #
Instance details

Defined in Cardano.Api.StakePoolMetadata

HasTypeProxy StakePoolMetadata Source #
Instance details

Defined in Cardano.Api.StakePoolMetadata

Eq ( Hash StakePoolMetadata ) Source #
Instance details

Defined in Cardano.Api.StakePoolMetadata

Show ( Hash StakePoolMetadata ) Source #
Instance details

Defined in Cardano.Api.StakePoolMetadata

SerialiseAsRawBytes ( Hash StakePoolMetadata ) Source #
Instance details

Defined in Cardano.Api.StakePoolMetadata

data AsType StakePoolMetadata Source #
Instance details

Defined in Cardano.Api.StakePoolMetadata

newtype Hash StakePoolMetadata Source #
Instance details

Defined in Cardano.Api.StakePoolMetadata

stakePoolDescription :: StakePoolMetadata -> Text Source #

A description of up to 255 characters.

stakePoolTicker :: StakePoolMetadata -> Text Source #

A ticker of 3-5 characters, for a compact display of stake pools in a wallet.

stakePoolHomepage :: StakePoolMetadata -> Text Source #

A URL to a homepage with additional information about the pool. n.b. the spec does not specify a character limit for this field.

newtype EpochNo Source #

An epoch, i.e. the number of the epoch.

Constructors

EpochNo

Instances

Instances details
Enum EpochNo
Instance details

Defined in Cardano.Slotting.Slot

Eq EpochNo
Instance details

Defined in Cardano.Slotting.Slot

Num EpochNo
Instance details

Defined in Cardano.Slotting.Slot

Ord EpochNo
Instance details

Defined in Cardano.Slotting.Slot

Show EpochNo
Instance details

Defined in Cardano.Slotting.Slot

Generic EpochNo
Instance details

Defined in Cardano.Slotting.Slot

NFData EpochNo
Instance details

Defined in Cardano.Slotting.Slot

ToJSON EpochNo
Instance details

Defined in Cardano.Slotting.Slot

FromJSON EpochNo
Instance details

Defined in Cardano.Slotting.Slot

ToCBOR EpochNo
Instance details

Defined in Cardano.Slotting.Slot

FromCBOR EpochNo
Instance details

Defined in Cardano.Slotting.Slot

NoThunks EpochNo
Instance details

Defined in Cardano.Slotting.Slot

Serialise EpochNo
Instance details

Defined in Cardano.Slotting.Slot

Condense EpochNo
Instance details

Defined in Ouroboros.Consensus.Util.Condense

type Rep EpochNo
Instance details

Defined in Cardano.Slotting.Slot

type Rep EpochNo = D1 (' MetaData "EpochNo" "Cardano.Slotting.Slot" "cardano-slotting-0.1.0.2-j5NuF73p5IFfcfvmth6tS" ' True ) ( C1 (' MetaCons "EpochNo" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unEpochNo") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Word64 )))

Stake pool operator's keys

data StakePoolKey Source #

Instances

Instances details
HasTypeProxy StakePoolKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

Key StakePoolKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( VerificationKey StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Ord ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( VerificationKey StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( SigningKey StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( VerificationKey StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( SigningKey StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToJSON ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToJSONKey ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromJSON ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( VerificationKey StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( SigningKey StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( VerificationKey StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( SigningKey StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( VerificationKey StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( SigningKey StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( VerificationKey StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( SigningKey StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

HasTextEnvelope ( VerificationKey StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

HasTextEnvelope ( SigningKey StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsBech32 ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsBech32 ( VerificationKey StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsBech32 ( SigningKey StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

data AsType StakePoolKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash StakePoolKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype VerificationKey StakePoolKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype SigningKey StakePoolKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

KES keys

data KesKey Source #

Instances

Instances details
HasTypeProxy KesKey Source #
Instance details

Defined in Cardano.Api.KeysPraos

Associated Types

data AsType KesKey Source #

Key KesKey Source #
Instance details

Defined in Cardano.Api.KeysPraos

Eq ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Eq ( VerificationKey KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Ord ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Show ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Show ( VerificationKey KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Show ( SigningKey KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

IsString ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

IsString ( VerificationKey KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

IsString ( SigningKey KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

ToCBOR ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

ToCBOR ( VerificationKey KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

ToCBOR ( SigningKey KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

FromCBOR ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

FromCBOR ( VerificationKey KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

FromCBOR ( SigningKey KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsCBOR ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsCBOR ( VerificationKey KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsCBOR ( SigningKey KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsRawBytes ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsRawBytes ( VerificationKey KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsRawBytes ( SigningKey KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

HasTextEnvelope ( VerificationKey KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

HasTextEnvelope ( SigningKey KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsBech32 ( VerificationKey KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsBech32 ( SigningKey KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

data AsType KesKey Source #
Instance details

Defined in Cardano.Api.KeysPraos

newtype Hash KesKey Source #
Instance details

Defined in Cardano.Api.KeysPraos

newtype VerificationKey KesKey Source #
Instance details

Defined in Cardano.Api.KeysPraos

newtype SigningKey KesKey Source #
Instance details

Defined in Cardano.Api.KeysPraos

newtype KESPeriod Source #

Constructors

KESPeriod

Instances

Instances details
Eq KESPeriod
Instance details

Defined in Cardano.Protocol.TPraos.OCert

Ord KESPeriod
Instance details

Defined in Cardano.Protocol.TPraos.OCert

Show KESPeriod
Instance details

Defined in Cardano.Protocol.TPraos.OCert

Generic KESPeriod
Instance details

Defined in Cardano.Protocol.TPraos.OCert

ToCBOR KESPeriod
Instance details

Defined in Cardano.Protocol.TPraos.OCert

FromCBOR KESPeriod
Instance details

Defined in Cardano.Protocol.TPraos.OCert

NoThunks KESPeriod
Instance details

Defined in Cardano.Protocol.TPraos.OCert

type Rep KESPeriod
Instance details

Defined in Cardano.Protocol.TPraos.OCert

type Rep KESPeriod = D1 (' MetaData "KESPeriod" "Cardano.Protocol.TPraos.OCert" "cardano-protocol-tpraos-0.1.0.0-La5Cvz4HrqgBuFHns9l3Vn" ' True ) ( C1 (' MetaCons "KESPeriod" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unKESPeriod") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Word )))

VRF keys

data VrfKey Source #

Instances

Instances details
HasTypeProxy VrfKey Source #
Instance details

Defined in Cardano.Api.KeysPraos

Associated Types

data AsType VrfKey Source #

Key VrfKey Source #
Instance details

Defined in Cardano.Api.KeysPraos

Eq ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Eq ( VerificationKey VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Ord ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Show ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Show ( VerificationKey VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Show ( SigningKey VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

IsString ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

IsString ( VerificationKey VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

IsString ( SigningKey VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

ToCBOR ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

ToCBOR ( VerificationKey VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

ToCBOR ( SigningKey VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

FromCBOR ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

FromCBOR ( VerificationKey VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

FromCBOR ( SigningKey VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsCBOR ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsCBOR ( VerificationKey VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsCBOR ( SigningKey VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsRawBytes ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsRawBytes ( VerificationKey VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsRawBytes ( SigningKey VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

HasTextEnvelope ( VerificationKey VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

HasTextEnvelope ( SigningKey VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsBech32 ( VerificationKey VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsBech32 ( SigningKey VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

data AsType VrfKey Source #
Instance details

Defined in Cardano.Api.KeysPraos

newtype Hash VrfKey Source #
Instance details

Defined in Cardano.Api.KeysPraos

newtype VerificationKey VrfKey Source #
Instance details

Defined in Cardano.Api.KeysPraos

newtype SigningKey VrfKey Source #
Instance details

Defined in Cardano.Api.KeysPraos

Low level protocol interaction with a Cardano node

data ShelleyMode Source #

The Shelley-only consensus mode consists of only the Shelley era.

This was used for the early Shelley testnets prior to the use of the multi-era CardanoMode . It is useful for setting up Shelley test networks (e.g. for benchmarking) without having to go through the complication of the hard fork from Byron to Shelley eras. It also shows how a single-era consensus mode works. It may be replaced by other single-era modes in future.

data ConsensusMode mode where Source #

This GADT provides a value-level representation of all the consensus modes. This enables pattern matching on the era to allow them to be treated in a non-uniform way.

data LocalNodeClientProtocols block point tip slot tx txid txerr query m Source #

The protocols we can use with a local node. Use in conjunction with connectToLocalNode .

These protocols use the types from the rest of this API. The conversion to/from the types used by the underlying wire formats is handled by connectToLocalNode .

Constructors

LocalNodeClientProtocols ( LocalChainSyncClient block point tip m) ( Maybe ( LocalTxSubmissionClient tx txerr m ())) ( Maybe ( LocalStateQueryClient block point query m ())) ( Maybe ( LocalTxMonitorClient txid tx slot m ()))

Shelley based eras

type family ShelleyLedgerEra era where ... Source #

A type family that connects our era type tags to equivalent type tags used in the Shelley ledger library.

This type mapping connect types from this API with types in the Shelley ledger library which allows writing conversion functions in a more generic way.

Local State Query

data AcquiringFailure Source #

Establish a connection to a node and execute a single query using the local state query protocol.

newtype SystemStart Source #

System start

Slots are counted from the system start.

Instances

Instances details
Eq SystemStart
Instance details

Defined in Cardano.Slotting.Time

Show SystemStart
Instance details

Defined in Cardano.Slotting.Time

Generic SystemStart
Instance details

Defined in Cardano.Slotting.Time

ToJSON SystemStart Source #
Instance details

Defined in Cardano.Api.Orphans

FromJSON SystemStart Source #
Instance details

Defined in Cardano.Api.Orphans

ToCBOR SystemStart
Instance details

Defined in Cardano.Slotting.Time

FromCBOR SystemStart
Instance details

Defined in Cardano.Slotting.Time

NoThunks SystemStart
Instance details

Defined in Cardano.Slotting.Time

Serialise SystemStart
Instance details

Defined in Cardano.Slotting.Time

type Rep SystemStart
Instance details

Defined in Cardano.Slotting.Time

type Rep SystemStart = D1 (' MetaData "SystemStart" "Cardano.Slotting.Time" "cardano-slotting-0.1.0.2-j5NuF73p5IFfcfvmth6tS" ' True ) ( C1 (' MetaCons "SystemStart" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "getSystemStart") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 UTCTime )))

Various calculations

Conversions

shelleyPayAddrToPlutusPubKHash :: Address ShelleyAddr -> Maybe PubKeyHash Source #

Converts a Shelley payment address to a Plutus public key hash.