Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cardano.Api.Plutus
Contents
- Languages
- Scripts in a specific language
- Scripts in any language
- Scripts in an era
- Reference scripts
- Use of a script in an era as a witness
- The simple script language
- The Plutus script language
- Script execution units
- Script hashes
- Internal conversion functions
- Script data
- Validating metadata
- Conversion to/from JSON
- Data family instances
Synopsis
- data SimpleScript'
- data PlutusScriptV1
- data PlutusScriptV2
- data PlutusScriptV3
- data ScriptLanguage lang where
- SimpleScriptLanguage :: ScriptLanguage SimpleScript'
- PlutusScriptLanguage :: forall lang. IsPlutusScriptLanguage lang => PlutusScriptVersion lang -> ScriptLanguage lang
- data PlutusScriptVersion lang where
- data AnyScriptLanguage where
- AnyScriptLanguage :: forall lang. ScriptLanguage lang -> AnyScriptLanguage
- data AnyPlutusScriptVersion where
- AnyPlutusScriptVersion :: forall lang. IsPlutusScriptLanguage lang => PlutusScriptVersion lang -> AnyPlutusScriptVersion
- class IsScriptLanguage lang => IsPlutusScriptLanguage lang where
- class HasTypeProxy lang => IsScriptLanguage lang where
- scriptLanguage :: ScriptLanguage lang
- type family ToLedgerPlutusLanguage lang :: Language where ...
- data Script lang where
- SimpleScript :: !SimpleScript -> Script SimpleScript'
- PlutusScript :: forall lang. IsPlutusScriptLanguage lang => !(PlutusScriptVersion lang) -> !(PlutusScript lang) -> Script lang
- data PlutusScriptInEra era lang where
- PlutusScriptInEra :: forall lang era. PlutusScript lang -> PlutusScriptInEra era lang
- data ScriptInAnyLang where
- ScriptInAnyLang :: forall lang. ScriptLanguage lang -> Script lang -> ScriptInAnyLang
- toScriptInAnyLang :: Script lang -> ScriptInAnyLang
- removePlutusScriptDoubleEncoding :: ByteString -> ByteString
- data ScriptInEra era where
- ScriptInEra :: forall lang era. ScriptLanguageInEra lang era -> Script lang -> ScriptInEra era
- toScriptInEra :: ShelleyBasedEra era -> ScriptInAnyLang -> Maybe (ScriptInEra era)
- eraOfScriptInEra :: ScriptInEra era -> ShelleyBasedEra era
- class HasScriptLanguageInEra lang era where
- scriptLanguageInEra :: ScriptLanguageInEra lang era
- class ToAlonzoScript lang era where
- toLedgerScript :: PlutusScript lang -> AlonzoScript (ShelleyLedgerEra era)
- data ReferenceScript era where
- ReferenceScript :: forall era. BabbageEraOnwards era -> ScriptInAnyLang -> ReferenceScript era
- ReferenceScriptNone :: forall era. ReferenceScript era
- refScriptToShelleyScript :: ShelleyBasedEra era -> ReferenceScript era -> StrictMaybe (Script (ShelleyLedgerEra era))
- data WitCtxTxIn
- data WitCtxMint
- data WitCtxStake
- data WitCtx witctx where
- data ScriptWitness witctx era where
- SimpleScriptWitness :: forall era witctx. ScriptLanguageInEra SimpleScript' era -> SimpleScriptOrReferenceInput SimpleScript' -> ScriptWitness witctx era
- PlutusScriptWitness :: forall lang era witctx. IsPlutusScriptLanguage lang => ScriptLanguageInEra lang era -> PlutusScriptVersion lang -> PlutusScriptOrReferenceInput lang -> ScriptDatum witctx -> ScriptRedeemer -> ExecutionUnits -> ScriptWitness witctx era
- getScriptWitnessReferenceInput :: ScriptWitness witctx era -> Maybe TxIn
- getScriptWitnessScript :: ScriptWitness witctx era -> Maybe (ScriptInEra era)
- getScriptWitnessReferenceInputOrScript :: ScriptWitness witctx era -> Either (ScriptInEra era) TxIn
- data Witness witctx era where
- KeyWitness :: forall witctx era. KeyWitnessInCtx witctx -> Witness witctx era
- ScriptWitness :: forall witctx era. ScriptWitnessInCtx witctx -> ScriptWitness witctx era -> Witness witctx era
- data KeyWitnessInCtx witctx where
- data ScriptWitnessInCtx witctx where
- class IsScriptWitnessInCtx ctx where
- data ScriptDatum witctx where
- type ScriptRedeemer = HashableScriptData
- data ScriptLanguageInEra lang era where
- SimpleScriptInShelley :: ScriptLanguageInEra SimpleScript' ShelleyEra
- SimpleScriptInAllegra :: ScriptLanguageInEra SimpleScript' AllegraEra
- SimpleScriptInMary :: ScriptLanguageInEra SimpleScript' MaryEra
- SimpleScriptInAlonzo :: ScriptLanguageInEra SimpleScript' AlonzoEra
- SimpleScriptInBabbage :: ScriptLanguageInEra SimpleScript' BabbageEra
- SimpleScriptInConway :: ScriptLanguageInEra SimpleScript' ConwayEra
- PlutusScriptV1InAlonzo :: ScriptLanguageInEra PlutusScriptV1 AlonzoEra
- PlutusScriptV1InBabbage :: ScriptLanguageInEra PlutusScriptV1 BabbageEra
- PlutusScriptV1InConway :: ScriptLanguageInEra PlutusScriptV1 ConwayEra
- PlutusScriptV2InBabbage :: ScriptLanguageInEra PlutusScriptV2 BabbageEra
- PlutusScriptV2InConway :: ScriptLanguageInEra PlutusScriptV2 ConwayEra
- PlutusScriptV3InConway :: ScriptLanguageInEra PlutusScriptV3 ConwayEra
- scriptLanguageSupportedInEra :: ShelleyBasedEra era -> ScriptLanguage lang -> Maybe (ScriptLanguageInEra lang era)
- sbeToSimpleScriptLanguageInEra :: ShelleyBasedEra era -> ScriptLanguageInEra SimpleScript' era
- languageOfScriptLanguageInEra :: ScriptLanguageInEra lang era -> ScriptLanguage lang
- eraOfScriptLanguageInEra :: ScriptLanguageInEra lang era -> ShelleyBasedEra era
- data SimpleScript
- data SimpleScriptOrReferenceInput lang
- data PlutusScript lang where
- PlutusScriptSerialised :: forall lang. ShortByteString -> PlutusScript lang
- data PlutusScriptOrReferenceInput lang
- = PScript (PlutusScript lang)
- | PReferenceScript TxIn
- examplePlutusScriptAlwaysSucceeds :: WitCtx witctx -> PlutusScript PlutusScriptV1
- examplePlutusScriptAlwaysFails :: WitCtx witctx -> PlutusScript PlutusScriptV1
- data ExecutionUnits = ExecutionUnits {}
- newtype ScriptHash = ScriptHash ScriptHash
- parseScriptHash :: Parser ScriptHash
- hashScript :: Script lang -> ScriptHash
- toShelleyScript :: ScriptInEra era -> Script (ShelleyLedgerEra era)
- fromShelleyBasedScript :: ShelleyBasedEra era -> Script (ShelleyLedgerEra era) -> ScriptInEra era
- toShelleyMultiSig :: SimpleScript -> Either MultiSigError (MultiSig (ShelleyLedgerEra ShelleyEra))
- fromShelleyMultiSig :: MultiSig (ShelleyLedgerEra ShelleyEra) -> SimpleScript
- toAllegraTimelock :: (AllegraEraScript era, NativeScript era ~ Timelock era) => SimpleScript -> NativeScript era
- fromAllegraTimelock :: AllegraEraScript era => NativeScript era -> SimpleScript
- toAlonzoExUnits :: ExecutionUnits -> ExUnits
- fromAlonzoExUnits :: ExUnits -> ExecutionUnits
- toShelleyScriptHash :: ScriptHash -> ScriptHash
- fromShelleyScriptHash :: ScriptHash -> ScriptHash
- toPlutusData :: ScriptData -> Data
- fromPlutusData :: Data -> ScriptData
- toAlonzoData :: Era ledgerera => HashableScriptData -> Data ledgerera
- fromAlonzoData :: Data ledgerera -> HashableScriptData
- toAlonzoLanguage :: AnyPlutusScriptVersion -> Language
- fromAlonzoLanguage :: Language -> AnyPlutusScriptVersion
- fromShelleyScriptToReferenceScript :: ShelleyBasedEra era -> Script (ShelleyLedgerEra era) -> ReferenceScript era
- scriptInEraToRefScript :: ScriptInEra era -> ReferenceScript era
- data DebugPlutusFailure = DebugPlutusFailure {}
- renderDebugPlutusFailure :: DebugPlutusFailure -> Text
- collectPlutusScriptHashes :: AlonzoEraOnwards era -> Tx era -> UTxO era -> Map ScriptWitnessIndex ScriptHash
- data HashableScriptData = HashableScriptData !ByteString !ScriptData
- hashScriptDataBytes :: HashableScriptData -> Hash ScriptData
- getOriginalScriptDataBytes :: HashableScriptData -> ByteString
- getScriptData :: HashableScriptData -> ScriptData
- unsafeHashableScriptData :: ScriptData -> HashableScriptData
- data ScriptData
- parseScriptDataHash :: Parser (Hash ScriptData)
- validateScriptData :: ScriptData -> Either ScriptDataRangeError ()
- newtype ScriptDataRangeError = ScriptDataConstructorOutOfRange Integer
- data ScriptDataJsonSchema
- scriptDataFromJson :: ScriptDataJsonSchema -> Value -> Either ScriptDataJsonError HashableScriptData
- scriptDataToJson :: ScriptDataJsonSchema -> HashableScriptData -> Value
- data ScriptDataJsonError
- data ScriptDataJsonSchemaError
- = ScriptDataJsonNullNotAllowed
- | ScriptDataJsonBoolNotAllowed
- | ScriptDataJsonNumberNotInteger !Double
- | ScriptDataJsonNotObject !Value
- | ScriptDataJsonBadObject ![(Text, Value)]
- | ScriptDataJsonBadMapPair !Value
- | ScriptDataJsonTypeMismatch !Text !Value
- scriptDataFromJsonDetailedSchema :: Value -> Either ScriptDataJsonSchemaError HashableScriptData
- scriptDataToJsonDetailedSchema :: HashableScriptData -> Value
- newtype ScriptBytesError = ScriptBytesError String
- data ScriptDataJsonBytesError
- scriptDataJsonToHashable :: ScriptDataJsonSchema -> Value -> Either ScriptDataJsonBytesError HashableScriptData
- data family AsType t
- data family Hash keyrole
Languages
data SimpleScript' Source #
Instances
HasTypeProxy SimpleScript' Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Associated Types
Methods proxyToAsType :: Proxy SimpleScript' -> AsType SimpleScript' Source # | |||||
IsScriptLanguage SimpleScript' Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Methods | |||||
data AsType SimpleScript' Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script |
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
data PlutusScriptV2 Source #
Instances
HasTypeProxy PlutusScriptV2 Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Associated Types
Methods proxyToAsType :: Proxy PlutusScriptV2 -> AsType PlutusScriptV2 Source # | |||||
IsPlutusScriptLanguage PlutusScriptV2 Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script | |||||
IsScriptLanguage PlutusScriptV2 Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Methods | |||||
HasScriptLanguageInEra PlutusScriptV2 BabbageEra Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script | |||||
HasScriptLanguageInEra PlutusScriptV2 ConwayEra Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script | |||||
ToAlonzoScript PlutusScriptV2 BabbageEra Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Methods toLedgerScript :: PlutusScript PlutusScriptV2 -> AlonzoScript (ShelleyLedgerEra BabbageEra) Source # | |||||
ToAlonzoScript PlutusScriptV2 ConwayEra Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Methods toLedgerScript :: PlutusScript PlutusScriptV2 -> AlonzoScript (ShelleyLedgerEra ConwayEra) Source # | |||||
data AsType PlutusScriptV2 Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script |
data PlutusScriptV3 Source #
Instances
HasTypeProxy PlutusScriptV3 Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Associated Types
Methods proxyToAsType :: Proxy PlutusScriptV3 -> AsType PlutusScriptV3 Source # | |||||
IsPlutusScriptLanguage PlutusScriptV3 Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script | |||||
IsScriptLanguage PlutusScriptV3 Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Methods | |||||
HasScriptLanguageInEra PlutusScriptV3 ConwayEra Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script | |||||
ToAlonzoScript PlutusScriptV3 ConwayEra Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Methods toLedgerScript :: PlutusScript PlutusScriptV3 -> AlonzoScript (ShelleyLedgerEra ConwayEra) Source # | |||||
data AsType PlutusScriptV3 Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script |
data ScriptLanguage lang where Source #
Constructors
SimpleScriptLanguage :: ScriptLanguage SimpleScript' | |
PlutusScriptLanguage :: forall lang. IsPlutusScriptLanguage lang => PlutusScriptVersion lang -> ScriptLanguage lang |
Instances
TestEquality ScriptLanguage Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods testEquality :: ScriptLanguage a -> ScriptLanguage b -> Maybe (a :~: b) Source # | |
Show (ScriptLanguage lang) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
Eq (ScriptLanguage lang) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods (==) :: ScriptLanguage lang -> ScriptLanguage lang -> Bool Source # (/=) :: ScriptLanguage lang -> ScriptLanguage lang -> Bool Source # |
data PlutusScriptVersion lang where Source #
Constructors
PlutusScriptV1 :: PlutusScriptVersion PlutusScriptV1 | |
PlutusScriptV2 :: PlutusScriptVersion PlutusScriptV2 | |
PlutusScriptV3 :: PlutusScriptVersion PlutusScriptV3 |
Instances
TestEquality PlutusScriptVersion Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods testEquality :: PlutusScriptVersion a -> PlutusScriptVersion b -> Maybe (a :~: b) Source # | |
Show (PlutusScriptVersion lang) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
Eq (PlutusScriptVersion lang) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods (==) :: PlutusScriptVersion lang -> PlutusScriptVersion lang -> Bool Source # (/=) :: PlutusScriptVersion lang -> PlutusScriptVersion lang -> Bool Source # |
data AnyScriptLanguage where Source #
Constructors
AnyScriptLanguage :: forall lang. ScriptLanguage lang -> AnyScriptLanguage |
Instances
Bounded AnyScriptLanguage Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
Enum AnyScriptLanguage Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods succ :: AnyScriptLanguage -> AnyScriptLanguage Source # pred :: AnyScriptLanguage -> AnyScriptLanguage Source # toEnum :: Int -> AnyScriptLanguage Source # fromEnum :: AnyScriptLanguage -> Int Source # enumFrom :: AnyScriptLanguage -> [AnyScriptLanguage] Source # enumFromThen :: AnyScriptLanguage -> AnyScriptLanguage -> [AnyScriptLanguage] Source # enumFromTo :: AnyScriptLanguage -> AnyScriptLanguage -> [AnyScriptLanguage] Source # enumFromThenTo :: AnyScriptLanguage -> AnyScriptLanguage -> AnyScriptLanguage -> [AnyScriptLanguage] Source # | |
Show AnyScriptLanguage Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
Eq AnyScriptLanguage Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods (==) :: AnyScriptLanguage -> AnyScriptLanguage -> Bool Source # (/=) :: AnyScriptLanguage -> AnyScriptLanguage -> Bool Source # | |
Ord AnyScriptLanguage Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods compare :: AnyScriptLanguage -> AnyScriptLanguage -> Ordering Source # (<) :: AnyScriptLanguage -> AnyScriptLanguage -> Bool Source # (<=) :: AnyScriptLanguage -> AnyScriptLanguage -> Bool Source # (>) :: AnyScriptLanguage -> AnyScriptLanguage -> Bool Source # (>=) :: AnyScriptLanguage -> AnyScriptLanguage -> Bool Source # max :: AnyScriptLanguage -> AnyScriptLanguage -> AnyScriptLanguage Source # min :: AnyScriptLanguage -> AnyScriptLanguage -> AnyScriptLanguage Source # |
data AnyPlutusScriptVersion where Source #
Constructors
AnyPlutusScriptVersion :: forall lang. IsPlutusScriptLanguage lang => PlutusScriptVersion lang -> AnyPlutusScriptVersion |
Instances
FromJSON AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods parseJSON :: Value -> Parser AnyPlutusScriptVersion # parseJSONList :: Value -> Parser [AnyPlutusScriptVersion] # | |
FromJSONKey AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods fromJSONKey :: FromJSONKeyFunction AnyPlutusScriptVersion fromJSONKeyList :: FromJSONKeyFunction [AnyPlutusScriptVersion] | |
ToJSON AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods toJSON :: AnyPlutusScriptVersion -> Value # toEncoding :: AnyPlutusScriptVersion -> Encoding # toJSONList :: [AnyPlutusScriptVersion] -> Value # toEncodingList :: [AnyPlutusScriptVersion] -> Encoding # omitField :: AnyPlutusScriptVersion -> Bool # | |
ToJSONKey AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods toJSONKey :: ToJSONKeyFunction AnyPlutusScriptVersion toJSONKeyList :: ToJSONKeyFunction [AnyPlutusScriptVersion] | |
Bounded AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
Enum AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods succ :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion Source # pred :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion Source # toEnum :: Int -> AnyPlutusScriptVersion Source # fromEnum :: AnyPlutusScriptVersion -> Int Source # enumFrom :: AnyPlutusScriptVersion -> [AnyPlutusScriptVersion] Source # enumFromThen :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> [AnyPlutusScriptVersion] Source # enumFromTo :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> [AnyPlutusScriptVersion] Source # enumFromThenTo :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> [AnyPlutusScriptVersion] Source # | |
Show AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
FromCBOR AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
ToCBOR AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods toCBOR :: AnyPlutusScriptVersion -> Encoding Source # encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy AnyPlutusScriptVersion -> Size Source # encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [AnyPlutusScriptVersion] -> Size Source # | |
Eq AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods (==) :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> Bool Source # (/=) :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> Bool Source # | |
Ord AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods compare :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> Ordering Source # (<) :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> Bool Source # (<=) :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> Bool Source # (>) :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> Bool Source # (>=) :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> Bool Source # max :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> AnyPlutusScriptVersion Source # min :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> AnyPlutusScriptVersion Source # |
class IsScriptLanguage lang => IsPlutusScriptLanguage lang where Source #
Methods
class HasTypeProxy lang => IsScriptLanguage lang where Source #
Methods
scriptLanguage :: ScriptLanguage lang Source #
Instances
IsScriptLanguage PlutusScriptV1 Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods | |
IsScriptLanguage PlutusScriptV2 Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods | |
IsScriptLanguage PlutusScriptV3 Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods | |
IsScriptLanguage SimpleScript' Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods |
type family ToLedgerPlutusLanguage lang :: Language where ... Source #
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
Show (Script lang) Source # | |||||
HasTypeProxy lang => HasTypeProxy (Script lang) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Associated Types
| |||||
IsScriptLanguage lang => SerialiseAsCBOR (Script lang) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Methods serialiseToCBOR :: Script lang -> ByteString Source # deserialiseFromCBOR :: AsType (Script lang) -> ByteString -> Either DecoderError (Script lang) Source # | |||||
IsScriptLanguage lang => HasTextEnvelope (Script lang) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Methods textEnvelopeType :: AsType (Script lang) -> TextEnvelopeType Source # textEnvelopeDefaultDescr :: Script lang -> TextEnvelopeDescr Source # | |||||
Eq (Script lang) Source # | |||||
data AsType (Script lang) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script |
data PlutusScriptInEra era lang where Source #
Constructors
PlutusScriptInEra :: forall lang era. PlutusScript lang -> PlutusScriptInEra era lang |
Instances
Show (PlutusScriptInEra era lang) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script | |||||
(HasTypeProxy era, HasTypeProxy lang) => HasTypeProxy (PlutusScriptInEra era lang) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Associated Types
Methods proxyToAsType :: Proxy (PlutusScriptInEra era lang) -> AsType (PlutusScriptInEra era lang) Source # | |||||
(Era (ShelleyLedgerEra era), HasTypeProxy (PlutusScriptInEra era lang), PlutusLanguage (ToLedgerPlutusLanguage lang)) => SerialiseAsCBOR (PlutusScriptInEra era lang) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Methods serialiseToCBOR :: PlutusScriptInEra era lang -> ByteString Source # deserialiseFromCBOR :: AsType (PlutusScriptInEra era lang) -> ByteString -> Either DecoderError (PlutusScriptInEra era lang) Source # | |||||
Eq (PlutusScriptInEra era lang) Source # | |||||
Defined in Cardano.Api.Plutus.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 # | |||||
Defined in Cardano.Api.Plutus.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 |
Instances
FromJSON ScriptInAnyLang Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Methods parseJSON :: Value -> Parser ScriptInAnyLang # parseJSONList :: Value -> Parser [ScriptInAnyLang] # | |||||
ToJSON ScriptInAnyLang Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Methods toJSON :: ScriptInAnyLang -> Value # toEncoding :: ScriptInAnyLang -> Encoding # toJSONList :: [ScriptInAnyLang] -> Value # toEncodingList :: [ScriptInAnyLang] -> Encoding # omitField :: ScriptInAnyLang -> Bool # | |||||
Show ScriptInAnyLang Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script | |||||
HasTypeProxy ScriptInAnyLang Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Associated Types
Methods proxyToAsType :: Proxy ScriptInAnyLang -> AsType ScriptInAnyLang Source # | |||||
Eq ScriptInAnyLang Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Methods (==) :: ScriptInAnyLang -> ScriptInAnyLang -> Bool Source # (/=) :: ScriptInAnyLang -> ScriptInAnyLang -> Bool Source # | |||||
data AsType ScriptInAnyLang Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script |
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.
removePlutusScriptDoubleEncoding :: ByteString -> ByteString Source #
Previously we were double encoding the plutus script bytes. This function removes a layer of encoding to return the original plutus script bytes if it exists.
Scripts in an era
data ScriptInEra era where Source #
Constructors
ScriptInEra :: forall lang era. ScriptLanguageInEra lang era -> Script lang -> ScriptInEra era |
Instances
Show (ScriptInEra era) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script | |||||
HasTypeProxy era => HasTypeProxy (ScriptInEra era) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Associated Types
Methods proxyToAsType :: Proxy (ScriptInEra era) -> AsType (ScriptInEra era) Source # | |||||
Eq (ScriptInEra era) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Methods (==) :: ScriptInEra era -> ScriptInEra era -> Bool Source # (/=) :: ScriptInEra era -> ScriptInEra era -> Bool Source # | |||||
data AsType (ScriptInEra era) Source # | |||||
Defined in Cardano.Api.Plutus.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
.
eraOfScriptInEra :: ScriptInEra era -> ShelleyBasedEra era Source #
class HasScriptLanguageInEra lang era where Source #
Smart-constructor for ScriptLanguageInEra
to write functions
manipulating scripts that do not commit to a particular era.
Methods
scriptLanguageInEra :: ScriptLanguageInEra lang era Source #
Instances
HasScriptLanguageInEra PlutusScriptV1 AlonzoEra Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
HasScriptLanguageInEra PlutusScriptV1 BabbageEra Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
HasScriptLanguageInEra PlutusScriptV1 ConwayEra Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
HasScriptLanguageInEra PlutusScriptV2 BabbageEra Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
HasScriptLanguageInEra PlutusScriptV2 ConwayEra Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
HasScriptLanguageInEra PlutusScriptV3 ConwayEra Source # | |
Defined in Cardano.Api.Plutus.Internal.Script |
class ToAlonzoScript lang era where Source #
Methods
toLedgerScript :: PlutusScript lang -> AlonzoScript (ShelleyLedgerEra era) Source #
Instances
ToAlonzoScript PlutusScriptV1 BabbageEra Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods toLedgerScript :: PlutusScript PlutusScriptV1 -> AlonzoScript (ShelleyLedgerEra BabbageEra) Source # | |
ToAlonzoScript PlutusScriptV1 ConwayEra Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods toLedgerScript :: PlutusScript PlutusScriptV1 -> AlonzoScript (ShelleyLedgerEra ConwayEra) Source # | |
ToAlonzoScript PlutusScriptV2 BabbageEra Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods toLedgerScript :: PlutusScript PlutusScriptV2 -> AlonzoScript (ShelleyLedgerEra BabbageEra) Source # | |
ToAlonzoScript PlutusScriptV2 ConwayEra Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods toLedgerScript :: PlutusScript PlutusScriptV2 -> AlonzoScript (ShelleyLedgerEra ConwayEra) Source # | |
ToAlonzoScript PlutusScriptV3 ConwayEra Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods toLedgerScript :: PlutusScript PlutusScriptV3 -> AlonzoScript (ShelleyLedgerEra ConwayEra) Source # |
Reference scripts
data ReferenceScript era where Source #
A reference scripts is a script that can exist at a transaction output. This greatly reduces the size of transactions that use scripts as the script no longer has to be added to the transaction, they can now be referenced via a transaction output.
Constructors
ReferenceScript :: forall era. BabbageEraOnwards era -> ScriptInAnyLang -> ReferenceScript era | |
ReferenceScriptNone :: forall era. ReferenceScript era |
Instances
IsCardanoEra era => FromJSON (ReferenceScript era) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods parseJSON :: Value -> Parser (ReferenceScript era) # parseJSONList :: Value -> Parser [ReferenceScript era] # omittedField :: Maybe (ReferenceScript era) # | |
IsCardanoEra era => ToJSON (ReferenceScript era) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods toJSON :: ReferenceScript era -> Value # toEncoding :: ReferenceScript era -> Encoding # toJSONList :: [ReferenceScript era] -> Value # toEncodingList :: [ReferenceScript era] -> Encoding # omitField :: ReferenceScript era -> Bool # | |
Show (ReferenceScript era) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
Eq (ReferenceScript era) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods (==) :: ReferenceScript era -> ReferenceScript era -> Bool Source # (/=) :: ReferenceScript era -> ReferenceScript era -> Bool Source # |
refScriptToShelleyScript :: ShelleyBasedEra era -> ReferenceScript era -> StrictMaybe (Script (ShelleyLedgerEra era)) Source #
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.
Instances
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.
Instances
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.
Instances
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.
Constructors
WitCtxTxIn :: WitCtx WitCtxTxIn | |
WitCtxMint :: WitCtx WitCtxMint | |
WitCtxStake :: WitCtx WitCtxStake |
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.
Constructors
SimpleScriptWitness :: forall era witctx. ScriptLanguageInEra SimpleScript' era -> SimpleScriptOrReferenceInput SimpleScript' -> ScriptWitness witctx era | |
PlutusScriptWitness :: forall lang era witctx. IsPlutusScriptLanguage lang => ScriptLanguageInEra lang era -> PlutusScriptVersion lang -> PlutusScriptOrReferenceInput lang -> ScriptDatum witctx -> ScriptRedeemer -> ExecutionUnits -> ScriptWitness witctx era |
Instances
Show (ScriptWitness witctx era) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
Eq (ScriptWitness witctx era) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods (==) :: ScriptWitness witctx era -> ScriptWitness witctx era -> Bool Source # (/=) :: ScriptWitness witctx era -> ScriptWitness witctx era -> Bool Source # |
getScriptWitnessReferenceInput :: ScriptWitness witctx era -> Maybe TxIn Source #
getScriptWitnessScript :: ScriptWitness witctx era -> Maybe (ScriptInEra era) 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 |
data KeyWitnessInCtx witctx where Source #
Constructors
KeyWitnessForSpending :: KeyWitnessInCtx WitCtxTxIn | |
KeyWitnessForStakeAddr :: KeyWitnessInCtx WitCtxStake |
Instances
Show (KeyWitnessInCtx witctx) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
Eq (KeyWitnessInCtx witctx) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods (==) :: KeyWitnessInCtx witctx -> KeyWitnessInCtx witctx -> Bool Source # (/=) :: KeyWitnessInCtx witctx -> KeyWitnessInCtx witctx -> Bool Source # |
data ScriptWitnessInCtx witctx where Source #
Constructors
ScriptWitnessForSpending :: ScriptWitnessInCtx WitCtxTxIn | |
ScriptWitnessForMinting :: ScriptWitnessInCtx WitCtxMint | |
ScriptWitnessForStakeAddr :: ScriptWitnessInCtx WitCtxStake |
Instances
Show (ScriptWitnessInCtx witctx) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
Eq (ScriptWitnessInCtx witctx) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods (==) :: ScriptWitnessInCtx witctx -> ScriptWitnessInCtx witctx -> Bool Source # (/=) :: ScriptWitnessInCtx witctx -> ScriptWitnessInCtx witctx -> Bool Source # |
class IsScriptWitnessInCtx ctx where Source #
Methods
Instances
IsScriptWitnessInCtx WitCtxMint Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods scriptWitnessInCtx :: ScriptWitnessInCtx WitCtxMint Source # | |
IsScriptWitnessInCtx WitCtxStake Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods scriptWitnessInCtx :: ScriptWitnessInCtx WitCtxStake Source # | |
IsScriptWitnessInCtx WitCtxTxIn Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods scriptWitnessInCtx :: ScriptWitnessInCtx WitCtxTxIn Source # |
data ScriptDatum witctx where Source #
Constructors
ScriptDatumForTxIn :: Maybe HashableScriptData -> ScriptDatum WitCtxTxIn | |
InlineScriptDatum :: ScriptDatum WitCtxTxIn | |
NoScriptDatumForMint :: ScriptDatum WitCtxMint | |
NoScriptDatumForStake :: ScriptDatum WitCtxStake |
Instances
Show (ScriptDatum witctx) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
Eq (ScriptDatum witctx) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods (==) :: ScriptDatum witctx -> ScriptDatum witctx -> Bool Source # (/=) :: ScriptDatum witctx -> ScriptDatum witctx -> Bool Source # |
type ScriptRedeemer = HashableScriptData Source #
Languages supported in each era
data ScriptLanguageInEra lang era where Source #
Constructors
SimpleScriptInShelley :: ScriptLanguageInEra SimpleScript' ShelleyEra | |
SimpleScriptInAllegra :: ScriptLanguageInEra SimpleScript' AllegraEra | |
SimpleScriptInMary :: ScriptLanguageInEra SimpleScript' MaryEra | |
SimpleScriptInAlonzo :: ScriptLanguageInEra SimpleScript' AlonzoEra | |
SimpleScriptInBabbage :: ScriptLanguageInEra SimpleScript' BabbageEra | |
SimpleScriptInConway :: ScriptLanguageInEra SimpleScript' ConwayEra | |
PlutusScriptV1InAlonzo :: ScriptLanguageInEra PlutusScriptV1 AlonzoEra | |
PlutusScriptV1InBabbage :: ScriptLanguageInEra PlutusScriptV1 BabbageEra | |
PlutusScriptV1InConway :: ScriptLanguageInEra PlutusScriptV1 ConwayEra | |
PlutusScriptV2InBabbage :: ScriptLanguageInEra PlutusScriptV2 BabbageEra | |
PlutusScriptV2InConway :: ScriptLanguageInEra PlutusScriptV2 ConwayEra | |
PlutusScriptV3InConway :: ScriptLanguageInEra PlutusScriptV3 ConwayEra |
Instances
ToJSON (ScriptLanguageInEra lang era) Source # | |
Defined in Cardano.Api.Plutus.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 # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
Eq (ScriptLanguageInEra lang era) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods (==) :: ScriptLanguageInEra lang era -> ScriptLanguageInEra lang era -> Bool Source # (/=) :: ScriptLanguageInEra lang era -> ScriptLanguageInEra lang era -> Bool Source # | |
Ord (ScriptLanguageInEra lang era) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods compare :: ScriptLanguageInEra lang era -> ScriptLanguageInEra lang era -> Ordering Source # (<) :: ScriptLanguageInEra lang era -> ScriptLanguageInEra lang era -> Bool Source # (<=) :: ScriptLanguageInEra lang era -> ScriptLanguageInEra lang era -> Bool Source # (>) :: ScriptLanguageInEra lang era -> ScriptLanguageInEra lang era -> Bool Source # (>=) :: ScriptLanguageInEra lang era -> ScriptLanguageInEra lang era -> Bool Source # max :: ScriptLanguageInEra lang era -> ScriptLanguageInEra lang era -> ScriptLanguageInEra lang era Source # min :: ScriptLanguageInEra lang era -> ScriptLanguageInEra lang era -> ScriptLanguageInEra lang era Source # |
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.
sbeToSimpleScriptLanguageInEra :: ShelleyBasedEra era -> ScriptLanguageInEra SimpleScript' era Source #
languageOfScriptLanguageInEra :: ScriptLanguageInEra lang era -> ScriptLanguage lang Source #
eraOfScriptLanguageInEra :: ScriptLanguageInEra lang era -> ShelleyBasedEra era Source #
The simple script language
data SimpleScript Source #
Constructors
RequireSignature !(Hash PaymentKey) | |
RequireTimeBefore !SlotNo | |
RequireTimeAfter !SlotNo | |
RequireAllOf ![SimpleScript] | |
RequireAnyOf ![SimpleScript] | |
RequireMOf !Int ![SimpleScript] |
Instances
FromJSON SimpleScript Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
ToJSON SimpleScript Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods toJSON :: SimpleScript -> Value # toEncoding :: SimpleScript -> Encoding # toJSONList :: [SimpleScript] -> Value # toEncodingList :: [SimpleScript] -> Encoding # omitField :: SimpleScript -> Bool # | |
Show SimpleScript Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
Eq SimpleScript Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods (==) :: SimpleScript -> SimpleScript -> Bool Source # (/=) :: SimpleScript -> SimpleScript -> Bool Source # |
data SimpleScriptOrReferenceInput lang Source #
Constructors
SScript SimpleScript | |
SReferenceScript TxIn |
Instances
Show (SimpleScriptOrReferenceInput lang) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
Eq (SimpleScriptOrReferenceInput lang) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods (==) :: SimpleScriptOrReferenceInput lang -> SimpleScriptOrReferenceInput lang -> Bool Source # (/=) :: SimpleScriptOrReferenceInput lang -> SimpleScriptOrReferenceInput lang -> Bool Source # |
The Plutus script language
data PlutusScript lang where Source #
Plutus scripts.
Note that Plutus scripts have a binary serialisation but no JSON serialisation.
Constructors
PlutusScriptSerialised :: forall lang. ShortByteString -> PlutusScript lang |
Instances
Show (PlutusScript lang) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script | |||||
HasTypeProxy lang => HasTypeProxy (PlutusScript lang) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Associated Types
Methods proxyToAsType :: Proxy (PlutusScript lang) -> AsType (PlutusScript lang) Source # | |||||
HasTypeProxy lang => SerialiseAsCBOR (PlutusScript lang) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Methods serialiseToCBOR :: PlutusScript lang -> ByteString Source # deserialiseFromCBOR :: AsType (PlutusScript lang) -> ByteString -> Either DecoderError (PlutusScript lang) Source # | |||||
HasTypeProxy lang => SerialiseAsRawBytes (PlutusScript lang) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Methods serialiseToRawBytes :: PlutusScript lang -> ByteString Source # deserialiseFromRawBytes :: AsType (PlutusScript lang) -> ByteString -> Either SerialiseAsRawBytesError (PlutusScript lang) Source # | |||||
IsPlutusScriptLanguage lang => HasTextEnvelope (PlutusScript lang) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Methods textEnvelopeType :: AsType (PlutusScript lang) -> TextEnvelopeType Source # textEnvelopeDefaultDescr :: PlutusScript lang -> TextEnvelopeDescr Source # | |||||
Eq (PlutusScript lang) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Methods (==) :: PlutusScript lang -> PlutusScript lang -> Bool Source # (/=) :: PlutusScript lang -> PlutusScript lang -> Bool Source # | |||||
Ord (PlutusScript lang) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Methods compare :: PlutusScript lang -> PlutusScript lang -> Ordering Source # (<) :: PlutusScript lang -> PlutusScript lang -> Bool Source # (<=) :: PlutusScript lang -> PlutusScript lang -> Bool Source # (>) :: PlutusScript lang -> PlutusScript lang -> Bool Source # (>=) :: PlutusScript lang -> PlutusScript lang -> Bool Source # max :: PlutusScript lang -> PlutusScript lang -> PlutusScript lang Source # min :: PlutusScript lang -> PlutusScript lang -> PlutusScript lang Source # | |||||
data AsType (PlutusScript lang) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script |
data PlutusScriptOrReferenceInput lang Source #
Scripts can now exist in the UTxO at a transaction output. We can reference these scripts via specification of a reference transaction input in order to witness spending inputs, withdrawals, certificates or to mint tokens. This datatype encapsulates this concept.
Constructors
PScript (PlutusScript lang) | |
PReferenceScript TxIn |
Instances
Show (PlutusScriptOrReferenceInput lang) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
Eq (PlutusScriptOrReferenceInput lang) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods (==) :: PlutusScriptOrReferenceInput lang -> PlutusScriptOrReferenceInput lang -> Bool Source # (/=) :: PlutusScriptOrReferenceInput lang -> PlutusScriptOrReferenceInput lang -> Bool Source # |
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 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
FromJSON ExecutionUnits Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods parseJSON :: Value -> Parser ExecutionUnits # parseJSONList :: Value -> Parser [ExecutionUnits] # | |
ToJSON ExecutionUnits Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods toJSON :: ExecutionUnits -> Value # toEncoding :: ExecutionUnits -> Encoding # toJSONList :: [ExecutionUnits] -> Value # toEncodingList :: [ExecutionUnits] -> Encoding # omitField :: ExecutionUnits -> Bool # | |
Show ExecutionUnits Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
FromCBOR ExecutionUnits Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
ToCBOR ExecutionUnits Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods toCBOR :: ExecutionUnits -> Encoding Source # encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy ExecutionUnits -> Size Source # encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [ExecutionUnits] -> Size Source # | |
Eq ExecutionUnits Source # | |
Defined in Cardano.Api.Plutus.Internal.Script Methods (==) :: ExecutionUnits -> ExecutionUnits -> Bool Source # (/=) :: ExecutionUnits -> ExecutionUnits -> Bool Source # |
Script hashes
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
FromJSON ScriptHash Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script | |||||
ToJSON ScriptHash Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Methods toJSON :: ScriptHash -> Value # toEncoding :: ScriptHash -> Encoding # toJSONList :: [ScriptHash] -> Value # toEncodingList :: [ScriptHash] -> Encoding # omitField :: ScriptHash -> Bool # | |||||
Show ScriptHash Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script | |||||
HasTypeProxy ScriptHash Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Associated Types
Methods proxyToAsType :: Proxy ScriptHash -> AsType ScriptHash Source # | |||||
SerialiseAsRawBytes ScriptHash Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script | |||||
Eq ScriptHash Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Methods (==) :: ScriptHash -> ScriptHash -> Bool Source # (/=) :: ScriptHash -> ScriptHash -> Bool Source # | |||||
Ord ScriptHash Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script Methods compare :: ScriptHash -> ScriptHash -> Ordering Source # (<) :: ScriptHash -> ScriptHash -> Bool Source # (<=) :: ScriptHash -> ScriptHash -> Bool Source # (>) :: ScriptHash -> ScriptHash -> Bool Source # (>=) :: ScriptHash -> ScriptHash -> Bool Source # max :: ScriptHash -> ScriptHash -> ScriptHash Source # min :: ScriptHash -> ScriptHash -> ScriptHash Source # | |||||
Pretty ScriptHash Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script | |||||
data AsType ScriptHash Source # | |||||
Defined in Cardano.Api.Plutus.Internal.Script |
parseScriptHash :: Parser ScriptHash Source #
Parser for hex rerepsentation of ScriptHash
hashScript :: Script lang -> ScriptHash Source #
Internal conversion functions
toShelleyScript :: ScriptInEra era -> Script (ShelleyLedgerEra era) Source #
fromShelleyBasedScript :: ShelleyBasedEra era -> Script (ShelleyLedgerEra era) -> ScriptInEra era Source #
toShelleyMultiSig :: SimpleScript -> Either MultiSigError (MultiSig (ShelleyLedgerEra ShelleyEra)) Source #
Conversion for the MultiSig
language used by the Shelley era.
fromShelleyMultiSig :: MultiSig (ShelleyLedgerEra ShelleyEra) -> SimpleScript Source #
Conversion for the MultiSig
language used by the Shelley era.
toAllegraTimelock :: (AllegraEraScript era, NativeScript era ~ Timelock era) => SimpleScript -> NativeScript era Source #
Conversion for the Timelock
language that is shared between the
Allegra and Mary eras.
fromAllegraTimelock :: AllegraEraScript era => NativeScript era -> SimpleScript Source #
Conversion for the Timelock
language that is shared between the
Allegra and Mary eras.
toPlutusData :: ScriptData -> Data Source #
fromPlutusData :: Data -> ScriptData Source #
toAlonzoData :: Era ledgerera => HashableScriptData -> Data ledgerera Source #
fromAlonzoData :: Data ledgerera -> HashableScriptData Source #
fromShelleyScriptToReferenceScript :: ShelleyBasedEra era -> Script (ShelleyLedgerEra era) -> ReferenceScript era Source #
scriptInEraToRefScript :: ScriptInEra era -> ReferenceScript era Source #
data DebugPlutusFailure Source #
A structured representation of Plutus script validation failures,
providing detailed information about the failed execution for debugging purposes.
This type contains the same information as the data constructor
ValidationFailure
but with named fields and fixed crypto parameters for easier debugging and
error reporting.
Constructors
DebugPlutusFailure | |
Instances
Show DebugPlutusFailure Source # | |
Defined in Cardano.Api.Plutus.Internal | |
Eq DebugPlutusFailure Source # | |
Defined in Cardano.Api.Plutus.Internal Methods (==) :: DebugPlutusFailure -> DebugPlutusFailure -> Bool Source # (/=) :: DebugPlutusFailure -> DebugPlutusFailure -> Bool Source # |
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.
Script data
data HashableScriptData Source #
Constructors
HashableScriptData | |
Fields
|
Instances
Show HashableScriptData Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData | |||||
HasTypeProxy HashableScriptData Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData Associated Types
Methods proxyToAsType :: Proxy HashableScriptData -> AsType HashableScriptData Source # | |||||
SerialiseAsCBOR HashableScriptData Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData | |||||
Eq HashableScriptData Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods (==) :: HashableScriptData -> HashableScriptData -> Bool Source # (/=) :: HashableScriptData -> HashableScriptData -> Bool Source # | |||||
Ord HashableScriptData Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods compare :: HashableScriptData -> HashableScriptData -> Ordering Source # (<) :: HashableScriptData -> HashableScriptData -> Bool Source # (<=) :: HashableScriptData -> HashableScriptData -> Bool Source # (>) :: HashableScriptData -> HashableScriptData -> Bool Source # (>=) :: HashableScriptData -> HashableScriptData -> Bool Source # max :: HashableScriptData -> HashableScriptData -> HashableScriptData Source # min :: HashableScriptData -> HashableScriptData -> HashableScriptData Source # | |||||
data AsType HashableScriptData Source # | |||||
Defined in Cardano.Api.Plutus.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
Show ScriptData Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData | |||||
HasTypeProxy ScriptData Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData Associated Types
Methods proxyToAsType :: Proxy ScriptData -> AsType ScriptData Source # | |||||
SerialiseAsCBOR ScriptData Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods serialiseToCBOR :: ScriptData -> ByteString Source # deserialiseFromCBOR :: AsType ScriptData -> ByteString -> Either DecoderError ScriptData Source # | |||||
FromCBOR ScriptData Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData | |||||
ToCBOR ScriptData Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods toCBOR :: ScriptData -> Encoding Source # encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy ScriptData -> Size Source # encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [ScriptData] -> Size Source # | |||||
Eq ScriptData Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods (==) :: ScriptData -> ScriptData -> Bool Source # (/=) :: ScriptData -> ScriptData -> Bool Source # | |||||
Ord ScriptData Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods compare :: ScriptData -> ScriptData -> Ordering Source # (<) :: ScriptData -> ScriptData -> Bool Source # (<=) :: ScriptData -> ScriptData -> Bool Source # (>) :: ScriptData -> ScriptData -> Bool Source # (>=) :: ScriptData -> ScriptData -> Bool Source # max :: ScriptData -> ScriptData -> ScriptData Source # min :: ScriptData -> ScriptData -> ScriptData Source # | |||||
FromJSON (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods parseJSON :: Value -> Parser (Hash ScriptData) # parseJSONList :: Value -> Parser [Hash ScriptData] # omittedField :: Maybe (Hash ScriptData) # | |||||
FromJSONKey (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods fromJSONKey :: FromJSONKeyFunction (Hash ScriptData) fromJSONKeyList :: FromJSONKeyFunction [Hash ScriptData] | |||||
ToJSON (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.Plutus.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 # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods toJSONKey :: ToJSONKeyFunction (Hash ScriptData) toJSONKeyList :: ToJSONKeyFunction [Hash ScriptData] | |||||
Show (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData | |||||
SerialiseAsRawBytes (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods serialiseToRawBytes :: Hash ScriptData -> ByteString Source # deserialiseFromRawBytes :: AsType (Hash ScriptData) -> ByteString -> Either SerialiseAsRawBytesError (Hash ScriptData) Source # | |||||
Eq (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods (==) :: Hash ScriptData -> Hash ScriptData -> Bool Source # (/=) :: Hash ScriptData -> Hash ScriptData -> Bool Source # | |||||
Ord (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods compare :: Hash ScriptData -> Hash ScriptData -> Ordering Source # (<) :: Hash ScriptData -> Hash ScriptData -> Bool Source # (<=) :: Hash ScriptData -> Hash ScriptData -> Bool Source # (>) :: Hash ScriptData -> Hash ScriptData -> Bool Source # (>=) :: Hash ScriptData -> Hash ScriptData -> Bool Source # max :: Hash ScriptData -> Hash ScriptData -> Hash ScriptData Source # min :: Hash ScriptData -> Hash ScriptData -> Hash ScriptData Source # | |||||
Pretty (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData | |||||
data AsType ScriptData Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData | |||||
newtype Hash ScriptData Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData |
parseScriptDataHash :: Parser (Hash ScriptData) Source #
Parser for hex representation
Validating metadata
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.
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 |
Instances
Data ScriptDataRangeError Source # | |
Defined in Cardano.Api.Plutus.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 # | |
Defined in Cardano.Api.Plutus.Internal.ScriptData | |
Error ScriptDataRangeError Source # | |
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods prettyError :: ScriptDataRangeError -> Doc ann Source # | |
Eq ScriptDataRangeError Source # | |
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods (==) :: ScriptDataRangeError -> ScriptDataRangeError -> Bool Source # (/=) :: ScriptDataRangeError -> ScriptDataRangeError -> Bool Source # |
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:
- 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.
- 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. |
Instances
Show ScriptDataJsonSchema Source # | |
Defined in Cardano.Api.Plutus.Internal.ScriptData | |
Eq ScriptDataJsonSchema Source # | |
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods (==) :: ScriptDataJsonSchema -> ScriptDataJsonSchema -> Bool Source # (/=) :: ScriptDataJsonSchema -> ScriptDataJsonSchema -> Bool Source # |
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 #
Constructors
ScriptDataJsonSchemaError !Value !ScriptDataJsonSchemaError | |
ScriptDataRangeError !Value !ScriptDataRangeError |
Instances
Data ScriptDataJsonError Source # | |
Defined in Cardano.Api.Plutus.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 # | |
Defined in Cardano.Api.Plutus.Internal.ScriptData | |
Error ScriptDataJsonError Source # | |
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods prettyError :: ScriptDataJsonError -> Doc ann Source # | |
Eq ScriptDataJsonError Source # | |
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods (==) :: ScriptDataJsonError -> ScriptDataJsonError -> Bool Source # (/=) :: ScriptDataJsonError -> ScriptDataJsonError -> Bool Source # |
data ScriptDataJsonSchemaError Source #
Constructors
ScriptDataJsonNullNotAllowed | |
ScriptDataJsonBoolNotAllowed | |
ScriptDataJsonNumberNotInteger !Double | |
ScriptDataJsonNotObject !Value | |
ScriptDataJsonBadObject ![(Text, Value)] | |
ScriptDataJsonBadMapPair !Value | |
ScriptDataJsonTypeMismatch !Text !Value |
Instances
Data ScriptDataJsonSchemaError Source # | |
Defined in Cardano.Api.Plutus.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 # | |
Defined in Cardano.Api.Plutus.Internal.ScriptData | |
Error ScriptDataJsonSchemaError Source # | |
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods prettyError :: ScriptDataJsonSchemaError -> Doc ann Source # | |
Eq ScriptDataJsonSchemaError Source # | |
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods (==) :: ScriptDataJsonSchemaError -> ScriptDataJsonSchemaError -> Bool Source # (/=) :: ScriptDataJsonSchemaError -> ScriptDataJsonSchemaError -> Bool Source # |
scriptDataFromJsonDetailedSchema :: Value -> Either ScriptDataJsonSchemaError HashableScriptData Source #
Convert a script data value from JSON using detailed schema.
This conversion is total but is not necessarily invertible.
See ScriptDataJsonSchema
for the details.
scriptDataToJsonDetailedSchema :: HashableScriptData -> Value Source #
Convert a script data value into JSON using detailed schema.
This conversion is total but is not necessarily invertible.
See ScriptDataJsonSchema
for the details.
newtype ScriptBytesError Source #
Constructors
ScriptBytesError String |
Instances
data ScriptDataJsonBytesError Source #
Constructors
ScriptDataJsonBytesErrorValue ScriptDataJsonError | |
ScriptDataJsonBytesErrorInvalid ScriptDataRangeError |
Instances
Data ScriptDataJsonBytesError Source # | |
Defined in Cardano.Api.Plutus.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 # | |
Defined in Cardano.Api.Plutus.Internal.ScriptData | |
Error ScriptDataJsonBytesError Source # | |
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods prettyError :: ScriptDataJsonBytesError -> Doc ann Source # |
scriptDataJsonToHashable Source #
Arguments
:: ScriptDataJsonSchema | |
-> Value | ScriptData Value |
-> Either ScriptDataJsonBytesError HashableScriptData |
This allows us to take JSON formatted ScriptData and encode it in the CDDL format whilst preserving the original bytes.
Data family instances
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
data AsType AddressAny Source # | |
Defined in Cardano.Api.Address | |
data AsType ByronAddr Source # | |
Defined in Cardano.Api.Address | |
data AsType ShelleyAddr Source # | |
Defined in Cardano.Api.Address | |
data AsType StakeAddress Source # | |
Defined in Cardano.Api.Address | |
data AsType BlockHeader Source # | |
Defined in Cardano.Api.Block | |
data AsType ByronKey Source # | |
Defined in Cardano.Api.Byron.Internal.Key | |
data AsType ByronKeyLegacy Source # | |
Defined in Cardano.Api.Byron.Internal.Key | |
data AsType ByronUpdateProposal Source # | |
Defined in Cardano.Api.Byron.Internal.Proposal | |
data AsType ByronVote Source # | |
Defined in Cardano.Api.Byron.Internal.Proposal | |
data AsType DRepMetadata Source # | |
data AsType OperationalCertificate Source # | |
data AsType OperationalCertificateIssueCounter Source # | |
data AsType StakePoolMetadata Source # | |
data AsType AllegraEra Source # | |
Defined in Cardano.Api.Era.Internal.Core | |
data AsType AlonzoEra Source # | |
Defined in Cardano.Api.Era.Internal.Core | |
data AsType BabbageEra Source # | |
Defined in Cardano.Api.Era.Internal.Core | |
data AsType ByronEra Source # | |
Defined in Cardano.Api.Era.Internal.Core | |
data AsType ConwayEra Source # | |
Defined in Cardano.Api.Era.Internal.Core | |
data AsType MaryEra Source # | |
Defined in Cardano.Api.Era.Internal.Core | |
data AsType ShelleyEra Source # | |
Defined in Cardano.Api.Era.Internal.Core | |
data AsType GovernancePoll Source # | |
Defined in Cardano.Api.Governance.Internal.Poll | |
data AsType GovernancePollAnswer Source # | |
Defined in Cardano.Api.Governance.Internal.Poll | |
data AsType CommitteeColdExtendedKey Source # | |
Defined in Cardano.Api.Key.Internal | |
data AsType CommitteeColdKey Source # | |
Defined in Cardano.Api.Key.Internal | |
data AsType CommitteeHotExtendedKey Source # | |
Defined in Cardano.Api.Key.Internal | |
data AsType CommitteeHotKey Source # | |
Defined in Cardano.Api.Key.Internal | |
data AsType DRepExtendedKey Source # | |
Defined in Cardano.Api.Key.Internal | |
data AsType DRepKey Source # | |
Defined in Cardano.Api.Key.Internal | |
data AsType GenesisDelegateExtendedKey Source # | |
Defined in Cardano.Api.Key.Internal | |
data AsType GenesisDelegateKey Source # | |
Defined in Cardano.Api.Key.Internal | |
data AsType GenesisExtendedKey Source # | |
Defined in Cardano.Api.Key.Internal | |
data AsType GenesisKey Source # | |
Defined in Cardano.Api.Key.Internal | |
data AsType GenesisUTxOKey Source # | |
Defined in Cardano.Api.Key.Internal | |
data AsType PaymentExtendedKey Source # | |
Defined in Cardano.Api.Key.Internal | |
data AsType PaymentKey Source # | |
Defined in Cardano.Api.Key.Internal | |
data AsType StakeExtendedKey Source # | |
Defined in Cardano.Api.Key.Internal | |
data AsType StakeKey Source # | |
Defined in Cardano.Api.Key.Internal | |
data AsType StakePoolExtendedKey Source # | |
Defined in Cardano.Api.Key.Internal | |
data AsType StakePoolKey Source # | |
Defined in Cardano.Api.Key.Internal | |
data AsType KesKey Source # | |
Defined in Cardano.Api.Key.Internal.Praos | |
data AsType VrfKey Source # | |
Defined in Cardano.Api.Key.Internal.Praos | |
data AsType PlutusScriptV1 Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
data AsType PlutusScriptV2 Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
data AsType PlutusScriptV3 Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
data AsType ScriptHash Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
data AsType ScriptInAnyLang Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
data AsType SimpleScript' Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
data AsType HashableScriptData Source # | |
Defined in Cardano.Api.Plutus.Internal.ScriptData | |
data AsType ScriptData Source # | |
Defined in Cardano.Api.Plutus.Internal.ScriptData | |
data AsType PraosNonce Source # | |
Defined in Cardano.Api.ProtocolParameters | |
data AsType UpdateProposal Source # | |
Defined in Cardano.Api.ProtocolParameters | |
data AsType EraHistory Source # | |
Defined in Cardano.Api.Query.Internal.Type.QueryInMode | |
data AsType TextEnvelope Source # | |
Defined in Cardano.Api.Serialise.TextEnvelope.Internal | |
data AsType TxId Source # | |
Defined in Cardano.Api.Tx.Internal.TxIn | |
data AsType TxMetadata Source # | |
Defined in Cardano.Api.Tx.Internal.TxMetadata | |
data AsType AssetName Source # | |
Defined in Cardano.Api.Value.Internal | |
data AsType PolicyId Source # | |
Defined in Cardano.Api.Value.Internal | |
data AsType GovActionId Source # | |
Defined in Cardano.Api.Internal.Orphans.Serialisation | |
data AsType Term Source # | |
Defined in Cardano.Api.Serialise.Cbor.Canonical | |
data AsType (Address addrtype) Source # | |
Defined in Cardano.Api.Address | |
data AsType (AddressInEra era) Source # | |
Defined in Cardano.Api.Address | |
data AsType (Certificate era) Source # | |
Defined in Cardano.Api.Certificate.Internal | |
data AsType (Proposal era) Source # | |
data AsType (VotingProcedure era) Source # | |
data AsType (VotingProcedures era) Source # | |
data AsType (Hash a) Source # | |
Defined in Cardano.Api.Hash | |
data AsType (SigningKey a) Source # | |
Defined in Cardano.Api.Key.Internal.Class | |
data AsType (VerificationKey a) Source # | |
Defined in Cardano.Api.Key.Internal.Class | |
data AsType (PlutusScript lang) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
data AsType (Script lang) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
data AsType (ScriptInEra era) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script | |
data AsType (KeyWitness era) Source # | |
Defined in Cardano.Api.Tx.Internal.Sign | |
data AsType (Tx era) Source # | |
Defined in Cardano.Api.Tx.Internal.Sign | |
data AsType (TxBody era) Source # | |
Defined in Cardano.Api.Tx.Internal.Sign | |
data AsType (Credential 'ColdCommitteeRole) Source # | |
Defined in Cardano.Api.Internal.Orphans.Serialisation | |
data AsType (Credential 'DRepRole) Source # | |
Defined in Cardano.Api.Internal.Orphans.Serialisation | |
data AsType (Credential 'HotCommitteeRole) Source # | |
Defined in Cardano.Api.Internal.Orphans.Serialisation | |
data AsType (PlutusScriptInEra era lang) Source # | |
Defined in Cardano.Api.Plutus.Internal.Script |
data family Hash keyrole Source #
Instances
FromJSON (Hash BlockHeader) Source # | |||||
Defined in Cardano.Api.Block Methods parseJSON :: Value -> Parser (Hash BlockHeader) # parseJSONList :: Value -> Parser [Hash BlockHeader] # omittedField :: Maybe (Hash BlockHeader) # | |||||
FromJSON (Hash DRepKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
FromJSON (Hash GenesisKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods parseJSON :: Value -> Parser (Hash GenesisKey) # parseJSONList :: Value -> Parser [Hash GenesisKey] # omittedField :: Maybe (Hash GenesisKey) # | |||||
FromJSON (Hash PaymentKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods parseJSON :: Value -> Parser (Hash PaymentKey) # parseJSONList :: Value -> Parser [Hash PaymentKey] # omittedField :: Maybe (Hash PaymentKey) # | |||||
FromJSON (Hash StakePoolExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods parseJSON :: Value -> Parser (Hash StakePoolExtendedKey) # parseJSONList :: Value -> Parser [Hash StakePoolExtendedKey] # | |||||
FromJSON (Hash StakePoolKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods parseJSON :: Value -> Parser (Hash StakePoolKey) # parseJSONList :: Value -> Parser [Hash StakePoolKey] # omittedField :: Maybe (Hash StakePoolKey) # | |||||
FromJSON (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods parseJSON :: Value -> Parser (Hash ScriptData) # parseJSONList :: Value -> Parser [Hash ScriptData] # omittedField :: Maybe (Hash ScriptData) # | |||||
FromJSONKey (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods fromJSONKey :: FromJSONKeyFunction (Hash ScriptData) fromJSONKeyList :: FromJSONKeyFunction [Hash ScriptData] | |||||
ToJSON (Hash BlockHeader) Source # | |||||
Defined in Cardano.Api.Block Methods toJSON :: Hash BlockHeader -> Value # toEncoding :: Hash BlockHeader -> Encoding # toJSONList :: [Hash BlockHeader] -> Value # toEncodingList :: [Hash BlockHeader] -> Encoding # omitField :: Hash BlockHeader -> Bool # | |||||
ToJSON (Hash DRepKey) Source # | |||||
ToJSON (Hash GenesisKey) Source # | |||||
Defined in Cardano.Api.Key.Internal 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 # | |||||
Defined in Cardano.Api.Key.Internal 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 # | |||||
Defined in Cardano.Api.Key.Internal Methods toJSON :: Hash StakePoolExtendedKey -> Value # toEncoding :: Hash StakePoolExtendedKey -> Encoding # toJSONList :: [Hash StakePoolExtendedKey] -> Value # toEncodingList :: [Hash StakePoolExtendedKey] -> Encoding # omitField :: Hash StakePoolExtendedKey -> Bool # | |||||
ToJSON (Hash StakePoolKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods toJSON :: Hash StakePoolKey -> Value # toEncoding :: Hash StakePoolKey -> Encoding # toJSONList :: [Hash StakePoolKey] -> Value # toEncodingList :: [Hash StakePoolKey] -> Encoding # omitField :: Hash StakePoolKey -> Bool # | |||||
ToJSON (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.Plutus.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) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
ToJSONKey (Hash GenesisKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods toJSONKey :: ToJSONKeyFunction (Hash GenesisKey) toJSONKeyList :: ToJSONKeyFunction [Hash GenesisKey] | |||||
ToJSONKey (Hash PaymentKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods toJSONKey :: ToJSONKeyFunction (Hash PaymentKey) toJSONKeyList :: ToJSONKeyFunction [Hash PaymentKey] | |||||
ToJSONKey (Hash StakePoolExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods toJSONKey :: ToJSONKeyFunction (Hash StakePoolExtendedKey) toJSONKeyList :: ToJSONKeyFunction [Hash StakePoolExtendedKey] | |||||
ToJSONKey (Hash StakePoolKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods toJSONKey :: ToJSONKeyFunction (Hash StakePoolKey) toJSONKeyList :: ToJSONKeyFunction [Hash StakePoolKey] | |||||
ToJSONKey (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods toJSONKey :: ToJSONKeyFunction (Hash ScriptData) toJSONKeyList :: ToJSONKeyFunction [Hash ScriptData] | |||||
Show (Hash BlockHeader) Source # | |||||
Defined in Cardano.Api.Block | |||||
Show (Hash ByronKey) Source # | |||||
Show (Hash ByronKeyLegacy) Source # | |||||
Defined in Cardano.Api.Byron.Internal.Key | |||||
Show (Hash DRepMetadata) Source # | |||||
Show (Hash StakePoolMetadata) Source # | |||||
Show (Hash GovernancePoll) Source # | |||||
Defined in Cardano.Api.Governance.Internal.Poll | |||||
Show (Hash CommitteeColdExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
Show (Hash CommitteeColdKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
Show (Hash CommitteeHotExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
Show (Hash CommitteeHotKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
Show (Hash DRepExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
Show (Hash DRepKey) Source # | |||||
Show (Hash GenesisDelegateExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
Show (Hash GenesisDelegateKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
Show (Hash GenesisExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
Show (Hash GenesisKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
Show (Hash GenesisUTxOKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
Show (Hash PaymentExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
Show (Hash PaymentKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
Show (Hash StakeExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
Show (Hash StakeKey) Source # | |||||
Show (Hash StakePoolExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
Show (Hash StakePoolKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
Show (Hash KesKey) Source # | |||||
Show (Hash VrfKey) Source # | |||||
Show (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData | |||||
HasTypeProxy a => HasTypeProxy (Hash a) Source # | |||||
Defined in Cardano.Api.Hash Associated Types
| |||||
SerialiseAsBech32 (Hash CommitteeColdKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods bech32PrefixFor :: Hash CommitteeColdKey -> HumanReadablePart Source # bech32PrefixesPermitted :: AsType (Hash CommitteeColdKey) -> [HumanReadablePart] Source # | |||||
SerialiseAsBech32 (Hash CommitteeHotKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods bech32PrefixFor :: Hash CommitteeHotKey -> HumanReadablePart Source # bech32PrefixesPermitted :: AsType (Hash CommitteeHotKey) -> [HumanReadablePart] Source # | |||||
SerialiseAsBech32 (Hash DRepKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
SerialiseAsBech32 (Hash StakePoolExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods bech32PrefixFor :: Hash StakePoolExtendedKey -> HumanReadablePart Source # bech32PrefixesPermitted :: AsType (Hash StakePoolExtendedKey) -> [HumanReadablePart] Source # | |||||
SerialiseAsBech32 (Hash StakePoolKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods bech32PrefixFor :: Hash StakePoolKey -> HumanReadablePart Source # bech32PrefixesPermitted :: AsType (Hash StakePoolKey) -> [HumanReadablePart] Source # | |||||
SerialiseAsCBOR (Hash ByronKey) Source # | |||||
Defined in Cardano.Api.Byron.Internal.Key Methods serialiseToCBOR :: Hash ByronKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash ByronKey) -> ByteString -> Either DecoderError (Hash ByronKey) Source # | |||||
SerialiseAsCBOR (Hash ByronKeyLegacy) Source # | |||||
Defined in Cardano.Api.Byron.Internal.Key Methods serialiseToCBOR :: Hash ByronKeyLegacy -> ByteString Source # deserialiseFromCBOR :: AsType (Hash ByronKeyLegacy) -> ByteString -> Either DecoderError (Hash ByronKeyLegacy) Source # | |||||
SerialiseAsCBOR (Hash CommitteeColdExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
SerialiseAsCBOR (Hash CommitteeColdKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods serialiseToCBOR :: Hash CommitteeColdKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash CommitteeColdKey) -> ByteString -> Either DecoderError (Hash CommitteeColdKey) Source # | |||||
SerialiseAsCBOR (Hash CommitteeHotExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
SerialiseAsCBOR (Hash CommitteeHotKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods serialiseToCBOR :: Hash CommitteeHotKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash CommitteeHotKey) -> ByteString -> Either DecoderError (Hash CommitteeHotKey) Source # | |||||
SerialiseAsCBOR (Hash DRepExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods serialiseToCBOR :: Hash DRepExtendedKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash DRepExtendedKey) -> ByteString -> Either DecoderError (Hash DRepExtendedKey) Source # | |||||
SerialiseAsCBOR (Hash DRepKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods serialiseToCBOR :: Hash DRepKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash DRepKey) -> ByteString -> Either DecoderError (Hash DRepKey) Source # | |||||
SerialiseAsCBOR (Hash GenesisDelegateExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
SerialiseAsCBOR (Hash GenesisDelegateKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods serialiseToCBOR :: Hash GenesisDelegateKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash GenesisDelegateKey) -> ByteString -> Either DecoderError (Hash GenesisDelegateKey) Source # | |||||
SerialiseAsCBOR (Hash GenesisExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods serialiseToCBOR :: Hash GenesisExtendedKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash GenesisExtendedKey) -> ByteString -> Either DecoderError (Hash GenesisExtendedKey) Source # | |||||
SerialiseAsCBOR (Hash GenesisKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods serialiseToCBOR :: Hash GenesisKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash GenesisKey) -> ByteString -> Either DecoderError (Hash GenesisKey) Source # | |||||
SerialiseAsCBOR (Hash GenesisUTxOKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods serialiseToCBOR :: Hash GenesisUTxOKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash GenesisUTxOKey) -> ByteString -> Either DecoderError (Hash GenesisUTxOKey) Source # | |||||
SerialiseAsCBOR (Hash PaymentExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods serialiseToCBOR :: Hash PaymentExtendedKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash PaymentExtendedKey) -> ByteString -> Either DecoderError (Hash PaymentExtendedKey) Source # | |||||
SerialiseAsCBOR (Hash PaymentKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods serialiseToCBOR :: Hash PaymentKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash PaymentKey) -> ByteString -> Either DecoderError (Hash PaymentKey) Source # | |||||
SerialiseAsCBOR (Hash StakeExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods serialiseToCBOR :: Hash StakeExtendedKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash StakeExtendedKey) -> ByteString -> Either DecoderError (Hash StakeExtendedKey) Source # | |||||
SerialiseAsCBOR (Hash StakeKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods serialiseToCBOR :: Hash StakeKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash StakeKey) -> ByteString -> Either DecoderError (Hash StakeKey) Source # | |||||
SerialiseAsCBOR (Hash StakePoolKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods serialiseToCBOR :: Hash StakePoolKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash StakePoolKey) -> ByteString -> Either DecoderError (Hash StakePoolKey) Source # | |||||
SerialiseAsCBOR (Hash KesKey) Source # | |||||
Defined in Cardano.Api.Key.Internal.Praos Methods serialiseToCBOR :: Hash KesKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash KesKey) -> ByteString -> Either DecoderError (Hash KesKey) Source # | |||||
SerialiseAsCBOR (Hash VrfKey) Source # | |||||
Defined in Cardano.Api.Key.Internal.Praos Methods serialiseToCBOR :: Hash VrfKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash VrfKey) -> ByteString -> Either DecoderError (Hash VrfKey) Source # | |||||
SerialiseAsRawBytes (Hash BlockHeader) Source # | |||||
Defined in Cardano.Api.Block Methods serialiseToRawBytes :: Hash BlockHeader -> ByteString Source # deserialiseFromRawBytes :: AsType (Hash BlockHeader) -> ByteString -> Either SerialiseAsRawBytesError (Hash BlockHeader) Source # | |||||
SerialiseAsRawBytes (Hash ByronKey) Source # | |||||
Defined in Cardano.Api.Byron.Internal.Key Methods serialiseToRawBytes :: Hash ByronKey -> ByteString Source # deserialiseFromRawBytes :: AsType (Hash ByronKey) -> ByteString -> Either SerialiseAsRawBytesError (Hash ByronKey) Source # | |||||
SerialiseAsRawBytes (Hash ByronKeyLegacy) Source # | |||||
Defined in Cardano.Api.Byron.Internal.Key | |||||
SerialiseAsRawBytes (Hash DRepMetadata) Source # | |||||
Defined in Cardano.Api.Certificate.Internal.DRepMetadata Methods serialiseToRawBytes :: Hash DRepMetadata -> ByteString Source # deserialiseFromRawBytes :: AsType (Hash DRepMetadata) -> ByteString -> Either SerialiseAsRawBytesError (Hash DRepMetadata) Source # | |||||
SerialiseAsRawBytes (Hash StakePoolMetadata) Source # | |||||
SerialiseAsRawBytes (Hash GovernancePoll) Source # | |||||
Defined in Cardano.Api.Governance.Internal.Poll | |||||
SerialiseAsRawBytes (Hash CommitteeColdExtendedKey) Source # | |||||
SerialiseAsRawBytes (Hash CommitteeColdKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
SerialiseAsRawBytes (Hash CommitteeHotExtendedKey) Source # | |||||
SerialiseAsRawBytes (Hash CommitteeHotKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
SerialiseAsRawBytes (Hash DRepExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
SerialiseAsRawBytes (Hash DRepKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods serialiseToRawBytes :: Hash DRepKey -> ByteString Source # deserialiseFromRawBytes :: AsType (Hash DRepKey) -> ByteString -> Either SerialiseAsRawBytesError (Hash DRepKey) Source # | |||||
SerialiseAsRawBytes (Hash GenesisDelegateExtendedKey) Source # | |||||
SerialiseAsRawBytes (Hash GenesisDelegateKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
SerialiseAsRawBytes (Hash GenesisExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
SerialiseAsRawBytes (Hash GenesisKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods serialiseToRawBytes :: Hash GenesisKey -> ByteString Source # deserialiseFromRawBytes :: AsType (Hash GenesisKey) -> ByteString -> Either SerialiseAsRawBytesError (Hash GenesisKey) Source # | |||||
SerialiseAsRawBytes (Hash GenesisUTxOKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
SerialiseAsRawBytes (Hash PaymentExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
SerialiseAsRawBytes (Hash PaymentKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods serialiseToRawBytes :: Hash PaymentKey -> ByteString Source # deserialiseFromRawBytes :: AsType (Hash PaymentKey) -> ByteString -> Either SerialiseAsRawBytesError (Hash PaymentKey) Source # | |||||
SerialiseAsRawBytes (Hash StakeExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
SerialiseAsRawBytes (Hash StakeKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods serialiseToRawBytes :: Hash StakeKey -> ByteString Source # deserialiseFromRawBytes :: AsType (Hash StakeKey) -> ByteString -> Either SerialiseAsRawBytesError (Hash StakeKey) Source # | |||||
SerialiseAsRawBytes (Hash StakePoolExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
SerialiseAsRawBytes (Hash StakePoolKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods serialiseToRawBytes :: Hash StakePoolKey -> ByteString Source # deserialiseFromRawBytes :: AsType (Hash StakePoolKey) -> ByteString -> Either SerialiseAsRawBytesError (Hash StakePoolKey) Source # | |||||
SerialiseAsRawBytes (Hash KesKey) Source # | |||||
Defined in Cardano.Api.Key.Internal.Praos Methods serialiseToRawBytes :: Hash KesKey -> ByteString Source # deserialiseFromRawBytes :: AsType (Hash KesKey) -> ByteString -> Either SerialiseAsRawBytesError (Hash KesKey) Source # | |||||
SerialiseAsRawBytes (Hash VrfKey) Source # | |||||
Defined in Cardano.Api.Key.Internal.Praos Methods serialiseToRawBytes :: Hash VrfKey -> ByteString Source # deserialiseFromRawBytes :: AsType (Hash VrfKey) -> ByteString -> Either SerialiseAsRawBytesError (Hash VrfKey) Source # | |||||
SerialiseAsRawBytes (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods serialiseToRawBytes :: Hash ScriptData -> ByteString Source # deserialiseFromRawBytes :: AsType (Hash ScriptData) -> ByteString -> Either SerialiseAsRawBytesError (Hash ScriptData) Source # | |||||
FromCBOR (Hash ByronKey) Source # | |||||
FromCBOR (Hash ByronKeyLegacy) Source # | |||||
Defined in Cardano.Api.Byron.Internal.Key | |||||
FromCBOR (Hash CommitteeColdExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
FromCBOR (Hash CommitteeColdKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
FromCBOR (Hash CommitteeHotExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
FromCBOR (Hash CommitteeHotKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
FromCBOR (Hash DRepExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
FromCBOR (Hash DRepKey) Source # | |||||
FromCBOR (Hash GenesisDelegateExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
FromCBOR (Hash GenesisDelegateKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
FromCBOR (Hash GenesisExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
FromCBOR (Hash GenesisKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
FromCBOR (Hash GenesisUTxOKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
FromCBOR (Hash PaymentExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
FromCBOR (Hash PaymentKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
FromCBOR (Hash StakeExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
FromCBOR (Hash StakeKey) Source # | |||||
FromCBOR (Hash StakePoolKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
FromCBOR (Hash KesKey) Source # | |||||
FromCBOR (Hash VrfKey) Source # | |||||
ToCBOR (Hash ByronKey) Source # | |||||
ToCBOR (Hash ByronKeyLegacy) Source # | |||||
Defined in Cardano.Api.Byron.Internal.Key | |||||
ToCBOR (Hash CommitteeColdExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods toCBOR :: Hash CommitteeColdExtendedKey -> Encoding Source # encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (Hash CommitteeColdExtendedKey) -> Size Source # encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [Hash CommitteeColdExtendedKey] -> Size Source # | |||||
ToCBOR (Hash CommitteeColdKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
ToCBOR (Hash CommitteeHotExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods toCBOR :: Hash CommitteeHotExtendedKey -> Encoding Source # encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (Hash CommitteeHotExtendedKey) -> Size Source # encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [Hash CommitteeHotExtendedKey] -> Size Source # | |||||
ToCBOR (Hash CommitteeHotKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
ToCBOR (Hash DRepExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
ToCBOR (Hash DRepKey) Source # | |||||
ToCBOR (Hash GenesisDelegateExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods toCBOR :: Hash GenesisDelegateExtendedKey -> Encoding Source # encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (Hash GenesisDelegateExtendedKey) -> Size Source # encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [Hash GenesisDelegateExtendedKey] -> Size Source # | |||||
ToCBOR (Hash GenesisDelegateKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
ToCBOR (Hash GenesisExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
ToCBOR (Hash GenesisKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
ToCBOR (Hash GenesisUTxOKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
ToCBOR (Hash PaymentExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
ToCBOR (Hash PaymentKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
ToCBOR (Hash StakeExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
ToCBOR (Hash StakeKey) Source # | |||||
ToCBOR (Hash StakePoolKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
ToCBOR (Hash KesKey) Source # | |||||
ToCBOR (Hash VrfKey) Source # | |||||
Eq (Hash BlockHeader) Source # | |||||
Defined in Cardano.Api.Block Methods (==) :: Hash BlockHeader -> Hash BlockHeader -> Bool Source # (/=) :: Hash BlockHeader -> Hash BlockHeader -> Bool Source # | |||||
Eq (Hash ByronKey) Source # | |||||
Eq (Hash ByronKeyLegacy) Source # | |||||
Defined in Cardano.Api.Byron.Internal.Key Methods (==) :: Hash ByronKeyLegacy -> Hash ByronKeyLegacy -> Bool Source # (/=) :: Hash ByronKeyLegacy -> Hash ByronKeyLegacy -> Bool Source # | |||||
Eq (Hash DRepMetadata) Source # | |||||
Defined in Cardano.Api.Certificate.Internal.DRepMetadata Methods (==) :: Hash DRepMetadata -> Hash DRepMetadata -> Bool Source # (/=) :: Hash DRepMetadata -> Hash DRepMetadata -> Bool Source # | |||||
Eq (Hash StakePoolMetadata) Source # | |||||
Defined in Cardano.Api.Certificate.Internal.StakePoolMetadata Methods (==) :: Hash StakePoolMetadata -> Hash StakePoolMetadata -> Bool Source # (/=) :: Hash StakePoolMetadata -> Hash StakePoolMetadata -> Bool Source # | |||||
Eq (Hash GovernancePoll) Source # | |||||
Defined in Cardano.Api.Governance.Internal.Poll Methods (==) :: Hash GovernancePoll -> Hash GovernancePoll -> Bool Source # (/=) :: Hash GovernancePoll -> Hash GovernancePoll -> Bool Source # | |||||
Eq (Hash CommitteeColdExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods (==) :: Hash CommitteeColdExtendedKey -> Hash CommitteeColdExtendedKey -> Bool Source # (/=) :: Hash CommitteeColdExtendedKey -> Hash CommitteeColdExtendedKey -> Bool Source # | |||||
Eq (Hash CommitteeColdKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods (==) :: Hash CommitteeColdKey -> Hash CommitteeColdKey -> Bool Source # (/=) :: Hash CommitteeColdKey -> Hash CommitteeColdKey -> Bool Source # | |||||
Eq (Hash CommitteeHotExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods (==) :: Hash CommitteeHotExtendedKey -> Hash CommitteeHotExtendedKey -> Bool Source # (/=) :: Hash CommitteeHotExtendedKey -> Hash CommitteeHotExtendedKey -> Bool Source # | |||||
Eq (Hash CommitteeHotKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods (==) :: Hash CommitteeHotKey -> Hash CommitteeHotKey -> Bool Source # (/=) :: Hash CommitteeHotKey -> Hash CommitteeHotKey -> Bool Source # | |||||
Eq (Hash DRepExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods (==) :: Hash DRepExtendedKey -> Hash DRepExtendedKey -> Bool Source # (/=) :: Hash DRepExtendedKey -> Hash DRepExtendedKey -> Bool Source # | |||||
Eq (Hash DRepKey) Source # | |||||
Eq (Hash GenesisDelegateExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods (==) :: Hash GenesisDelegateExtendedKey -> Hash GenesisDelegateExtendedKey -> Bool Source # (/=) :: Hash GenesisDelegateExtendedKey -> Hash GenesisDelegateExtendedKey -> Bool Source # | |||||
Eq (Hash GenesisDelegateKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods (==) :: Hash GenesisDelegateKey -> Hash GenesisDelegateKey -> Bool Source # (/=) :: Hash GenesisDelegateKey -> Hash GenesisDelegateKey -> Bool Source # | |||||
Eq (Hash GenesisExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods (==) :: Hash GenesisExtendedKey -> Hash GenesisExtendedKey -> Bool Source # (/=) :: Hash GenesisExtendedKey -> Hash GenesisExtendedKey -> Bool Source # | |||||
Eq (Hash GenesisKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods (==) :: Hash GenesisKey -> Hash GenesisKey -> Bool Source # (/=) :: Hash GenesisKey -> Hash GenesisKey -> Bool Source # | |||||
Eq (Hash GenesisUTxOKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods (==) :: Hash GenesisUTxOKey -> Hash GenesisUTxOKey -> Bool Source # (/=) :: Hash GenesisUTxOKey -> Hash GenesisUTxOKey -> Bool Source # | |||||
Eq (Hash PaymentExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods (==) :: Hash PaymentExtendedKey -> Hash PaymentExtendedKey -> Bool Source # (/=) :: Hash PaymentExtendedKey -> Hash PaymentExtendedKey -> Bool Source # | |||||
Eq (Hash PaymentKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods (==) :: Hash PaymentKey -> Hash PaymentKey -> Bool Source # (/=) :: Hash PaymentKey -> Hash PaymentKey -> Bool Source # | |||||
Eq (Hash StakeExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods (==) :: Hash StakeExtendedKey -> Hash StakeExtendedKey -> Bool Source # (/=) :: Hash StakeExtendedKey -> Hash StakeExtendedKey -> Bool Source # | |||||
Eq (Hash StakeKey) Source # | |||||
Eq (Hash StakePoolExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods (==) :: Hash StakePoolExtendedKey -> Hash StakePoolExtendedKey -> Bool Source # (/=) :: Hash StakePoolExtendedKey -> Hash StakePoolExtendedKey -> Bool Source # | |||||
Eq (Hash StakePoolKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods (==) :: Hash StakePoolKey -> Hash StakePoolKey -> Bool Source # (/=) :: Hash StakePoolKey -> Hash StakePoolKey -> Bool Source # | |||||
Eq (Hash KesKey) Source # | |||||
Eq (Hash VrfKey) Source # | |||||
Eq (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods (==) :: Hash ScriptData -> Hash ScriptData -> Bool Source # (/=) :: Hash ScriptData -> Hash ScriptData -> Bool Source # | |||||
Ord (Hash BlockHeader) Source # | |||||
Defined in Cardano.Api.Block Methods compare :: Hash BlockHeader -> Hash BlockHeader -> Ordering Source # (<) :: Hash BlockHeader -> Hash BlockHeader -> Bool Source # (<=) :: Hash BlockHeader -> Hash BlockHeader -> Bool Source # (>) :: Hash BlockHeader -> Hash BlockHeader -> Bool Source # (>=) :: Hash BlockHeader -> Hash BlockHeader -> Bool Source # max :: Hash BlockHeader -> Hash BlockHeader -> Hash BlockHeader Source # min :: Hash BlockHeader -> Hash BlockHeader -> Hash BlockHeader Source # | |||||
Ord (Hash ByronKey) Source # | |||||
Defined in Cardano.Api.Byron.Internal.Key Methods compare :: Hash ByronKey -> Hash ByronKey -> Ordering Source # (<) :: Hash ByronKey -> Hash ByronKey -> Bool Source # (<=) :: Hash ByronKey -> Hash ByronKey -> Bool Source # (>) :: Hash ByronKey -> Hash ByronKey -> Bool Source # (>=) :: Hash ByronKey -> Hash ByronKey -> Bool Source # max :: Hash ByronKey -> Hash ByronKey -> Hash ByronKey Source # min :: Hash ByronKey -> Hash ByronKey -> Hash ByronKey Source # | |||||
Ord (Hash ByronKeyLegacy) Source # | |||||
Defined in Cardano.Api.Byron.Internal.Key Methods compare :: Hash ByronKeyLegacy -> Hash ByronKeyLegacy -> Ordering Source # (<) :: Hash ByronKeyLegacy -> Hash ByronKeyLegacy -> Bool Source # (<=) :: Hash ByronKeyLegacy -> Hash ByronKeyLegacy -> Bool Source # (>) :: Hash ByronKeyLegacy -> Hash ByronKeyLegacy -> Bool Source # (>=) :: Hash ByronKeyLegacy -> Hash ByronKeyLegacy -> Bool Source # max :: Hash ByronKeyLegacy -> Hash ByronKeyLegacy -> Hash ByronKeyLegacy Source # min :: Hash ByronKeyLegacy -> Hash ByronKeyLegacy -> Hash ByronKeyLegacy Source # | |||||
Ord (Hash GovernancePoll) Source # | |||||
Defined in Cardano.Api.Governance.Internal.Poll Methods compare :: Hash GovernancePoll -> Hash GovernancePoll -> Ordering Source # (<) :: Hash GovernancePoll -> Hash GovernancePoll -> Bool Source # (<=) :: Hash GovernancePoll -> Hash GovernancePoll -> Bool Source # (>) :: Hash GovernancePoll -> Hash GovernancePoll -> Bool Source # (>=) :: Hash GovernancePoll -> Hash GovernancePoll -> Bool Source # max :: Hash GovernancePoll -> Hash GovernancePoll -> Hash GovernancePoll Source # min :: Hash GovernancePoll -> Hash GovernancePoll -> Hash GovernancePoll Source # | |||||
Ord (Hash CommitteeColdExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods compare :: Hash CommitteeColdExtendedKey -> Hash CommitteeColdExtendedKey -> Ordering Source # (<) :: Hash CommitteeColdExtendedKey -> Hash CommitteeColdExtendedKey -> Bool Source # (<=) :: Hash CommitteeColdExtendedKey -> Hash CommitteeColdExtendedKey -> Bool Source # (>) :: Hash CommitteeColdExtendedKey -> Hash CommitteeColdExtendedKey -> Bool Source # (>=) :: Hash CommitteeColdExtendedKey -> Hash CommitteeColdExtendedKey -> Bool Source # max :: Hash CommitteeColdExtendedKey -> Hash CommitteeColdExtendedKey -> Hash CommitteeColdExtendedKey Source # min :: Hash CommitteeColdExtendedKey -> Hash CommitteeColdExtendedKey -> Hash CommitteeColdExtendedKey Source # | |||||
Ord (Hash CommitteeColdKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods compare :: Hash CommitteeColdKey -> Hash CommitteeColdKey -> Ordering Source # (<) :: Hash CommitteeColdKey -> Hash CommitteeColdKey -> Bool Source # (<=) :: Hash CommitteeColdKey -> Hash CommitteeColdKey -> Bool Source # (>) :: Hash CommitteeColdKey -> Hash CommitteeColdKey -> Bool Source # (>=) :: Hash CommitteeColdKey -> Hash CommitteeColdKey -> Bool Source # max :: Hash CommitteeColdKey -> Hash CommitteeColdKey -> Hash CommitteeColdKey Source # min :: Hash CommitteeColdKey -> Hash CommitteeColdKey -> Hash CommitteeColdKey Source # | |||||
Ord (Hash CommitteeHotExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods compare :: Hash CommitteeHotExtendedKey -> Hash CommitteeHotExtendedKey -> Ordering Source # (<) :: Hash CommitteeHotExtendedKey -> Hash CommitteeHotExtendedKey -> Bool Source # (<=) :: Hash CommitteeHotExtendedKey -> Hash CommitteeHotExtendedKey -> Bool Source # (>) :: Hash CommitteeHotExtendedKey -> Hash CommitteeHotExtendedKey -> Bool Source # (>=) :: Hash CommitteeHotExtendedKey -> Hash CommitteeHotExtendedKey -> Bool Source # max :: Hash CommitteeHotExtendedKey -> Hash CommitteeHotExtendedKey -> Hash CommitteeHotExtendedKey Source # min :: Hash CommitteeHotExtendedKey -> Hash CommitteeHotExtendedKey -> Hash CommitteeHotExtendedKey Source # | |||||
Ord (Hash CommitteeHotKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods compare :: Hash CommitteeHotKey -> Hash CommitteeHotKey -> Ordering Source # (<) :: Hash CommitteeHotKey -> Hash CommitteeHotKey -> Bool Source # (<=) :: Hash CommitteeHotKey -> Hash CommitteeHotKey -> Bool Source # (>) :: Hash CommitteeHotKey -> Hash CommitteeHotKey -> Bool Source # (>=) :: Hash CommitteeHotKey -> Hash CommitteeHotKey -> Bool Source # max :: Hash CommitteeHotKey -> Hash CommitteeHotKey -> Hash CommitteeHotKey Source # min :: Hash CommitteeHotKey -> Hash CommitteeHotKey -> Hash CommitteeHotKey Source # | |||||
Ord (Hash DRepExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods compare :: Hash DRepExtendedKey -> Hash DRepExtendedKey -> Ordering Source # (<) :: Hash DRepExtendedKey -> Hash DRepExtendedKey -> Bool Source # (<=) :: Hash DRepExtendedKey -> Hash DRepExtendedKey -> Bool Source # (>) :: Hash DRepExtendedKey -> Hash DRepExtendedKey -> Bool Source # (>=) :: Hash DRepExtendedKey -> Hash DRepExtendedKey -> Bool Source # max :: Hash DRepExtendedKey -> Hash DRepExtendedKey -> Hash DRepExtendedKey Source # min :: Hash DRepExtendedKey -> Hash DRepExtendedKey -> Hash DRepExtendedKey Source # | |||||
Ord (Hash DRepKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods compare :: Hash DRepKey -> Hash DRepKey -> Ordering Source # (<) :: Hash DRepKey -> Hash DRepKey -> Bool Source # (<=) :: Hash DRepKey -> Hash DRepKey -> Bool Source # (>) :: Hash DRepKey -> Hash DRepKey -> Bool Source # (>=) :: Hash DRepKey -> Hash DRepKey -> Bool Source # max :: Hash DRepKey -> Hash DRepKey -> Hash DRepKey Source # min :: Hash DRepKey -> Hash DRepKey -> Hash DRepKey Source # | |||||
Ord (Hash GenesisDelegateExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods compare :: Hash GenesisDelegateExtendedKey -> Hash GenesisDelegateExtendedKey -> Ordering Source # (<) :: Hash GenesisDelegateExtendedKey -> Hash GenesisDelegateExtendedKey -> Bool Source # (<=) :: Hash GenesisDelegateExtendedKey -> Hash GenesisDelegateExtendedKey -> Bool Source # (>) :: Hash GenesisDelegateExtendedKey -> Hash GenesisDelegateExtendedKey -> Bool Source # (>=) :: Hash GenesisDelegateExtendedKey -> Hash GenesisDelegateExtendedKey -> Bool Source # max :: Hash GenesisDelegateExtendedKey -> Hash GenesisDelegateExtendedKey -> Hash GenesisDelegateExtendedKey Source # min :: Hash GenesisDelegateExtendedKey -> Hash GenesisDelegateExtendedKey -> Hash GenesisDelegateExtendedKey Source # | |||||
Ord (Hash GenesisDelegateKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods compare :: Hash GenesisDelegateKey -> Hash GenesisDelegateKey -> Ordering Source # (<) :: Hash GenesisDelegateKey -> Hash GenesisDelegateKey -> Bool Source # (<=) :: Hash GenesisDelegateKey -> Hash GenesisDelegateKey -> Bool Source # (>) :: Hash GenesisDelegateKey -> Hash GenesisDelegateKey -> Bool Source # (>=) :: Hash GenesisDelegateKey -> Hash GenesisDelegateKey -> Bool Source # max :: Hash GenesisDelegateKey -> Hash GenesisDelegateKey -> Hash GenesisDelegateKey Source # min :: Hash GenesisDelegateKey -> Hash GenesisDelegateKey -> Hash GenesisDelegateKey Source # | |||||
Ord (Hash GenesisExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods compare :: Hash GenesisExtendedKey -> Hash GenesisExtendedKey -> Ordering Source # (<) :: Hash GenesisExtendedKey -> Hash GenesisExtendedKey -> Bool Source # (<=) :: Hash GenesisExtendedKey -> Hash GenesisExtendedKey -> Bool Source # (>) :: Hash GenesisExtendedKey -> Hash GenesisExtendedKey -> Bool Source # (>=) :: Hash GenesisExtendedKey -> Hash GenesisExtendedKey -> Bool Source # max :: Hash GenesisExtendedKey -> Hash GenesisExtendedKey -> Hash GenesisExtendedKey Source # min :: Hash GenesisExtendedKey -> Hash GenesisExtendedKey -> Hash GenesisExtendedKey Source # | |||||
Ord (Hash GenesisKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods compare :: Hash GenesisKey -> Hash GenesisKey -> Ordering Source # (<) :: Hash GenesisKey -> Hash GenesisKey -> Bool Source # (<=) :: Hash GenesisKey -> Hash GenesisKey -> Bool Source # (>) :: Hash GenesisKey -> Hash GenesisKey -> Bool Source # (>=) :: Hash GenesisKey -> Hash GenesisKey -> Bool Source # max :: Hash GenesisKey -> Hash GenesisKey -> Hash GenesisKey Source # min :: Hash GenesisKey -> Hash GenesisKey -> Hash GenesisKey Source # | |||||
Ord (Hash GenesisUTxOKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods compare :: Hash GenesisUTxOKey -> Hash GenesisUTxOKey -> Ordering Source # (<) :: Hash GenesisUTxOKey -> Hash GenesisUTxOKey -> Bool Source # (<=) :: Hash GenesisUTxOKey -> Hash GenesisUTxOKey -> Bool Source # (>) :: Hash GenesisUTxOKey -> Hash GenesisUTxOKey -> Bool Source # (>=) :: Hash GenesisUTxOKey -> Hash GenesisUTxOKey -> Bool Source # max :: Hash GenesisUTxOKey -> Hash GenesisUTxOKey -> Hash GenesisUTxOKey Source # min :: Hash GenesisUTxOKey -> Hash GenesisUTxOKey -> Hash GenesisUTxOKey Source # | |||||
Ord (Hash PaymentExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods compare :: Hash PaymentExtendedKey -> Hash PaymentExtendedKey -> Ordering Source # (<) :: Hash PaymentExtendedKey -> Hash PaymentExtendedKey -> Bool Source # (<=) :: Hash PaymentExtendedKey -> Hash PaymentExtendedKey -> Bool Source # (>) :: Hash PaymentExtendedKey -> Hash PaymentExtendedKey -> Bool Source # (>=) :: Hash PaymentExtendedKey -> Hash PaymentExtendedKey -> Bool Source # max :: Hash PaymentExtendedKey -> Hash PaymentExtendedKey -> Hash PaymentExtendedKey Source # min :: Hash PaymentExtendedKey -> Hash PaymentExtendedKey -> Hash PaymentExtendedKey Source # | |||||
Ord (Hash PaymentKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods compare :: Hash PaymentKey -> Hash PaymentKey -> Ordering Source # (<) :: Hash PaymentKey -> Hash PaymentKey -> Bool Source # (<=) :: Hash PaymentKey -> Hash PaymentKey -> Bool Source # (>) :: Hash PaymentKey -> Hash PaymentKey -> Bool Source # (>=) :: Hash PaymentKey -> Hash PaymentKey -> Bool Source # max :: Hash PaymentKey -> Hash PaymentKey -> Hash PaymentKey Source # min :: Hash PaymentKey -> Hash PaymentKey -> Hash PaymentKey Source # | |||||
Ord (Hash StakeExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods compare :: Hash StakeExtendedKey -> Hash StakeExtendedKey -> Ordering Source # (<) :: Hash StakeExtendedKey -> Hash StakeExtendedKey -> Bool Source # (<=) :: Hash StakeExtendedKey -> Hash StakeExtendedKey -> Bool Source # (>) :: Hash StakeExtendedKey -> Hash StakeExtendedKey -> Bool Source # (>=) :: Hash StakeExtendedKey -> Hash StakeExtendedKey -> Bool Source # max :: Hash StakeExtendedKey -> Hash StakeExtendedKey -> Hash StakeExtendedKey Source # min :: Hash StakeExtendedKey -> Hash StakeExtendedKey -> Hash StakeExtendedKey Source # | |||||
Ord (Hash StakeKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods compare :: Hash StakeKey -> Hash StakeKey -> Ordering Source # (<) :: Hash StakeKey -> Hash StakeKey -> Bool Source # (<=) :: Hash StakeKey -> Hash StakeKey -> Bool Source # (>) :: Hash StakeKey -> Hash StakeKey -> Bool Source # (>=) :: Hash StakeKey -> Hash StakeKey -> Bool Source # max :: Hash StakeKey -> Hash StakeKey -> Hash StakeKey Source # min :: Hash StakeKey -> Hash StakeKey -> Hash StakeKey Source # | |||||
Ord (Hash StakePoolExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods compare :: Hash StakePoolExtendedKey -> Hash StakePoolExtendedKey -> Ordering Source # (<) :: Hash StakePoolExtendedKey -> Hash StakePoolExtendedKey -> Bool Source # (<=) :: Hash StakePoolExtendedKey -> Hash StakePoolExtendedKey -> Bool Source # (>) :: Hash StakePoolExtendedKey -> Hash StakePoolExtendedKey -> Bool Source # (>=) :: Hash StakePoolExtendedKey -> Hash StakePoolExtendedKey -> Bool Source # max :: Hash StakePoolExtendedKey -> Hash StakePoolExtendedKey -> Hash StakePoolExtendedKey Source # min :: Hash StakePoolExtendedKey -> Hash StakePoolExtendedKey -> Hash StakePoolExtendedKey Source # | |||||
Ord (Hash StakePoolKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods compare :: Hash StakePoolKey -> Hash StakePoolKey -> Ordering Source # (<) :: Hash StakePoolKey -> Hash StakePoolKey -> Bool Source # (<=) :: Hash StakePoolKey -> Hash StakePoolKey -> Bool Source # (>) :: Hash StakePoolKey -> Hash StakePoolKey -> Bool Source # (>=) :: Hash StakePoolKey -> Hash StakePoolKey -> Bool Source # max :: Hash StakePoolKey -> Hash StakePoolKey -> Hash StakePoolKey Source # min :: Hash StakePoolKey -> Hash StakePoolKey -> Hash StakePoolKey Source # | |||||
Ord (Hash KesKey) Source # | |||||
Defined in Cardano.Api.Key.Internal.Praos Methods compare :: Hash KesKey -> Hash KesKey -> Ordering Source # (<) :: Hash KesKey -> Hash KesKey -> Bool Source # (<=) :: Hash KesKey -> Hash KesKey -> Bool Source # (>) :: Hash KesKey -> Hash KesKey -> Bool Source # (>=) :: Hash KesKey -> Hash KesKey -> Bool Source # | |||||
Ord (Hash VrfKey) Source # | |||||
Defined in Cardano.Api.Key.Internal.Praos Methods compare :: Hash VrfKey -> Hash VrfKey -> Ordering Source # (<) :: Hash VrfKey -> Hash VrfKey -> Bool Source # (<=) :: Hash VrfKey -> Hash VrfKey -> Bool Source # (>) :: Hash VrfKey -> Hash VrfKey -> Bool Source # (>=) :: Hash VrfKey -> Hash VrfKey -> Bool Source # | |||||
Ord (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData Methods compare :: Hash ScriptData -> Hash ScriptData -> Ordering Source # (<) :: Hash ScriptData -> Hash ScriptData -> Bool Source # (<=) :: Hash ScriptData -> Hash ScriptData -> Bool Source # (>) :: Hash ScriptData -> Hash ScriptData -> Bool Source # (>=) :: Hash ScriptData -> Hash ScriptData -> Bool Source # max :: Hash ScriptData -> Hash ScriptData -> Hash ScriptData Source # min :: Hash ScriptData -> Hash ScriptData -> Hash ScriptData Source # | |||||
Pretty (Hash ByronKey) Source # | |||||
Pretty (Hash ByronKeyLegacy) Source # | |||||
Defined in Cardano.Api.Byron.Internal.Key | |||||
Pretty (Hash GovernancePoll) Source # | |||||
Defined in Cardano.Api.Governance.Internal.Poll | |||||
Pretty (Hash CommitteeColdExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods pretty :: Hash CommitteeColdExtendedKey -> Doc ann # prettyList :: [Hash CommitteeColdExtendedKey] -> Doc ann # | |||||
Pretty (Hash CommitteeColdKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods pretty :: Hash CommitteeColdKey -> Doc ann # prettyList :: [Hash CommitteeColdKey] -> Doc ann # | |||||
Pretty (Hash CommitteeHotExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods pretty :: Hash CommitteeHotExtendedKey -> Doc ann # prettyList :: [Hash CommitteeHotExtendedKey] -> Doc ann # | |||||
Pretty (Hash CommitteeHotKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
Pretty (Hash DRepExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
Pretty (Hash DRepKey) Source # | |||||
Pretty (Hash GenesisDelegateExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods pretty :: Hash GenesisDelegateExtendedKey -> Doc ann # prettyList :: [Hash GenesisDelegateExtendedKey] -> Doc ann # | |||||
Pretty (Hash GenesisDelegateKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods pretty :: Hash GenesisDelegateKey -> Doc ann # prettyList :: [Hash GenesisDelegateKey] -> Doc ann # | |||||
Pretty (Hash GenesisExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods pretty :: Hash GenesisExtendedKey -> Doc ann # prettyList :: [Hash GenesisExtendedKey] -> Doc ann # | |||||
Pretty (Hash GenesisKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
Pretty (Hash GenesisUTxOKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
Pretty (Hash PaymentExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods pretty :: Hash PaymentExtendedKey -> Doc ann # prettyList :: [Hash PaymentExtendedKey] -> Doc ann # | |||||
Pretty (Hash PaymentKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
Pretty (Hash StakeExtendedKey) Source # | |||||
Defined in Cardano.Api.Key.Internal Methods pretty :: Hash StakeExtendedKey -> Doc ann # prettyList :: [Hash StakeExtendedKey] -> Doc ann # | |||||
Pretty (Hash StakeKey) Source # | |||||
Pretty (Hash StakePoolKey) Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
Pretty (Hash KesKey) Source # | |||||
Pretty (Hash VrfKey) Source # | |||||
Pretty (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.Plutus.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. | ||||
Defined in Cardano.Api.Block | |||||
newtype Hash ByronKey Source # | |||||
Defined in Cardano.Api.Byron.Internal.Key | |||||
newtype Hash ByronKeyLegacy Source # | |||||
Defined in Cardano.Api.Byron.Internal.Key | |||||
newtype Hash DRepMetadata Source # | |||||
newtype Hash StakePoolMetadata Source # | |||||
newtype Hash GovernancePoll Source # | |||||
Defined in Cardano.Api.Governance.Internal.Poll | |||||
newtype Hash CommitteeColdExtendedKey Source # | |||||
newtype Hash CommitteeColdKey Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
newtype Hash CommitteeHotExtendedKey Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
newtype Hash CommitteeHotKey Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
newtype Hash DRepExtendedKey Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
newtype Hash DRepKey Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
newtype Hash GenesisDelegateExtendedKey Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
newtype Hash GenesisDelegateKey Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
newtype Hash GenesisExtendedKey Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
newtype Hash GenesisKey Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
newtype Hash GenesisUTxOKey Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
newtype Hash PaymentExtendedKey Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
newtype Hash PaymentKey Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
newtype Hash StakeExtendedKey Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
newtype Hash StakeKey Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
newtype Hash StakePoolExtendedKey Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
newtype Hash StakePoolKey Source # | |||||
Defined in Cardano.Api.Key.Internal | |||||
newtype Hash KesKey Source # | |||||
Defined in Cardano.Api.Key.Internal.Praos | |||||
newtype Hash VrfKey Source # | |||||
Defined in Cardano.Api.Key.Internal.Praos | |||||
newtype Hash ScriptData Source # | |||||
Defined in Cardano.Api.Plutus.Internal.ScriptData | |||||
data AsType (Hash a) Source # | |||||
Defined in Cardano.Api.Hash |