bcc-api-1.99.0
Safe HaskellNone
LanguageHaskell2010

Bcc.Api.SerialiseTextEnvelope

Description

TextEnvelope Serialisation

Synopsis

Documentation

class SerialiseAsCBOR a ⇒ HasTextEnvelope a where Source #

Minimal complete definition

textEnvelopeType

Instances

Instances details
HasTextEnvelope UpdateProposal Source # 
Instance details

Defined in Bcc.Api.ProtocolParameters

HasTextEnvelope Certificate Source # 
Instance details

Defined in Bcc.Api.Certificate

HasTextEnvelope OperationalCertificateIssueCounter Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

HasTextEnvelope OperationalCertificate Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

HasTextEnvelope (VerificationKey StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (VerificationKey VestedDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (VerificationKey VestedDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (VerificationKey VestedExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (VerificationKey VestedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (VerificationKey GenesisVestedDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (VerificationKey GenesisVestedDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (VerificationKey GenesisVestedExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (VerificationKey GenesisVestedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (VerificationKey VestedUTxOKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (VerificationKey GenesisUTxOKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (VerificationKey GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (VerificationKey GenesisDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (VerificationKey GenesisExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (VerificationKey GenesisKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (VerificationKey StakeExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (VerificationKey StakeKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (VerificationKey PaymentExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (VerificationKey PaymentKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (VerificationKey ColeKeyLegacy) Source # 
Instance details

Defined in Bcc.Api.KeysCole

HasTextEnvelope (VerificationKey ColeKey) Source # 
Instance details

Defined in Bcc.Api.KeysCole

HasTextEnvelope (VerificationKey VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

HasTextEnvelope (VerificationKey KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

HasTextEnvelope (SigningKey StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (SigningKey VestedDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (SigningKey VestedDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (SigningKey VestedExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (SigningKey VestedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (SigningKey GenesisVestedDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (SigningKey GenesisVestedDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (SigningKey GenesisVestedExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (SigningKey GenesisVestedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (SigningKey VestedUTxOKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (SigningKey GenesisUTxOKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (SigningKey GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (SigningKey GenesisDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (SigningKey GenesisExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (SigningKey GenesisKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (SigningKey StakeExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (SigningKey StakeKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (SigningKey PaymentExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (SigningKey PaymentKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (SigningKey ColeKeyLegacy) Source # 
Instance details

Defined in Bcc.Api.KeysCole

HasTextEnvelope (SigningKey ColeKey) Source # 
Instance details

Defined in Bcc.Api.KeysCole

HasTextEnvelope (SigningKey VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

HasTextEnvelope (SigningKey KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

(IsZerepochScriptLanguage lang, Typeable lang) ⇒ HasTextEnvelope (ZerepochScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

IsScriptLanguage lang ⇒ HasTextEnvelope (Script lang) Source # 
Instance details

Defined in Bcc.Api.Script

IsBccEra era ⇒ HasTextEnvelope (TxBody era) Source # 
Instance details

Defined in Bcc.Api.TxBody

IsBccEra era ⇒ HasTextEnvelope (KeyWitness era) Source # 
Instance details

Defined in Bcc.Api.Tx

IsBccEra era ⇒ HasTextEnvelope (Tx era) Source # 
Instance details

Defined in Bcc.Api.Tx

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. "PublicKeyCole" or "TxSignedSophie" 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.

Instances

Instances details
Eq TextEnvelope Source # 
Instance details

Defined in Bcc.Api.SerialiseTextEnvelope

Show TextEnvelope Source # 
Instance details

Defined in Bcc.Api.SerialiseTextEnvelope

FromJSON TextEnvelope Source # 
Instance details

Defined in Bcc.Api.SerialiseTextEnvelope

Methods

parseJSON ∷ Value → Parser TextEnvelope #

parseJSONList ∷ Value → Parser [TextEnvelope] #

ToJSON TextEnvelope Source # 
Instance details

Defined in Bcc.Api.SerialiseTextEnvelope

Methods

toJSONTextEnvelope → Value #

toEncodingTextEnvelope → Encoding #

toJSONList ∷ [TextEnvelope] → Value #

toEncodingList ∷ [TextEnvelope] → Encoding #

HasTypeProxy TextEnvelope Source # 
Instance details

Defined in Bcc.Api.SerialiseTextEnvelope

Associated Types

data AsType TextEnvelope Source #

data AsType TextEnvelope Source # 
Instance details

Defined in Bcc.Api.SerialiseTextEnvelope

newtype TextEnvelopeType Source #

Constructors

TextEnvelopeType String 

newtype TextEnvelopeDescr Source #

Reading one of several key types

data FromSomeType (c ∷ TypeConstraint) b where Source #

Constructors

FromSomeType ∷ 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 AurumEra Source # 
Instance details

Defined in Bcc.Api.Eras

data AsType JenEra Source # 
Instance details

Defined in Bcc.Api.Eras

data AsType EvieEra Source # 
Instance details

Defined in Bcc.Api.Eras

data AsType SophieEra Source # 
Instance details

Defined in Bcc.Api.Eras

data AsType ColeEra Source # 
Instance details

Defined in Bcc.Api.Eras

data AsType TextEnvelope Source # 
Instance details

Defined in Bcc.Api.SerialiseTextEnvelope

data AsType TxMetadata Source # 
Instance details

Defined in Bcc.Api.TxMetadata

data AsType StakePoolKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType VestedDelegateExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType VestedDelegateKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType VestedExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType VestedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisVestedDelegateExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisVestedDelegateKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisVestedExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisVestedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType VestedUTxOKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisUTxOKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisDelegateExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisDelegateKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType StakeExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType StakeKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType PaymentExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType PaymentKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType ScriptData Source # 
Instance details

Defined in Bcc.Api.ScriptData

data AsType ScriptHash Source # 
Instance details

Defined in Bcc.Api.Script

data AsType ScriptInAnyLang Source # 
Instance details

Defined in Bcc.Api.Script

data AsType ZerepochScriptV1 Source # 
Instance details

Defined in Bcc.Api.Script

data AsType SimpleScriptV2 Source # 
Instance details

Defined in Bcc.Api.Script

data AsType SimpleScriptV1 Source # 
Instance details

Defined in Bcc.Api.Script

data AsType ColeKeyLegacy Source # 
Instance details

Defined in Bcc.Api.KeysCole

data AsType ColeKey Source # 
Instance details

Defined in Bcc.Api.KeysCole

data AsType ColeVote Source # 
Instance details

Defined in Bcc.Api.SpecialCole

data AsType ColeUpdateProposal Source # 
Instance details

Defined in Bcc.Api.SpecialCole

data AsType VrfKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

data AsType KesKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

data AsType StakePoolMetadata Source # 
Instance details

Defined in Bcc.Api.StakePoolMetadata

data AsType StakeAddress Source # 
Instance details

Defined in Bcc.Api.Address

data AsType AddressAny Source # 
Instance details

Defined in Bcc.Api.Address

data AsType SophieAddr Source # 
Instance details

Defined in Bcc.Api.Address

data AsType ColeAddr Source # 
Instance details

Defined in Bcc.Api.Address

data AsType AssetName Source # 
Instance details

Defined in Bcc.Api.Value

data AsType PolicyId Source # 
Instance details

Defined in Bcc.Api.Value

data AsType UpdateProposal Source # 
Instance details

Defined in Bcc.Api.ProtocolParameters

data AsType OptimumNonce Source # 
Instance details

Defined in Bcc.Api.ProtocolParameters

data AsType Certificate Source # 
Instance details

Defined in Bcc.Api.Certificate

data AsType TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

data AsType BlockHeader Source # 
Instance details

Defined in Bcc.Api.Block

data AsType OperationalCertificateIssueCounter Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

data AsType OperationalCertificate Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

data AsType (Hash a) Source # 
Instance details

Defined in Bcc.Api.Hash

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

Defined in Bcc.Api.Key

data AsType (SigningKey a) Source # 
Instance details

Defined in Bcc.Api.Key

data AsType (ZerepochScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

data AsType (SimpleScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

data AsType (ScriptInEra era) Source # 
Instance details

Defined in Bcc.Api.Script

data AsType (Script lang) Source # 
Instance details

Defined in Bcc.Api.Script

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

Defined in Bcc.Api.Address

data AsType (Address addrtype) Source # 
Instance details

Defined in Bcc.Api.Address

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

Defined in Bcc.Api.TxBody

data AsType (TxBody era) = AsTxBody (AsType era)
data AsType (KeyWitness era) Source # 
Instance details

Defined in Bcc.Api.Tx

data AsType (Tx era) Source # 
Instance details

Defined in Bcc.Api.Tx

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