cardano-api:internal
Safe HaskellNone
LanguageHaskell2010

Cardano.Api.SerialiseTextEnvelope

Description

TextEnvelope Serialisation

Synopsis

Documentation

class SerialiseAsCBOR a => HasTextEnvelope a where Source #

Minimal complete definition

textEnvelopeType

Instances

Instances details
HasTextEnvelope GovernancePoll Source # 
Instance details

Defined in Cardano.Api.Governance.Poll

HasTextEnvelope OperationalCertificate Source # 
Instance details

Defined in Cardano.Api.OperationalCertificate

HasTextEnvelope OperationalCertificateIssueCounter Source # 
Instance details

Defined in Cardano.Api.OperationalCertificate

HasTextEnvelope UpdateProposal Source # 
Instance details

Defined in Cardano.Api.ProtocolParameters

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

Defined in Cardano.Api.Certificate

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

Defined in Cardano.Api.Governance.Actions.ProposalProcedure

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

Defined in Cardano.Api.Governance.Actions.VotingProcedure

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

Defined in Cardano.Api.Governance.Actions.VotingProcedure

HasTextEnvelope (SigningKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Byron

HasTextEnvelope (SigningKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Keys.Byron

HasTextEnvelope (SigningKey KesKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Praos

HasTextEnvelope (SigningKey VrfKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Praos

HasTextEnvelope (SigningKey CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (SigningKey CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (SigningKey CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (SigningKey CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (SigningKey DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (SigningKey DRepKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (SigningKey GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (SigningKey GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (SigningKey GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (SigningKey GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (SigningKey GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (SigningKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (SigningKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (SigningKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (SigningKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (SigningKey StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (VerificationKey ByronKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Byron

HasTextEnvelope (VerificationKey ByronKeyLegacy) Source # 
Instance details

Defined in Cardano.Api.Keys.Byron

HasTextEnvelope (VerificationKey KesKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Praos

HasTextEnvelope (VerificationKey VrfKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Praos

HasTextEnvelope (VerificationKey CommitteeColdExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (VerificationKey CommitteeColdKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (VerificationKey CommitteeHotExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (VerificationKey CommitteeHotKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (VerificationKey DRepExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (VerificationKey DRepKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (VerificationKey GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (VerificationKey GenesisDelegateKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (VerificationKey GenesisExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (VerificationKey GenesisKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (VerificationKey GenesisUTxOKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (VerificationKey PaymentExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (VerificationKey PaymentKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (VerificationKey StakeExtendedKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (VerificationKey StakeKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTextEnvelope (VerificationKey StakePoolKey) Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

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

Defined in Cardano.Api.Script

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

Defined in Cardano.Api.Script

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

Defined in Cardano.Api.Tx.Sign

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

Defined in Cardano.Api.Tx.Sign

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

Defined in Cardano.Api.Tx.Sign

data TextEnvelope Source #

A TextEnvelope is a structured envelope for serialised binary values with an external format with a semi-readable textual format.

It contains a "type" field, e.g. "PublicKeyByron" or "TxSignedShelley" to indicate the type of the encoded data. This is used as a sanity check and to help readers.

It also contains a "title" field which is free-form, and could be used to indicate the role or purpose to a reader.

newtype TextEnvelopeType Source #

Constructors

TextEnvelopeType String 

Instances

Instances details
FromJSON TextEnvelopeType Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

ToJSON TextEnvelopeType Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

Data TextEnvelopeType Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

Methods

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

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

toConstr :: TextEnvelopeType -> Constr Source #

dataTypeOf :: TextEnvelopeType -> DataType Source #

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

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

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

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

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

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

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

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

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

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

IsString TextEnvelopeType Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

Semigroup TextEnvelopeType Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

Show TextEnvelopeType Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

Eq TextEnvelopeType Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

newtype TextEnvelopeDescr Source #

Instances

Instances details
FromJSON TextEnvelopeDescr Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

ToJSON TextEnvelopeDescr Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

Data TextEnvelopeDescr Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

Methods

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

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

toConstr :: TextEnvelopeDescr -> Constr Source #

dataTypeOf :: TextEnvelopeDescr -> DataType Source #

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

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

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

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

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

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

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

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

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

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

IsString TextEnvelopeDescr Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

Semigroup TextEnvelopeDescr Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

Show TextEnvelopeDescr Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

Eq TextEnvelopeDescr Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

data TextEnvelopeError Source #

The errors that the pure TextEnvelope parsing/decoding functions can return.

Instances

Instances details
Data TextEnvelopeError Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

Methods

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

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

toConstr :: TextEnvelopeError -> Constr Source #

dataTypeOf :: TextEnvelopeError -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Show TextEnvelopeError Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

Error TextEnvelopeError Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

Eq TextEnvelopeError Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

legacyComparison :: TextEnvelopeType -> TextEnvelopeType -> Bool Source #

This is a backwards-compatibility patch to ensure that old envelopes generated by serialiseTxLedgerCddl can be deserialised after switching to the serialiseToTextEnvelope.

Reading one of several key types

data FromSomeType (c :: Type -> Constraint) b where Source #

Constructors

FromSomeType :: forall (c :: Type -> Constraint) a b. c a => AsType a -> (a -> b) -> FromSomeType c b 

Data family instances

data family AsType t Source #

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

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

Instances

Instances details
data AsType AddressAny Source # 
Instance details

Defined in Cardano.Api.Address

data AsType ByronAddr Source # 
Instance details

Defined in Cardano.Api.Address

data AsType ShelleyAddr Source # 
Instance details

Defined in Cardano.Api.Address

data AsType StakeAddress Source # 
Instance details

Defined in Cardano.Api.Address

data AsType BlockHeader Source # 
Instance details

Defined in Cardano.Api.Block

data AsType DRepMetadata Source # 
Instance details

Defined in Cardano.Api.DRepMetadata

data AsType AllegraEra Source # 
Instance details

Defined in Cardano.Api.Eras.Core

data AsType AlonzoEra Source # 
Instance details

Defined in Cardano.Api.Eras.Core

data AsType BabbageEra Source # 
Instance details

Defined in Cardano.Api.Eras.Core

data AsType ByronEra Source # 
Instance details

Defined in Cardano.Api.Eras.Core

data AsType ConwayEra Source # 
Instance details

Defined in Cardano.Api.Eras.Core

data AsType MaryEra Source # 
Instance details

Defined in Cardano.Api.Eras.Core

data AsType ShelleyEra Source # 
Instance details

Defined in Cardano.Api.Eras.Core

data AsType GovernancePoll Source # 
Instance details

Defined in Cardano.Api.Governance.Poll

data AsType GovernancePollAnswer Source # 
Instance details

Defined in Cardano.Api.Governance.Poll

data AsType ByronKey Source # 
Instance details

Defined in Cardano.Api.Keys.Byron

data AsType ByronKeyLegacy Source # 
Instance details

Defined in Cardano.Api.Keys.Byron

data AsType KesKey Source # 
Instance details

Defined in Cardano.Api.Keys.Praos

data AsType VrfKey Source # 
Instance details

Defined in Cardano.Api.Keys.Praos

data AsType CommitteeColdExtendedKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

data AsType CommitteeColdKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

data AsType CommitteeHotExtendedKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

data AsType CommitteeHotKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

data AsType DRepExtendedKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

data AsType DRepKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

data AsType GenesisDelegateExtendedKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

data AsType GenesisDelegateKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

data AsType GenesisExtendedKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

data AsType GenesisKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

data AsType GenesisUTxOKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

data AsType PaymentExtendedKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

data AsType PaymentKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

data AsType StakeExtendedKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

data AsType StakeKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

data AsType StakePoolKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

data AsType OperationalCertificate Source # 
Instance details

Defined in Cardano.Api.OperationalCertificate

data AsType OperationalCertificateIssueCounter Source # 
Instance details

Defined in Cardano.Api.OperationalCertificate

data AsType PraosNonce Source # 
Instance details

Defined in Cardano.Api.ProtocolParameters

data AsType UpdateProposal Source # 
Instance details

Defined in Cardano.Api.ProtocolParameters

data AsType PlutusScriptV1 Source # 
Instance details

Defined in Cardano.Api.Script

data AsType PlutusScriptV2 Source # 
Instance details

Defined in Cardano.Api.Script

data AsType PlutusScriptV3 Source # 
Instance details

Defined in Cardano.Api.Script

data AsType ScriptHash Source # 
Instance details

Defined in Cardano.Api.Script

data AsType ScriptInAnyLang Source # 
Instance details

Defined in Cardano.Api.Script

data AsType SimpleScript' Source # 
Instance details

Defined in Cardano.Api.Script

data AsType HashableScriptData Source # 
Instance details

Defined in Cardano.Api.ScriptData

data AsType ScriptData Source # 
Instance details

Defined in Cardano.Api.ScriptData

data AsType TextEnvelope Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

data AsType ByronUpdateProposal Source # 
Instance details

Defined in Cardano.Api.SpecialByron

data AsType ByronVote Source # 
Instance details

Defined in Cardano.Api.SpecialByron

data AsType StakePoolMetadata Source # 
Instance details

Defined in Cardano.Api.StakePoolMetadata

data AsType TxId Source # 
Instance details

Defined in Cardano.Api.TxIn

data AsType TxMetadata Source # 
Instance details

Defined in Cardano.Api.TxMetadata

data AsType AssetName Source # 
Instance details

Defined in Cardano.Api.Value

data AsType PolicyId Source # 
Instance details

Defined in Cardano.Api.Value

data AsType (Address addrtype) Source # 
Instance details

Defined in Cardano.Api.Address

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

Defined in Cardano.Api.Address

data AsType (Certificate era) Source # 
Instance details

Defined in Cardano.Api.Certificate

data AsType (Proposal era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.ProposalProcedure

data AsType (VotingProcedure era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

data AsType (VotingProcedures era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

data AsType (Hash a) Source # 
Instance details

Defined in Cardano.Api.Hash

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

Defined in Cardano.Api.Keys.Class

data AsType (VerificationKey a) Source # 
Instance details

Defined in Cardano.Api.Keys.Class

data AsType (PlutusScript lang) Source # 
Instance details

Defined in Cardano.Api.Script

data AsType (Script lang) Source # 
Instance details

Defined in Cardano.Api.Script

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

Defined in Cardano.Api.Script

data AsType (KeyWitness era) Source # 
Instance details

Defined in Cardano.Api.Tx.Sign

data AsType (Tx era) Source # 
Instance details

Defined in Cardano.Api.Tx.Sign

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

Defined in Cardano.Api.Tx.Sign

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