Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data HashableScriptData
- hashScriptDataBytes :: HashableScriptData -> Hash ScriptData
- getOriginalScriptDataBytes :: HashableScriptData -> ByteString
- getScriptData :: HashableScriptData -> ScriptData
- unsafeHashableScriptData :: ScriptData -> HashableScriptData
- data 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
- toPlutusData :: ScriptData -> Data
- fromPlutusData :: Data -> ScriptData
- toAlonzoData :: Era ledgerera => HashableScriptData -> Data ledgerera
- fromAlonzoData :: Data ledgerera -> HashableScriptData
- data family AsType t
- data family Hash keyrole
Script data
data HashableScriptData Source #
Instances
Show HashableScriptData Source # | |||||
Defined in Cardano.Api.ScriptData | |||||
HasTypeProxy HashableScriptData Source # | |||||
Defined in Cardano.Api.ScriptData
| |||||
SerialiseAsCBOR HashableScriptData Source # | |||||
Eq HashableScriptData Source # | |||||
Defined in Cardano.Api.ScriptData (==) :: HashableScriptData -> HashableScriptData -> Bool Source # (/=) :: HashableScriptData -> HashableScriptData -> Bool Source # | |||||
data AsType HashableScriptData Source # | |||||
Defined in Cardano.Api.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 #
ScriptDataConstructor | |
| |
ScriptDataMap [(ScriptData, ScriptData)] | Key value pairs |
ScriptDataList [ScriptData] | Elements |
ScriptDataNumber Integer | |
ScriptDataBytes ByteString |
Instances
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.
ScriptDataConstructorOutOfRange Integer | The constructor number is outside the maximum range of |
Instances
Data ScriptDataRangeError Source # | |
Defined in Cardano.Api.ScriptData 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.ScriptData | |
Error ScriptDataRangeError Source # | |
Defined in Cardano.Api.ScriptData prettyError :: ScriptDataRangeError -> Doc ann Source # | |
Eq ScriptDataRangeError Source # | |
Defined in Cardano.Api.ScriptData (==) :: 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.
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.ScriptData | |
Eq ScriptDataJsonSchema Source # | |
Defined in Cardano.Api.ScriptData (==) :: 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 #
ScriptDataJsonSchemaError !Value !ScriptDataJsonSchemaError | |
ScriptDataRangeError !Value !ScriptDataRangeError |
Instances
Data ScriptDataJsonError Source # | |
Defined in Cardano.Api.ScriptData 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.ScriptData | |
Error ScriptDataJsonError Source # | |
Defined in Cardano.Api.ScriptData prettyError :: ScriptDataJsonError -> Doc ann Source # | |
Eq ScriptDataJsonError Source # | |
Defined in Cardano.Api.ScriptData (==) :: ScriptDataJsonError -> ScriptDataJsonError -> Bool Source # (/=) :: ScriptDataJsonError -> ScriptDataJsonError -> Bool Source # |
data ScriptDataJsonSchemaError Source #
ScriptDataJsonNullNotAllowed | |
ScriptDataJsonBoolNotAllowed | |
ScriptDataJsonNumberNotInteger !Double | |
ScriptDataJsonNotObject !Value | |
ScriptDataJsonBadObject ![(Text, Value)] | |
ScriptDataJsonBadMapPair !Value | |
ScriptDataJsonTypeMismatch !Text !Value |
Instances
Data ScriptDataJsonSchemaError Source # | |
Defined in Cardano.Api.ScriptData 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.ScriptData | |
Error ScriptDataJsonSchemaError Source # | |
Defined in Cardano.Api.ScriptData prettyError :: ScriptDataJsonSchemaError -> Doc ann Source # | |
Eq ScriptDataJsonSchemaError Source # | |
Defined in Cardano.Api.ScriptData |
scriptDataFromJsonDetailedSchema :: Value -> Either ScriptDataJsonSchemaError HashableScriptData Source #
scriptDataToJsonDetailedSchema :: HashableScriptData -> Value Source #
newtype ScriptBytesError Source #
Instances
Show ScriptBytesError Source # | |
Defined in Cardano.Api.ScriptData |
data ScriptDataJsonBytesError Source #
ScriptDataJsonBytesErrorValue ScriptDataJsonError | |
ScriptDataJsonBytesErrorInvalid ScriptDataRangeError |
Instances
Data ScriptDataJsonBytesError Source # | |
Defined in Cardano.Api.ScriptData 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.ScriptData | |
Error ScriptDataJsonBytesError Source # | |
Defined in Cardano.Api.ScriptData prettyError :: ScriptDataJsonBytesError -> Doc ann Source # |
scriptDataJsonToHashable Source #
:: 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.
Internal conversion functions
toPlutusData :: ScriptData -> Data Source #
fromPlutusData :: Data -> ScriptData Source #
toAlonzoData :: Era ledgerera => HashableScriptData -> Data ledgerera Source #
fromAlonzoData :: Data ledgerera -> HashableScriptData Source #
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 DRepMetadata Source # | |
Defined in Cardano.Api.DRepMetadata | |
data AsType AllegraEra Source # | |
Defined in Cardano.Api.Eras.Core | |
data AsType AlonzoEra Source # | |
Defined in Cardano.Api.Eras.Core | |
data AsType BabbageEra Source # | |
Defined in Cardano.Api.Eras.Core | |
data AsType ByronEra Source # | |
Defined in Cardano.Api.Eras.Core | |
data AsType ConwayEra Source # | |
Defined in Cardano.Api.Eras.Core | |
data AsType MaryEra Source # | |
Defined in Cardano.Api.Eras.Core | |
data AsType ShelleyEra Source # | |
Defined in Cardano.Api.Eras.Core | |
data AsType GovernancePoll Source # | |
Defined in Cardano.Api.Governance.Poll | |
data AsType GovernancePollAnswer Source # | |
Defined in Cardano.Api.Governance.Poll | |
data AsType ByronKey Source # | |
Defined in Cardano.Api.Keys.Byron | |
data AsType ByronKeyLegacy Source # | |
Defined in Cardano.Api.Keys.Byron | |
data AsType KesKey Source # | |
Defined in Cardano.Api.Keys.Praos | |
data AsType VrfKey Source # | |
Defined in Cardano.Api.Keys.Praos | |
data AsType CommitteeColdExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType CommitteeColdKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType CommitteeHotExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType CommitteeHotKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType DRepExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType DRepKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType GenesisDelegateExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType GenesisDelegateKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType GenesisExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType GenesisKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType GenesisUTxOKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType PaymentExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType PaymentKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType StakeExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType StakeKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType StakePoolKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType OperationalCertificate Source # | |
data AsType OperationalCertificateIssueCounter Source # | |
data AsType PraosNonce Source # | |
Defined in Cardano.Api.ProtocolParameters | |
data AsType UpdateProposal Source # | |
Defined in Cardano.Api.ProtocolParameters | |
data AsType PlutusScriptV1 Source # | |
Defined in Cardano.Api.Script | |
data AsType PlutusScriptV2 Source # | |
Defined in Cardano.Api.Script | |
data AsType PlutusScriptV3 Source # | |
Defined in Cardano.Api.Script | |
data AsType ScriptHash Source # | |
Defined in Cardano.Api.Script | |
data AsType ScriptInAnyLang Source # | |
Defined in Cardano.Api.Script | |
data AsType SimpleScript' Source # | |
Defined in Cardano.Api.Script | |
data AsType HashableScriptData Source # | |
Defined in Cardano.Api.ScriptData | |
data AsType ScriptData Source # | |
Defined in Cardano.Api.ScriptData | |
data AsType TextEnvelope Source # | |
Defined in Cardano.Api.SerialiseTextEnvelope | |
data AsType ByronUpdateProposal Source # | |
Defined in Cardano.Api.SpecialByron | |
data AsType ByronVote Source # | |
Defined in Cardano.Api.SpecialByron | |
data AsType StakePoolMetadata Source # | |
Defined in Cardano.Api.StakePoolMetadata | |
data AsType TxId Source # | |
Defined in Cardano.Api.TxIn | |
data AsType TxMetadata Source # | |
Defined in Cardano.Api.TxMetadata | |
data AsType AssetName Source # | |
Defined in Cardano.Api.Value | |
data AsType PolicyId Source # | |
Defined in Cardano.Api.Value | |
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 | |
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.Keys.Class | |
data AsType (VerificationKey a) Source # | |
Defined in Cardano.Api.Keys.Class | |
data AsType (PlutusScript lang) Source # | |
Defined in Cardano.Api.Script | |
data AsType (Script lang) Source # | |
Defined in Cardano.Api.Script | |
data AsType (ScriptInEra era) Source # | |
Defined in Cardano.Api.Script | |
data AsType (KeyWitness era) Source # | |
Defined in Cardano.Api.Tx.Sign | |
data AsType (Tx era) Source # | |
Defined in Cardano.Api.Tx.Sign | |
data AsType (TxBody era) Source # | |
Defined in Cardano.Api.Tx.Sign |
data family Hash keyrole Source #
Instances
FromJSON (Hash BlockHeader) Source # | |
Defined in Cardano.Api.Block parseJSON :: Value -> Parser (Hash BlockHeader) # parseJSONList :: Value -> Parser [Hash BlockHeader] # omittedField :: Maybe (Hash BlockHeader) # | |
FromJSON (Hash DRepKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromJSON (Hash GenesisKey) Source # | |
Defined in Cardano.Api.Keys.Shelley parseJSON :: Value -> Parser (Hash GenesisKey) # parseJSONList :: Value -> Parser [Hash GenesisKey] # omittedField :: Maybe (Hash GenesisKey) # | |
FromJSON (Hash PaymentKey) Source # | |
Defined in Cardano.Api.Keys.Shelley parseJSON :: Value -> Parser (Hash PaymentKey) # parseJSONList :: Value -> Parser [Hash PaymentKey] # omittedField :: Maybe (Hash PaymentKey) # | |
FromJSON (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley parseJSON :: Value -> Parser (Hash StakePoolKey) # parseJSONList :: Value -> Parser [Hash StakePoolKey] # omittedField :: Maybe (Hash StakePoolKey) # | |
FromJSON (Hash ScriptData) Source # | |
Defined in Cardano.Api.ScriptData parseJSON :: Value -> Parser (Hash ScriptData) # parseJSONList :: Value -> Parser [Hash ScriptData] # omittedField :: Maybe (Hash ScriptData) # | |
FromJSONKey (Hash ScriptData) Source # | |
Defined in Cardano.Api.ScriptData fromJSONKey :: FromJSONKeyFunction (Hash ScriptData) fromJSONKeyList :: FromJSONKeyFunction [Hash ScriptData] | |
ToJSON (Hash BlockHeader) Source # | |
Defined in Cardano.Api.Block 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.Keys.Shelley 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.Keys.Shelley toJSON :: Hash PaymentKey -> Value # toEncoding :: Hash PaymentKey -> Encoding # toJSONList :: [Hash PaymentKey] -> Value # toEncodingList :: [Hash PaymentKey] -> Encoding # omitField :: Hash PaymentKey -> Bool # | |
ToJSON (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley 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.ScriptData 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.Keys.Shelley | |
ToJSONKey (Hash GenesisKey) Source # | |
Defined in Cardano.Api.Keys.Shelley toJSONKey :: ToJSONKeyFunction (Hash GenesisKey) toJSONKeyList :: ToJSONKeyFunction [Hash GenesisKey] | |
ToJSONKey (Hash PaymentKey) Source # | |
Defined in Cardano.Api.Keys.Shelley toJSONKey :: ToJSONKeyFunction (Hash PaymentKey) toJSONKeyList :: ToJSONKeyFunction [Hash PaymentKey] | |
ToJSONKey (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley toJSONKey :: ToJSONKeyFunction (Hash StakePoolKey) toJSONKeyList :: ToJSONKeyFunction [Hash StakePoolKey] | |
ToJSONKey (Hash ScriptData) Source # | |
Defined in Cardano.Api.ScriptData toJSONKey :: ToJSONKeyFunction (Hash ScriptData) toJSONKeyList :: ToJSONKeyFunction [Hash ScriptData] | |
IsString (Hash BlockHeader) Source # | |
Defined in Cardano.Api.Block fromString :: String -> Hash BlockHeader Source # | |
IsString (Hash GovernancePoll) Source # | |
Defined in Cardano.Api.Governance.Poll fromString :: String -> Hash GovernancePoll Source # | |
IsString (Hash ByronKey) Source # | |
Defined in Cardano.Api.Keys.Byron | |
IsString (Hash ByronKeyLegacy) Source # | |
Defined in Cardano.Api.Keys.Byron fromString :: String -> Hash ByronKeyLegacy Source # | |
IsString (Hash KesKey) Source # | |
Defined in Cardano.Api.Keys.Praos | |
IsString (Hash VrfKey) Source # | |
Defined in Cardano.Api.Keys.Praos | |
IsString (Hash CommitteeColdExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
IsString (Hash CommitteeColdKey) Source # | |
Defined in Cardano.Api.Keys.Shelley fromString :: String -> Hash CommitteeColdKey Source # | |
IsString (Hash CommitteeHotExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
IsString (Hash CommitteeHotKey) Source # | |
Defined in Cardano.Api.Keys.Shelley fromString :: String -> Hash CommitteeHotKey Source # | |
IsString (Hash DRepExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley fromString :: String -> Hash DRepExtendedKey Source # | |
IsString (Hash DRepKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
IsString (Hash GenesisDelegateExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
IsString (Hash GenesisDelegateKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
IsString (Hash GenesisExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
IsString (Hash GenesisKey) Source # | |
Defined in Cardano.Api.Keys.Shelley fromString :: String -> Hash GenesisKey Source # | |
IsString (Hash GenesisUTxOKey) Source # | |
Defined in Cardano.Api.Keys.Shelley fromString :: String -> Hash GenesisUTxOKey Source # | |
IsString (Hash PaymentExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
IsString (Hash PaymentKey) Source # | |
Defined in Cardano.Api.Keys.Shelley fromString :: String -> Hash PaymentKey Source # | |
IsString (Hash StakeExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley fromString :: String -> Hash StakeExtendedKey Source # | |
IsString (Hash StakeKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
IsString (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley fromString :: String -> Hash StakePoolKey Source # | |
IsString (Hash ScriptData) Source # | |
Defined in Cardano.Api.ScriptData fromString :: String -> Hash ScriptData Source # | |
Show (Hash BlockHeader) Source # | |
Defined in Cardano.Api.Block | |
Show (Hash DRepMetadata) Source # | |
Defined in Cardano.Api.DRepMetadata | |
Show (Hash GovernancePoll) Source # | |
Defined in Cardano.Api.Governance.Poll | |
Show (Hash ByronKey) Source # | |
Show (Hash ByronKeyLegacy) Source # | |
Defined in Cardano.Api.Keys.Byron | |
Show (Hash KesKey) Source # | |
Show (Hash VrfKey) Source # | |
Show (Hash CommitteeColdExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash CommitteeColdKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash CommitteeHotExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash CommitteeHotKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash DRepExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash DRepKey) Source # | |
Show (Hash GenesisDelegateExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash GenesisDelegateKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash GenesisExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash GenesisKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash GenesisUTxOKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash PaymentExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash PaymentKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash StakeExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash StakeKey) Source # | |
Show (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash ScriptData) Source # | |
Defined in Cardano.Api.ScriptData | |
Show (Hash StakePoolMetadata) Source # | |
Defined in Cardano.Api.StakePoolMetadata | |
HasTypeProxy a => HasTypeProxy (Hash a) Source # | |
Defined in Cardano.Api.Hash | |
SerialiseAsBech32 (Hash CommitteeColdKey) Source # | |
Defined in Cardano.Api.Keys.Shelley bech32PrefixFor :: Hash CommitteeColdKey -> Text Source # bech32PrefixesPermitted :: AsType (Hash CommitteeColdKey) -> [Text] Source # | |
SerialiseAsBech32 (Hash CommitteeHotKey) Source # | |
Defined in Cardano.Api.Keys.Shelley bech32PrefixFor :: Hash CommitteeHotKey -> Text Source # bech32PrefixesPermitted :: AsType (Hash CommitteeHotKey) -> [Text] Source # | |
SerialiseAsBech32 (Hash DRepKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsBech32 (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley bech32PrefixFor :: Hash StakePoolKey -> Text Source # bech32PrefixesPermitted :: AsType (Hash StakePoolKey) -> [Text] Source # | |
SerialiseAsCBOR (Hash ByronKey) Source # | |
Defined in Cardano.Api.Keys.Byron serialiseToCBOR :: Hash ByronKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash ByronKey) -> ByteString -> Either DecoderError (Hash ByronKey) Source # | |
SerialiseAsCBOR (Hash ByronKeyLegacy) Source # | |
Defined in Cardano.Api.Keys.Byron | |
SerialiseAsCBOR (Hash KesKey) Source # | |
Defined in Cardano.Api.Keys.Praos serialiseToCBOR :: Hash KesKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash KesKey) -> ByteString -> Either DecoderError (Hash KesKey) Source # | |
SerialiseAsCBOR (Hash VrfKey) Source # | |
Defined in Cardano.Api.Keys.Praos serialiseToCBOR :: Hash VrfKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash VrfKey) -> ByteString -> Either DecoderError (Hash VrfKey) Source # | |
SerialiseAsCBOR (Hash CommitteeColdExtendedKey) Source # | |
SerialiseAsCBOR (Hash CommitteeColdKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsCBOR (Hash CommitteeHotExtendedKey) Source # | |
SerialiseAsCBOR (Hash CommitteeHotKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsCBOR (Hash DRepExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsCBOR (Hash DRepKey) Source # | |
Defined in Cardano.Api.Keys.Shelley serialiseToCBOR :: Hash DRepKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash DRepKey) -> ByteString -> Either DecoderError (Hash DRepKey) Source # | |
SerialiseAsCBOR (Hash GenesisDelegateExtendedKey) Source # | |
SerialiseAsCBOR (Hash GenesisDelegateKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsCBOR (Hash GenesisExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsCBOR (Hash GenesisKey) Source # | |
Defined in Cardano.Api.Keys.Shelley serialiseToCBOR :: Hash GenesisKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash GenesisKey) -> ByteString -> Either DecoderError (Hash GenesisKey) Source # | |
SerialiseAsCBOR (Hash GenesisUTxOKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsCBOR (Hash PaymentExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsCBOR (Hash PaymentKey) Source # | |
Defined in Cardano.Api.Keys.Shelley serialiseToCBOR :: Hash PaymentKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash PaymentKey) -> ByteString -> Either DecoderError (Hash PaymentKey) Source # | |
SerialiseAsCBOR (Hash StakeExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsCBOR (Hash StakeKey) Source # | |
Defined in Cardano.Api.Keys.Shelley serialiseToCBOR :: Hash StakeKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash StakeKey) -> ByteString -> Either DecoderError (Hash StakeKey) Source # | |
SerialiseAsCBOR (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsRawBytes (Hash BlockHeader) Source # | |
Defined in Cardano.Api.Block | |
SerialiseAsRawBytes (Hash DRepMetadata) Source # | |
Defined in Cardano.Api.DRepMetadata | |
SerialiseAsRawBytes (Hash GovernancePoll) Source # | |
SerialiseAsRawBytes (Hash ByronKey) Source # | |
Defined in Cardano.Api.Keys.Byron | |
SerialiseAsRawBytes (Hash ByronKeyLegacy) Source # | |
SerialiseAsRawBytes (Hash KesKey) Source # | |
Defined in Cardano.Api.Keys.Praos | |
SerialiseAsRawBytes (Hash VrfKey) Source # | |
Defined in Cardano.Api.Keys.Praos | |
SerialiseAsRawBytes (Hash CommitteeColdExtendedKey) Source # | |
SerialiseAsRawBytes (Hash CommitteeColdKey) Source # | |
SerialiseAsRawBytes (Hash CommitteeHotExtendedKey) Source # | |
SerialiseAsRawBytes (Hash CommitteeHotKey) Source # | |
SerialiseAsRawBytes (Hash DRepExtendedKey) Source # | |
SerialiseAsRawBytes (Hash DRepKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsRawBytes (Hash GenesisDelegateExtendedKey) Source # | |
SerialiseAsRawBytes (Hash GenesisDelegateKey) Source # | |
SerialiseAsRawBytes (Hash GenesisExtendedKey) Source # | |
SerialiseAsRawBytes (Hash GenesisKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsRawBytes (Hash GenesisUTxOKey) Source # | |
SerialiseAsRawBytes (Hash PaymentExtendedKey) Source # | |
SerialiseAsRawBytes (Hash PaymentKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsRawBytes (Hash StakeExtendedKey) Source # | |
SerialiseAsRawBytes (Hash StakeKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsRawBytes (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsRawBytes (Hash ScriptData) Source # | |
Defined in Cardano.Api.ScriptData | |
SerialiseAsRawBytes (Hash StakePoolMetadata) Source # | |
FromCBOR (Hash ByronKey) Source # | |
FromCBOR (Hash ByronKeyLegacy) Source # | |
Defined in Cardano.Api.Keys.Byron | |
FromCBOR (Hash KesKey) Source # | |
FromCBOR (Hash VrfKey) Source # | |
FromCBOR (Hash CommitteeColdExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash CommitteeColdKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash CommitteeHotExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash CommitteeHotKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash DRepExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash DRepKey) Source # | |
FromCBOR (Hash GenesisDelegateExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash GenesisDelegateKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash GenesisExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash GenesisKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash GenesisUTxOKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash PaymentExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash PaymentKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash StakeExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash StakeKey) Source # | |
FromCBOR (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash ByronKey) Source # | |
ToCBOR (Hash ByronKeyLegacy) Source # | |
Defined in Cardano.Api.Keys.Byron | |
ToCBOR (Hash KesKey) Source # | |
ToCBOR (Hash VrfKey) Source # | |
ToCBOR (Hash CommitteeColdExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash CommitteeColdKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash CommitteeHotExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash CommitteeHotKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash DRepExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash DRepKey) Source # | |
ToCBOR (Hash GenesisDelegateExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley 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.Keys.Shelley | |
ToCBOR (Hash GenesisExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash GenesisKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash GenesisUTxOKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash PaymentExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash PaymentKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash StakeExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash StakeKey) Source # | |
ToCBOR (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Eq (Hash BlockHeader) Source # | |
Defined in Cardano.Api.Block (==) :: Hash BlockHeader -> Hash BlockHeader -> Bool Source # (/=) :: Hash BlockHeader -> Hash BlockHeader -> Bool Source # | |
Eq (Hash DRepMetadata) Source # | |
Defined in Cardano.Api.DRepMetadata (==) :: Hash DRepMetadata -> Hash DRepMetadata -> Bool Source # (/=) :: Hash DRepMetadata -> Hash DRepMetadata -> Bool Source # | |
Eq (Hash GovernancePoll) Source # | |
Defined in Cardano.Api.Governance.Poll (==) :: Hash GovernancePoll -> Hash GovernancePoll -> Bool Source # (/=) :: Hash GovernancePoll -> Hash GovernancePoll -> Bool Source # | |
Eq (Hash ByronKey) Source # | |
Eq (Hash ByronKeyLegacy) Source # | |
Defined in Cardano.Api.Keys.Byron (==) :: Hash ByronKeyLegacy -> Hash ByronKeyLegacy -> Bool Source # (/=) :: Hash ByronKeyLegacy -> Hash ByronKeyLegacy -> Bool Source # | |
Eq (Hash KesKey) Source # | |
Eq (Hash VrfKey) Source # | |
Eq (Hash CommitteeColdExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Eq (Hash CommitteeColdKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash CommitteeColdKey -> Hash CommitteeColdKey -> Bool Source # (/=) :: Hash CommitteeColdKey -> Hash CommitteeColdKey -> Bool Source # | |
Eq (Hash CommitteeHotExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Eq (Hash CommitteeHotKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash CommitteeHotKey -> Hash CommitteeHotKey -> Bool Source # (/=) :: Hash CommitteeHotKey -> Hash CommitteeHotKey -> Bool Source # | |
Eq (Hash DRepExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash DRepExtendedKey -> Hash DRepExtendedKey -> Bool Source # (/=) :: Hash DRepExtendedKey -> Hash DRepExtendedKey -> Bool Source # | |
Eq (Hash DRepKey) Source # | |
Eq (Hash GenesisDelegateExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Eq (Hash GenesisDelegateKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash GenesisDelegateKey -> Hash GenesisDelegateKey -> Bool Source # (/=) :: Hash GenesisDelegateKey -> Hash GenesisDelegateKey -> Bool Source # | |
Eq (Hash GenesisExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash GenesisExtendedKey -> Hash GenesisExtendedKey -> Bool Source # (/=) :: Hash GenesisExtendedKey -> Hash GenesisExtendedKey -> Bool Source # | |
Eq (Hash GenesisKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash GenesisKey -> Hash GenesisKey -> Bool Source # (/=) :: Hash GenesisKey -> Hash GenesisKey -> Bool Source # | |
Eq (Hash GenesisUTxOKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash GenesisUTxOKey -> Hash GenesisUTxOKey -> Bool Source # (/=) :: Hash GenesisUTxOKey -> Hash GenesisUTxOKey -> Bool Source # | |
Eq (Hash PaymentExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash PaymentExtendedKey -> Hash PaymentExtendedKey -> Bool Source # (/=) :: Hash PaymentExtendedKey -> Hash PaymentExtendedKey -> Bool Source # | |
Eq (Hash PaymentKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash PaymentKey -> Hash PaymentKey -> Bool Source # (/=) :: Hash PaymentKey -> Hash PaymentKey -> Bool Source # | |
Eq (Hash StakeExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash StakeExtendedKey -> Hash StakeExtendedKey -> Bool Source # (/=) :: Hash StakeExtendedKey -> Hash StakeExtendedKey -> Bool Source # | |
Eq (Hash StakeKey) Source # | |
Eq (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash StakePoolKey -> Hash StakePoolKey -> Bool Source # (/=) :: Hash StakePoolKey -> Hash StakePoolKey -> Bool Source # | |
Eq (Hash ScriptData) Source # | |
Defined in Cardano.Api.ScriptData (==) :: Hash ScriptData -> Hash ScriptData -> Bool Source # (/=) :: Hash ScriptData -> Hash ScriptData -> Bool Source # | |
Eq (Hash StakePoolMetadata) Source # | |
Defined in Cardano.Api.StakePoolMetadata (==) :: Hash StakePoolMetadata -> Hash StakePoolMetadata -> Bool Source # (/=) :: Hash StakePoolMetadata -> Hash StakePoolMetadata -> Bool Source # | |
Ord (Hash BlockHeader) Source # | |
Defined in Cardano.Api.Block 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 GovernancePoll) Source # | |
Defined in Cardano.Api.Governance.Poll 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 ByronKey) Source # | |
Defined in Cardano.Api.Keys.Byron 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.Keys.Byron 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 KesKey) Source # | |
Defined in Cardano.Api.Keys.Praos 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.Keys.Praos 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 CommitteeColdExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley 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.Keys.Shelley 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.Keys.Shelley 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.Keys.Shelley 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.Keys.Shelley 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.Keys.Shelley 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.Keys.Shelley 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.Keys.Shelley 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.Keys.Shelley 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.Keys.Shelley 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.Keys.Shelley 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.Keys.Shelley 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.Keys.Shelley 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.Keys.Shelley 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.Keys.Shelley 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 StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley 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 ScriptData) Source # | |
Defined in Cardano.Api.ScriptData 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 # | |
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 DRepMetadata Source # | |
Defined in Cardano.Api.DRepMetadata | |
newtype Hash GovernancePoll Source # | |
Defined in Cardano.Api.Governance.Poll | |
newtype Hash ByronKey Source # | |
Defined in Cardano.Api.Keys.Byron | |
newtype Hash ByronKeyLegacy Source # | |
Defined in Cardano.Api.Keys.Byron | |
newtype Hash KesKey Source # | |
Defined in Cardano.Api.Keys.Praos | |
newtype Hash VrfKey Source # | |
Defined in Cardano.Api.Keys.Praos | |
newtype Hash CommitteeColdExtendedKey Source # | |
newtype Hash CommitteeColdKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash CommitteeHotExtendedKey Source # | |
newtype Hash CommitteeHotKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash DRepExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash DRepKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash GenesisDelegateExtendedKey Source # | |
newtype Hash GenesisDelegateKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash GenesisExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash GenesisKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash GenesisUTxOKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash PaymentExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash PaymentKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash StakeExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash StakeKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash StakePoolKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash ScriptData Source # | |
Defined in Cardano.Api.ScriptData | |
newtype Hash StakePoolMetadata Source # | |
Defined in Cardano.Api.StakePoolMetadata | |
data AsType (Hash a) Source # | |
Defined in Cardano.Api.Hash |