cardano-api
Safe HaskellNone
LanguageHaskell2010

Cardano.Api

Contents

Description

This module provides a library interface for interacting with Cardano as a user of the system.

It is intended to be the complete API covering everything but without exposing constructors that reveal any lower level types.

In the interest of simplicity it glosses over some details of the system. Most simple tools should be able to work just using this interface, however you can go deeper and expose the types from the underlying libraries using Cardano.Api.Byron or Cardano.Api.Shelley.

Synopsis

Eras

data ByronEra Source #

A type used as a tag to distinguish the Byron era.

Instances

Instances details
IsCardanoEra ByronEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

HasTypeProxy ByronEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Associated Types

data AsType ByronEra 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

data AsType ByronEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

data ShelleyEra Source #

A type used as a tag to distinguish the Shelley era.

data AlonzoEra Source #

A type used as a tag to distinguish the Alonzo era.

data BabbageEra Source #

A type used as a tag to distinguish the Babbage era.

Instances

Instances details
IsAllegraBasedEra BabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AllegraEraOnwards

IsAlonzoBasedEra BabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AlonzoEraOnwards

IsBabbageBasedEra BabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.BabbageEraOnwards

IsMaryBasedEra BabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.MaryEraOnwards

IsShelleyBasedEra BabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

IsCardanoEra BabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

HasTypeProxy BabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Associated Types

data AsType BabbageEra 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

HasScriptLanguageInEra PlutusScriptV1 BabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Script

HasScriptLanguageInEra PlutusScriptV2 BabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Script

ToAlonzoScript PlutusScriptV1 BabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Script

ToAlonzoScript PlutusScriptV2 BabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Script

data AsType BabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

data ConwayEra Source #

A type used as a tag to distinguish the Conway era.

Instances

Instances details
IsAllegraBasedEra ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AllegraEraOnwards

IsAlonzoBasedEra ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AlonzoEraOnwards

IsBabbageBasedEra ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.BabbageEraOnwards

IsConwayBasedEra ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ConwayEraOnwards

IsMaryBasedEra ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.MaryEraOnwards

IsShelleyBasedEra ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

IsCardanoEra ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

IsEra ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Experimental.Eras

HasTypeProxy ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Associated Types

data AsType ConwayEra 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

HasScriptLanguageInEra PlutusScriptV1 ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Script

HasScriptLanguageInEra PlutusScriptV2 ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Script

HasScriptLanguageInEra PlutusScriptV3 ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Script

ToAlonzoScript PlutusScriptV1 ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Script

ToAlonzoScript PlutusScriptV2 ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Script

ToAlonzoScript PlutusScriptV3 ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Script

data AsType ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

data CardanoEra era where Source #

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

This can be used in combination with the IsCardanoEra class to get access to this value.

In combination this can often enable code that handles all eras, and does so uniformly where possible, and non-uniformly where necessary.

Instances

Instances details
Eon CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Methods

inEonForEra :: a -> (CardanoEra era -> a) -> CardanoEra era -> a Source #

ToCardanoEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

TestEquality CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Methods

testEquality :: CardanoEra a -> CardanoEra b -> Maybe (a :~: b) Source #

Convert AllegraEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AllegraEraOnwards

Convert AlonzoEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AlonzoEraOnwards

Convert BabbageEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.BabbageEraOnwards

Convert ByronToAlonzoEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ByronToAlonzoEra

Convert ConwayEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ConwayEraOnwards

Convert MaryEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.MaryEraOnwards

Convert ShelleyBasedEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

Convert ShelleyEraOnly CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyEraOnly

Convert ShelleyToAllegraEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToAllegraEra

Convert ShelleyToAlonzoEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToAlonzoEra

Convert ShelleyToBabbageEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToBabbageEra

Convert ShelleyToMaryEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToMaryEra

Convert Era CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Experimental.Eras

Methods

convert :: Era era -> CardanoEra era Source #

ToJSON (CardanoEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Methods

toJSON :: CardanoEra era -> Value

toEncoding :: CardanoEra era -> Encoding

toJSONList :: [CardanoEra era] -> Value

toEncodingList :: [CardanoEra era] -> Encoding

omitField :: CardanoEra era -> Bool

Show (CardanoEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Eq (CardanoEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Methods

(==) :: CardanoEra era -> CardanoEra era -> Bool Source #

(/=) :: CardanoEra era -> CardanoEra era -> Bool Source #

Ord (CardanoEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Pretty (CardanoEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Methods

pretty :: CardanoEra era -> Doc ann #

prettyList :: [CardanoEra era] -> Doc ann #

class HasTypeProxy era => IsCardanoEra era where Source #

The class of Cardano eras. This allows uniform handling of all Cardano eras, but also non-uniform by making case distinctions on the CardanoEra constructors.

data AnyCardanoEra where Source #

Constructors

AnyCardanoEra :: forall era. Typeable era => CardanoEra era -> AnyCardanoEra 

Instances

Instances details
FromJSON AnyCardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Methods

parseJSON :: Value -> Parser AnyCardanoEra

parseJSONList :: Value -> Parser [AnyCardanoEra]

omittedField :: Maybe AnyCardanoEra

ToJSON AnyCardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Bounded AnyCardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Enum AnyCardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Show AnyCardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Eq AnyCardanoEra Source #

Assumes that 'CardanoEra era' are singletons

Instance details

Defined in Cardano.Api.Internal.Eras.Core

Pretty AnyCardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Methods

pretty :: AnyCardanoEra -> Doc ann #

prettyList :: [AnyCardanoEra] -> Doc ann #

anyCardanoEra :: CardanoEra era -> AnyCardanoEra Source #

Like the AnyCardanoEra constructor but does not demand a IsCardanoEra class constraint.

data InAnyCardanoEra (thing :: Type -> Type) where Source #

This pairs up some era-dependent type with a CardanoEra value that tells us what era it is, but hides the era type. This is useful when the era is not statically known, for example when deserialising from a file.

Constructors

InAnyCardanoEra :: forall era (thing :: Type -> Type). Typeable era => CardanoEra era -> thing era -> InAnyCardanoEra thing 

inAnyCardanoEra :: CardanoEra era -> thing era -> InAnyCardanoEra thing Source #

cardanoEraConstraints :: CardanoEra era -> (CardanoEraConstraints era => a) -> a Source #

class ToCardanoEra (eon :: Type -> Type) where Source #

Methods

toCardanoEra :: eon era -> CardanoEra era Source #

Instances

Instances details
ToCardanoEra AllegraEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AllegraEraOnwards

ToCardanoEra AlonzoEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AlonzoEraOnwards

ToCardanoEra BabbageEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.BabbageEraOnwards

ToCardanoEra ByronToAlonzoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ByronToAlonzoEra

ToCardanoEra ConwayEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ConwayEraOnwards

ToCardanoEra MaryEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.MaryEraOnwards

ToCardanoEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

ToCardanoEra ShelleyEraOnly Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyEraOnly

ToCardanoEra ShelleyToAllegraEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToAllegraEra

ToCardanoEra ShelleyToAlonzoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToAlonzoEra

ToCardanoEra ShelleyToBabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToBabbageEra

ToCardanoEra ShelleyToMaryEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToMaryEra

ToCardanoEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

ToCardanoEra Era Source #

A temporary compatibility instance for easier conversion between the experimental and old APIs.

Instance details

Defined in Cardano.Api.Internal.Experimental.Eras

Methods

toCardanoEra :: Era era -> CardanoEra era Source #

Eon support

class Eon (eon :: Type -> Type) where Source #

An Eon is a span of multiple eras. Eons are used to scope functionality to particular eras such that it isn't possible construct code that uses functionality that is outside of given eras.

Methods

inEonForEra Source #

Arguments

:: a

Value to use if the eon does not include the era

-> (eon era -> a)

Function to get the value to use if the eon includes the era

-> CardanoEra era

Era to check

-> a

The value to use

Determine the value to use in an eon (a span of multiple eras). Note that the negative case is the first argument, and the positive case is the second as per the either function convention.

Instances

Instances details
Eon AllegraEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AllegraEraOnwards

Methods

inEonForEra :: a -> (AllegraEraOnwards era -> a) -> CardanoEra era -> a Source #

Eon AlonzoEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AlonzoEraOnwards

Methods

inEonForEra :: a -> (AlonzoEraOnwards era -> a) -> CardanoEra era -> a Source #

Eon BabbageEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.BabbageEraOnwards

Methods

inEonForEra :: a -> (BabbageEraOnwards era -> a) -> CardanoEra era -> a Source #

Eon ByronToAlonzoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ByronToAlonzoEra

Methods

inEonForEra :: a -> (ByronToAlonzoEra era -> a) -> CardanoEra era -> a Source #

Eon ConwayEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ConwayEraOnwards

Methods

inEonForEra :: a -> (ConwayEraOnwards era -> a) -> CardanoEra era -> a Source #

Eon MaryEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.MaryEraOnwards

Methods

inEonForEra :: a -> (MaryEraOnwards era -> a) -> CardanoEra era -> a Source #

Eon ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

Methods

inEonForEra :: a -> (ShelleyBasedEra era -> a) -> CardanoEra era -> a Source #

Eon ShelleyEraOnly Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyEraOnly

Methods

inEonForEra :: a -> (ShelleyEraOnly era -> a) -> CardanoEra era -> a Source #

Eon ShelleyToAllegraEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToAllegraEra

Methods

inEonForEra :: a -> (ShelleyToAllegraEra era -> a) -> CardanoEra era -> a Source #

Eon ShelleyToAlonzoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToAlonzoEra

Methods

inEonForEra :: a -> (ShelleyToAlonzoEra era -> a) -> CardanoEra era -> a Source #

Eon ShelleyToBabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToBabbageEra

Methods

inEonForEra :: a -> (ShelleyToBabbageEra era -> a) -> CardanoEra era -> a Source #

Eon ShelleyToMaryEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToMaryEra

Methods

inEonForEra :: a -> (ShelleyToMaryEra era -> a) -> CardanoEra era -> a Source #

Eon CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Methods

inEonForEra :: a -> (CardanoEra era -> a) -> CardanoEra era -> a Source #

Eon Era Source #

A temporary compatibility instance for easier conversion between the experimental and old APIs.

Instance details

Defined in Cardano.Api.Internal.Experimental.Eras

Methods

inEonForEra :: a -> (Era era -> a) -> CardanoEra era -> a Source #

data EraInEon (eon :: Type -> Type) where Source #

Constructors

EraInEon :: forall era (eon :: Type -> Type). (Typeable era, Typeable (eon era), Eon eon) => eon era -> EraInEon eon 

Instances

Instances details
Show (EraInEon eon) Source #

Assumes that eons are singletons

Instance details

Defined in Cardano.Api.Internal.Eras.Core

TestEquality eon => Eq (EraInEon eon) Source #

Assumes that eons are singletons

Instance details

Defined in Cardano.Api.Internal.Eras.Core

Methods

(==) :: EraInEon eon -> EraInEon eon -> Bool Source #

(/=) :: EraInEon eon -> EraInEon eon -> Bool Source #

inEonForEraMaybe Source #

Arguments

:: Eon eon 
=> (eon era -> a)

Function to get the value to use if the eon includes the era

-> CardanoEra era

Era to check

-> Maybe a

The value to use

forEraInEon Source #

Arguments

:: Eon eon 
=> CardanoEra era

Era to check

-> a

Value to use if the eon does not include the era

-> (eon era -> a)

Function to get the value to use if the eon includes the era

-> a

The value to use

forEraInEonMaybe Source #

Arguments

:: Eon eon 
=> CardanoEra era

Era to check

-> (eon era -> a)

Function to get the value to use if the eon includes the era

-> Maybe a

The value to use

forEraMaybeEon Source #

Arguments

:: Eon eon 
=> CardanoEra era

Era to check

-> Maybe (eon era)

The eon if supported in the era

maybeEon Source #

Arguments

:: (Eon eon, IsCardanoEra era) 
=> Maybe (eon era)

The eon if supported in the era

monoidForEraInEon :: (Eon eon, Monoid a) => CardanoEra era -> (eon era -> a) -> a Source #

monoidForEraInEonA :: (Eon eon, Applicative f, Monoid a) => CardanoEra era -> (eon era -> f a) -> f a Source #

inEonForShelleyBasedEra :: Eon eon => a -> (eon era -> a) -> ShelleyBasedEra era -> a Source #

Determine the value to use for a feature in a given ShelleyBasedEra.

inEonForShelleyBasedEraMaybe :: Eon eon => (eon era -> a) -> ShelleyBasedEra era -> Maybe a Source #

forShelleyBasedEraInEon :: Eon eon => ShelleyBasedEra era -> a -> (eon era -> a) -> a Source #

forShelleyBasedEraInEonMaybe :: Eon eon => ShelleyBasedEra era -> (eon era -> a) -> Maybe a Source #

data Featured (eon :: Type -> Type) era a where Source #

A value only if the eon includes era

Constructors

Featured 

Fields

  • :: forall (eon :: Type -> Type) era a. eon era

    The witness that the eon includes era

  • -> a

    The value to use

  • -> Featured eon era a
     

Instances

Instances details
Functor (Featured eon era) Source # 
Instance details

Defined in Cardano.Api.Internal.Feature

Methods

fmap :: (a -> b) -> Featured eon era a -> Featured eon era b Source #

(<$) :: a -> Featured eon era b -> Featured eon era a Source #

(Show a, Show (eon era)) => Show (Featured eon era a) Source # 
Instance details

Defined in Cardano.Api.Internal.Feature

Methods

showsPrec :: Int -> Featured eon era a -> ShowS Source #

show :: Featured eon era a -> String Source #

showList :: [Featured eon era a] -> ShowS Source #

(Eq a, Eq (eon era)) => Eq (Featured eon era a) Source # 
Instance details

Defined in Cardano.Api.Internal.Feature

Methods

(==) :: Featured eon era a -> Featured eon era a -> Bool Source #

(/=) :: Featured eon era a -> Featured eon era a -> Bool Source #

mkFeatured Source #

Arguments

:: forall (eon :: Type -> Type) era a. (IsCardanoEra era, Eon eon) 
=> a

a value featured in eon

-> Maybe (Featured eon era a)

Just if era is in eon

Create a Featured with automatic witness conjuring

unFeatured :: forall (eon :: Type -> Type) era a. Featured eon era a -> a Source #

asFeaturedInEra :: forall (eon :: Type -> Type) a era. Eon eon => a -> CardanoEra era -> Maybe (Featured eon era a) Source #

Attempt to construct a FeatureValue from a value and era. If the eon is not supported in the era, then NoFeatureValue is returned.

asFeaturedInShelleyBasedEra :: forall (eon :: Type -> Type) a era. Eon eon => a -> ShelleyBasedEra era -> Maybe (Featured eon era a) Source #

Attempt to construct a FeatureValue from a value and a shelley-based-era.

class Convert (f :: a -> Type) (g :: a -> Type) where Source #

The Convert class is aimed at exposing a single interface that lets us convert between eons. However this is generalizable to any injective relationship between types.

Methods

convert :: forall (era :: a). f era -> g era Source #

Instances

Instances details
Convert AllegraEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AllegraEraOnwards

Convert AllegraEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AllegraEraOnwards

Convert AlonzoEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AlonzoEraOnwards

Convert AlonzoEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AlonzoEraOnwards

Convert BabbageEraOnwards AlonzoEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.BabbageEraOnwards

Convert BabbageEraOnwards MaryEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.BabbageEraOnwards

Convert BabbageEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.BabbageEraOnwards

Convert BabbageEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.BabbageEraOnwards

Convert ByronToAlonzoEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ByronToAlonzoEra

Convert ConwayEraOnwards AllegraEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ConwayEraOnwards

Convert ConwayEraOnwards BabbageEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ConwayEraOnwards

Convert ConwayEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ConwayEraOnwards

Convert ConwayEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ConwayEraOnwards

Convert MaryEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.MaryEraOnwards

Convert MaryEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.MaryEraOnwards

Convert ShelleyBasedEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

Convert ShelleyEraOnly ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyEraOnly

Convert ShelleyEraOnly CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyEraOnly

Convert ShelleyToAllegraEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToAllegraEra

Convert ShelleyToAllegraEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToAllegraEra

Convert ShelleyToAlonzoEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToAlonzoEra

Convert ShelleyToAlonzoEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToAlonzoEra

Convert ShelleyToBabbageEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToBabbageEra

Convert ShelleyToBabbageEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToBabbageEra

Convert ShelleyToMaryEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToMaryEra

Convert ShelleyToMaryEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToMaryEra

Convert Era AlonzoEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Experimental.Eras

Methods

convert :: Era era -> AlonzoEraOnwards era Source #

Convert Era BabbageEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Experimental.Eras

Methods

convert :: Era era -> BabbageEraOnwards era Source #

Convert Era ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Experimental.Eras

Methods

convert :: Era era -> ShelleyBasedEra era Source #

Convert Era CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Experimental.Eras

Methods

convert :: Era era -> CardanoEra era Source #

Convert (a2 :: a1 -> Type) (a2 :: a1 -> Type) Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.Convert

Methods

convert :: forall (era :: a1). a2 era -> a2 era Source #

class Inject t s where Source #

Methods

inject :: t -> s Source #

Instances

Instances details
Inject Coin DeltaCoin 
Instance details

Defined in Cardano.Ledger.Coin

Inject Coin MaryValue 
Instance details

Defined in Cardano.Ledger.Mary.Value

Inject a a 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

inject :: a -> a Source #

Inject (BabbageContextError era) (ConwayContextError era) 
Instance details

Defined in Cardano.Ledger.Conway.TxInfo

Inject (AlonzoContextError era) (BabbageContextError era) 
Instance details

Defined in Cardano.Ledger.Babbage.TxInfo

Inject (AlonzoContextError era) (ConwayContextError era) 
Instance details

Defined in Cardano.Ledger.Conway.TxInfo

Eons

From Byron

byronToAlonzoEraConstraints :: ByronToAlonzoEra era -> (ByronToAlonzoEraConstraints era => a) -> a Source #

From Shelley

shelleyEraOnlyConstraints :: ShelleyEraOnly era -> (ShelleyEraOnlyConstraints era => a) -> a Source #

data ShelleyToAllegraEra era where Source #

shelleyToAllegraEraConstraints :: ShelleyToAllegraEra era -> (ShelleyToAllegraEraConstraints era => a) -> a Source #

data ShelleyToMaryEra era where Source #

shelleyToMaryEraConstraints :: ShelleyToMaryEra era -> (ShelleyToMaryEraConstraints era => a) -> a Source #

data ShelleyToAlonzoEra era where Source #

shelleyToAlonzoEraConstraints :: ShelleyToAlonzoEra era -> (ShelleyToAlonzoEraConstraints era => a) -> a Source #

data ShelleyToBabbageEra era where Source #

Instances

Instances details
Eon ShelleyToBabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToBabbageEra

Methods

inEonForEra :: a -> (ShelleyToBabbageEra era -> a) -> CardanoEra era -> a Source #

ToCardanoEra ShelleyToBabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToBabbageEra

Convert ShelleyToBabbageEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToBabbageEra

Convert ShelleyToBabbageEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToBabbageEra

Show (ShelleyToBabbageEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToBabbageEra

Eq (ShelleyToBabbageEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToBabbageEra

Ord (ShelleyToBabbageEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToBabbageEra

shelleyToBabbageEraConstraints :: ShelleyToBabbageEra era -> (ShelleyToBabbageEraConstraints era => a) -> a Source #

data ShelleyBasedEra era where Source #

While the Byron and Shelley eras are quite different, there are several eras that are based on Shelley with only minor differences. It is useful to be able to treat the Shelley-based eras in a mostly-uniform way.

Values of this type witness the fact that the era is Shelley-based. This can be used to constrain the era to being a Shelley-based on. It allows non-uniform handling making case distinctions on the constructor.

Instances

Instances details
Eon ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

Methods

inEonForEra :: a -> (ShelleyBasedEra era -> a) -> CardanoEra era -> a Source #

ToCardanoEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

TestEquality ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

Convert AllegraEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AllegraEraOnwards

Convert AlonzoEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AlonzoEraOnwards

Convert BabbageEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.BabbageEraOnwards

Convert ConwayEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ConwayEraOnwards

Convert MaryEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.MaryEraOnwards

Convert ShelleyBasedEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

Convert ShelleyEraOnly ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyEraOnly

Convert ShelleyToAllegraEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToAllegraEra

Convert ShelleyToAlonzoEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToAlonzoEra

Convert ShelleyToBabbageEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToBabbageEra

Convert ShelleyToMaryEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyToMaryEra

Convert Era ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Experimental.Eras

Methods

convert :: Era era -> ShelleyBasedEra era Source #

ToJSON (ShelleyBasedEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

Methods

toJSON :: ShelleyBasedEra era -> Value

toEncoding :: ShelleyBasedEra era -> Encoding

toJSONList :: [ShelleyBasedEra era] -> Value

toEncodingList :: [ShelleyBasedEra era] -> Encoding

omitField :: ShelleyBasedEra era -> Bool

Show (ShelleyBasedEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

NFData (ShelleyBasedEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

Methods

rnf :: ShelleyBasedEra era -> () Source #

Eq (ShelleyBasedEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

Ord (ShelleyBasedEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

Pretty (ShelleyBasedEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

Methods

pretty :: ShelleyBasedEra era -> Doc ann #

prettyList :: [ShelleyBasedEra era] -> Doc ann #

data AnyShelleyBasedEra where Source #

Constructors

AnyShelleyBasedEra :: forall era. Typeable era => ShelleyBasedEra era -> AnyShelleyBasedEra 

Instances

Instances details
FromJSON AnyShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

ToJSON AnyShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

Bounded AnyShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

Enum AnyShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

Show AnyShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

Eq AnyShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ShelleyBasedEra

data InAnyShelleyBasedEra (thing :: Type -> Type) where Source #

This pairs up some era-dependent type with a ShelleyBasedEra value that tells us what era it is, but hides the era type. This is useful when the era is not statically known, for example when deserialising from a file.

Constructors

InAnyShelleyBasedEra :: forall era (thing :: Type -> Type). Typeable era => ShelleyBasedEra era -> thing era -> InAnyShelleyBasedEra thing 

From Allegra

data AllegraEraOnwards era where Source #

Instances

Instances details
Eon AllegraEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AllegraEraOnwards

Methods

inEonForEra :: a -> (AllegraEraOnwards era -> a) -> CardanoEra era -> a Source #

ToCardanoEra AllegraEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AllegraEraOnwards

Convert AllegraEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AllegraEraOnwards

Convert AllegraEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AllegraEraOnwards

Convert ConwayEraOnwards AllegraEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ConwayEraOnwards

Show (AllegraEraOnwards era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AllegraEraOnwards

Eq (AllegraEraOnwards era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AllegraEraOnwards

From Mary

data MaryEraOnwards era where Source #

maryEraOnwardsConstraints :: MaryEraOnwards era -> (MaryEraOnwardsConstraints era => a) -> a Source #

From Alonzo

data AlonzoEraOnwards era where Source #

Instances

Instances details
Eon AlonzoEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AlonzoEraOnwards

Methods

inEonForEra :: a -> (AlonzoEraOnwards era -> a) -> CardanoEra era -> a Source #

ToCardanoEra AlonzoEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AlonzoEraOnwards

Convert AlonzoEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AlonzoEraOnwards

Convert AlonzoEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AlonzoEraOnwards

Convert BabbageEraOnwards AlonzoEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.BabbageEraOnwards

Convert Era AlonzoEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Experimental.Eras

Methods

convert :: Era era -> AlonzoEraOnwards era Source #

Show (AlonzoEraOnwards era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AlonzoEraOnwards

Eq (AlonzoEraOnwards era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.AlonzoEraOnwards

From Babbage

data BabbageEraOnwards era where Source #

Instances

Instances details
Eon BabbageEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.BabbageEraOnwards

Methods

inEonForEra :: a -> (BabbageEraOnwards era -> a) -> CardanoEra era -> a Source #

ToCardanoEra BabbageEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.BabbageEraOnwards

Convert BabbageEraOnwards AlonzoEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.BabbageEraOnwards

Convert BabbageEraOnwards MaryEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.BabbageEraOnwards

Convert BabbageEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.BabbageEraOnwards

Convert BabbageEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.BabbageEraOnwards

Convert ConwayEraOnwards BabbageEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ConwayEraOnwards

Convert Era BabbageEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Experimental.Eras

Methods

convert :: Era era -> BabbageEraOnwards era Source #

Show (BabbageEraOnwards era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.BabbageEraOnwards

Eq (BabbageEraOnwards era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.BabbageEraOnwards

babbageEraOnwardsConstraints :: BabbageEraOnwards era -> (BabbageEraOnwardsConstraints era => a) -> a Source #

From Conway

data ConwayEraOnwards era where Source #

Instances

Instances details
Eon ConwayEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ConwayEraOnwards

Methods

inEonForEra :: a -> (ConwayEraOnwards era -> a) -> CardanoEra era -> a Source #

ToCardanoEra ConwayEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ConwayEraOnwards

Convert ConwayEraOnwards AllegraEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ConwayEraOnwards

Convert ConwayEraOnwards BabbageEraOnwards Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ConwayEraOnwards

Convert ConwayEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ConwayEraOnwards

Convert ConwayEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ConwayEraOnwards

Show (ConwayEraOnwards era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ConwayEraOnwards

Eq (ConwayEraOnwards era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ConwayEraOnwards

Ord (ConwayEraOnwards era) Source # 
Instance details

Defined in Cardano.Api.Internal.Eon.ConwayEraOnwards

conwayEraOnwardsConstraints :: ConwayEraOnwards era -> (ConwayEraOnwardsConstraints era => a) -> a Source #

Era case handling

Case on CardanoEra

caseByronOrShelleyBasedEra :: a -> (ShelleyBasedEraConstraints era => ShelleyBasedEra era -> a) -> CardanoEra era -> a Source #

caseByronOrShelleyBasedEra f g era returns f in Byron and applies g to Shelley-based eras.

caseByronToAlonzoOrBabbageEraOnwards :: (ByronToAlonzoEraConstraints era => ByronToAlonzoEra era -> a) -> (BabbageEraOnwardsConstraints era => BabbageEraOnwards era -> a) -> CardanoEra era -> a Source #

caseByronToAlonzoOrBabbageEraOnwards f g era applies f to byron, shelley, allegra, mary, and alonzo; and g to babbage and later eras.

Case on ShelleyBasedEra

caseShelleyEraOnlyOrAllegraEraOnwards :: (ShelleyEraOnlyConstraints era => ShelleyEraOnly era -> a) -> (AllegraEraOnwardsConstraints era => AllegraEraOnwards era -> a) -> ShelleyBasedEra era -> a Source #

caseShelleyEraOnlyOrAllegraEraOnwards f g era applies f to shelley; and applies g to allegra and later eras.

caseShelleyToAllegraOrMaryEraOnwards :: (ShelleyToAllegraEraConstraints era => ShelleyToAllegraEra era -> a) -> (MaryEraOnwardsConstraints era => MaryEraOnwards era -> a) -> ShelleyBasedEra era -> a Source #

caseShelleyToAllegraOrMaryEraOnwards f g era applies f to shelley and allegra; and applies g to mary and later eras.

caseShelleyToMaryOrAlonzoEraOnwards :: (ShelleyToMaryEraConstraints era => ShelleyToMaryEra era -> a) -> (AlonzoEraOnwardsConstraints era => AlonzoEraOnwards era -> a) -> ShelleyBasedEra era -> a Source #

caseShelleyToMaryOrAlonzoEraOnwards f g era applies f to shelley, allegra, and mary; and applies g to alonzo and later eras.

caseShelleyToAlonzoOrBabbageEraOnwards :: (ShelleyToAlonzoEraConstraints era => ShelleyToAlonzoEra era -> a) -> (BabbageEraOnwardsConstraints era => BabbageEraOnwards era -> a) -> ShelleyBasedEra era -> a Source #

caseShelleyToAlonzoOrBabbageEraOnwards f g era applies f to shelley, allegra, mary, and alonzo; and applies g to babbage and later eras.

caseShelleyToBabbageOrConwayEraOnwards :: (ShelleyToBabbageEraConstraints era => ShelleyToBabbageEra era -> a) -> (ConwayEraOnwardsConstraints era => ConwayEraOnwards era -> a) -> ShelleyBasedEra era -> a Source #

caseShelleyToBabbageOrConwayEraOnwards f g era applies f to eras before conway; and applies g to conway and later eras.

Eon relaxation

for AlonzoEraOnly

for AlonzoEraOnwards

alonzoEraOnwardsToMaryEraOnwards :: AlonzoEraOnwards era -> MaryEraOnwards era Source #

Deprecated: Use convert instead

for BabbageEraOnwards

babbageEraOnwardsToMaryEraOnwards :: BabbageEraOnwards era -> MaryEraOnwards era Source #

Deprecated: Use convert instead

Assertions on era

IO

newtype File content (direction :: FileDirection) Source #

A file path with additional type information to indicate what the file is meant to contain and whether it is to be used for reading or writing.

Constructors

File 

Fields

Instances

Instances details
FromJSON (File content direction) Source # 
Instance details

Defined in Cardano.Api.Internal.IO.Base

Methods

parseJSON :: Value -> Parser (File content direction)

parseJSONList :: Value -> Parser [File content direction]

omittedField :: Maybe (File content direction)

ToJSON (File content direction) Source # 
Instance details

Defined in Cardano.Api.Internal.IO.Base

Methods

toJSON :: File content direction -> Value

toEncoding :: File content direction -> Encoding

toJSONList :: [File content direction] -> Value

toEncodingList :: [File content direction] -> Encoding

omitField :: File content direction -> Bool

IsString (File content direction) Source # 
Instance details

Defined in Cardano.Api.Internal.IO.Base

Methods

fromString :: String -> File content direction Source #

Read (File content direction) Source # 
Instance details

Defined in Cardano.Api.Internal.IO.Base

Methods

readsPrec :: Int -> ReadS (File content direction) Source #

readList :: ReadS [File content direction] Source #

readPrec :: ReadPrec (File content direction) Source #

readListPrec :: ReadPrec [File content direction] Source #

Show (File content direction) Source # 
Instance details

Defined in Cardano.Api.Internal.IO.Base

Methods

showsPrec :: Int -> File content direction -> ShowS Source #

show :: File content direction -> String Source #

showList :: [File content direction] -> ShowS Source #

Eq (File content direction) Source # 
Instance details

Defined in Cardano.Api.Internal.IO.Base

Methods

(==) :: File content direction -> File content direction -> Bool Source #

(/=) :: File content direction -> File content direction -> Bool Source #

Ord (File content direction) Source # 
Instance details

Defined in Cardano.Api.Internal.IO.Base

Methods

compare :: File content direction -> File content direction -> Ordering Source #

(<) :: File content direction -> File content direction -> Bool Source #

(<=) :: File content direction -> File content direction -> Bool Source #

(>) :: File content direction -> File content direction -> Bool Source #

(>=) :: File content direction -> File content direction -> Bool Source #

max :: File content direction -> File content direction -> File content direction Source #

min :: File content direction -> File content direction -> File content direction Source #

data FileDirection Source #

Constructors

In

Indicate the file is to be used for reading.

Out

Indicate the file is to be used for writing.

InOut

Indicate the file is to be used for both reading and writing.

mapFile :: forall content (direction :: FileDirection). (FilePath -> FilePath) -> File content direction -> File content direction Source #

onlyIn :: File content 'InOut -> File content 'In Source #

onlyOut :: File content 'InOut -> File content 'Out Source #

intoFile :: File content 'Out -> content -> (File content 'Out -> stream -> result) -> (content -> stream) -> result Source #

Given a way to serialise a value and a way to write the stream to a file, serialise a value into a stream, and write it to a file.

Whilst it is possible to call the serialisation and writing functions separately, doing so means the compiler is unable to match the content type of the file with the type of the content being serialised.

Using this function ensures that the content type of the file always matches with the content value and prevents any type mismatches.

readTextFile :: MonadIO m => File content 'In -> m (Either (FileError e) Text) Source #

writeTextFile :: MonadIO m => File content 'Out -> Text -> m (Either (FileError e) ()) Source #

writeTextOutput :: MonadIO m => Maybe (File content 'Out) -> Text -> m (Either (FileError e) ()) Source #

Type tags

class Typeable t => HasTypeProxy t where Source #

Associated Types

data AsType t Source #

A family of singleton types used in this API to indicate which type to use where it would otherwise be ambiguous or merely unclear.

Values of this type are passed to deserialisation functions for example.

Methods

proxyToAsType :: Proxy t -> AsType t Source #

Instances

Instances details
HasTypeProxy AddressAny Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Associated Types

data AsType AddressAny 
Instance details

Defined in Cardano.Api.Internal.Address

HasTypeProxy ByronAddr Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Associated Types

data AsType ByronAddr 
Instance details

Defined in Cardano.Api.Internal.Address

HasTypeProxy ShelleyAddr Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Associated Types

data AsType ShelleyAddr 
Instance details

Defined in Cardano.Api.Internal.Address

HasTypeProxy StakeAddress Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Associated Types

data AsType StakeAddress 
Instance details

Defined in Cardano.Api.Internal.Address

HasTypeProxy BlockHeader Source # 
Instance details

Defined in Cardano.Api.Internal.Block

Associated Types

data AsType BlockHeader 
Instance details

Defined in Cardano.Api.Internal.Block

HasTypeProxy DRepMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.DRepMetadata

Associated Types

data AsType DRepMetadata 
Instance details

Defined in Cardano.Api.Internal.DRepMetadata

HasTypeProxy AllegraEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Associated Types

data AsType AllegraEra 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

HasTypeProxy AlonzoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Associated Types

data AsType AlonzoEra 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

HasTypeProxy BabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Associated Types

data AsType BabbageEra 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

HasTypeProxy ByronEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Associated Types

data AsType ByronEra 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

HasTypeProxy ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Associated Types

data AsType ConwayEra 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

HasTypeProxy MaryEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Associated Types

data AsType MaryEra 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

HasTypeProxy ShelleyEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

Associated Types

data AsType ShelleyEra 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

HasTypeProxy GovernancePoll Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Poll

Associated Types

data AsType GovernancePoll 
Instance details

Defined in Cardano.Api.Internal.Governance.Poll

HasTypeProxy GovernancePollAnswer Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Poll

HasTypeProxy ByronKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Associated Types

data AsType ByronKey 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

HasTypeProxy ByronKeyLegacy Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Associated Types

data AsType ByronKeyLegacy 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

HasTypeProxy KesKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

Associated Types

data AsType KesKey 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

HasTypeProxy VrfKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

Associated Types

data AsType VrfKey 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

HasTypeProxy CommitteeColdExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTypeProxy CommitteeColdKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTypeProxy CommitteeHotExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTypeProxy CommitteeHotKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Associated Types

data AsType CommitteeHotKey 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTypeProxy DRepExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Associated Types

data AsType DRepExtendedKey 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTypeProxy DRepKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Associated Types

data AsType DRepKey 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTypeProxy GenesisDelegateExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTypeProxy GenesisDelegateKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTypeProxy GenesisExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTypeProxy GenesisKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Associated Types

data AsType GenesisKey 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTypeProxy GenesisUTxOKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Associated Types

data AsType GenesisUTxOKey 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTypeProxy PaymentExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTypeProxy PaymentKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Associated Types

data AsType PaymentKey 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTypeProxy StakeExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTypeProxy StakeKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Associated Types

data AsType StakeKey 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTypeProxy StakePoolExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTypeProxy StakePoolKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Associated Types

data AsType StakePoolKey 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTypeProxy OperationalCertificate Source # 
Instance details

Defined in Cardano.Api.Internal.OperationalCertificate

HasTypeProxy OperationalCertificateIssueCounter Source # 
Instance details

Defined in Cardano.Api.Internal.OperationalCertificate

HasTypeProxy PraosNonce Source # 
Instance details

Defined in Cardano.Api.Internal.ProtocolParameters

Associated Types

data AsType PraosNonce 
Instance details

Defined in Cardano.Api.Internal.ProtocolParameters

HasTypeProxy UpdateProposal Source # 
Instance details

Defined in Cardano.Api.Internal.ProtocolParameters

HasTypeProxy EraHistory Source # 
Instance details

Defined in Cardano.Api.Internal.Query

Associated Types

data AsType EraHistory 
Instance details

Defined in Cardano.Api.Internal.Query

HasTypeProxy PlutusScriptV1 Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Associated Types

data AsType PlutusScriptV1 
Instance details

Defined in Cardano.Api.Internal.Script

HasTypeProxy PlutusScriptV2 Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Associated Types

data AsType PlutusScriptV2 
Instance details

Defined in Cardano.Api.Internal.Script

HasTypeProxy PlutusScriptV3 Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Associated Types

data AsType PlutusScriptV3 
Instance details

Defined in Cardano.Api.Internal.Script

HasTypeProxy ScriptHash Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Associated Types

data AsType ScriptHash 
Instance details

Defined in Cardano.Api.Internal.Script

HasTypeProxy ScriptInAnyLang Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Associated Types

data AsType ScriptInAnyLang 
Instance details

Defined in Cardano.Api.Internal.Script

HasTypeProxy SimpleScript' Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Associated Types

data AsType SimpleScript' 
Instance details

Defined in Cardano.Api.Internal.Script

HasTypeProxy HashableScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

HasTypeProxy ScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Associated Types

data AsType ScriptData 
Instance details

Defined in Cardano.Api.Internal.ScriptData

HasTypeProxy TextEnvelope Source # 
Instance details

Defined in Cardano.Api.Internal.SerialiseTextEnvelope

Associated Types

data AsType TextEnvelope 
Instance details

Defined in Cardano.Api.Internal.SerialiseTextEnvelope

HasTypeProxy ByronUpdateProposal Source # 
Instance details

Defined in Cardano.Api.Internal.SpecialByron

HasTypeProxy ByronVote Source # 
Instance details

Defined in Cardano.Api.Internal.SpecialByron

Associated Types

data AsType ByronVote 
Instance details

Defined in Cardano.Api.Internal.SpecialByron

HasTypeProxy StakePoolMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.StakePoolMetadata

HasTypeProxy TxId Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Associated Types

data AsType TxId 
Instance details

Defined in Cardano.Api.Internal.TxIn

HasTypeProxy TxMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

Associated Types

data AsType TxMetadata 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

HasTypeProxy AssetName Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Associated Types

data AsType AssetName 
Instance details

Defined in Cardano.Api.Internal.Value

HasTypeProxy PolicyId Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Associated Types

data AsType PolicyId 
Instance details

Defined in Cardano.Api.Internal.Value

HasTypeProxy GovActionId Source # 
Instance details

Defined in Cardano.Api.Internal.Orphans.Serialisation

Associated Types

data AsType GovActionId 
Instance details

Defined in Cardano.Api.Internal.Orphans.Serialisation

HasTypeProxy Term Source # 
Instance details

Defined in Cardano.Api.Internal.Serialise.Cbor.Canonical

Associated Types

data AsType Term 
Instance details

Defined in Cardano.Api.Internal.Serialise.Cbor.Canonical

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

Defined in Cardano.Api.Internal.Address

Associated Types

data AsType (Address addrtype) 
Instance details

Defined in Cardano.Api.Internal.Address

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

Methods

proxyToAsType :: Proxy (Address addrtype) -> AsType (Address addrtype) Source #

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

Defined in Cardano.Api.Internal.Address

Associated Types

data AsType (AddressInEra era) 
Instance details

Defined in Cardano.Api.Internal.Address

Typeable era => HasTypeProxy (Certificate era) Source # 
Instance details

Defined in Cardano.Api.Internal.Certificate

Associated Types

data AsType (Certificate era) 
Instance details

Defined in Cardano.Api.Internal.Certificate

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

Defined in Cardano.Api.Internal.Governance.Actions.ProposalProcedure

Associated Types

data AsType (Proposal era) 
Instance details

Defined in Cardano.Api.Internal.Governance.Actions.ProposalProcedure

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

Defined in Cardano.Api.Internal.Governance.Actions.VotingProcedure

Associated Types

data AsType (VotingProcedure era) 
Instance details

Defined in Cardano.Api.Internal.Governance.Actions.VotingProcedure

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

Defined in Cardano.Api.Internal.Governance.Actions.VotingProcedure

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

Defined in Cardano.Api.Internal.Hash

Associated Types

data AsType (Hash a) 
Instance details

Defined in Cardano.Api.Internal.Hash

data AsType (Hash a) = AsHash (AsType a)

Methods

proxyToAsType :: Proxy (Hash a) -> AsType (Hash a) Source #

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

Defined in Cardano.Api.Internal.Keys.Class

Associated Types

data AsType (SigningKey a) 
Instance details

Defined in Cardano.Api.Internal.Keys.Class

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

Defined in Cardano.Api.Internal.Keys.Class

Associated Types

data AsType (VerificationKey a) 
Instance details

Defined in Cardano.Api.Internal.Keys.Class

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

Defined in Cardano.Api.Internal.Script

Associated Types

data AsType (PlutusScript lang) 
Instance details

Defined in Cardano.Api.Internal.Script

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

Defined in Cardano.Api.Internal.Script

Associated Types

data AsType (Script lang) 
Instance details

Defined in Cardano.Api.Internal.Script

data AsType (Script lang) = AsScript (AsType lang)

Methods

proxyToAsType :: Proxy (Script lang) -> AsType (Script lang) Source #

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

Defined in Cardano.Api.Internal.Script

Associated Types

data AsType (ScriptInEra era) 
Instance details

Defined in Cardano.Api.Internal.Script

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

Defined in Cardano.Api.Internal.Tx.Sign

Associated Types

data AsType (KeyWitness era) 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

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

Defined in Cardano.Api.Internal.Tx.Sign

Associated Types

data AsType (Tx era) 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

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

Methods

proxyToAsType :: Proxy (Tx era) -> AsType (Tx era) Source #

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

Defined in Cardano.Api.Internal.Tx.Sign

Associated Types

data AsType (TxBody era) 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

data AsType (TxBody era) = AsTxBody (AsType era)

Methods

proxyToAsType :: Proxy (TxBody era) -> AsType (TxBody era) Source #

HasTypeProxy (Credential 'ColdCommitteeRole) Source # 
Instance details

Defined in Cardano.Api.Internal.Orphans.Serialisation

HasTypeProxy (Credential 'DRepRole) Source # 
Instance details

Defined in Cardano.Api.Internal.Orphans.Serialisation

HasTypeProxy (Credential 'HotCommitteeRole) Source # 
Instance details

Defined in Cardano.Api.Internal.Orphans.Serialisation

(HasTypeProxy era, HasTypeProxy lang) => HasTypeProxy (PlutusScriptInEra era lang) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Associated Types

data AsType (PlutusScriptInEra era lang) 
Instance details

Defined in Cardano.Api.Internal.Script

data family AsType t Source #

A family of singleton types used in this API to indicate which type to use where it would otherwise be ambiguous or merely unclear.

Values of this type are passed to deserialisation functions for example.

Instances

Instances details
data AsType AddressAny Source # 
Instance details

Defined in Cardano.Api.Internal.Address

data AsType ByronAddr Source # 
Instance details

Defined in Cardano.Api.Internal.Address

data AsType ShelleyAddr Source # 
Instance details

Defined in Cardano.Api.Internal.Address

data AsType StakeAddress Source # 
Instance details

Defined in Cardano.Api.Internal.Address

data AsType BlockHeader Source # 
Instance details

Defined in Cardano.Api.Internal.Block

data AsType DRepMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.DRepMetadata

data AsType AllegraEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

data AsType AlonzoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

data AsType BabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

data AsType ByronEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

data AsType ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

data AsType MaryEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

data AsType ShelleyEra Source # 
Instance details

Defined in Cardano.Api.Internal.Eras.Core

data AsType GovernancePoll Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Poll

data AsType GovernancePollAnswer Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Poll

data AsType ByronKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

data AsType ByronKeyLegacy Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

data AsType KesKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

data AsType VrfKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

data AsType CommitteeColdExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType CommitteeColdKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType CommitteeHotExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType CommitteeHotKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType DRepExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType DRepKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType GenesisDelegateExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType GenesisDelegateKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType GenesisExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType GenesisKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType GenesisUTxOKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType PaymentExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType PaymentKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType StakeExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType StakeKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType StakePoolExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType StakePoolKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType OperationalCertificate Source # 
Instance details

Defined in Cardano.Api.Internal.OperationalCertificate

data AsType OperationalCertificateIssueCounter Source # 
Instance details

Defined in Cardano.Api.Internal.OperationalCertificate

data AsType PraosNonce Source # 
Instance details

Defined in Cardano.Api.Internal.ProtocolParameters

data AsType UpdateProposal Source # 
Instance details

Defined in Cardano.Api.Internal.ProtocolParameters

data AsType EraHistory Source # 
Instance details

Defined in Cardano.Api.Internal.Query

data AsType PlutusScriptV1 Source # 
Instance details

Defined in Cardano.Api.Internal.Script

data AsType PlutusScriptV2 Source # 
Instance details

Defined in Cardano.Api.Internal.Script

data AsType PlutusScriptV3 Source # 
Instance details

Defined in Cardano.Api.Internal.Script

data AsType ScriptHash Source # 
Instance details

Defined in Cardano.Api.Internal.Script

data AsType ScriptInAnyLang Source # 
Instance details

Defined in Cardano.Api.Internal.Script

data AsType SimpleScript' Source # 
Instance details

Defined in Cardano.Api.Internal.Script

data AsType HashableScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

data AsType ScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

data AsType TextEnvelope Source # 
Instance details

Defined in Cardano.Api.Internal.SerialiseTextEnvelope

data AsType ByronUpdateProposal Source # 
Instance details

Defined in Cardano.Api.Internal.SpecialByron

data AsType ByronVote Source # 
Instance details

Defined in Cardano.Api.Internal.SpecialByron

data AsType StakePoolMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.StakePoolMetadata

data AsType TxId Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

data AsType TxMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

data AsType AssetName Source # 
Instance details

Defined in Cardano.Api.Internal.Value

data AsType PolicyId Source # 
Instance details

Defined in Cardano.Api.Internal.Value

data AsType GovActionId Source # 
Instance details

Defined in Cardano.Api.Internal.Orphans.Serialisation

data AsType Term Source # 
Instance details

Defined in Cardano.Api.Internal.Serialise.Cbor.Canonical

data AsType (Address addrtype) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

data AsType (Address addrtype) = AsAddress (AsType addrtype)
data AsType (AddressInEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

data AsType (Certificate era) Source # 
Instance details

Defined in Cardano.Api.Internal.Certificate

data AsType (Proposal era) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Actions.ProposalProcedure

data AsType (VotingProcedure era) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Actions.VotingProcedure

data AsType (VotingProcedures era) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Actions.VotingProcedure

data AsType (Hash a) Source # 
Instance details

Defined in Cardano.Api.Internal.Hash

data AsType (Hash a) = AsHash (AsType a)
data AsType (SigningKey a) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Class

data AsType (VerificationKey a) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Class

data AsType (PlutusScript lang) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

data AsType (Script lang) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

data AsType (Script lang) = AsScript (AsType lang)
data AsType (ScriptInEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

data AsType (KeyWitness era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

data AsType (Tx era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

data AsType (Tx era) = AsTx (AsType era)
data AsType (TxBody era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

data AsType (TxBody era) = AsTxBody (AsType era)
data AsType (Credential 'ColdCommitteeRole) Source # 
Instance details

Defined in Cardano.Api.Internal.Orphans.Serialisation

data AsType (Credential 'DRepRole) Source # 
Instance details

Defined in Cardano.Api.Internal.Orphans.Serialisation

data AsType (Credential 'HotCommitteeRole) Source # 
Instance details

Defined in Cardano.Api.Internal.Orphans.Serialisation

data AsType (PlutusScriptInEra era lang) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

asType :: HasTypeProxy t => AsType t Source #

Provide type proxy from the already existing HasTypeProxy instance

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 Source #

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

data SigningKey keyrole 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 ByronKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Key ByronKeyLegacy Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Key KesKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

Key VrfKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

Key CommitteeColdExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Key CommitteeColdKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Key CommitteeHotExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Key CommitteeHotKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Key DRepExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Key DRepKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Key GenesisDelegateExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Key GenesisDelegateKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Key GenesisExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Key GenesisKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Key GenesisUTxOKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Key PaymentExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Key PaymentKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Key StakeExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Key StakeKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Key StakePoolExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Key StakePoolKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data family SigningKey keyrole Source #

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

Instances

Instances details
IsString (SigningKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

IsString (SigningKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

IsString (SigningKey KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

IsString (SigningKey VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

IsString (SigningKey CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (SigningKey CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (SigningKey CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (SigningKey CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (SigningKey DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (SigningKey DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (SigningKey GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (SigningKey GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (SigningKey GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (SigningKey GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (SigningKey GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (SigningKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (SigningKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (SigningKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (SigningKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (SigningKey StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (SigningKey StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (SigningKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Show (SigningKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Show (SigningKey KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

Show (SigningKey VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

Show (SigningKey CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (SigningKey CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (SigningKey CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (SigningKey CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (SigningKey DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (SigningKey DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (SigningKey GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (SigningKey GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (SigningKey GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (SigningKey GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (SigningKey GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (SigningKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (SigningKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (SigningKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (SigningKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (SigningKey StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (SigningKey StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

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

Defined in Cardano.Api.Internal.Keys.Class

Associated Types

data AsType (SigningKey a) 
Instance details

Defined in Cardano.Api.Internal.Keys.Class

SerialiseAsCBOR (SigningKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsCBOR (SigningKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsCBOR (SigningKey KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsCBOR (SigningKey VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsCBOR (SigningKey CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (SigningKey KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsBech32 (SigningKey VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsBech32 (SigningKey CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (SigningKey CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (SigningKey CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (SigningKey CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (SigningKey DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (SigningKey DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (SigningKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (SigningKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (SigningKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (SigningKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (SigningKey StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (SigningKey StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (SigningKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsRawBytes (SigningKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsRawBytes (SigningKey KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsRawBytes (SigningKey VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsRawBytes (SigningKey CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (SigningKey CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (SigningKey CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (SigningKey CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (SigningKey DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (SigningKey DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (SigningKey GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (SigningKey GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (SigningKey GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (SigningKey GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (SigningKey GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (SigningKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (SigningKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (SigningKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (SigningKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (SigningKey StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (SigningKey StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (SigningKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

HasTextEnvelope (SigningKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

HasTextEnvelope (SigningKey KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

HasTextEnvelope (SigningKey VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

HasTextEnvelope (SigningKey CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (SigningKey CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (SigningKey CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (SigningKey CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (SigningKey DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (SigningKey DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (SigningKey GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (SigningKey GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (SigningKey GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (SigningKey GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (SigningKey GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (SigningKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (SigningKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (SigningKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (SigningKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (SigningKey StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (SigningKey StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (SigningKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

FromCBOR (SigningKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

FromCBOR (SigningKey KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

FromCBOR (SigningKey VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

FromCBOR (SigningKey CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (SigningKey CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (SigningKey CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (SigningKey CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (SigningKey DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (SigningKey DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (SigningKey GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (SigningKey GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (SigningKey GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (SigningKey GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (SigningKey GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (SigningKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (SigningKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (SigningKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (SigningKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (SigningKey StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (SigningKey StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (SigningKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

ToCBOR (SigningKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

ToCBOR (SigningKey KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

ToCBOR (SigningKey VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

ToCBOR (SigningKey CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (SigningKey CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (SigningKey CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (SigningKey CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (SigningKey DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (SigningKey DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (SigningKey GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (SigningKey GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (SigningKey GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (SigningKey GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (SigningKey GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (SigningKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (SigningKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (SigningKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (SigningKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (SigningKey StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (SigningKey StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype SigningKey ByronKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

newtype SigningKey ByronKeyLegacy Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

newtype SigningKey KesKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

newtype SigningKey VrfKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

newtype SigningKey CommitteeColdExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype SigningKey CommitteeColdKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype SigningKey CommitteeHotExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype SigningKey CommitteeHotKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype SigningKey DRepExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype SigningKey DRepKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype SigningKey GenesisDelegateExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype SigningKey GenesisDelegateKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype SigningKey GenesisExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype SigningKey GenesisKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype SigningKey GenesisUTxOKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype SigningKey PaymentExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype SigningKey PaymentKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype SigningKey StakeExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype SigningKey StakeKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype SigningKey StakePoolExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype SigningKey StakePoolKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType (SigningKey a) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Class

data family VerificationKey keyrole Source #

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

Instances

Instances details
IsString (VerificationKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

IsString (VerificationKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

IsString (VerificationKey KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

IsString (VerificationKey VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

IsString (VerificationKey CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (VerificationKey CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (VerificationKey CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (VerificationKey CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (VerificationKey DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (VerificationKey DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (VerificationKey GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (VerificationKey GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (VerificationKey GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (VerificationKey GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (VerificationKey GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (VerificationKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (VerificationKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (VerificationKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (VerificationKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (VerificationKey StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (VerificationKey StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (VerificationKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Show (VerificationKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Show (VerificationKey KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

Show (VerificationKey VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

Show (VerificationKey CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (VerificationKey CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (VerificationKey CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (VerificationKey CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (VerificationKey DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (VerificationKey DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (VerificationKey GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (VerificationKey GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (VerificationKey GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (VerificationKey GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (VerificationKey GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (VerificationKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (VerificationKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (VerificationKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (VerificationKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (VerificationKey StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (VerificationKey StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

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

Defined in Cardano.Api.Internal.Keys.Class

Associated Types

data AsType (VerificationKey a) 
Instance details

Defined in Cardano.Api.Internal.Keys.Class

SerialiseAsCBOR (VerificationKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsCBOR (VerificationKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsCBOR (VerificationKey KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsCBOR (VerificationKey VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsCBOR (VerificationKey CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (VerificationKey KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsBech32 (VerificationKey VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsBech32 (VerificationKey CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (VerificationKey CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (VerificationKey CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (VerificationKey CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (VerificationKey DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (VerificationKey DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (VerificationKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (VerificationKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (VerificationKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (VerificationKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (VerificationKey StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (VerificationKey StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (VerificationKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsRawBytes (VerificationKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsRawBytes (VerificationKey KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsRawBytes (VerificationKey VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsRawBytes (VerificationKey CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (VerificationKey CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (VerificationKey CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (VerificationKey CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (VerificationKey DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (VerificationKey DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (VerificationKey GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (VerificationKey GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (VerificationKey GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (VerificationKey GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (VerificationKey GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (VerificationKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (VerificationKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (VerificationKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (VerificationKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (VerificationKey StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (VerificationKey StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (VerificationKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

HasTextEnvelope (VerificationKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

HasTextEnvelope (VerificationKey KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

HasTextEnvelope (VerificationKey VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

HasTextEnvelope (VerificationKey CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (VerificationKey CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (VerificationKey CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (VerificationKey CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (VerificationKey DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (VerificationKey DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (VerificationKey GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (VerificationKey GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (VerificationKey GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (VerificationKey GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (VerificationKey GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (VerificationKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (VerificationKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (VerificationKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (VerificationKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (VerificationKey StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (VerificationKey StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (VerificationKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

FromCBOR (VerificationKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

FromCBOR (VerificationKey KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

FromCBOR (VerificationKey VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

FromCBOR (VerificationKey CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (VerificationKey CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (VerificationKey CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (VerificationKey CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (VerificationKey DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (VerificationKey DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (VerificationKey GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (VerificationKey GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (VerificationKey GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (VerificationKey GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (VerificationKey GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (VerificationKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (VerificationKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (VerificationKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (VerificationKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (VerificationKey StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (VerificationKey StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (VerificationKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

ToCBOR (VerificationKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

ToCBOR (VerificationKey KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

ToCBOR (VerificationKey VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

ToCBOR (VerificationKey CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (VerificationKey CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (VerificationKey CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (VerificationKey CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (VerificationKey DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (VerificationKey DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (VerificationKey GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (VerificationKey GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (VerificationKey GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (VerificationKey GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (VerificationKey GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (VerificationKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (VerificationKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (VerificationKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (VerificationKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (VerificationKey StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (VerificationKey StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (VerificationKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Eq (VerificationKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Eq (VerificationKey KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

Eq (VerificationKey VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

Eq (VerificationKey CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (VerificationKey CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (VerificationKey CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (VerificationKey CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (VerificationKey DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (VerificationKey DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (VerificationKey GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (VerificationKey GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (VerificationKey GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (VerificationKey GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (VerificationKey GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (VerificationKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (VerificationKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (VerificationKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (VerificationKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (VerificationKey StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (VerificationKey StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype VerificationKey ByronKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

newtype VerificationKey ByronKeyLegacy Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

newtype VerificationKey KesKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

newtype VerificationKey VrfKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

newtype VerificationKey CommitteeColdExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype VerificationKey CommitteeColdKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype VerificationKey CommitteeHotExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype VerificationKey CommitteeHotKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype VerificationKey DRepExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype VerificationKey DRepKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype VerificationKey GenesisDelegateExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype VerificationKey GenesisDelegateKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype VerificationKey GenesisExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype VerificationKey GenesisKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype VerificationKey GenesisUTxOKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype VerificationKey PaymentExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype VerificationKey PaymentKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype VerificationKey StakeExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype VerificationKey StakeKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype VerificationKey StakePoolExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype VerificationKey StakePoolKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType (VerificationKey a) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Class

castVerificationKey :: CastVerificationKeyRole keyroleA keyroleB => VerificationKey keyroleA -> VerificationKey keyroleB Source #

Change the role of a VerificationKey, if the representation permits.

castSigningKey :: CastSigningKeyRole keyroleA keyroleB => SigningKey keyroleA -> SigningKey keyroleB Source #

Change the role of a SigningKey, if the representation permits.

generateSigningKey :: (MonadIO m, Key keyrole) => AsType keyrole -> m (SigningKey keyrole) Source #

Generate a SigningKey using a seed from operating system entropy.

generateInsecureSigningKey :: (MonadIO m, Key keyrole, SerialiseAsRawBytes (SigningKey keyrole)) => StdGen -> AsType keyrole -> m (SigningKey keyrole, StdGen) Source #

Hashes

In Cardano most keys are identified by their hash, and hashes are used in many other places.

data family Hash keyrole Source #

Instances

Instances details
FromJSON (Hash BlockHeader) Source # 
Instance details

Defined in Cardano.Api.Internal.Block

Methods

parseJSON :: Value -> Parser (Hash BlockHeader)

parseJSONList :: Value -> Parser [Hash BlockHeader]

omittedField :: Maybe (Hash BlockHeader)

FromJSON (Hash DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Methods

parseJSON :: Value -> Parser (Hash DRepKey)

parseJSONList :: Value -> Parser [Hash DRepKey]

omittedField :: Maybe (Hash DRepKey)

FromJSON (Hash GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Methods

parseJSON :: Value -> Parser (Hash GenesisKey)

parseJSONList :: Value -> Parser [Hash GenesisKey]

omittedField :: Maybe (Hash GenesisKey)

FromJSON (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Methods

parseJSON :: Value -> Parser (Hash PaymentKey)

parseJSONList :: Value -> Parser [Hash PaymentKey]

omittedField :: Maybe (Hash PaymentKey)

FromJSON (Hash StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromJSON (Hash StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Methods

parseJSON :: Value -> Parser (Hash StakePoolKey)

parseJSONList :: Value -> Parser [Hash StakePoolKey]

omittedField :: Maybe (Hash StakePoolKey)

FromJSON (Hash ScriptData) Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Methods

parseJSON :: Value -> Parser (Hash ScriptData)

parseJSONList :: Value -> Parser [Hash ScriptData]

omittedField :: Maybe (Hash ScriptData)

FromJSONKey (Hash ScriptData) 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Methods

fromJSONKey :: FromJSONKeyFunction (Hash ScriptData)

fromJSONKeyList :: FromJSONKeyFunction [Hash ScriptData]

ToJSON (Hash BlockHeader) Source # 
Instance details

Defined in Cardano.Api.Internal.Block

ToJSON (Hash DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Methods

toJSON :: Hash DRepKey -> Value

toEncoding :: Hash DRepKey -> Encoding

toJSONList :: [Hash DRepKey] -> Value

toEncodingList :: [Hash DRepKey] -> Encoding

omitField :: Hash DRepKey -> Bool

ToJSON (Hash GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Methods

toJSON :: Hash GenesisKey -> Value

toEncoding :: Hash GenesisKey -> Encoding

toJSONList :: [Hash GenesisKey] -> Value

toEncodingList :: [Hash GenesisKey] -> Encoding

omitField :: Hash GenesisKey -> Bool

ToJSON (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Methods

toJSON :: Hash PaymentKey -> Value

toEncoding :: Hash PaymentKey -> Encoding

toJSONList :: [Hash PaymentKey] -> Value

toEncodingList :: [Hash PaymentKey] -> Encoding

omitField :: Hash PaymentKey -> Bool

ToJSON (Hash StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToJSON (Hash StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToJSON (Hash ScriptData) Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Methods

toJSON :: Hash ScriptData -> Value

toEncoding :: Hash ScriptData -> Encoding

toJSONList :: [Hash ScriptData] -> Value

toEncodingList :: [Hash ScriptData] -> Encoding

omitField :: Hash ScriptData -> Bool

ToJSONKey (Hash DRepKey) 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Methods

toJSONKey :: ToJSONKeyFunction (Hash DRepKey)

toJSONKeyList :: ToJSONKeyFunction [Hash DRepKey]

ToJSONKey (Hash GenesisKey) 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Methods

toJSONKey :: ToJSONKeyFunction (Hash GenesisKey)

toJSONKeyList :: ToJSONKeyFunction [Hash GenesisKey]

ToJSONKey (Hash PaymentKey) 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Methods

toJSONKey :: ToJSONKeyFunction (Hash PaymentKey)

toJSONKeyList :: ToJSONKeyFunction [Hash PaymentKey]

ToJSONKey (Hash StakePoolExtendedKey) 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Methods

toJSONKey :: ToJSONKeyFunction (Hash StakePoolExtendedKey)

toJSONKeyList :: ToJSONKeyFunction [Hash StakePoolExtendedKey]

ToJSONKey (Hash StakePoolKey) 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Methods

toJSONKey :: ToJSONKeyFunction (Hash StakePoolKey)

toJSONKeyList :: ToJSONKeyFunction [Hash StakePoolKey]

ToJSONKey (Hash ScriptData) 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Methods

toJSONKey :: ToJSONKeyFunction (Hash ScriptData)

toJSONKeyList :: ToJSONKeyFunction [Hash ScriptData]

IsString (Hash BlockHeader) Source # 
Instance details

Defined in Cardano.Api.Internal.Block

IsString (Hash GovernancePoll) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Poll

IsString (Hash ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

IsString (Hash ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

IsString (Hash KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

IsString (Hash VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

IsString (Hash CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (Hash CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (Hash CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (Hash CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (Hash DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (Hash DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (Hash GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (Hash GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (Hash GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (Hash GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (Hash GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (Hash StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (Hash StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (Hash StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (Hash ScriptData) Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Show (Hash BlockHeader) Source # 
Instance details

Defined in Cardano.Api.Internal.Block

Show (Hash DRepMetadata) Source # 
Instance details

Defined in Cardano.Api.Internal.DRepMetadata

Show (Hash GovernancePoll) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Poll

Show (Hash ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Show (Hash ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Show (Hash KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

Show (Hash VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

Show (Hash CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (Hash CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (Hash CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (Hash CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (Hash DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (Hash DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (Hash GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (Hash GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (Hash GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (Hash GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (Hash GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (Hash StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (Hash StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (Hash StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (Hash StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (Hash ScriptData) Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Show (Hash StakePoolMetadata) Source # 
Instance details

Defined in Cardano.Api.Internal.StakePoolMetadata

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

Defined in Cardano.Api.Internal.Hash

Associated Types

data AsType (Hash a) 
Instance details

Defined in Cardano.Api.Internal.Hash

data AsType (Hash a) = AsHash (AsType a)

Methods

proxyToAsType :: Proxy (Hash a) -> AsType (Hash a) Source #

SerialiseAsCBOR (Hash ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsCBOR (Hash ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsCBOR (Hash KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsCBOR (Hash VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsCBOR (Hash CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (Hash CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (Hash CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (Hash DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (Hash StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (Hash StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash BlockHeader) Source # 
Instance details

Defined in Cardano.Api.Internal.Block

SerialiseAsRawBytes (Hash DRepMetadata) Source # 
Instance details

Defined in Cardano.Api.Internal.DRepMetadata

SerialiseAsRawBytes (Hash GovernancePoll) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Poll

SerialiseAsRawBytes (Hash ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsRawBytes (Hash ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsRawBytes (Hash KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsRawBytes (Hash VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsRawBytes (Hash CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash ScriptData) Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

SerialiseAsRawBytes (Hash StakePoolMetadata) Source # 
Instance details

Defined in Cardano.Api.Internal.StakePoolMetadata

FromCBOR (Hash ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

FromCBOR (Hash ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

FromCBOR (Hash KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

FromCBOR (Hash VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

FromCBOR (Hash CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (Hash CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (Hash CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (Hash CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (Hash DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (Hash DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (Hash GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (Hash GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (Hash GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (Hash GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (Hash GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (Hash StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (Hash StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (Hash StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (Hash ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Methods

toCBOR :: Hash ByronKey -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (Hash ByronKey) -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [Hash ByronKey] -> Size Source #

ToCBOR (Hash ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

ToCBOR (Hash KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

Methods

toCBOR :: Hash KesKey -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (Hash KesKey) -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [Hash KesKey] -> Size Source #

ToCBOR (Hash VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

Methods

toCBOR :: Hash VrfKey -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (Hash VrfKey) -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [Hash VrfKey] -> Size Source #

ToCBOR (Hash CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (Hash CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (Hash CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (Hash CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (Hash DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (Hash DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Methods

toCBOR :: Hash DRepKey -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (Hash DRepKey) -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [Hash DRepKey] -> Size Source #

ToCBOR (Hash GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (Hash GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (Hash GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (Hash GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (Hash GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (Hash StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (Hash StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Methods

toCBOR :: Hash StakeKey -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (Hash StakeKey) -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [Hash StakeKey] -> Size Source #

ToCBOR (Hash StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash BlockHeader) Source # 
Instance details

Defined in Cardano.Api.Internal.Block

Eq (Hash DRepMetadata) Source # 
Instance details

Defined in Cardano.Api.Internal.DRepMetadata

Eq (Hash GovernancePoll) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Poll

Eq (Hash ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Eq (Hash ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Eq (Hash KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

Eq (Hash VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

Eq (Hash CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash ScriptData) Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Eq (Hash StakePoolMetadata) Source # 
Instance details

Defined in Cardano.Api.Internal.StakePoolMetadata

Ord (Hash BlockHeader) Source # 
Instance details

Defined in Cardano.Api.Internal.Block

Ord (Hash GovernancePoll) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Poll

Ord (Hash ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Ord (Hash ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Ord (Hash KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

Ord (Hash VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

Ord (Hash CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Ord (Hash CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Ord (Hash CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Ord (Hash CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Ord (Hash DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Ord (Hash DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Ord (Hash GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Ord (Hash GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Ord (Hash GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Ord (Hash GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Ord (Hash GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Ord (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Ord (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Ord (Hash StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Ord (Hash StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Ord (Hash StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Ord (Hash StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Ord (Hash ScriptData) Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

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.Internal.Block

newtype Hash DRepMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.DRepMetadata

newtype Hash GovernancePoll Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Poll

newtype Hash ByronKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

newtype Hash ByronKeyLegacy Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

newtype Hash KesKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

newtype Hash VrfKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

newtype Hash CommitteeColdExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype Hash CommitteeColdKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype Hash CommitteeHotExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype Hash CommitteeHotKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype Hash DRepExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype Hash DRepKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype Hash GenesisDelegateExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype Hash GenesisDelegateKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype Hash GenesisExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype Hash GenesisKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype Hash GenesisUTxOKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype Hash PaymentExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype Hash PaymentKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype Hash StakeExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype Hash StakeKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype Hash StakePoolExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype Hash StakePoolKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype Hash ScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

newtype Hash StakePoolMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.StakePoolMetadata

data AsType (Hash a) Source # 
Instance details

Defined in Cardano.Api.Internal.Hash

data AsType (Hash a) = AsHash (AsType a)

castHash :: CastHash roleA roleB => Hash roleA -> Hash roleB Source #

Mnemonics

Functions for working with mnemonics ** Mnemonics generation

data MnemonicSize Source #

The size of a mnemonic sentence. The size is given in the number of words in the sentence. The allowed sizes are 12, 15, 18, 21, and 24.

Constructors

MS12 
MS15 
MS18 
MS21 
MS24 

generateMnemonic Source #

Arguments

:: MonadIO m 
=> MnemonicSize

The size of the mnemonic sentence to generate. Must be one of 12, 15, 18, 21, or 24.

-> m [Text] 

Generate a mnemonic sentence of the given size.

Key derivation from mnemonics

signingKeyFromMnemonic Source #

Arguments

:: SigningKeyFromRootKey keyrole 
=> AsType keyrole

Type of the extended signing key to generate.

-> [Text]

The mnemonic sentence. The length must be one of 12, 15, 18, 21, or 24. Each element of the list must be a single word.

-> Word32

The account number in the derivation path. First account is 0.

-> Either MnemonicToSigningKeyError (SigningKey keyrole) 

Generate a signing key from a mnemonic sentence for a key role that accepts only one payment key from an account number (DRep and committee keys). For other key roles (extended payment and stake keys), see signingKeyFromMnemonicWithPaymentKeyIndex.

We derive one key per account following the advice in https://cips.cardano.org/cip/CIP-0105: "Since it is best practice to use a single cryptographic key for a single purpose, we opt to keep DRep and committee keys separate from other keys in Cardano."

A derivation path is like a file path in a file system. It specifies the location of a key in the key tree. The path is a list of indices, one for each level of the tree. The indices are separated by a forward slash (/). In this function we only ask for one index: the account number.

For more information about address derivation check: * https://cips.cardano.org/cip/CIP-1852 * https://github.com/uniVocity/cardano-tutorials/blob/master/cardano-addresses.md#understanding-the-hd-wallet-address-format-bip-44 * https://cips.cardano.org/cip/CIP-0105

signingKeyFromMnemonicWithPaymentKeyIndex Source #

Arguments

:: IndexedSigningKeyFromRootKey keyrole 
=> AsType keyrole

Type of the extended signing key to generate.

-> [Text]

The mnemonic sentence. The length must be one of 12, 15, 18, 21, or 24. Each element of the list must be a single word.

-> Word32

The account number in the derivation path. The first account is 0.

-> Word32

The payment key number in the derivation path.

Consider that wallets following the BIP-44 standard only check 20 addresses without transactions before giving up. For example, if you have a fresh wallet and receive a payment on the address generated with address_index = 6, your wallet may only display the money received on addresses from 0 to 26. If you receive payment on an address with address_index = 30, the funds may not be displayed to you even though it's on the blockchain. It will only appear once there is a transaction in some address where address_index is between 10 and 29. The gap limit can be customized on some wallets, but increasing it reduces synchronization performance.

-> Either MnemonicToSigningKeyError (SigningKey keyrole) 

Generate a signing key from a mnemonic sentence for a key role that accepts several payment keys from an account number (extended payment and stake keys). For other key roles (DRep and committee keys), see signingKeyFromMnemonic.

A derivation path is like a file path in a file system. It specifies the location of a key in the key tree. The path is a list of indices, one for each level of the tree. The indices are separated by a forward slash (/). In this function, we only ask for two indices: the account number and the payment key number. Each account can have multiple payment keys.

For more information about address derivation, check: * https://cips.cardano.org/cip/CIP-1852 * https://github.com/uniVocity/cardano-tutorials/blob/master/cardano-addresses.md#understanding-the-hd-wallet-address-format-bip-44 * https://cips.cardano.org/cip/CIP-0105

Mnemonic word queries

findMnemonicWordsWithPrefix :: Text -> [(Text, Int)] Source #

Obtain the list of all mnemonic words that start with the given prefix and their index in the dictionary. For example: >>> findMnemonicWordsWithPrefix "cha" [("chair",302),("chalk",303),("champion",304),("change",305),("chaos",306),("chapter",307),("charge",308),("chase",309),("chat",310)]

autocompleteMnemonicPrefix :: Text -> Maybe Text Source #

Autocomplete the prefix of the mnemonic word as much as possible. In other words, find the longest common prefix for all the words that start with the given prefix. For example: >>> autocompleteMnemonicPrefix "ty" Just "typ"

Because "type" and "typical" are the only words that start with "ty".

>>> autocompleteMnemonicPrefix "vani"
Just "vanish"

Because "vanish" is the only word that starts with "vani".

>>> autocompleteMnemonicPrefix "medo"
Nothing

Because there are no words that start with "medo".

Payment addresses

Constructing and inspecting normal 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

ByronAddress :: Address -> Address ByronAddr

Byron addresses were the only supported address type in the original Byron era.

ShelleyAddress :: Network -> PaymentCredential -> StakeReference -> 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
FromJSON (Address ByronAddr) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Methods

parseJSON :: Value -> Parser (Address ByronAddr)

parseJSONList :: Value -> Parser [Address ByronAddr]

omittedField :: Maybe (Address ByronAddr)

FromJSON (Address ShelleyAddr) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

ToJSON (Address ByronAddr) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

ToJSON (Address ShelleyAddr) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Show (Address addrtype) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Methods

showsPrec :: Int -> Address addrtype -> ShowS Source #

show :: Address addrtype -> String Source #

showList :: [Address addrtype] -> ShowS Source #

SerialiseAddress (Address ByronAddr) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

SerialiseAddress (Address ShelleyAddr) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

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

Defined in Cardano.Api.Internal.Address

Associated Types

data AsType (Address addrtype) 
Instance details

Defined in Cardano.Api.Internal.Address

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

Methods

proxyToAsType :: Proxy (Address addrtype) -> AsType (Address addrtype) Source #

SerialiseAsBech32 (Address ShelleyAddr) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

SerialiseAsRawBytes (Address ByronAddr) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

SerialiseAsRawBytes (Address ShelleyAddr) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

NFData (Address addrtype) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Methods

rnf :: Address addrtype -> () Source #

Eq (Address addrtype) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Methods

(==) :: Address addrtype -> Address addrtype -> Bool Source #

(/=) :: Address addrtype -> Address addrtype -> Bool Source #

Ord (Address addrtype) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Methods

compare :: Address addrtype -> Address addrtype -> Ordering Source #

(<) :: Address addrtype -> Address addrtype -> Bool Source #

(<=) :: Address addrtype -> Address addrtype -> Bool Source #

(>) :: Address addrtype -> Address addrtype -> Bool Source #

(>=) :: Address addrtype -> Address addrtype -> Bool Source #

max :: Address addrtype -> Address addrtype -> Address addrtype Source #

min :: Address addrtype -> Address addrtype -> Address addrtype Source #

data AsType (Address addrtype) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

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

data ByronAddr Source #

A type used as a tag to distinguish Byron addresses.

Instances

Instances details
HasTypeProxy ByronAddr Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Associated Types

data AsType ByronAddr 
Instance details

Defined in Cardano.Api.Internal.Address

FromJSON (Address ByronAddr) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Methods

parseJSON :: Value -> Parser (Address ByronAddr)

parseJSONList :: Value -> Parser [Address ByronAddr]

omittedField :: Maybe (Address ByronAddr)

ToJSON (Address ByronAddr) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

SerialiseAddress (Address ByronAddr) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

SerialiseAsRawBytes (Address ByronAddr) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

data AsType ByronAddr Source # 
Instance details

Defined in Cardano.Api.Internal.Address

data ShelleyAddr Source #

A type used as a tag to distinguish Shelley addresses.

Instances

Instances details
HasTypeProxy ShelleyAddr Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Associated Types

data AsType ShelleyAddr 
Instance details

Defined in Cardano.Api.Internal.Address

FromJSON (Address ShelleyAddr) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

ToJSON (Address ShelleyAddr) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

SerialiseAddress (Address ShelleyAddr) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

SerialiseAsBech32 (Address ShelleyAddr) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

SerialiseAsRawBytes (Address ShelleyAddr) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

data AsType ShelleyAddr Source # 
Instance details

Defined in Cardano.Api.Internal.Address

data NetworkId Source #

Constructors

Mainnet 
Testnet !NetworkMagic 

Instances

Instances details
Show NetworkId Source # 
Instance details

Defined in Cardano.Api.Internal.NetworkId

Eq NetworkId Source # 
Instance details

Defined in Cardano.Api.Internal.NetworkId

Byron addresses

data ByronKey Source #

Byron-era payment keys. Used for Byron addresses and witnessing transactions that spend from these addresses.

These use Ed25519 but with a 32byte "chaincode" used in HD derivation. The inclusion of the chaincode is a design mistake but one that cannot be corrected for the Byron era. The Shelley era PaymentKeys do not include a chaincode. It is safe to use a zero or random chaincode for new Byron keys.

This is a type level tag, used with other interfaces like Key.

Instances

Instances details
HasTypeProxy ByronKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Associated Types

data AsType ByronKey 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Key ByronKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

IsString (Hash ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

IsString (SigningKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

IsString (VerificationKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Show (Hash ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Show (SigningKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Show (VerificationKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsCBOR (Hash ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsCBOR (SigningKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsCBOR (VerificationKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsRawBytes (Hash ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsRawBytes (SigningKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsRawBytes (VerificationKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

HasTextEnvelope (SigningKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

HasTextEnvelope (VerificationKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

FromCBOR (Hash ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

FromCBOR (SigningKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

FromCBOR (VerificationKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

ToCBOR (Hash ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Methods

toCBOR :: Hash ByronKey -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (Hash ByronKey) -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [Hash ByronKey] -> Size Source #

ToCBOR (SigningKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

ToCBOR (VerificationKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Eq (Hash ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Eq (VerificationKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Ord (Hash ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

data AsType ByronKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

newtype Hash ByronKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

newtype SigningKey ByronKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

newtype VerificationKey ByronKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

data ByronKeyLegacy Source #

Instances

Instances details
HasTypeProxy ByronKeyLegacy Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Associated Types

data AsType ByronKeyLegacy 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Key ByronKeyLegacy Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

IsString (Hash ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

IsString (SigningKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

IsString (VerificationKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Show (Hash ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Show (SigningKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Show (VerificationKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsCBOR (Hash ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsCBOR (SigningKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsCBOR (VerificationKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsRawBytes (Hash ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsRawBytes (SigningKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsRawBytes (VerificationKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

HasTextEnvelope (SigningKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

HasTextEnvelope (VerificationKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

FromCBOR (Hash ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

FromCBOR (SigningKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

FromCBOR (VerificationKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

ToCBOR (Hash ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

ToCBOR (SigningKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

ToCBOR (VerificationKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Eq (Hash ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Eq (VerificationKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Ord (Hash ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

data AsType ByronKeyLegacy Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

newtype Hash ByronKeyLegacy Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

newtype SigningKey ByronKeyLegacy Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

newtype VerificationKey ByronKeyLegacy Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

Shelley addresses

data PaymentKey Source #

Shelley-era payment keys. Used for Shelley payment addresses and witnessing transactions that spend from these addresses.

This is a type level tag, used with other interfaces like Key.

Instances

Instances details
HasTypeProxy PaymentKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Associated Types

data AsType PaymentKey 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Key PaymentKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromJSON (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Methods

parseJSON :: Value -> Parser (Hash PaymentKey)

parseJSONList :: Value -> Parser [Hash PaymentKey]

omittedField :: Maybe (Hash PaymentKey)

ToJSON (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Methods

toJSON :: Hash PaymentKey -> Value

toEncoding :: Hash PaymentKey -> Encoding

toJSONList :: [Hash PaymentKey] -> Value

toEncodingList :: [Hash PaymentKey] -> Encoding

omitField :: Hash PaymentKey -> Bool

ToJSONKey (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Methods

toJSONKey :: ToJSONKeyFunction (Hash PaymentKey)

toJSONKeyList :: ToJSONKeyFunction [Hash PaymentKey]

IsString (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (SigningKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (VerificationKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (SigningKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (VerificationKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (SigningKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (VerificationKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (SigningKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (VerificationKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (SigningKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (VerificationKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (SigningKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (VerificationKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (SigningKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (VerificationKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (VerificationKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Ord (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType PaymentKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype Hash PaymentKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype SigningKey PaymentKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype VerificationKey PaymentKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data PaymentExtendedKey Source #

Shelley-era payment keys using extended ed25519 cryptographic keys.

They can be used for Shelley payment addresses and witnessing transactions that spend from these addresses.

These extended keys are used by HD wallets. So this type provides interoperability with HD wallets. The ITN CLI also supported this key type.

The extended verification keys can be converted (via castVerificationKey) to ordinary keys (i.e. VerificationKey PaymentKey) but this is not the case for the signing keys. The signing keys can be used to witness transactions directly, with verification via their non-extended verification key (VerificationKey PaymentKey).

This is a type level tag, used with other interfaces like Key.

Instances

Instances details
HasTypeProxy PaymentExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Key PaymentExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (SigningKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (VerificationKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (SigningKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (VerificationKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (SigningKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (VerificationKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (SigningKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (VerificationKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (SigningKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (VerificationKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (SigningKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (VerificationKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (SigningKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (VerificationKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (VerificationKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Ord (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType PaymentExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype Hash PaymentExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype SigningKey PaymentExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype VerificationKey PaymentExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Addresses in any era

data AddressAny Source #

Either a Byron address or a Shelley address.

Sometimes we need to be able to work with either of the two types of address (Byron or Shelley addresses), but without reference to an era in which the address will be used. This type serves that purpose.

Instances

Instances details
Show AddressAny Source # 
Instance details

Defined in Cardano.Api.Internal.Address

SerialiseAddress AddressAny Source # 
Instance details

Defined in Cardano.Api.Internal.Address

HasTypeProxy AddressAny Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Associated Types

data AsType AddressAny 
Instance details

Defined in Cardano.Api.Internal.Address

SerialiseAsRawBytes AddressAny Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Eq AddressAny Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Ord AddressAny Source # 
Instance details

Defined in Cardano.Api.Internal.Address

data AsType AddressAny Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Addresses in specific eras

data AddressInEra era where Source #

An Address that can be used in a particular ledger era.

All current ledger eras support Byron addresses. Shelley addresses are supported in the ShelleyEra and later eras.

Constructors

AddressInEra :: forall addrtype era. AddressTypeInEra addrtype era -> Address addrtype -> AddressInEra era 

Instances

Instances details
IsShelleyBasedEra era => FromJSON (AddressInEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Methods

parseJSON :: Value -> Parser (AddressInEra era)

parseJSONList :: Value -> Parser [AddressInEra era]

omittedField :: Maybe (AddressInEra era)

IsCardanoEra era => ToJSON (AddressInEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Methods

toJSON :: AddressInEra era -> Value

toEncoding :: AddressInEra era -> Encoding

toJSONList :: [AddressInEra era] -> Value

toEncodingList :: [AddressInEra era] -> Encoding

omitField :: AddressInEra era -> Bool

Show (AddressInEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

IsCardanoEra era => SerialiseAddress (AddressInEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

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

Defined in Cardano.Api.Internal.Address

Associated Types

data AsType (AddressInEra era) 
Instance details

Defined in Cardano.Api.Internal.Address

IsCardanoEra era => SerialiseAsRawBytes (AddressInEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

NFData (AddressInEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Methods

rnf :: AddressInEra era -> () Source #

Eq (AddressInEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Ord (AddressInEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

data AsType (AddressInEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

isKeyAddress :: AddressInEra era -> Bool Source #

Is the UTxO at the address only spendable via a key witness.

data AddressTypeInEra addrtype era where Source #

Instances

Instances details
Show (AddressTypeInEra addrtype era) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Methods

showsPrec :: Int -> AddressTypeInEra addrtype era -> ShowS Source #

show :: AddressTypeInEra addrtype era -> String Source #

showList :: [AddressTypeInEra addrtype era] -> ShowS Source #

NFData (AddressTypeInEra addrtype era) Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Methods

rnf :: AddressTypeInEra addrtype era -> () Source #

Stake addresses

Constructing and inspecting stake addresses

data StakeAddress Source #

Instances

Instances details
FromJSON StakeAddress Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Methods

parseJSON :: Value -> Parser StakeAddress

parseJSONList :: Value -> Parser [StakeAddress]

omittedField :: Maybe StakeAddress

ToJSON StakeAddress Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Methods

toJSON :: StakeAddress -> Value

toEncoding :: StakeAddress -> Encoding

toJSONList :: [StakeAddress] -> Value

toEncodingList :: [StakeAddress] -> Encoding

omitField :: StakeAddress -> Bool

Show StakeAddress Source # 
Instance details

Defined in Cardano.Api.Internal.Address

SerialiseAddress StakeAddress Source # 
Instance details

Defined in Cardano.Api.Internal.Address

HasTypeProxy StakeAddress Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Associated Types

data AsType StakeAddress 
Instance details

Defined in Cardano.Api.Internal.Address

SerialiseAsBech32 StakeAddress Source # 
Instance details

Defined in Cardano.Api.Internal.Address

SerialiseAsRawBytes StakeAddress Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Eq StakeAddress Source # 
Instance details

Defined in Cardano.Api.Internal.Address

Ord StakeAddress Source # 
Instance details

Defined in Cardano.Api.Internal.Address

data AsType StakeAddress Source # 
Instance details

Defined in Cardano.Api.Internal.Address

stakeAddressCredential :: StakeAddress -> StakeCredential Source #

Get a stake credential from a stake address. This drops the network information.

data StakeKey Source #

Instances

Instances details
HasTypeProxy StakeKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Associated Types

data AsType StakeKey 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Key StakeKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (Hash StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (SigningKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (VerificationKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (Hash StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (SigningKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (VerificationKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (SigningKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (VerificationKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (SigningKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (VerificationKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (SigningKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (VerificationKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (Hash StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (SigningKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (VerificationKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (Hash StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Methods

toCBOR :: Hash StakeKey -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (Hash StakeKey) -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [Hash StakeKey] -> Size Source #

ToCBOR (SigningKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (VerificationKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (VerificationKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Ord (Hash StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType StakeKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype Hash StakeKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype SigningKey StakeKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype VerificationKey StakeKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data StakeExtendedKey Source #

Shelley-era stake keys using extended ed25519 cryptographic keys.

They can be used for Shelley stake addresses and witnessing transactions that use stake addresses.

These extended keys are used by HD wallets. So this type provides interoperability with HD wallets. The ITN CLI also supported this key type.

The extended verification keys can be converted (via castVerificationKey) to ordinary keys (i.e. VerificationKey StakeKey) but this is not the case for the signing keys. The signing keys can be used to witness transactions directly, with verification via their non-extended verification key (VerificationKey StakeKey).

This is a type level tag, used with other interfaces like Key.

Instances

Instances details
HasTypeProxy StakeExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Key StakeExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (Hash StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (SigningKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

IsString (VerificationKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (Hash StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (SigningKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Show (VerificationKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (SigningKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsBech32 (VerificationKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (Hash StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (SigningKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsRawBytes (VerificationKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (SigningKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

HasTextEnvelope (VerificationKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (Hash StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (SigningKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

FromCBOR (VerificationKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (Hash StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (SigningKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

ToCBOR (VerificationKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (Hash StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Eq (VerificationKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Ord (Hash StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

data AsType StakeExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype Hash StakeExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype SigningKey StakeExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

newtype VerificationKey StakeExtendedKey Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

Multi-asset values

newtype Quantity Source #

Constructors

Quantity Integer 

Instances

Instances details
FromJSON Quantity Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Methods

parseJSON :: Value -> Parser Quantity

parseJSONList :: Value -> Parser [Quantity]

omittedField :: Maybe Quantity

ToJSON Quantity Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Methods

toJSON :: Quantity -> Value

toEncoding :: Quantity -> Encoding

toJSONList :: [Quantity] -> Value

toEncodingList :: [Quantity] -> Encoding

omitField :: Quantity -> Bool

Data Quantity Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Quantity -> c Quantity Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Quantity Source #

toConstr :: Quantity -> Constr Source #

dataTypeOf :: Quantity -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Quantity) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Quantity) Source #

gmapT :: (forall b. Data b => b -> b) -> Quantity -> Quantity Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Quantity -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Quantity -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> Quantity -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Quantity -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Quantity -> m Quantity Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Quantity -> m Quantity Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Quantity -> m Quantity Source #

Monoid Quantity Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Semigroup Quantity Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Num Quantity Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Show Quantity Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Eq Quantity Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Ord Quantity Source # 
Instance details

Defined in Cardano.Api.Internal.Value

newtype PolicyId Source #

Constructors

PolicyId 

Instances

Instances details
FromJSON PolicyId Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Methods

parseJSON :: Value -> Parser PolicyId

parseJSONList :: Value -> Parser [PolicyId]

omittedField :: Maybe PolicyId

ToJSON PolicyId Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Methods

toJSON :: PolicyId -> Value

toEncoding :: PolicyId -> Encoding

toJSONList :: [PolicyId] -> Value

toEncodingList :: [PolicyId] -> Encoding

omitField :: PolicyId -> Bool

IsString PolicyId Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Show PolicyId Source # 
Instance details

Defined in Cardano.Api.Internal.Value

HasTypeProxy PolicyId Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Associated Types

data AsType PolicyId 
Instance details

Defined in Cardano.Api.Internal.Value

SerialiseAsRawBytes PolicyId Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Eq PolicyId Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Ord PolicyId Source # 
Instance details

Defined in Cardano.Api.Internal.Value

data AsType PolicyId Source # 
Instance details

Defined in Cardano.Api.Internal.Value

newtype AssetName Source #

Constructors

AssetName ByteString 

Instances

Instances details
FromJSON AssetName Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Methods

parseJSON :: Value -> Parser AssetName

parseJSONList :: Value -> Parser [AssetName]

omittedField :: Maybe AssetName

FromJSONKey AssetName Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Methods

fromJSONKey :: FromJSONKeyFunction AssetName

fromJSONKeyList :: FromJSONKeyFunction [AssetName]

ToJSON AssetName Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Methods

toJSON :: AssetName -> Value

toEncoding :: AssetName -> Encoding

toJSONList :: [AssetName] -> Value

toEncodingList :: [AssetName] -> Encoding

omitField :: AssetName -> Bool

ToJSONKey AssetName Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Methods

toJSONKey :: ToJSONKeyFunction AssetName

toJSONKeyList :: ToJSONKeyFunction [AssetName]

IsString AssetName Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Show AssetName Source # 
Instance details

Defined in Cardano.Api.Internal.Value

HasTypeProxy AssetName Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Associated Types

data AsType AssetName 
Instance details

Defined in Cardano.Api.Internal.Value

SerialiseAsRawBytes AssetName Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Eq AssetName Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Ord AssetName Source # 
Instance details

Defined in Cardano.Api.Internal.Value

data AsType AssetName Source # 
Instance details

Defined in Cardano.Api.Internal.Value

data Value Source #

Instances

Instances details
FromJSON Value Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Methods

parseJSON :: Value -> Parser Value

parseJSONList :: Value -> Parser [Value]

omittedField :: Maybe Value

ToJSON Value Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Methods

toJSON :: Value -> Value

toEncoding :: Value -> Encoding

toJSONList :: [Value] -> Value

toEncodingList :: [Value] -> Encoding

omitField :: Value -> Bool

Monoid Value Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Semigroup Value Source # 
Instance details

Defined in Cardano.Api.Internal.Value

IsList Value Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Associated Types

type Item Value 
Instance details

Defined in Cardano.Api.Internal.Value

Show Value Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Eq Value Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Methods

(==) :: Value -> Value -> Bool Source #

(/=) :: Value -> Value -> Bool Source #

type Item Value Source # 
Instance details

Defined in Cardano.Api.Internal.Value

parsePolicyId :: Parser PolicyId Source #

Policy ID parser.

parseAssetName :: Parser AssetName Source #

Asset name parser.

parseTxOutMultiAssetValue :: Parser Value Source #

Parse a Value from its string representation. The resulting amounts must be positive for the parser to succeed.

parseMintingMultiAssetValue :: MaryEraOnwards era -> Parser MultiAsset Source #

Parse a MintValue from its string representation. The string representation cannot contain ADA.

parseUTxOValue :: Parser Value Source #

Parse a Value from its string representation. The resulting amounts must be positive for the parser to succeed.

valueFromList :: [(AssetId, Quantity)] -> Value Source #

Deprecated: Use fromList instead.

valueToList :: Value -> [(AssetId, Quantity)] Source #

Deprecated: Use toList instead.

negateValue :: Value -> Value Source #

This lets you write a - b as a <> negateValue b.

newtype ValueNestedRep Source #

An alternative nested representation for Value that groups assets that share a PolicyId.

renderValue :: Value -> Text Source #

Render a textual representation of a Value.

renderValuePretty :: Value -> Text Source #

Render a "prettified" textual representation of a Value.

newtype PolicyAssets Source #

Map of non-ADA assets with their quantity, for a single policy

Instances

Instances details
Monoid PolicyAssets Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Semigroup PolicyAssets Source # 
Instance details

Defined in Cardano.Api.Internal.Value

IsList PolicyAssets Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Associated Types

type Item PolicyAssets 
Instance details

Defined in Cardano.Api.Internal.Value

Show PolicyAssets Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Eq PolicyAssets Source # 
Instance details

Defined in Cardano.Api.Internal.Value

MonoFunctor PolicyAssets Source # 
Instance details

Defined in Cardano.Api.Internal.Value

Methods

omap :: (Element PolicyAssets -> Element PolicyAssets) -> PolicyAssets -> PolicyAssets

type Item PolicyAssets Source # 
Instance details

Defined in Cardano.Api.Internal.Value

type Element PolicyAssets Source # 
Instance details

Defined in Cardano.Api.Internal.Value

type Element PolicyAssets = Quantity

valueToPolicyAssets :: Value -> Map PolicyId PolicyAssets Source #

Converts Value to PolicyAssets. Discards any ADA value stored in Value.

Ada / Lovelace within multi-asset values

type Lovelace = Coin Source #

A Coin is a Lovelace.

valueToLovelace :: Value -> Maybe Lovelace Source #

Check if the Value consists of only Lovelace and no other assets, and if so then return the Lovelace

See also selectLovelace to select the Lovelace quantity from the Value, ignoring other assets.

Blocks

Blocks in the context of an era

data Block era where Source #

Deprecated: Use getBlockHeader instead

A blockchain block in a particular Cardano era.

Instances

Instances details
Show (Block era) Source # 
Instance details

Defined in Cardano.Api.Internal.Block

Methods

showsPrec :: Int -> Block era -> ShowS Source #

show :: Block era -> String Source #

showList :: [Block era] -> ShowS Source #

pattern Block :: BlockHeader -> [Tx era] -> Block era Source #

Deprecated: Use getBlockHeader instead

A block consists of a header and a body containing transactions.

data BlockHeader Source #

Instances

Instances details
HasTypeProxy BlockHeader Source # 
Instance details

Defined in Cardano.Api.Internal.Block

Associated Types

data AsType BlockHeader 
Instance details

Defined in Cardano.Api.Internal.Block

FromJSON (Hash BlockHeader) Source # 
Instance details

Defined in Cardano.Api.Internal.Block

Methods

parseJSON :: Value -> Parser (Hash BlockHeader)

parseJSONList :: Value -> Parser [Hash BlockHeader]

omittedField :: Maybe (Hash BlockHeader)

ToJSON (Hash BlockHeader) Source # 
Instance details

Defined in Cardano.Api.Internal.Block

IsString (Hash BlockHeader) Source # 
Instance details

Defined in Cardano.Api.Internal.Block

Show (Hash BlockHeader) Source # 
Instance details

Defined in Cardano.Api.Internal.Block

SerialiseAsRawBytes (Hash BlockHeader) Source # 
Instance details

Defined in Cardano.Api.Internal.Block

Eq (Hash BlockHeader) Source # 
Instance details

Defined in Cardano.Api.Internal.Block

Ord (Hash BlockHeader) Source # 
Instance details

Defined in Cardano.Api.Internal.Block

data AsType BlockHeader Source # 
Instance details

Defined in Cardano.Api.Internal.Block

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.Internal.Block

getBlockTxs :: Block era -> [Tx era] Source #

Points on the chain

newtype EpochNo Source #

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

Constructors

EpochNo 

Fields

Instances

Instances details
FromJSON EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

Methods

parseJSON :: Value -> Parser EpochNo

parseJSONList :: Value -> Parser [EpochNo]

omittedField :: Maybe EpochNo

ToJSON EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

Methods

toJSON :: EpochNo -> Value

toEncoding :: EpochNo -> Encoding

toJSONList :: [EpochNo] -> Value

toEncodingList :: [EpochNo] -> Encoding

omitField :: EpochNo -> Bool

Enum EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

Generic EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

Associated Types

type Rep EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

type Rep EpochNo = D1 ('MetaData "EpochNo" "Cardano.Slotting.Slot" "cardano-slotting-0.2.0.0-1062762da5e24b3256026b7bf7ed7ea570deea61ae8ec963e4334bb658f0121b" 'True) (C1 ('MetaCons "EpochNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unEpochNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))
Show EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

FromCBOR EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

ToCBOR EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

Methods

toCBOR :: EpochNo -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy EpochNo -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [EpochNo] -> Size Source #

DecCBOR EpochNo 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.DecCBOR

EncCBOR EpochNo 
Instance details

Defined in Cardano.Ledger.Binary.Encoding.EncCBOR

Methods

encCBOR :: EpochNo -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy EpochNo -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [EpochNo] -> Size Source #

NFData EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

Methods

rnf :: EpochNo -> () Source #

Eq EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

Ord EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

NoThunks EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

Methods

noThunks :: Context -> EpochNo -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> EpochNo -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy EpochNo -> String #

Condense EpochNo 
Instance details

Defined in Ouroboros.Consensus.Util.Condense

Serialise EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

type Rep EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

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

Tip of the chain

data ChainTip Source #

This is like a ChainPoint but is conventionally used for the tip of the chain: that is the most recent block at the end of the chain.

It also carries the BlockNo of the chain tip.

Instances

Instances details
ToJSON ChainTip Source # 
Instance details

Defined in Cardano.Api.Internal.Block

Methods

toJSON :: ChainTip -> Value

toEncoding :: ChainTip -> Encoding

toJSONList :: [ChainTip] -> Value

toEncodingList :: [ChainTip] -> Encoding

omitField :: ChainTip -> Bool

Show ChainTip Source # 
Instance details

Defined in Cardano.Api.Internal.Block

Eq ChainTip Source # 
Instance details

Defined in Cardano.Api.Internal.Block

newtype BlockNo Source #

The 0-based index of the block in the blockchain. BlockNo is <= SlotNo and is only equal at slot N if there is a block for every slot where N <= SlotNo.

Constructors

BlockNo 

Fields

Instances

Instances details
FromJSON BlockNo 
Instance details

Defined in Cardano.Slotting.Block

Methods

parseJSON :: Value -> Parser BlockNo

parseJSONList :: Value -> Parser [BlockNo]

omittedField :: Maybe BlockNo

ToJSON BlockNo 
Instance details

Defined in Cardano.Slotting.Block

Methods

toJSON :: BlockNo -> Value

toEncoding :: BlockNo -> Encoding

toJSONList :: [BlockNo] -> Value

toEncodingList :: [BlockNo] -> Encoding

omitField :: BlockNo -> Bool

Bounded BlockNo 
Instance details

Defined in Cardano.Slotting.Block

Enum BlockNo 
Instance details

Defined in Cardano.Slotting.Block

Generic BlockNo 
Instance details

Defined in Cardano.Slotting.Block

Associated Types

type Rep BlockNo 
Instance details

Defined in Cardano.Slotting.Block

type Rep BlockNo = D1 ('MetaData "BlockNo" "Cardano.Slotting.Block" "cardano-slotting-0.2.0.0-1062762da5e24b3256026b7bf7ed7ea570deea61ae8ec963e4334bb658f0121b" 'True) (C1 ('MetaCons "BlockNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unBlockNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))
Num BlockNo 
Instance details

Defined in Cardano.Slotting.Block

Show BlockNo 
Instance details

Defined in Cardano.Slotting.Block

FromCBOR BlockNo 
Instance details

Defined in Cardano.Slotting.Block

ToCBOR BlockNo 
Instance details

Defined in Cardano.Slotting.Block

Methods

toCBOR :: BlockNo -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy BlockNo -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [BlockNo] -> Size Source #

DecCBOR BlockNo 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.DecCBOR

EncCBOR BlockNo 
Instance details

Defined in Cardano.Ledger.Binary.Encoding.EncCBOR

Methods

encCBOR :: BlockNo -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy BlockNo -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [BlockNo] -> Size Source #

NFData BlockNo 
Instance details

Defined in Cardano.Slotting.Block

Methods

rnf :: BlockNo -> () Source #

Eq BlockNo 
Instance details

Defined in Cardano.Slotting.Block

Ord BlockNo 
Instance details

Defined in Cardano.Slotting.Block

NoThunks BlockNo 
Instance details

Defined in Cardano.Slotting.Block

Methods

noThunks :: Context -> BlockNo -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> BlockNo -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy BlockNo -> String #

ChainOrder BlockNo 
Instance details

Defined in Ouroboros.Consensus.Protocol.Abstract

Condense BlockNo 
Instance details

Defined in Ouroboros.Consensus.Util.Condense

Serialise BlockNo 
Instance details

Defined in Cardano.Slotting.Block

type Rep BlockNo 
Instance details

Defined in Cardano.Slotting.Block

type Rep BlockNo = D1 ('MetaData "BlockNo" "Cardano.Slotting.Block" "cardano-slotting-0.2.0.0-1062762da5e24b3256026b7bf7ed7ea570deea61ae8ec963e4334bb658f0121b" 'True) (C1 ('MetaCons "BlockNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unBlockNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))
type ChainOrderConfig BlockNo 
Instance details

Defined in Ouroboros.Consensus.Protocol.Abstract

Building transactions

Building transactions

Constructing and inspecting transactions

Transaction bodies

data TxBody era where Source #

Constructors

ShelleyTxBody 

Fields

Bundled Patterns

pattern TxBody :: TxBodyContent ViewTx era -> TxBody era

Deprecated: Use getTxBodyContent $ getTxBody instead

Instances

Instances details
Show (TxBody era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

Methods

showsPrec :: Int -> TxBody era -> ShowS Source #

show :: TxBody era -> String Source #

showList :: [TxBody era] -> ShowS Source #

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

Defined in Cardano.Api.Internal.Tx.Sign

Associated Types

data AsType (TxBody era) 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

data AsType (TxBody era) = AsTxBody (AsType era)

Methods

proxyToAsType :: Proxy (TxBody era) -> AsType (TxBody era) Source #

IsShelleyBasedEra era => SerialiseAsCBOR (TxBody era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

IsShelleyBasedEra era => HasTextEnvelope (TxBody era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

Eq (TxBody era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

Methods

(==) :: TxBody era -> TxBody era -> Bool Source #

(/=) :: TxBody era -> TxBody era -> Bool Source #

data AsType (TxBody era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

data AsType (TxBody era) = AsTxBody (AsType era)

createAndValidateTransactionBody :: ShelleyBasedEra era -> TxBodyContent BuildTx era -> Either TxBodyError (TxBody era) Source #

Deprecated: Use createTransactionBody instead

data TxBodyContent build era Source #

Instances

Instances details
IsShelleyBasedEra era => Show (TxBodyContent build era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Methods

showsPrec :: Int -> TxBodyContent build era -> ShowS Source #

show :: TxBodyContent build era -> String Source #

showList :: [TxBodyContent build era] -> ShowS Source #

IsShelleyBasedEra era => Eq (TxBodyContent build era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Methods

(==) :: TxBodyContent build era -> TxBodyContent build era -> Bool Source #

(/=) :: TxBodyContent build era -> TxBodyContent build era -> Bool Source #

Transaction body builders

setTxIns :: TxIns build era -> TxBodyContent build era -> TxBodyContent build era Source #

modTxIns :: (TxIns build era -> TxIns build era) -> TxBodyContent build era -> TxBodyContent build era Source #

addTxIns :: TxIns build era -> TxBodyContent build era -> TxBodyContent build era Source #

addTxIn :: (TxIn, BuildTxWith build (Witness WitCtxTxIn era)) -> TxBodyContent build era -> TxBodyContent build era Source #

setTxInsReference :: TxInsReference build era -> TxBodyContent build era -> TxBodyContent build era Source #

modTxInsReference :: (TxInsReference build era -> TxInsReference build era) -> TxBodyContent build era -> TxBodyContent build era Source #

setTxOuts :: [TxOut CtxTx era] -> TxBodyContent build era -> TxBodyContent build era Source #

modTxOuts :: ([TxOut CtxTx era] -> [TxOut CtxTx era]) -> TxBodyContent build era -> TxBodyContent build era Source #

addTxOuts :: [TxOut CtxTx era] -> TxBodyContent build era -> TxBodyContent build era Source #

addTxOut :: TxOut CtxTx era -> TxBodyContent build era -> TxBodyContent build era Source #

setTxFee :: TxFee era -> TxBodyContent build era -> TxBodyContent build era Source #

modTxFee :: (TxFee era -> TxFee era) -> TxBodyContent build era -> TxBodyContent build era Source #

modTxAuxScripts :: (TxAuxScripts era -> TxAuxScripts era) -> TxBodyContent build era -> TxBodyContent build era Source #

setTxWithdrawals :: TxWithdrawals build era -> TxBodyContent build era -> TxBodyContent build era Source #

modTxWithdrawals :: (TxWithdrawals build era -> TxWithdrawals build era) -> TxBodyContent build era -> TxBodyContent build era Source #

setTxCertificates :: TxCertificates build era -> TxBodyContent build era -> TxBodyContent build era Source #

modTxCertificates :: (TxCertificates build era -> TxCertificates build era) -> TxBodyContent build era -> TxBodyContent build era Source #

setTxMintValue :: TxMintValue build era -> TxBodyContent build era -> TxBodyContent build era Source #

modTxMintValue :: (TxMintValue build era -> TxMintValue build era) -> TxBodyContent build era -> TxBodyContent build era Source #

subtractTxMintValue :: IsMaryBasedEra era => Map PolicyId (PolicyAssets, BuildTxWith build (ScriptWitness WitCtxMint era)) -> TxBodyContent build era -> TxBodyContent build era Source #

Adds the negation of the provided assets and quantities to the txMintValue field of the TxBodyContent.

Transaction Ids

newtype TxId Source #

Instances

Instances details
FromJSON TxId Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Methods

parseJSON :: Value -> Parser TxId

parseJSONList :: Value -> Parser [TxId]

omittedField :: Maybe TxId

FromJSONKey TxId Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Methods

fromJSONKey :: FromJSONKeyFunction TxId

fromJSONKeyList :: FromJSONKeyFunction [TxId]

ToJSON TxId Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Methods

toJSON :: TxId -> Value

toEncoding :: TxId -> Encoding

toJSONList :: [TxId] -> Value

toEncodingList :: [TxId] -> Encoding

omitField :: TxId -> Bool

ToJSONKey TxId Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Methods

toJSONKey :: ToJSONKeyFunction TxId

toJSONKeyList :: ToJSONKeyFunction [TxId]

IsString TxId Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Show TxId Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

HasTypeProxy TxId Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Associated Types

data AsType TxId 
Instance details

Defined in Cardano.Api.Internal.TxIn

SerialiseAsRawBytes TxId Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Eq TxId Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Methods

(==) :: TxId -> TxId -> Bool Source #

(/=) :: TxId -> TxId -> Bool Source #

Ord TxId Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

data AsType TxId Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

getTxId :: TxBody era -> TxId Source #

Calculate the transaction identifier for a TxBody.

Transaction inputs

data TxIn Source #

Constructors

TxIn TxId TxIx 

Instances

Instances details
FromJSON TxIn Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Methods

parseJSON :: Value -> Parser TxIn

parseJSONList :: Value -> Parser [TxIn]

omittedField :: Maybe TxIn

FromJSONKey TxIn Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Methods

fromJSONKey :: FromJSONKeyFunction TxIn

fromJSONKeyList :: FromJSONKeyFunction [TxIn]

ToJSON TxIn Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Methods

toJSON :: TxIn -> Value

toEncoding :: TxIn -> Encoding

toJSONList :: [TxIn] -> Value

toEncodingList :: [TxIn] -> Encoding

omitField :: TxIn -> Bool

ToJSONKey TxIn Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Methods

toJSONKey :: ToJSONKeyFunction TxIn

toJSONKeyList :: ToJSONKeyFunction [TxIn]

Show TxIn Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Eq TxIn Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Methods

(==) :: TxIn -> TxIn -> Bool Source #

(/=) :: TxIn -> TxIn -> Bool Source #

Ord TxIn Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Pretty TxIn Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Methods

pretty :: TxIn -> Doc ann #

prettyList :: [TxIn] -> Doc ann #

type TxIns build era = [(TxIn, BuildTxWith build (Witness WitCtxTxIn era))] Source #

newtype TxIx Source #

Constructors

TxIx Word 

Instances

Instances details
FromJSON TxIx Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Methods

parseJSON :: Value -> Parser TxIx

parseJSONList :: Value -> Parser [TxIx]

omittedField :: Maybe TxIx

ToJSON TxIx Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Methods

toJSON :: TxIx -> Value

toEncoding :: TxIx -> Encoding

toJSONList :: [TxIx] -> Value

toEncodingList :: [TxIx] -> Encoding

omitField :: TxIx -> Bool

Enum TxIx Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Show TxIx Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Eq TxIx Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

Methods

(==) :: TxIx -> TxIx -> Bool Source #

(/=) :: TxIx -> TxIx -> Bool Source #

Ord TxIx Source # 
Instance details

Defined in Cardano.Api.Internal.TxIn

getReferenceInputsSizeForTxIds :: ShelleyLedgerEra era ~ ledgerera => BabbageEraOnwards era -> UTxO ledgerera -> Set TxIn -> Int Source #

Calculate the reference inputs size in bytes for provided set of transaction IDs and UTXOs.

Transaction outputs

data CtxTx Source #

The context is a transaction body

Instances

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

Defined in Cardano.Api.Internal.Tx.Output

Methods

parseJSON :: Value -> Parser (TxOut CtxTx era)

parseJSONList :: Value -> Parser [TxOut CtxTx era]

omittedField :: Maybe (TxOut CtxTx era)

data CtxUTxO Source #

The context is the UTxO

Instances

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

Defined in Cardano.Api.Internal.Tx.Output

Methods

parseJSON :: Value -> Parser (TxOut CtxUTxO era)

parseJSONList :: Value -> Parser [TxOut CtxUTxO era]

omittedField :: Maybe (TxOut CtxUTxO era)

data TxOut ctx era Source #

Constructors

TxOut (AddressInEra era) (TxOutValue era) (TxOutDatum ctx era) (ReferenceScript era) 

Instances

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

Defined in Cardano.Api.Internal.Tx.Output

Methods

parseJSON :: Value -> Parser (TxOut CtxTx era)

parseJSONList :: Value -> Parser [TxOut CtxTx era]

omittedField :: Maybe (TxOut CtxTx era)

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

Defined in Cardano.Api.Internal.Tx.Output

Methods

parseJSON :: Value -> Parser (TxOut CtxUTxO era)

parseJSONList :: Value -> Parser [TxOut CtxUTxO era]

omittedField :: Maybe (TxOut CtxUTxO era)

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

Defined in Cardano.Api.Internal.Tx.Output

Methods

toJSON :: TxOut ctx era -> Value

toEncoding :: TxOut ctx era -> Encoding

toJSONList :: [TxOut ctx era] -> Value

toEncodingList :: [TxOut ctx era] -> Encoding

omitField :: TxOut ctx era -> Bool

Show (TxOut ctx era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Output

Methods

showsPrec :: Int -> TxOut ctx era -> ShowS Source #

show :: TxOut ctx era -> String Source #

showList :: [TxOut ctx era] -> ShowS Source #

Eq (TxOut ctx era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Output

Methods

(==) :: TxOut ctx era -> TxOut ctx era -> Bool Source #

(/=) :: TxOut ctx era -> TxOut ctx era -> Bool Source #

data TxOutValue era where Source #

Instances

Instances details
IsShelleyBasedEra era => FromJSON (TxOutValue era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Output

Methods

parseJSON :: Value -> Parser (TxOutValue era)

parseJSONList :: Value -> Parser [TxOutValue era]

omittedField :: Maybe (TxOutValue era)

IsCardanoEra era => ToJSON (TxOutValue era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Output

Methods

toJSON :: TxOutValue era -> Value

toEncoding :: TxOutValue era -> Encoding

toJSONList :: [TxOutValue era] -> Value

toEncodingList :: [TxOutValue era] -> Encoding

omitField :: TxOutValue era -> Bool

Show (TxOutValue era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Output

Eq (TxOutValue era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Output

Methods

(==) :: TxOutValue era -> TxOutValue era -> Bool Source #

(/=) :: TxOutValue era -> TxOutValue era -> Bool Source #

txOutInAnyEra :: CardanoEra era -> TxOut CtxTx era -> TxOutInAnyEra Source #

Convenience constructor for TxOutInAnyEra

data TxOutDatum ctx era where Source #

Constructors

TxOutDatumNone :: forall ctx era. TxOutDatum ctx era 
TxOutDatumHash :: forall era ctx. AlonzoEraOnwards era -> Hash ScriptData -> TxOutDatum ctx era

A transaction output that only specifies the hash of the datum, but not the full datum value.

TxOutSupplementalDatum :: forall era. AlonzoEraOnwards era -> HashableScriptData -> TxOutDatum CtxTx era

A transaction output that specifies the whole datum value. This can only be used in the context of the transaction body (i.e this is a supplemental datum), and does not occur in the UTxO. The UTxO only contains the datum hash.

TxOutDatumInline :: forall era ctx. BabbageEraOnwards era -> HashableScriptData -> TxOutDatum ctx era

A transaction output that specifies the whole datum instead of the datum hash. Note that the datum map will not be updated with this datum, it only exists at the transaction output.

Instances

Instances details
Show (TxOutDatum ctx era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Output

Methods

showsPrec :: Int -> TxOutDatum ctx era -> ShowS Source #

show :: TxOutDatum ctx era -> String Source #

showList :: [TxOutDatum ctx era] -> ShowS Source #

Eq (TxOutDatum ctx era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Output

Methods

(==) :: TxOutDatum ctx era -> TxOutDatum ctx era -> Bool Source #

(/=) :: TxOutDatum ctx era -> TxOutDatum ctx era -> Bool Source #

Other transaction body types

data TxInsCollateral era where Source #

Constructors

TxInsCollateralNone :: forall era. TxInsCollateral era 
TxInsCollateral :: forall era. AlonzoEraOnwards era -> [TxIn] -> TxInsCollateral era 

Instances

Instances details
Show (TxInsCollateral era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Eq (TxInsCollateral era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

data TxInsReference build era where Source #

Constructors

TxInsReferenceNone :: forall build era. TxInsReference build era 
TxInsReference 

Fields

  • :: forall era build. BabbageEraOnwards era
     
  • -> [TxIn]

    A list of reference inputs

  • -> TxInsReferenceDatums build

    A set of datums, whose hashes are referenced in UTXO of reference inputs. Those datums will be inserted to the datum map available to the scripts. Note that inserting a datum with hash not present in the reference input will result in an error on transaction submission.

  • -> TxInsReference build era
     

Instances

Instances details
Show (TxInsReference build era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Methods

showsPrec :: Int -> TxInsReference build era -> ShowS Source #

show :: TxInsReference build era -> String Source #

showList :: [TxInsReference build era] -> ShowS Source #

Eq (TxInsReference build era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Methods

(==) :: TxInsReference build era -> TxInsReference build era -> Bool Source #

(/=) :: TxInsReference build era -> TxInsReference build era -> Bool Source #

data TxTotalCollateral era where Source #

Constructors

TxTotalCollateralNone :: forall era. TxTotalCollateral era 
TxTotalCollateral :: forall era. BabbageEraOnwards era -> Coin -> TxTotalCollateral era 

data TxReturnCollateral ctx era where Source #

Constructors

TxReturnCollateralNone :: forall ctx era. TxReturnCollateral ctx era 
TxReturnCollateral :: forall era ctx. BabbageEraOnwards era -> TxOut ctx era -> TxReturnCollateral ctx era 

Instances

Instances details
Show (TxReturnCollateral ctx era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Eq (TxReturnCollateral ctx era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

data TxFee era where Source #

Constructors

TxFeeExplicit :: forall era. ShelleyBasedEra era -> Coin -> TxFee era 

Instances

Instances details
Show (TxFee era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Methods

showsPrec :: Int -> TxFee era -> ShowS Source #

show :: TxFee era -> String Source #

showList :: [TxFee era] -> ShowS Source #

Eq (TxFee era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Methods

(==) :: TxFee era -> TxFee era -> Bool Source #

(/=) :: TxFee era -> TxFee era -> Bool Source #

data TxValidityUpperBound era where Source #

This was formerly known as the TTL.

Constructors

TxValidityUpperBound :: forall era. ShelleyBasedEra era -> Maybe SlotNo -> TxValidityUpperBound era 

newtype SlotNo Source #

The 0-based index for the Ourboros time slot.

Constructors

SlotNo 

Fields

Instances

Instances details
FromJSON SlotNo 
Instance details

Defined in Cardano.Slotting.Slot

Methods

parseJSON :: Value -> Parser SlotNo

parseJSONList :: Value -> Parser [SlotNo]

omittedField :: Maybe SlotNo

ToJSON SlotNo 
Instance details

Defined in Cardano.Slotting.Slot

Methods

toJSON :: SlotNo -> Value

toEncoding :: SlotNo -> Encoding

toJSONList :: [SlotNo] -> Value

toEncodingList :: [SlotNo] -> Encoding

omitField :: SlotNo -> Bool

Bounded SlotNo 
Instance details

Defined in Cardano.Slotting.Slot

Enum SlotNo 
Instance details

Defined in Cardano.Slotting.Slot

Generic SlotNo 
Instance details

Defined in Cardano.Slotting.Slot

Associated Types

type Rep SlotNo 
Instance details

Defined in Cardano.Slotting.Slot

type Rep SlotNo = D1 ('MetaData "SlotNo" "Cardano.Slotting.Slot" "cardano-slotting-0.2.0.0-1062762da5e24b3256026b7bf7ed7ea570deea61ae8ec963e4334bb658f0121b" 'True) (C1 ('MetaCons "SlotNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unSlotNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))
Num SlotNo 
Instance details

Defined in Cardano.Slotting.Slot

Show SlotNo 
Instance details

Defined in Cardano.Slotting.Slot

FromCBOR SlotNo 
Instance details

Defined in Cardano.Slotting.Slot

ToCBOR SlotNo 
Instance details

Defined in Cardano.Slotting.Slot

Methods

toCBOR :: SlotNo -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy SlotNo -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [SlotNo] -> Size Source #

DecCBOR SlotNo 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.DecCBOR

EncCBOR SlotNo 
Instance details

Defined in Cardano.Ledger.Binary.Encoding.EncCBOR

Methods

encCBOR :: SlotNo -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy SlotNo -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [SlotNo] -> Size Source #

NFData SlotNo 
Instance details

Defined in Cardano.Slotting.Slot

Methods

rnf :: SlotNo -> () Source #

Eq SlotNo 
Instance details

Defined in Cardano.Slotting.Slot

Ord SlotNo 
Instance details

Defined in Cardano.Slotting.Slot

NoThunks SlotNo 
Instance details

Defined in Cardano.Slotting.Slot

Methods

noThunks :: Context -> SlotNo -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> SlotNo -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy SlotNo -> String #

Condense SlotNo 
Instance details

Defined in Ouroboros.Consensus.Util.Condense

Serialise SlotNo 
Instance details

Defined in Cardano.Slotting.Slot

ShowProxy SlotNo 
Instance details

Defined in Ouroboros.Network.Util.ShowProxy

(Condense block, HasHeader block, Condense (HeaderHash block)) => Condense (AnchoredFragment block) 
Instance details

Defined in Ouroboros.Consensus.Util.Condense

HasHeader block => Anchorable (WithOrigin SlotNo) (Anchor block) block 
Instance details

Defined in Ouroboros.Network.AnchoredFragment

Methods

asAnchor :: block -> Anchor block Source #

getAnchorMeasure :: Proxy block -> Anchor block -> WithOrigin SlotNo Source #

Anchorable (WithOrigin SlotNo) (HeaderStateWithTime blk) (HeaderStateWithTime blk) 
Instance details

Defined in Ouroboros.Consensus.HeaderStateHistory

GetTip l => Anchorable (WithOrigin SlotNo) (StateRef m l) (StateRef m l) 
Instance details

Defined in Ouroboros.Consensus.Storage.LedgerDB.V2.LedgerSeq

type Rep SlotNo 
Instance details

Defined in Cardano.Slotting.Slot

type Rep SlotNo = D1 ('MetaData "SlotNo" "Cardano.Slotting.Slot" "cardano-slotting-0.2.0.0-1062762da5e24b3256026b7bf7ed7ea570deea61ae8ec963e4334bb658f0121b" 'True) (C1 ('MetaCons "SlotNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unSlotNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

newtype EpochSlots Source #

The number of slots per epoch.

Constructors

EpochSlots 

Fields

Instances

Instances details
Data EpochSlots 
Instance details

Defined in Cardano.Chain.Slotting.EpochSlots

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> EpochSlots -> c EpochSlots Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c EpochSlots Source #

toConstr :: EpochSlots -> Constr Source #

dataTypeOf :: EpochSlots -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c EpochSlots) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c EpochSlots) Source #

gmapT :: (forall b. Data b => b -> b) -> EpochSlots -> EpochSlots Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> EpochSlots -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> EpochSlots -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> EpochSlots -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> EpochSlots -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> EpochSlots -> m EpochSlots Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> EpochSlots -> m EpochSlots Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> EpochSlots -> m EpochSlots Source #

Generic EpochSlots 
Instance details

Defined in Cardano.Chain.Slotting.EpochSlots

Associated Types

type Rep EpochSlots 
Instance details

Defined in Cardano.Chain.Slotting.EpochSlots

type Rep EpochSlots = D1 ('MetaData "EpochSlots" "Cardano.Chain.Slotting.EpochSlots" "cardano-ledger-byron-1.1.0.0-7fb551a04b7ebd202180a636c363fd4c69d431c37908920ba820fedd2c0d0ade" 'True) (C1 ('MetaCons "EpochSlots" 'PrefixI 'True) (S1 ('MetaSel ('Just "unEpochSlots") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))
Read EpochSlots 
Instance details

Defined in Cardano.Chain.Slotting.EpochSlots

Show EpochSlots 
Instance details

Defined in Cardano.Chain.Slotting.EpochSlots

FromCBOR EpochSlots 
Instance details

Defined in Cardano.Chain.Slotting.EpochSlots

ToCBOR EpochSlots 
Instance details

Defined in Cardano.Chain.Slotting.EpochSlots

DecCBOR EpochSlots 
Instance details

Defined in Cardano.Chain.Slotting.EpochSlots

EncCBOR EpochSlots 
Instance details

Defined in Cardano.Chain.Slotting.EpochSlots

Buildable EpochSlots 
Instance details

Defined in Cardano.Chain.Slotting.EpochSlots

Methods

build :: EpochSlots -> Builder

Eq EpochSlots 
Instance details

Defined in Cardano.Chain.Slotting.EpochSlots

Ord EpochSlots 
Instance details

Defined in Cardano.Chain.Slotting.EpochSlots

NoThunks EpochSlots 
Instance details

Defined in Cardano.Chain.Slotting.EpochSlots

Methods

noThunks :: Context -> EpochSlots -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> EpochSlots -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy EpochSlots -> String #

type Rep EpochSlots 
Instance details

Defined in Cardano.Chain.Slotting.EpochSlots

type Rep EpochSlots = D1 ('MetaData "EpochSlots" "Cardano.Chain.Slotting.EpochSlots" "cardano-ledger-byron-1.1.0.0-7fb551a04b7ebd202180a636c363fd4c69d431c37908920ba820fedd2c0d0ade" 'True) (C1 ('MetaCons "EpochSlots" 'PrefixI 'True) (S1 ('MetaSel ('Just "unEpochSlots") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

data TxMetadataInEra era where Source #

Constructors

TxMetadataNone :: forall era. TxMetadataInEra era 
TxMetadataInEra :: forall era. ShelleyBasedEra era -> TxMetadata -> TxMetadataInEra era 

Instances

Instances details
Show (TxMetadataInEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Eq (TxMetadataInEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

data TxAuxScripts era where Source #

Constructors

TxAuxScriptsNone :: forall era. TxAuxScripts era 
TxAuxScripts :: forall era. AllegraEraOnwards era -> [ScriptInEra era] -> TxAuxScripts era 

Instances

Instances details
Show (TxAuxScripts era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Eq (TxAuxScripts era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

data TxWithdrawals build era where Source #

Constructors

TxWithdrawalsNone :: forall build era. TxWithdrawals build era 
TxWithdrawals :: forall era build. ShelleyBasedEra era -> [(StakeAddress, Coin, BuildTxWith build (Witness WitCtxStake era))] -> TxWithdrawals build era 

Instances

Instances details
Show (TxWithdrawals build era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Methods

showsPrec :: Int -> TxWithdrawals build era -> ShowS Source #

show :: TxWithdrawals build era -> String Source #

showList :: [TxWithdrawals build era] -> ShowS Source #

Eq (TxWithdrawals build era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Methods

(==) :: TxWithdrawals build era -> TxWithdrawals build era -> Bool Source #

(/=) :: TxWithdrawals build era -> TxWithdrawals build era -> Bool Source #

data TxCertificates build era where Source #

Constructors

TxCertificatesNone :: forall build era. TxCertificates build era

No certificates

TxCertificates :: forall era build. ShelleyBasedEra era -> OMap (Certificate era) (BuildTxWith build (Maybe (StakeCredential, Witness WitCtxStake era))) -> TxCertificates build era

Represents certificates present in transaction. Prefer using mkTxCertificates to constructing this type with a constructor

Instances

Instances details
Show (TxCertificates build era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Methods

showsPrec :: Int -> TxCertificates build era -> ShowS Source #

show :: TxCertificates build era -> String Source #

showList :: [TxCertificates build era] -> ShowS Source #

Eq (TxCertificates build era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Methods

(==) :: TxCertificates build era -> TxCertificates build era -> Bool Source #

(/=) :: TxCertificates build era -> TxCertificates build era -> Bool Source #

mkTxCertificates :: Applicative (BuildTxWith build) => ShelleyBasedEra era -> [(Certificate era, Maybe (ScriptWitness WitCtxStake era))] -> TxCertificates build era Source #

Create TxCertificates. Note that 'Certificate era' will be deduplicated. Only Certificates with a stake credential will be in the result.

Note that, when building a transaction in Conway era, a witness is not required for staking credential registration, but this is only the case during the transitional period of Conway era and only for staking credential registration certificates without a deposit. Future eras will require a witness for registration certificates, because the one without a deposit will be removed.

data TxUpdateProposal era where Source #

Constructors

TxUpdateProposalNone :: forall era. TxUpdateProposal era 
TxUpdateProposal :: forall era. ShelleyToBabbageEra era -> UpdateProposal -> TxUpdateProposal era 

Instances

Instances details
Show (TxUpdateProposal era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Eq (TxUpdateProposal era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

data TxMintValue build era where Source #

Constructors

TxMintNone :: forall build era. TxMintValue build era 
TxMintValue :: forall era build. MaryEraOnwards era -> Map PolicyId (PolicyAssets, BuildTxWith build (ScriptWitness WitCtxMint era)) -> TxMintValue build era 

Instances

Instances details
Monoid (TxMintValue build era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Methods

mempty :: TxMintValue build era Source #

mappend :: TxMintValue build era -> TxMintValue build era -> TxMintValue build era Source #

mconcat :: [TxMintValue build era] -> TxMintValue build era Source #

Semigroup (TxMintValue build era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Methods

(<>) :: TxMintValue build era -> TxMintValue build era -> TxMintValue build era Source #

sconcat :: NonEmpty (TxMintValue build era) -> TxMintValue build era Source #

stimes :: Integral b => b -> TxMintValue build era -> TxMintValue build era Source #

Show (TxMintValue build era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Methods

showsPrec :: Int -> TxMintValue build era -> ShowS Source #

show :: TxMintValue build era -> String Source #

showList :: [TxMintValue build era] -> ShowS Source #

Eq (TxMintValue build era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Methods

(==) :: TxMintValue build era -> TxMintValue build era -> Bool Source #

(/=) :: TxMintValue build era -> TxMintValue build era -> Bool Source #

mkTxMintValue :: MaryEraOnwards era -> [(PolicyId, PolicyAssets, BuildTxWith build (ScriptWitness WitCtxMint era))] -> TxMintValue build era Source #

A helper function for building TxMintValue with present witnesses. Only the first witness in the argument will be used for each policy id.

txMintValueToValue :: TxMintValue build era -> Value Source #

Convert TxMintValue to a more handy Value.

data TxVotingProcedures build era where Source #

Constructors

TxVotingProceduresNone :: forall build era. TxVotingProcedures build era 
TxVotingProcedures :: forall era build. VotingProcedures (ShelleyLedgerEra era) -> BuildTxWith build (Map Voter (ScriptWitness WitCtxStake era)) -> TxVotingProcedures build era 

Instances

Instances details
Show (TxVotingProcedures build era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Eq (TxVotingProcedures build era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Methods

(==) :: TxVotingProcedures build era -> TxVotingProcedures build era -> Bool Source #

(/=) :: TxVotingProcedures build era -> TxVotingProcedures build era -> Bool Source #

mkTxVotingProcedures :: Applicative (BuildTxWith build) => [(VotingProcedures era, Maybe (ScriptWitness WitCtxStake era))] -> Either (VotesMergingConflict era) (TxVotingProcedures build era) Source #

Create voting procedures from map of voting procedures and optional witnesses. Validates the function argument, to make sure the list of votes is legal. See mergeVotingProcedures for validation rules.

data TxProposalProcedures build era where Source #

Constructors

TxProposalProceduresNone :: forall build era. TxProposalProcedures build era

No proposals in transaction..

TxProposalProcedures :: forall era build. EraPParams (ShelleyLedgerEra era) => OMap (ProposalProcedure (ShelleyLedgerEra era)) (BuildTxWith build (Maybe (ScriptWitness WitCtxStake era))) -> TxProposalProcedures build era

Represents proposal procedures present in transaction.

Instances

Instances details
Show (TxProposalProcedures build era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Eq (TxProposalProcedures build era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Methods

(==) :: TxProposalProcedures build era -> TxProposalProcedures build era -> Bool Source #

(/=) :: TxProposalProcedures build era -> TxProposalProcedures build era -> Bool Source #

mkTxProposalProcedures :: forall era build. (Applicative (BuildTxWith build), IsShelleyBasedEra era) => [(ProposalProcedure (ShelleyLedgerEra era), Maybe (ScriptWitness WitCtxStake era))] -> TxProposalProcedures build era Source #

A smart constructor for TxProposalProcedures. It makes sure that the value produced is consistent - the witnessed proposals are also present in the first constructor parameter.

Building vs viewing transactions

data BuildTxWith build a where Source #

Constructors

ViewTx :: forall a. BuildTxWith ViewTx a 
BuildTxWith :: forall a. a -> BuildTxWith BuildTx a 

Instances

Instances details
Applicative (BuildTxWith BuildTx) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.BuildTxWith

Applicative (BuildTxWith ViewTx) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.BuildTxWith

Functor (BuildTxWith build) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.BuildTxWith

Methods

fmap :: (a -> b) -> BuildTxWith build a -> BuildTxWith build b Source #

(<$) :: a -> BuildTxWith build b -> BuildTxWith build a Source #

(Applicative (BuildTxWith build), Monoid a) => Monoid (BuildTxWith build a) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.BuildTxWith

Methods

mempty :: BuildTxWith build a Source #

mappend :: BuildTxWith build a -> BuildTxWith build a -> BuildTxWith build a Source #

mconcat :: [BuildTxWith build a] -> BuildTxWith build a Source #

Semigroup a => Semigroup (BuildTxWith build a) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.BuildTxWith

Methods

(<>) :: BuildTxWith build a -> BuildTxWith build a -> BuildTxWith build a Source #

sconcat :: NonEmpty (BuildTxWith build a) -> BuildTxWith build a Source #

stimes :: Integral b => b -> BuildTxWith build a -> BuildTxWith build a Source #

Show a => Show (BuildTxWith build a) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.BuildTxWith

Methods

showsPrec :: Int -> BuildTxWith build a -> ShowS Source #

show :: BuildTxWith build a -> String Source #

showList :: [BuildTxWith build a] -> ShowS Source #

Eq a => Eq (BuildTxWith build a) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.BuildTxWith

Methods

(==) :: BuildTxWith build a -> BuildTxWith build a -> Bool Source #

(/=) :: BuildTxWith build a -> BuildTxWith build a -> Bool Source #

Fee calculation

evaluateTransactionFee Source #

Arguments

:: ShelleyBasedEra era 
-> PParams (ShelleyLedgerEra era) 
-> TxBody era 
-> Word

The number of Shelley key witnesses

-> Word

The number of Byron key witnesses

-> Int

Reference script size in bytes

-> Coin 

Transaction fees can be computed for a proposed transaction based on the expected number of key witnesses (i.e. signatures).

When possible, use calculateMinTxFee, as it provides a more accurate estimate:

calculateMinTxFee Source #

Arguments

:: ShelleyBasedEra era 
-> PParams (ShelleyLedgerEra era) 
-> UTxO era 
-> TxBody era 
-> Word

The number of Shelley key witnesses

-> Coin 

Estimate the minimum transaction fee by analyzing the transaction structure and determining the required number and type of key witnesses.

It requires access to the relevant portion of the UTXO set to look up any transaction inputs (txins) included in the transaction. However, it cannot reliably determine the number of witnesses required for native scripts.

Therefore, the number of witnesses needed for native scripts must be provided as an additional argument.

estimateTransactionKeyWitnessCount :: TxBodyContent BuildTx era -> Word Source #

Provide and approximate count of the key witnesses (i.e. signatures) required for a transaction.

This estimate is not exact and may overestimate the required number of witnesses. The function makes conservative assumptions, including:

  • Treating all inputs as originating from distinct addresses. In reality, multiple inputs may share the same address, requiring only one witness per address.
  • Assuming regular and collateral inputs are distinct, even though they may overlap.

TODO: Consider implementing a more precise calculation that leverages the UTXO set to determine which inputs correspond to distinct addresses. Additionally, the estimate can be refined by distinguishing between Shelley and Byron-style witnesses.

Minimum required UTxO calculation

Script execution units

evaluateTransactionExecutionUnits :: CardanoEra era -> SystemStart -> LedgerEpochInfo -> LedgerProtocolParameters era -> UTxO era -> TxBody era -> Map ScriptWitnessIndex (Either ScriptExecutionError (EvalTxExecutionUnitsLog, ExecutionUnits)) Source #

Compute the ExecutionUnits required for each script in the transaction.

This process involves executing all scripts and counting the actual execution units consumed.

data ScriptExecutionError Source #

This data type represents the possible reasons for a script’s execution failure, as reported by the evaluateTransactionExecutionUnits function.

The first three errors relate to issues before executing the script, while the last two arise during script execution.

TODO: Consider replacing ScriptWitnessIndex with the ledger’s PlutusPurpose AsIx ledgerera. This change would require parameterizing the ScriptExecutionError.

Constructors

ScriptErrorMissingTxIn TxIn

The script depends on a TxIn that has not been provided in the given UTxO subset. The given UTxO must cover all the inputs the transaction references.

ScriptErrorTxInWithoutDatum TxIn

The TxIn the script is spending does not have a ScriptDatum. All inputs guarded by Plutus scripts need to have been created with a ScriptDatum.

ScriptErrorWrongDatum (Hash ScriptData)

The ScriptDatum provided does not match the one from the UTxO. This means the wrong ScriptDatum value has been provided.

ScriptErrorEvaluationFailed DebugPlutusFailure

The script evaluation failed. This usually means it evaluated to an error value. This is not a case of running out of execution units (which is not possible for evaluateTransactionExecutionUnits since the whole point of it is to discover how many execution units are needed).

ScriptErrorExecutionUnitsOverflow

The execution units overflowed a 64bit word. Congratulations if you encounter this error. With the current style of cost model this would need a script to run for over 7 months, which is somewhat more than the expected maximum of a few milliseconds.

ScriptErrorNotPlutusWitnessedTxIn ScriptWitnessIndex ScriptHash

An attempt was made to spend a key witnessed tx input with a script witness.

ScriptErrorRedeemerPointsToUnknownScriptHash ScriptWitnessIndex

The redeemer pointer points to a script hash that does not exist in the transaction nor in the UTxO as a reference script"

ScriptErrorMissingScript ScriptWitnessIndex ResolvablePointers

A redeemer pointer points to a script that does not exist.

ScriptErrorMissingCostModel Language

A cost model was missing for a language which was used.

(EraPlutusContext (ShelleyLedgerEra era), Show (ContextError (ShelleyLedgerEra era))) => ScriptErrorTranslationError (ContextError (ShelleyLedgerEra era)) 

data TransactionValidityError era where Source #

Constructors

TransactionValidityIntervalError :: forall era. PastHorizonException -> TransactionValidityError era

The transaction validity interval is too far into the future.

Transactions containing Plutus scripts must have a validity interval that is not excessively far in the future. This ensures that the UTC corresponding to the validity interval expressed in slot numbers, can be reliably determined.

Plutus scripts are given the transaction validity interval in UTC to prevent sensitivity to variations in slot lengths.

If either end of the validity interval exceeds the "time horizon", the consensus algorithm cannot reliably establish the relationship between slots and time.

This error occurs when thevalidity interval exceeds the time horizon. For the Cardano mainnet, the time horizon is set to 36 hours beyond the current time. This effectively restricts the submission and validation of transactions that include Plutus scripts if the end of their validity interval extends more than 36 hours into the future.

TransactionValidityCostModelError :: forall era. Map AnyPlutusScriptVersion CostModel -> String -> TransactionValidityError era 

Transaction balance

evaluateTransactionBalance :: ShelleyBasedEra era -> PParams (ShelleyLedgerEra era) -> Set PoolId -> Map StakeCredential Coin -> Map (Credential 'DRepRole) Coin -> UTxO era -> TxBody era -> TxOutValue era Source #

Compute the total balance of the proposed transaction. Ultimately, a valid transaction must be fully balanced, which means that it has a total value of zero.

Finding the (non-zero) balance of a partially constructed transaction is useful for adjusting a transaction to be fully balanced.

Building transactions with automated fees and balancing

estimateBalancedTxBody Source #

Arguments

:: HasCallStack 
=> MaryEraOnwards era 
-> TxBodyContent BuildTx era 
-> PParams (ShelleyLedgerEra era) 
-> Set PoolId

The set of registered stake pools, being unregistered in this transaction.

-> Map StakeCredential Coin

A map of all deposits for stake credentials that are being unregistered in this transaction.

-> Map (Credential 'DRepRole) Coin

A map of all deposits for DRep credentials that are being unregistered in this transaction.

-> Map ScriptWitnessIndex ExecutionUnits

Plutus script execution units.

-> Coin

Total potential collateral amount.

-> Int

The number of key witnesses to be added to the transaction.

-> Int

The number of Byron key witnesses to be added to the transaction.

-> Int

The size of all reference scripts in bytes.

-> AddressInEra era

Change address.

-> Value

Total value of UTXOs being spent.

-> Either (TxFeeEstimationError era) (BalancedTxBody era) 

Use when you do not have access to the UTxOs you intend to spend

makeTransactionBodyAutoBalance Source #

Arguments

:: HasCallStack 
=> ShelleyBasedEra era 
-> SystemStart 
-> LedgerEpochInfo 
-> LedgerProtocolParameters era 
-> Set PoolId

The set of registered stake pools, being unregistered in this transaction.

-> Map StakeCredential Coin

The map of all deposits for stake credentials that are being unregistered in this transaction

-> Map (Credential 'DRepRole) Coin

The map of all deposits for DRep credentials that are being unregistered in this transaction

-> UTxO era

The transaction inputs (including reference and collateral ones), not the entire UTxO.

-> TxBodyContent BuildTx era 
-> AddressInEra era

Change address

-> Maybe Word

Override key witnesses

-> Either (TxBodyErrorAutoBalance era) (BalancedTxBody era) 

This is similar to makeTransactionBody but with greater automation to calculate suitable values for several things.

In particular:

  • It calculates the correct script ExecutionUnits (ignoring the provided values, which can thus be zero).
  • It calculates the transaction fees based on the script ExecutionUnits, the current ProtocolParameters, and an estimate of the number of key witnesses (i.e. signatures). There is an override for the number of key witnesses.
  • It accepts a change address, calculates the balance of the transaction and puts the excess change into the change output.
  • It also checks that the balance is positive and the change is above the minimum threshold.

To do this, it requires more information than makeTransactionBody, all of which can be queried from a local node.

data BalancedTxBody era Source #

Constructors

BalancedTxBody 

Fields

Instances

Instances details
IsShelleyBasedEra era => Show (BalancedTxBody era) Source # 
Instance details

Defined in Cardano.Api.Internal.Fees

data FeeEstimationMode era Source #

Constructors

CalculateWithSpendableUTxO

Accurate fee calculation.

Fields

EstimateWithoutSpendableUTxO

Less accurate fee estimation.

Fields

data TxBodyErrorAutoBalance era Source #

The possible errors that can arise from makeTransactionBodyAutoBalance.

Constructors

TxBodyError TxBodyError

The same errors that can arise from makeTransactionBody.

TxBodyScriptExecutionError [(ScriptWitnessIndex, ScriptExecutionError)]

One or more scripts failed to execute correctly.

TxBodyScriptBadScriptValidity

One or more scripts were expected to fail validation, but none did.

TxBodyErrorBalanceNegative Coin MultiAsset

There is not enough ada and non-ada to cover both the outputs and the fees. The transaction should be changed to provide more input assets, or otherwise adjusted to need less (e.g. outputs, script etc).

TxBodyErrorAdaBalanceTooSmall

There is enough ada to cover both the outputs and the fees, but the resulting change is too small: it is under the minimum value for new UTXO entries. The transaction should be changed to provide more input ada.

Fields

TxBodyErrorByronEraNotSupported

makeTransactionBodyAutoBalance does not yet support the Byron era.

TxBodyErrorMissingParamMinUTxO

The ProtocolParameters must provide the value for the min utxo parameter, for eras that use this parameter.

TxBodyErrorMinUTxONotMet

The minimum spendable UTxO threshold has not been met.

Fields

TxBodyErrorNonAdaAssetsUnbalanced Value 
TxBodyErrorScriptWitnessIndexMissingFromExecUnitsMap ScriptWitnessIndex (Map ScriptWitnessIndex ExecutionUnits) 

data TxScriptValidity era where Source #

A representation of whether the era supports tx script validity.

The Alonzo and subsequent eras support script validity.

Constructors

TxScriptValidityNone :: forall era. TxScriptValidity era 
TxScriptValidity :: forall era. AlonzoEraOnwards era -> ScriptValidity -> TxScriptValidity era

Tx script validity is supported in transactions in the Alonzo era onwards.

Instances

Instances details
Show (TxScriptValidity era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

Eq (TxScriptValidity era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

data ScriptValidity Source #

Indicates whether a script is expected to fail or pass validation.

Constructors

ScriptInvalid

Script is expected to fail validation. Transactions marked as such can include scripts that fail validation. Such transactions may be submitted to the chain, in which case the collateral will be taken upon on chain script validation failure.

ScriptValid

Script is expected to pass validation. Transactions marked as such cannot include scripts that fail validation.

Signing transactions

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

data Tx era where Source #

Bundled Patterns

pattern Tx :: TxBody era -> [KeyWitness era] -> Tx era

This pattern will be deprecated in the future. We advise against introducing new usage of it.

Instances

Instances details
Show (InAnyShelleyBasedEra Tx) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

Show (InAnyCardanoEra Tx) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

Show (Tx era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

Methods

showsPrec :: Int -> Tx era -> ShowS Source #

show :: Tx era -> String Source #

showList :: [Tx era] -> ShowS Source #

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

Defined in Cardano.Api.Internal.Tx.Sign

Associated Types

data AsType (Tx era) 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

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

Methods

proxyToAsType :: Proxy (Tx era) -> AsType (Tx era) Source #

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

Defined in Cardano.Api.Internal.Tx.Sign

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

Defined in Cardano.Api.Internal.Tx.Sign

Eq (InAnyShelleyBasedEra Tx) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

Eq (InAnyCardanoEra Tx) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

Eq (Tx era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

Methods

(==) :: Tx era -> Tx era -> Bool Source #

(/=) :: Tx era -> Tx era -> Bool Source #

data AsType (Tx era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

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

getTxBody :: Tx era -> TxBody era Source #

Signing in one go

Incremental signing and separate witnesses

data KeyWitness era Source #

Instances

Instances details
Show (KeyWitness era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

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

Defined in Cardano.Api.Internal.Tx.Sign

Associated Types

data AsType (KeyWitness era) 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

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

Defined in Cardano.Api.Internal.Tx.Sign

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

Defined in Cardano.Api.Internal.Tx.Sign

Eq (KeyWitness era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

Methods

(==) :: KeyWitness era -> KeyWitness era -> Bool Source #

(/=) :: KeyWitness era -> KeyWitness era -> Bool Source #

data AsType (KeyWitness era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Sign

Transaction metadata

Embedding additional structured data within transactions.

newtype TxMetadata Source #

Instances

Instances details
Monoid TxMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

Semigroup TxMetadata Source #

Merge metadata maps. When there are clashing entries the left hand side takes precedence.

Instance details

Defined in Cardano.Api.Internal.TxMetadata

Show TxMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

HasTypeProxy TxMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

Associated Types

data AsType TxMetadata 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

SerialiseAsCBOR TxMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

Eq TxMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

data AsType TxMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

Constructing metadata

metaTextChunks :: Text -> TxMetadataValue Source #

Create a TxMetadataValue from a Text as a list of chunks of an acceptable size.

metaBytesChunks :: ByteString -> TxMetadataValue Source #

Create a TxMetadataValue from a ByteString as a list of chunks of an accaptable size.

Validating metadata

validateTxMetadata :: TxMetadata -> Either [(Word64, TxMetadataRangeError)] () Source #

Validate transaction metadata. This is for use with existing constructed metadata values, e.g. constructed manually or decoded from CBOR directly.

data TxMetadataRangeError Source #

An error in transaction metadata due to an out-of-range value.

Constructors

TxMetadataNumberOutOfRange !Integer

The number is outside the maximum range of -2^64-1 .. 2^64-1.

TxMetadataTextTooLong !Int

The length of a text string metadatum value exceeds the maximum of 64 bytes as UTF8.

TxMetadataBytesTooLong !Int

The length of a byte string metadatum value exceeds the maximum of 64 bytes.

Instances

Instances details
Data TxMetadataRangeError Source # 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TxMetadataRangeError -> c TxMetadataRangeError Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TxMetadataRangeError Source #

toConstr :: TxMetadataRangeError -> Constr Source #

dataTypeOf :: TxMetadataRangeError -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TxMetadataRangeError) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TxMetadataRangeError) Source #

gmapT :: (forall b. Data b => b -> b) -> TxMetadataRangeError -> TxMetadataRangeError Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TxMetadataRangeError -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TxMetadataRangeError -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> TxMetadataRangeError -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TxMetadataRangeError -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TxMetadataRangeError -> m TxMetadataRangeError Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TxMetadataRangeError -> m TxMetadataRangeError Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TxMetadataRangeError -> m TxMetadataRangeError Source #

Show TxMetadataRangeError Source # 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

Error TxMetadataRangeError Source # 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

Eq TxMetadataRangeError Source # 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

Conversion to/from JSON

data TxMetadataJsonSchema Source #

Tx metadata is similar to JSON but not exactly the same. It has some deliberate limitations such as no support for floating point numbers or special forms for null or boolean values. It also has limitations on the length of strings. On the other hand, unlike JSON, it distinguishes between byte strings and text strings. It also supports any value as map keys rather than just string.

We provide two different mappings between tx metadata and JSON, useful for different purposes:

  1. A mapping that allows almost any JSON value to be converted into tx metadata. This does not require a specific JSON schema for the input. It does not expose the full representation capability of tx metadata.
  2. A mapping that exposes the full representation capability of tx metadata, but relies on a specific JSON schema for the input JSON.

In the "no schema" mapping, the idea is that (almost) any JSON can be turned into tx metadata and then converted back, without loss. That is, we can round-trip the JSON.

The subset of JSON supported is all JSON except: * No null or bool values * No floating point, only integers in the range of a 64bit signed integer * A limitation on string lengths

The approach for this mapping is to use whichever representation as tx metadata is most compact. In particular:

  • JSON lists and maps represented as CBOR lists and maps
  • JSON strings represented as CBOR strings
  • JSON hex strings with "0x" prefix represented as CBOR byte strings
  • JSON integer numbers represented as CBOR signed or unsigned numbers
  • JSON maps with string keys that parse as numbers or hex byte strings, represented as CBOR map keys that are actually numbers or byte strings.

The string length limit depends on whether the hex string representation is used or not. For text strings the limit is 64 bytes for the UTF8 representation of the text string. For byte strings the limit is 64 bytes for the raw byte form (ie not the input hex, but after hex decoding).

In the "detailed schema" mapping, the idea is that we expose the full representation capability of the tx metadata in the form of a JSON schema. This means the full representation is available and can be controlled precisely. It also means any tx metadata can be converted into the JSON and back without loss. That is we can round-trip the tx metadata via the JSON and also round-trip schema-compliant JSON via tx metadata.

Constructors

TxMetadataJsonNoSchema

Use the "no schema" mapping between JSON and tx metadata as described above.

TxMetadataJsonDetailedSchema

Use the "detailed schema" mapping between JSON and tx metadata as described above.

metadataFromJson :: TxMetadataJsonSchema -> Value -> Either TxMetadataJsonError TxMetadata Source #

Convert a value from JSON into tx metadata, using the given choice of mapping between JSON and tx metadata.

This may fail with a conversion error if the JSON is outside the supported subset for the chosen mapping. See TxMetadataJsonSchema for the details.

metadataToJson :: TxMetadataJsonSchema -> TxMetadata -> Value Source #

Convert a tx metadata value into JSON , using the given choice of mapping between JSON and tx metadata.

This conversion is total but is not necessarily invertible. See TxMetadataJsonSchema for the details.

data TxMetadataJsonError Source #

Instances

Instances details
Data TxMetadataJsonError Source # 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TxMetadataJsonError -> c TxMetadataJsonError Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TxMetadataJsonError Source #

toConstr :: TxMetadataJsonError -> Constr Source #

dataTypeOf :: TxMetadataJsonError -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TxMetadataJsonError) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TxMetadataJsonError) Source #

gmapT :: (forall b. Data b => b -> b) -> TxMetadataJsonError -> TxMetadataJsonError Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TxMetadataJsonError -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TxMetadataJsonError -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> TxMetadataJsonError -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TxMetadataJsonError -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TxMetadataJsonError -> m TxMetadataJsonError Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TxMetadataJsonError -> m TxMetadataJsonError Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TxMetadataJsonError -> m TxMetadataJsonError Source #

Show TxMetadataJsonError Source # 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

Error TxMetadataJsonError Source # 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

Eq TxMetadataJsonError Source # 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

data TxMetadataJsonSchemaError Source #

Instances

Instances details
Data TxMetadataJsonSchemaError Source # 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TxMetadataJsonSchemaError -> c TxMetadataJsonSchemaError Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TxMetadataJsonSchemaError Source #

toConstr :: TxMetadataJsonSchemaError -> Constr Source #

dataTypeOf :: TxMetadataJsonSchemaError -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TxMetadataJsonSchemaError) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TxMetadataJsonSchemaError) Source #

gmapT :: (forall b. Data b => b -> b) -> TxMetadataJsonSchemaError -> TxMetadataJsonSchemaError Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TxMetadataJsonSchemaError -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TxMetadataJsonSchemaError -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> TxMetadataJsonSchemaError -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TxMetadataJsonSchemaError -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TxMetadataJsonSchemaError -> m TxMetadataJsonSchemaError Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TxMetadataJsonSchemaError -> m TxMetadataJsonSchemaError Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TxMetadataJsonSchemaError -> m TxMetadataJsonSchemaError Source #

Show TxMetadataJsonSchemaError Source # 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

Error TxMetadataJsonSchemaError Source # 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

Eq TxMetadataJsonSchemaError Source # 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

Governance action metadata

data CIP108 Source #

Constructors

BaseGovActionMetadata 

Instances

Instances details
FromJSON (Authors CIP108) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.GovAction

Methods

parseJSON :: Value -> Parser (Authors CIP108)

parseJSONList :: Value -> Parser [Authors CIP108]

omittedField :: Maybe (Authors CIP108)

FromJSON (Body CIP108) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.GovAction

Methods

parseJSON :: Value -> Parser (Body CIP108)

parseJSONList :: Value -> Parser [Body CIP108]

omittedField :: Maybe (Body CIP108)

FromJSON (GovActionMetadata CIP108) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.GovAction

FromJSON (HashAlgorithm CIP108) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.GovAction

Generic (Authors CIP108) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.GovAction

Associated Types

type Rep (Authors CIP108) 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.GovAction

Generic (Body CIP108) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.GovAction

Associated Types

type Rep (Body CIP108) 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.GovAction

type Rep (Body CIP108)
Generic (HashAlgorithm CIP108) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.GovAction

Associated Types

type Rep (HashAlgorithm CIP108) 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.GovAction

type Rep (HashAlgorithm CIP108) = D1 ('MetaData "HashAlgorithm" "Cardano.Api.Internal.Governance.Metadata.GovAction" "cardano-api-10.15.0.0-inplace" 'False) (C1 ('MetaCons "Blake2b256" 'PrefixI 'False) (U1 :: Type -> Type))
Show (Authors CIP108) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.GovAction

Show (Body CIP108) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.GovAction

Show (HashAlgorithm CIP108) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.GovAction

newtype Authors CIP108 Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.GovAction

newtype Authors CIP108 = Authors [Author]
data Body CIP108 Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.GovAction

data HashAlgorithm CIP108 Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.GovAction

type Rep (Authors CIP108) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.GovAction

type Rep (Body CIP108) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.GovAction

type Rep (Body CIP108)
type Rep (HashAlgorithm CIP108) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.GovAction

type Rep (HashAlgorithm CIP108) = D1 ('MetaData "HashAlgorithm" "Cardano.Api.Internal.Governance.Metadata.GovAction" "cardano-api-10.15.0.0-inplace" 'False) (C1 ('MetaCons "Blake2b256" 'PrefixI 'False) (U1 :: Type -> Type))

DRep Metadata

data DRepMetadata Source #

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

Instances

Instances details
Show DRepMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.DRepMetadata

HasTypeProxy DRepMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.DRepMetadata

Associated Types

data AsType DRepMetadata 
Instance details

Defined in Cardano.Api.Internal.DRepMetadata

Eq DRepMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.DRepMetadata

Show (Hash DRepMetadata) Source # 
Instance details

Defined in Cardano.Api.Internal.DRepMetadata

SerialiseAsRawBytes (Hash DRepMetadata) Source # 
Instance details

Defined in Cardano.Api.Internal.DRepMetadata

Eq (Hash DRepMetadata) Source # 
Instance details

Defined in Cardano.Api.Internal.DRepMetadata

data AsType DRepMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.DRepMetadata

newtype Hash DRepMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.DRepMetadata

hashDRepMetadata :: ByteString -> (DRepMetadata, Hash DRepMetadata) Source #

Return the decoded metadata and the hash of the original bytes.

data CIP119 Source #

Instances

Instances details
FromJSON (Body CIP119) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.DrepRegistration

Methods

parseJSON :: Value -> Parser (Body CIP119)

parseJSONList :: Value -> Parser [Body CIP119]

omittedField :: Maybe (Body CIP119)

FromJSON (GovActionMetadata CIP119) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.DrepRegistration

FromJSON (HashAlgorithm CIP119) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.DrepRegistration

Generic (Body CIP119) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.DrepRegistration

Associated Types

type Rep (Body CIP119) 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.DrepRegistration

type Rep (Body CIP119)
Generic (HashAlgorithm CIP119) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.DrepRegistration

Associated Types

type Rep (HashAlgorithm CIP119) 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.DrepRegistration

type Rep (HashAlgorithm CIP119) = D1 ('MetaData "HashAlgorithm" "Cardano.Api.Internal.Governance.Metadata.DrepRegistration" "cardano-api-10.15.0.0-inplace" 'False) (C1 ('MetaCons "Blake2b256" 'PrefixI 'False) (U1 :: Type -> Type))
Show (Body CIP119) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.DrepRegistration

Show (HashAlgorithm CIP119) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.DrepRegistration

data Authors CIP119 Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.DrepRegistration

data Body CIP119 Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.DrepRegistration

data HashAlgorithm CIP119 Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.DrepRegistration

type Rep (Body CIP119) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.DrepRegistration

type Rep (Body CIP119)
type Rep (HashAlgorithm CIP119) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Metadata.DrepRegistration

type Rep (HashAlgorithm CIP119) = D1 ('MetaData "HashAlgorithm" "Cardano.Api.Internal.Governance.Metadata.DrepRegistration" "cardano-api-10.15.0.0-inplace" 'False) (C1 ('MetaCons "Blake2b256" 'PrefixI 'False) (U1 :: Type -> Type))

Certificates

data Certificate era where Source #

Instances

Instances details
TestEquality Certificate Source # 
Instance details

Defined in Cardano.Api.Internal.Certificate

Show (Certificate era) Source # 
Instance details

Defined in Cardano.Api.Internal.Certificate

Typeable era => HasTypeProxy (Certificate era) Source # 
Instance details

Defined in Cardano.Api.Internal.Certificate

Associated Types

data AsType (Certificate era) 
Instance details

Defined in Cardano.Api.Internal.Certificate

IsShelleyBasedEra era => SerialiseAsCBOR (Certificate era) Source # 
Instance details

Defined in Cardano.Api.Internal.Certificate

IsShelleyBasedEra era => HasTextEnvelope (Certificate era) Source # 
Instance details

Defined in Cardano.Api.Internal.Certificate

IsShelleyBasedEra era => FromCBOR (Certificate era) Source # 
Instance details

Defined in Cardano.Api.Internal.Certificate

IsShelleyBasedEra era => ToCBOR (Certificate era) Source # 
Instance details

Defined in Cardano.Api.Internal.Certificate

Methods

toCBOR :: Certificate era -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (Certificate era) -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [Certificate era] -> Size Source #

Eq (Certificate era) Source # 
Instance details

Defined in Cardano.Api.Internal.Certificate

Methods

(==) :: Certificate era -> Certificate era -> Bool Source #

(/=) :: Certificate era -> Certificate era -> Bool Source #

Ord (Certificate era) Source # 
Instance details

Defined in Cardano.Api.Internal.Certificate

data AsType (Certificate era) Source # 
Instance details

Defined in Cardano.Api.Internal.Certificate

Registering stake address and delegating

Certificates that are embedded in transactions for registering and unregistering stake address, and for setting the stake pool delegation choice for a stake address.

Registering stake pools

Certificates that are embedded in transactions for registering and retiring stake pools. This includes updating the stake pool parameters.

Anchor data

getAnchorDataFromCertificate :: Certificate era -> Either AnchorDataFromCertificateError (Maybe Anchor) Source #

Get anchor data url and hash from a certificate. A return value of Nothing means that the certificate does not contain anchor data.

isDRepRegOrUpdateCert :: Certificate era -> Bool Source #

Returns True if the certificate is a DRep registration or update certificate, otherwise False. This is to see if the certificate needs to be compliant with CIP-0119.

Rewards

Stake pool off-chain metadata

data StakePoolMetadata Source #

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

Instances

Instances details
FromJSON StakePoolMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.StakePoolMetadata

Show StakePoolMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.StakePoolMetadata

HasTypeProxy StakePoolMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.StakePoolMetadata

Eq StakePoolMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.StakePoolMetadata

Show (Hash StakePoolMetadata) Source # 
Instance details

Defined in Cardano.Api.Internal.StakePoolMetadata

SerialiseAsRawBytes (Hash StakePoolMetadata) Source # 
Instance details

Defined in Cardano.Api.Internal.StakePoolMetadata

Eq (Hash StakePoolMetadata) Source # 
Instance details

Defined in Cardano.Api.Internal.StakePoolMetadata

data AsType StakePoolMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.StakePoolMetadata

newtype Hash StakePoolMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.StakePoolMetadata

validateAndHashStakePoolMetadata :: ByteString -> Either StakePoolMetadataValidationError (StakePoolMetadata, Hash StakePoolMetadata) Source #

Decode and validate the provided JSON-encoded bytes as StakePoolMetadata. Return the decoded metadata and the hash of the original bytes.

data StakePoolMetadataValidationError Source #

A stake pool metadata validation error.

Constructors

StakePoolMetadataJsonDecodeError !String 
StakePoolMetadataInvalidLengthError

The length of the JSON-encoded stake pool metadata exceeds the maximum.

Fields

  • !Int

    Maximum byte length.

  • !Int

    Actual byte length.

Instances

Instances details
Data StakePoolMetadataValidationError Source # 
Instance details

Defined in Cardano.Api.Internal.StakePoolMetadata

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> StakePoolMetadataValidationError -> c StakePoolMetadataValidationError Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c StakePoolMetadataValidationError Source #

toConstr :: StakePoolMetadataValidationError -> Constr Source #

dataTypeOf :: StakePoolMetadataValidationError -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c StakePoolMetadataValidationError) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c StakePoolMetadataValidationError) Source #

gmapT :: (forall b. Data b => b -> b) -> StakePoolMetadataValidationError -> StakePoolMetadataValidationError Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> StakePoolMetadataValidationError -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> StakePoolMetadataValidationError -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> StakePoolMetadataValidationError -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> StakePoolMetadataValidationError -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> StakePoolMetadataValidationError -> m StakePoolMetadataValidationError Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> StakePoolMetadataValidationError -> m StakePoolMetadataValidationError Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> StakePoolMetadataValidationError -> m StakePoolMetadataValidationError Source #

Show StakePoolMetadataValidationError Source # 
Instance details

Defined in Cardano.Api.Internal.StakePoolMetadata

Error StakePoolMetadataValidationError Source # 
Instance details

Defined in Cardano.Api.Internal.StakePoolMetadata

Eq StakePoolMetadataValidationError Source # 
Instance details

Defined in Cardano.Api.Internal.StakePoolMetadata

Scripts

Both PaymentCredentials and StakeCredentials can use scripts.

Script languages

data PlutusScriptV1 Source #

The original simple script language which supports

  • require a signature from a given key (by verification key hash)
  • n-way and combinator
  • n-way or combinator
  • m-of-n combinator

This version of the language was introduced in the ShelleyEra.

The second version of the simple script language. It has all the features of the original simple script language plus new atomic predicates:

  • require the time be before a given slot number
  • require the time be after a given slot number

This version of the language was introduced in the AllegraEra.

However we opt for a single type level tag SimpleScript' as the second version of of the language introduced in the Allegra era is a superset of the language introduced in the Shelley era.

Place holder type to show what the pattern is to extend to multiple languages, not just multiple versions of a single language.

Instances

Instances details
HasTypeProxy PlutusScriptV1 Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Associated Types

data AsType PlutusScriptV1 
Instance details

Defined in Cardano.Api.Internal.Script

IsPlutusScriptLanguage PlutusScriptV1 Source # 
Instance details

Defined in Cardano.Api.Internal.Script

IsScriptLanguage PlutusScriptV1 Source # 
Instance details

Defined in Cardano.Api.Internal.Script

HasScriptLanguageInEra PlutusScriptV1 AlonzoEra Source # 
Instance details

Defined in Cardano.Api.Internal.Script

HasScriptLanguageInEra PlutusScriptV1 BabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Script

HasScriptLanguageInEra PlutusScriptV1 ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Script

ToAlonzoScript PlutusScriptV1 BabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Script

ToAlonzoScript PlutusScriptV1 ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Script

data AsType PlutusScriptV1 Source # 
Instance details

Defined in Cardano.Api.Internal.Script

data PlutusScriptV2 Source #

Instances

Instances details
HasTypeProxy PlutusScriptV2 Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Associated Types

data AsType PlutusScriptV2 
Instance details

Defined in Cardano.Api.Internal.Script

IsPlutusScriptLanguage PlutusScriptV2 Source # 
Instance details

Defined in Cardano.Api.Internal.Script

IsScriptLanguage PlutusScriptV2 Source # 
Instance details

Defined in Cardano.Api.Internal.Script

HasScriptLanguageInEra PlutusScriptV2 BabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Script

HasScriptLanguageInEra PlutusScriptV2 ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Script

ToAlonzoScript PlutusScriptV2 BabbageEra Source # 
Instance details

Defined in Cardano.Api.Internal.Script

ToAlonzoScript PlutusScriptV2 ConwayEra Source # 
Instance details

Defined in Cardano.Api.Internal.Script

data AsType PlutusScriptV2 Source # 
Instance details

Defined in Cardano.Api.Internal.Script

data ScriptLanguage lang where Source #

Instances

Instances details
TestEquality ScriptLanguage Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Show (ScriptLanguage lang) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Eq (ScriptLanguage lang) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

data AnyScriptLanguage where Source #

Constructors

AnyScriptLanguage :: forall lang. ScriptLanguage lang -> AnyScriptLanguage 

Instances

Instances details
Bounded AnyScriptLanguage Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Enum AnyScriptLanguage Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Show AnyScriptLanguage Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Eq AnyScriptLanguage Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Ord AnyScriptLanguage Source # 
Instance details

Defined in Cardano.Api.Internal.Script

data AnyPlutusScriptVersion where Source #

Instances

Instances details
FromJSON AnyPlutusScriptVersion Source # 
Instance details

Defined in Cardano.Api.Internal.Script

FromJSONKey AnyPlutusScriptVersion Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Methods

fromJSONKey :: FromJSONKeyFunction AnyPlutusScriptVersion

fromJSONKeyList :: FromJSONKeyFunction [AnyPlutusScriptVersion]

ToJSON AnyPlutusScriptVersion Source # 
Instance details

Defined in Cardano.Api.Internal.Script

ToJSONKey AnyPlutusScriptVersion Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Methods

toJSONKey :: ToJSONKeyFunction AnyPlutusScriptVersion

toJSONKeyList :: ToJSONKeyFunction [AnyPlutusScriptVersion]

Bounded AnyPlutusScriptVersion Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Enum AnyPlutusScriptVersion Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Show AnyPlutusScriptVersion Source # 
Instance details

Defined in Cardano.Api.Internal.Script

FromCBOR AnyPlutusScriptVersion Source # 
Instance details

Defined in Cardano.Api.Internal.Script

ToCBOR AnyPlutusScriptVersion Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Eq AnyPlutusScriptVersion Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Ord AnyPlutusScriptVersion Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Scripts in a specific language

data Script lang where Source #

A script in a particular language.

See also ScriptInAnyLang for a script in any of the known languages.

See also ScriptInEra for a script in a language that is available within a particular era.

Note that some but not all scripts have an external JSON syntax, hence this type has no JSON serialisation instances. The SimpleScript family of languages do have a JSON syntax and thus have ToJSON/FromJSON instances.

Constructors

SimpleScript :: !SimpleScript -> Script SimpleScript' 
PlutusScript :: forall lang. IsPlutusScriptLanguage lang => !(PlutusScriptVersion lang) -> !(PlutusScript lang) -> Script lang 

Instances

Instances details
Show (Script lang) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Methods

showsPrec :: Int -> Script lang -> ShowS Source #

show :: Script lang -> String Source #

showList :: [Script lang] -> ShowS Source #

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

Defined in Cardano.Api.Internal.Script

Associated Types

data AsType (Script lang) 
Instance details

Defined in Cardano.Api.Internal.Script

data AsType (Script lang) = AsScript (AsType lang)

Methods

proxyToAsType :: Proxy (Script lang) -> AsType (Script lang) Source #

IsScriptLanguage lang => SerialiseAsCBOR (Script lang) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

IsScriptLanguage lang => HasTextEnvelope (Script lang) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Eq (Script lang) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Methods

(==) :: Script lang -> Script lang -> Bool Source #

(/=) :: Script lang -> Script lang -> Bool Source #

data AsType (Script lang) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

data AsType (Script lang) = AsScript (AsType lang)

data PlutusScriptInEra era lang where Source #

Constructors

PlutusScriptInEra :: forall lang era. PlutusScript lang -> PlutusScriptInEra era lang 

Instances

Instances details
Show (PlutusScriptInEra era lang) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

(HasTypeProxy era, HasTypeProxy lang) => HasTypeProxy (PlutusScriptInEra era lang) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Associated Types

data AsType (PlutusScriptInEra era lang) 
Instance details

Defined in Cardano.Api.Internal.Script

(Era (ShelleyLedgerEra era), HasTypeProxy (PlutusScriptInEra era lang), PlutusLanguage (ToLedgerPlutusLanguage lang)) => SerialiseAsCBOR (PlutusScriptInEra era lang) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Eq (PlutusScriptInEra era lang) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Methods

(==) :: PlutusScriptInEra era lang -> PlutusScriptInEra era lang -> Bool Source #

(/=) :: PlutusScriptInEra era lang -> PlutusScriptInEra era lang -> Bool Source #

data AsType (PlutusScriptInEra era lang) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Scripts in any language

data ScriptInAnyLang where Source #

Sometimes it is necessary to handle all languages without making static type distinctions between languages. For example, when reading external input, or before the era context is known.

Use toScriptInEra to convert to a script in the context of an era.

Constructors

ScriptInAnyLang :: forall lang. ScriptLanguage lang -> Script lang -> ScriptInAnyLang 

toScriptInAnyLang :: Script lang -> ScriptInAnyLang Source #

Convert a script in a specific statically-known language to a ScriptInAnyLang.

No inverse to this is provided, just do case analysis on the ScriptLanguage field within the ScriptInAnyLang constructor.

Scripts in a specific era

data ScriptInEra era where Source #

Constructors

ScriptInEra :: forall lang era. ScriptLanguageInEra lang era -> Script lang -> ScriptInEra era 

Instances

Instances details
Show (ScriptInEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

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

Defined in Cardano.Api.Internal.Script

Associated Types

data AsType (ScriptInEra era) 
Instance details

Defined in Cardano.Api.Internal.Script

Eq (ScriptInEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Methods

(==) :: ScriptInEra era -> ScriptInEra era -> Bool Source #

(/=) :: ScriptInEra era -> ScriptInEra era -> Bool Source #

data AsType (ScriptInEra era) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

toScriptInEra :: ShelleyBasedEra era -> ScriptInAnyLang -> Maybe (ScriptInEra era) Source #

Given a target era and a script in some language, check if the language is supported in that era, and if so return a ScriptInEra.

Use of a script in an era as a witness

data WitCtxTxIn Source #

A tag type for the context in which a script is used in a transaction.

This type tags the context as being to witness a transaction input.

data WitCtxMint Source #

A tag type for the context in which a script is used in a transaction.

This type tags the context as being to witness minting.

data WitCtxStake Source #

A tag type for the context in which a script is used in a transaction.

This type tags the context as being to witness the use of stake addresses in certificates, withdrawals, voting and proposals.

data WitCtx witctx where Source #

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

data ScriptWitness witctx era where Source #

A use of a script within a transaction body to witness that something is being used in an authorised manner. That can be

  • spending a transaction input
  • minting tokens
  • using a certificate (stake address certs specifically)
  • withdrawing from a reward account

For simple script languages, the use of the script is the same in all contexts. For Plutus scripts, using a script involves supplying a redeemer. In addition, Plutus scripts used for spending inputs must also supply the datum value used when originally creating the TxOut that is now being spent.

Instances

Instances details
Show (ScriptWitness witctx era) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Methods

showsPrec :: Int -> ScriptWitness witctx era -> ShowS Source #

show :: ScriptWitness witctx era -> String Source #

showList :: [ScriptWitness witctx era] -> ShowS Source #

Eq (ScriptWitness witctx era) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Methods

(==) :: ScriptWitness witctx era -> ScriptWitness witctx era -> Bool Source #

(/=) :: ScriptWitness witctx era -> ScriptWitness witctx era -> Bool Source #

getScriptWitnessReferenceInputOrScript :: ScriptWitness witctx era -> Either (ScriptInEra era) TxIn Source #

We cannot always extract a script from a script witness due to reference scripts. Reference scripts exist in the UTxO, so without access to the UTxO we cannot retrieve the script. So in the cases for script reference, the result contains Right TxIn.

data Witness witctx era where Source #

Constructors

KeyWitness :: forall witctx era. KeyWitnessInCtx witctx -> Witness witctx era 
ScriptWitness :: forall witctx era. ScriptWitnessInCtx witctx -> ScriptWitness witctx era -> Witness witctx era 

Instances

Instances details
Show (Witness witctx era) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Methods

showsPrec :: Int -> Witness witctx era -> ShowS Source #

show :: Witness witctx era -> String Source #

showList :: [Witness witctx era] -> ShowS Source #

Eq (Witness witctx era) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Methods

(==) :: Witness witctx era -> Witness witctx era -> Bool Source #

(/=) :: Witness witctx era -> Witness witctx era -> Bool Source #

data KeyWitnessInCtx witctx where Source #

Instances

Instances details
Show (KeyWitnessInCtx witctx) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Eq (KeyWitnessInCtx witctx) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Methods

(==) :: KeyWitnessInCtx witctx -> KeyWitnessInCtx witctx -> Bool Source #

(/=) :: KeyWitnessInCtx witctx -> KeyWitnessInCtx witctx -> Bool Source #

Inspecting ScriptWitnesses

data AnyScriptWitness era where Source #

A ScriptWitness in any WitCtx. This lets us handle heterogeneous collections of script witnesses from multiple contexts.

Constructors

AnyScriptWitness :: forall witctx era. Typeable witctx => ScriptWitness witctx era -> AnyScriptWitness era 

Instances

Instances details
Show (AnyScriptWitness era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

Eq (AnyScriptWitness era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.Body

data ScriptWitnessIndex Source #

Identify the location of a ScriptWitness within the context of a TxBody. These are indexes of the objects within the transaction that need or can use script witnesses: inputs, minted assets, withdrawals and certificates. These are simple numeric indices, enumerated from zero. Thus the indices are not stable if the transaction body is modified.

Constructors

ScriptWitnessIndexTxIn !Word32

The n'th transaction input, in the order of the TxIds.

ScriptWitnessIndexMint !Word32

The n'th minting PolicyId, in the order of the PolicyIds.

ScriptWitnessIndexCertificate !Word32

The n'th certificate, in the list order of the certificates.

ScriptWitnessIndexWithdrawal !Word32

The n'th withdrawal, in the order of the StakeAddresss.

ScriptWitnessIndexVoting !Word32

The n'th vote, in the order of the votes.

ScriptWitnessIndexProposing !Word32

The n'th proposal, in the order of the proposals.

Languages supported in each era

data ScriptLanguageInEra lang era where Source #

Instances

Instances details
ToJSON (ScriptLanguageInEra lang era) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Methods

toJSON :: ScriptLanguageInEra lang era -> Value

toEncoding :: ScriptLanguageInEra lang era -> Encoding

toJSONList :: [ScriptLanguageInEra lang era] -> Value

toEncodingList :: [ScriptLanguageInEra lang era] -> Encoding

omitField :: ScriptLanguageInEra lang era -> Bool

Show (ScriptLanguageInEra lang era) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Eq (ScriptLanguageInEra lang era) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Methods

(==) :: ScriptLanguageInEra lang era -> ScriptLanguageInEra lang era -> Bool Source #

(/=) :: ScriptLanguageInEra lang era -> ScriptLanguageInEra lang era -> Bool Source #

Ord (ScriptLanguageInEra lang era) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

scriptLanguageSupportedInEra :: ShelleyBasedEra era -> ScriptLanguage lang -> Maybe (ScriptLanguageInEra lang era) Source #

Check if a given script language is supported in a given era, and if so return the evidence.

Simple scripts

Making multi-signature and time-lock scripts.

Plutus scripts

data PlutusScript lang Source #

Plutus scripts.

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

Instances

Instances details
Show (PlutusScript lang) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

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

Defined in Cardano.Api.Internal.Script

Associated Types

data AsType (PlutusScript lang) 
Instance details

Defined in Cardano.Api.Internal.Script

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

Defined in Cardano.Api.Internal.Script

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

Defined in Cardano.Api.Internal.Script

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

Defined in Cardano.Api.Internal.Script

Eq (PlutusScript lang) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Methods

(==) :: PlutusScript lang -> PlutusScript lang -> Bool Source #

(/=) :: PlutusScript lang -> PlutusScript lang -> Bool Source #

Ord (PlutusScript lang) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

data AsType (PlutusScript lang) Source # 
Instance details

Defined in Cardano.Api.Internal.Script

examplePlutusScriptAlwaysSucceeds :: WitCtx witctx -> PlutusScript PlutusScriptV1 Source #

An example Plutus script that always succeeds, irrespective of inputs.

For example, if one were to use this for a payment address then it would allow anyone to spend from it.

The exact script depends on the context in which it is to be used.

examplePlutusScriptAlwaysFails :: WitCtx witctx -> PlutusScript PlutusScriptV1 Source #

An example Plutus script that always fails, irrespective of inputs.

For example, if one were to use this for a payment address then it would be impossible for anyone to ever spend from it.

The exact script depends on the context in which it is to be used.

Script data

collectPlutusScriptHashes :: AlonzoEraOnwards era -> Tx era -> UTxO era -> Map ScriptWitnessIndex ScriptHash Source #

Collect all plutus script hashes that are needed to validate the given transaction and return them in a map with their corresponding ScriptWitnessIndex as key.

data HashableScriptData Source #

Instances

Instances details
Show HashableScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

HasTypeProxy HashableScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

SerialiseAsCBOR HashableScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Eq HashableScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Ord HashableScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

data AsType HashableScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

unsafeHashableScriptData :: ScriptData -> HashableScriptData Source #

Warning: Creating HashableScriptData from a ScriptData value pretty much guarantees the original bytes used to create the ScriptData value will be different if we serialize HashableScriptData again. Do not use this.

data ScriptData Source #

Constructors

ScriptDataConstructor 

Fields

ScriptDataMap [(ScriptData, ScriptData)]

Key value pairs

ScriptDataList [ScriptData]

Elements

ScriptDataNumber Integer 
ScriptDataBytes ByteString 

Instances

Instances details
Show ScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

HasTypeProxy ScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Associated Types

data AsType ScriptData 
Instance details

Defined in Cardano.Api.Internal.ScriptData

SerialiseAsCBOR ScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

FromCBOR ScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

ToCBOR ScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Eq ScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Ord ScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

FromJSON (Hash ScriptData) Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Methods

parseJSON :: Value -> Parser (Hash ScriptData)

parseJSONList :: Value -> Parser [Hash ScriptData]

omittedField :: Maybe (Hash ScriptData)

FromJSONKey (Hash ScriptData) Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Methods

fromJSONKey :: FromJSONKeyFunction (Hash ScriptData)

fromJSONKeyList :: FromJSONKeyFunction [Hash ScriptData]

ToJSON (Hash ScriptData) Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Methods

toJSON :: Hash ScriptData -> Value

toEncoding :: Hash ScriptData -> Encoding

toJSONList :: [Hash ScriptData] -> Value

toEncodingList :: [Hash ScriptData] -> Encoding

omitField :: Hash ScriptData -> Bool

ToJSONKey (Hash ScriptData) Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Methods

toJSONKey :: ToJSONKeyFunction (Hash ScriptData)

toJSONKeyList :: ToJSONKeyFunction [Hash ScriptData]

IsString (Hash ScriptData) Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Show (Hash ScriptData) Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

SerialiseAsRawBytes (Hash ScriptData) Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Eq (Hash ScriptData) Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Ord (Hash ScriptData) Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

data AsType ScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

newtype Hash ScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Validation

newtype ScriptDataRangeError Source #

An error in script data due to an out-of-range value.

Constructors

ScriptDataConstructorOutOfRange Integer

The constructor number is outside the maximum range of -2^64-1 .. 2^64-1.

Instances

Instances details
Data ScriptDataRangeError Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ScriptDataRangeError -> c ScriptDataRangeError Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ScriptDataRangeError Source #

toConstr :: ScriptDataRangeError -> Constr Source #

dataTypeOf :: ScriptDataRangeError -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ScriptDataRangeError) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ScriptDataRangeError) Source #

gmapT :: (forall b. Data b => b -> b) -> ScriptDataRangeError -> ScriptDataRangeError Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ScriptDataRangeError -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ScriptDataRangeError -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> ScriptDataRangeError -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ScriptDataRangeError -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ScriptDataRangeError -> m ScriptDataRangeError Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ScriptDataRangeError -> m ScriptDataRangeError Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ScriptDataRangeError -> m ScriptDataRangeError Source #

Show ScriptDataRangeError Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Error ScriptDataRangeError Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Eq ScriptDataRangeError Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

validateScriptData :: ScriptData -> Either ScriptDataRangeError () Source #

Validate script data. This is for use with existing constructed script data values, e.g. constructed manually or decoded from CBOR directly.

Conversion to/from JSON

data ScriptDataJsonSchema Source #

Script data is similar to JSON but not exactly the same. It has some deliberate limitations such as no support for floating point numbers or special forms for null or boolean values. It also has limitations on the length of strings. On the other hand, unlike JSON, it distinguishes between byte strings and text strings. It also supports any value as map keys rather than just string. It also supports alternatives / tagged unions, used for representing constructors for Plutus data values.

We provide two different mappings between script data and JSON, useful for different purposes:

  1. A mapping that allows almost any JSON value to be converted into script data. This does not require a specific JSON schema for the input. It does not expose the full representation capability of script data.
  2. A mapping that exposes the full representation capability of script data, but relies on a specific JSON schema for the input JSON.

In the "no schema" mapping, the idea is that (almost) any JSON can be turned into script data and then converted back, without loss. That is, we can round-trip the JSON.

The subset of JSON supported is all JSON except:

  • No null or bool values
  • No floating point, only integers in the range of a 64bit signed integer
  • A limitation on string lengths

The approach for this mapping is to use whichever representation as script data is most compact. In particular:

  • JSON lists and maps represented as CBOR lists and maps
  • JSON strings represented as CBOR strings
  • JSON hex strings with "0x" prefix represented as CBOR byte strings
  • JSON integer numbers represented as CBOR signed or unsigned numbers
  • JSON maps with string keys that parse as numbers or hex byte strings, represented as CBOR map keys that are actually numbers or byte strings.

The string length limit depends on whether the hex string representation is used or not. For text strings the limit is 64 bytes for the UTF8 representation of the text string. For byte strings the limit is 64 bytes for the raw byte form (ie not the input hex, but after hex decoding).

In the "detailed schema" mapping, the idea is that we expose the full representation capability of the script data in the form of a JSON schema. This means the full representation is available and can be controlled precisely. It also means any script data can be converted into the JSON and back without loss. That is we can round-trip the script data via the JSON and also round-trip schema-compliant JSON via script data.

  • Warning*: While the JSON representation does round-trip, the CBOR through JSON does not. When serialising and deserialising HashableScriptData through JSON e.g: CBOR -> HashableScriptData -> JSON -> HashableScriptData -> CBOR the original CBOR representation is lost and the resulting CBOR *will* be different resulting in a different script data hash, which is calculated from CBOR. This is because cardano-ledger does not canonicalise CBOR representation, so you can have few slightly different serialised representations of a data structure, which represent the same value.

See: https://github.com/IntersectMBO/cardano-api/issues/612#issuecomment-2701256007

Constructors

ScriptDataJsonNoSchema

Use the "no schema" mapping between JSON and script data as described above.

ScriptDataJsonDetailedSchema

Use the "detailed schema" mapping between JSON and script data as described above.

scriptDataFromJson :: ScriptDataJsonSchema -> Value -> Either ScriptDataJsonError HashableScriptData Source #

Convert a value from JSON into script data, using the given choice of mapping between JSON and script data.

This may fail with a conversion error if the JSON is outside the supported subset for the chosen mapping. See ScriptDataJsonSchema for the details.

scriptDataToJson :: ScriptDataJsonSchema -> HashableScriptData -> Value Source #

Convert a script data value into JSON , using the given choice of mapping between JSON and script data.

This conversion is total but is not necessarily invertible. See ScriptDataJsonSchema for the details.

data ScriptDataJsonError Source #

Instances

Instances details
Data ScriptDataJsonError Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ScriptDataJsonError -> c ScriptDataJsonError Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ScriptDataJsonError Source #

toConstr :: ScriptDataJsonError -> Constr Source #

dataTypeOf :: ScriptDataJsonError -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ScriptDataJsonError) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ScriptDataJsonError) Source #

gmapT :: (forall b. Data b => b -> b) -> ScriptDataJsonError -> ScriptDataJsonError Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ScriptDataJsonError -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ScriptDataJsonError -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> ScriptDataJsonError -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ScriptDataJsonError -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ScriptDataJsonError -> m ScriptDataJsonError Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ScriptDataJsonError -> m ScriptDataJsonError Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ScriptDataJsonError -> m ScriptDataJsonError Source #

Show ScriptDataJsonError Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Error ScriptDataJsonError Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Eq ScriptDataJsonError Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

data ScriptDataJsonSchemaError Source #

Instances

Instances details
Data ScriptDataJsonSchemaError Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ScriptDataJsonSchemaError -> c ScriptDataJsonSchemaError Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ScriptDataJsonSchemaError Source #

toConstr :: ScriptDataJsonSchemaError -> Constr Source #

dataTypeOf :: ScriptDataJsonSchemaError -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ScriptDataJsonSchemaError) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ScriptDataJsonSchemaError) Source #

gmapT :: (forall b. Data b => b -> b) -> ScriptDataJsonSchemaError -> ScriptDataJsonSchemaError Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ScriptDataJsonSchemaError -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ScriptDataJsonSchemaError -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> ScriptDataJsonSchemaError -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ScriptDataJsonSchemaError -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ScriptDataJsonSchemaError -> m ScriptDataJsonSchemaError Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ScriptDataJsonSchemaError -> m ScriptDataJsonSchemaError Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ScriptDataJsonSchemaError -> m ScriptDataJsonSchemaError Source #

Show ScriptDataJsonSchemaError Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Error ScriptDataJsonSchemaError Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Eq ScriptDataJsonSchemaError Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

data ScriptDataJsonBytesError Source #

Instances

Instances details
Data ScriptDataJsonBytesError Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ScriptDataJsonBytesError -> c ScriptDataJsonBytesError Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ScriptDataJsonBytesError Source #

toConstr :: ScriptDataJsonBytesError -> Constr Source #

dataTypeOf :: ScriptDataJsonBytesError -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ScriptDataJsonBytesError) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ScriptDataJsonBytesError) Source #

gmapT :: (forall b. Data b => b -> b) -> ScriptDataJsonBytesError -> ScriptDataJsonBytesError Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ScriptDataJsonBytesError -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ScriptDataJsonBytesError -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> ScriptDataJsonBytesError -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ScriptDataJsonBytesError -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ScriptDataJsonBytesError -> m ScriptDataJsonBytesError Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ScriptDataJsonBytesError -> m ScriptDataJsonBytesError Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ScriptDataJsonBytesError -> m ScriptDataJsonBytesError Source #

Show ScriptDataJsonBytesError Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

Error ScriptDataJsonBytesError Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

scriptDataJsonToHashable Source #

This allows us to take JSON formatted ScriptData and encode it in the CDDL format whilst preserving the original bytes.

Script execution units

data ExecutionUnits Source #

The units for how long a script executes for and how much memory it uses. This is used to declare the resources used by a particular use of a script.

This type is also used to describe the limits for the maximum overall execution units per transaction or per block.

Constructors

ExecutionUnits 

Fields

Instances

Instances details
FromJSON ExecutionUnits Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Methods

parseJSON :: Value -> Parser ExecutionUnits

parseJSONList :: Value -> Parser [ExecutionUnits]

omittedField :: Maybe ExecutionUnits

ToJSON ExecutionUnits Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Show ExecutionUnits Source # 
Instance details

Defined in Cardano.Api.Internal.Script

FromCBOR ExecutionUnits Source # 
Instance details

Defined in Cardano.Api.Internal.Script

ToCBOR ExecutionUnits Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Eq ExecutionUnits Source # 
Instance details

Defined in Cardano.Api.Internal.Script

data ExecutionUnitPrices Source #

The prices for ExecutionUnits as a fraction of a Coin.

These are used to determine the fee for the use of a script within a transaction, based on the ExecutionUnits needed by the use of the script.

Instances

Instances details
FromJSON ExecutionUnitPrices Source # 
Instance details

Defined in Cardano.Api.Internal.ProtocolParameters

ToJSON ExecutionUnitPrices Source # 
Instance details

Defined in Cardano.Api.Internal.ProtocolParameters

Show ExecutionUnitPrices Source # 
Instance details

Defined in Cardano.Api.Internal.ProtocolParameters

FromCBOR ExecutionUnitPrices Source # 
Instance details

Defined in Cardano.Api.Internal.ProtocolParameters

ToCBOR ExecutionUnitPrices Source # 
Instance details

Defined in Cardano.Api.Internal.ProtocolParameters

Eq ExecutionUnitPrices Source # 
Instance details

Defined in Cardano.Api.Internal.ProtocolParameters

newtype CostModel Source #

Constructors

CostModel [Int64] 

Instances

Instances details
Data CostModel Source # 
Instance details

Defined in Cardano.Api.Internal.ProtocolParameters

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CostModel -> c CostModel Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CostModel Source #

toConstr :: CostModel -> Constr Source #

dataTypeOf :: CostModel -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CostModel) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CostModel) Source #

gmapT :: (forall b. Data b => b -> b) -> CostModel -> CostModel Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CostModel -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CostModel -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> CostModel -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CostModel -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CostModel -> m CostModel Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CostModel -> m CostModel Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CostModel -> m CostModel Source #

Show CostModel Source # 
Instance details

Defined in Cardano.Api.Internal.ProtocolParameters

FromCBOR CostModel Source # 
Instance details

Defined in Cardano.Api.Internal.ProtocolParameters

ToCBOR CostModel Source # 
Instance details

Defined in Cardano.Api.Internal.ProtocolParameters

Methods

toCBOR :: CostModel -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy CostModel -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [CostModel] -> Size Source #

Eq CostModel Source # 
Instance details

Defined in Cardano.Api.Internal.ProtocolParameters

Script addresses

Making addresses from scripts.

newtype ScriptHash Source #

We have this type separate from the Hash type to avoid the script hash type being parametrised by the era. The representation is era independent, and there are many places where we want to use a script hash where we don't want things to be era-parametrised.

Constructors

ScriptHash ScriptHash 

Instances

Instances details
FromJSON ScriptHash Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Methods

parseJSON :: Value -> Parser ScriptHash

parseJSONList :: Value -> Parser [ScriptHash]

omittedField :: Maybe ScriptHash

ToJSON ScriptHash Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Methods

toJSON :: ScriptHash -> Value

toEncoding :: ScriptHash -> Encoding

toJSONList :: [ScriptHash] -> Value

toEncodingList :: [ScriptHash] -> Encoding

omitField :: ScriptHash -> Bool

IsString ScriptHash Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Show ScriptHash Source # 
Instance details

Defined in Cardano.Api.Internal.Script

HasTypeProxy ScriptHash Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Associated Types

data AsType ScriptHash 
Instance details

Defined in Cardano.Api.Internal.Script

SerialiseAsRawBytes ScriptHash Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Eq ScriptHash Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Ord ScriptHash Source # 
Instance details

Defined in Cardano.Api.Internal.Script

data AsType ScriptHash Source # 
Instance details

Defined in Cardano.Api.Internal.Script

Serialisation

Support for serialising data in JSON, CBOR and text files.

data InputFormat a where Source #

Input format/encoding.

Constructors

InputFormatBech32 :: forall a. SerialiseAsBech32 a => InputFormat a

Bech32 encoding.

InputFormatHex :: forall a. SerialiseAsRawBytes a => InputFormat a

Hex/Base16 encoding.

InputFormatTextEnvelope :: forall a. HasTextEnvelope a => InputFormat a

Text envelope format.

data InputDecodeError Source #

Input decoding error.

Constructors

InputTextEnvelopeError !TextEnvelopeError

The provided data seems to be a valid text envelope, but some error occurred in deserialising it.

InputBech32DecodeError !Bech32DecodeError

The provided data is valid Bech32, but some error occurred in deserialising it.

InputInvalidError

The provided data does not represent a valid value of the provided type.

Instances

Instances details
Data InputDecodeError Source # 
Instance details

Defined in Cardano.Api.Internal.DeserialiseAnyOf

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> InputDecodeError -> c InputDecodeError Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c InputDecodeError Source #

toConstr :: InputDecodeError -> Constr Source #

dataTypeOf :: InputDecodeError -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c InputDecodeError) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c InputDecodeError) Source #

gmapT :: (forall b. Data b => b -> b) -> InputDecodeError -> InputDecodeError Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> InputDecodeError -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> InputDecodeError -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> InputDecodeError -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> InputDecodeError -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> InputDecodeError -> m InputDecodeError Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> InputDecodeError -> m InputDecodeError Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> InputDecodeError -> m InputDecodeError Source #

Show InputDecodeError Source # 
Instance details

Defined in Cardano.Api.Internal.DeserialiseAnyOf

Error InputDecodeError Source # 
Instance details

Defined in Cardano.Api.Internal.DeserialiseAnyOf

Eq InputDecodeError Source # 
Instance details

Defined in Cardano.Api.Internal.DeserialiseAnyOf

deserialiseInput :: NonEmpty (InputFormat a) -> ByteString -> Either InputDecodeError a Source #

Deserialise an input of some type that is formatted in some way.

deserialiseInputAnyOf :: [FromSomeType SerialiseAsBech32 b] -> [FromSomeType HasTextEnvelope b] -> ByteString -> Either InputDecodeError b Source #

Deserialise an input of some type that is formatted in some way.

The provided ByteString can either be Bech32-encoded or in the text envelope format.

renderInputDecodeError :: InputDecodeError -> Doc ann Source #

Render an error message for a InputDecodeError.

data SomeAddressVerificationKey Source #

mapSomeAddressVerificationKey :: (forall keyrole. Key keyrole => VerificationKey keyrole -> a) -> SomeAddressVerificationKey -> a Source #

CBOR

class HasTypeProxy a => SerialiseAsCBOR a Source #

Instances

Instances details
SerialiseAsCBOR GovernancePoll Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Poll

SerialiseAsCBOR GovernancePollAnswer Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Poll

SerialiseAsCBOR OperationalCertificate Source # 
Instance details

Defined in Cardano.Api.Internal.OperationalCertificate

SerialiseAsCBOR OperationalCertificateIssueCounter Source # 
Instance details

Defined in Cardano.Api.Internal.OperationalCertificate

SerialiseAsCBOR UpdateProposal Source # 
Instance details

Defined in Cardano.Api.Internal.ProtocolParameters

SerialiseAsCBOR EraHistory Source # 
Instance details

Defined in Cardano.Api.Internal.Query

SerialiseAsCBOR HashableScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

SerialiseAsCBOR ScriptData Source # 
Instance details

Defined in Cardano.Api.Internal.ScriptData

SerialiseAsCBOR TxMetadata Source # 
Instance details

Defined in Cardano.Api.Internal.TxMetadata

SerialiseAsCBOR Term Source # 
Instance details

Defined in Cardano.Api.Internal.Serialise.Cbor.Canonical

IsShelleyBasedEra era => SerialiseAsCBOR (Certificate era) Source # 
Instance details

Defined in Cardano.Api.Internal.Certificate

IsShelleyBasedEra era => SerialiseAsCBOR (Proposal era) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Actions.ProposalProcedure

IsShelleyBasedEra era => SerialiseAsCBOR (VotingProcedure era) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Actions.VotingProcedure

IsShelleyBasedEra era => SerialiseAsCBOR (VotingProcedures era) Source # 
Instance details

Defined in Cardano.Api.Internal.Governance.Actions.VotingProcedure

SerialiseAsCBOR (Hash ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsCBOR (Hash ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsCBOR (Hash KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsCBOR (Hash VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsCBOR (Hash CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (Hash StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsCBOR (SigningKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsCBOR (SigningKey KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsCBOR (SigningKey VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsCBOR (SigningKey CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey StakePoolExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (SigningKey StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsCBOR (VerificationKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Byron

SerialiseAsCBOR (VerificationKey KesKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsCBOR (VerificationKey VrfKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Praos

SerialiseAsCBOR (VerificationKey CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey DRepKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley

SerialiseAsCBOR (VerificationKey GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Internal.Keys.Shelley