bcc-api-1.99.0
Safe HaskellNone
LanguageHaskell2010

Bcc.Api.Script

Synopsis

Languages

data SimpleScriptV1 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 SophieEra.

data SimpleScriptV2 Source #

The second version of the simple script language. It has all the features of SimpleScriptV1 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 EvieEra.

data ZerepochScriptV1 Source #

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

data ScriptLanguage lang where Source #

Instances

Instances details
Eq (ScriptLanguage lang) Source # 
Instance details

Defined in Bcc.Api.Script

Methods

(==)ScriptLanguage lang → ScriptLanguage lang → Bool Source #

(/=)ScriptLanguage lang → ScriptLanguage lang → Bool Source #

Show (ScriptLanguage lang) Source # 
Instance details

Defined in Bcc.Api.Script

TestEquality ScriptLanguage Source # 
Instance details

Defined in Bcc.Api.Script

Methods

testEquality ∷ ∀ (a ∷ k) (b ∷ k). ScriptLanguage a → ScriptLanguage b → Maybe (a :~: b) Source #

data SimpleScriptVersion lang where Source #

Instances

Instances details
Eq (SimpleScriptVersion lang) Source # 
Instance details

Defined in Bcc.Api.Script

Show (SimpleScriptVersion lang) Source # 
Instance details

Defined in Bcc.Api.Script

TestEquality SimpleScriptVersion Source # 
Instance details

Defined in Bcc.Api.Script

Methods

testEquality ∷ ∀ (a ∷ k) (b ∷ k). SimpleScriptVersion a → SimpleScriptVersion b → Maybe (a :~: b) Source #

data ZerepochScriptVersion lang where Source #

Instances

Instances details
Eq (ZerepochScriptVersion lang) Source # 
Instance details

Defined in Bcc.Api.Script

Show (ZerepochScriptVersion lang) Source # 
Instance details

Defined in Bcc.Api.Script

TestEquality ZerepochScriptVersion Source # 
Instance details

Defined in Bcc.Api.Script

Methods

testEquality ∷ ∀ (a ∷ k) (b ∷ k). ZerepochScriptVersion a → ZerepochScriptVersion b → Maybe (a :~: b) Source #

data AnyScriptLanguage where Source #

Instances

Instances details
Bounded AnyScriptLanguage Source # 
Instance details

Defined in Bcc.Api.Script

Enum AnyScriptLanguage Source # 
Instance details

Defined in Bcc.Api.Script

Eq AnyScriptLanguage Source # 
Instance details

Defined in Bcc.Api.Script

Ord AnyScriptLanguage Source # 
Instance details

Defined in Bcc.Api.Script

Show AnyScriptLanguage Source # 
Instance details

Defined in Bcc.Api.Script

data AnyZerepochScriptVersion where Source #

Instances

Instances details
Bounded AnyZerepochScriptVersion Source # 
Instance details

Defined in Bcc.Api.Script

Enum AnyZerepochScriptVersion Source # 
Instance details

Defined in Bcc.Api.Script

Eq AnyZerepochScriptVersion Source # 
Instance details

Defined in Bcc.Api.Script

Ord AnyZerepochScriptVersion Source # 
Instance details

Defined in Bcc.Api.Script

Show AnyZerepochScriptVersion Source # 
Instance details

Defined in Bcc.Api.Script

FromJSON AnyZerepochScriptVersion Source # 
Instance details

Defined in Bcc.Api.Script

Methods

parseJSON ∷ Value → Parser AnyZerepochScriptVersion #

parseJSONList ∷ Value → Parser [AnyZerepochScriptVersion] #

ToJSON AnyZerepochScriptVersion Source # 
Instance details

Defined in Bcc.Api.Script

FromCBOR AnyZerepochScriptVersion Source # 
Instance details

Defined in Bcc.Api.Script

ToCBOR AnyZerepochScriptVersion Source # 
Instance details

Defined in Bcc.Api.Script

Methods

toCBORAnyZerepochScriptVersion → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy AnyZerepochScriptVersion → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [AnyZerepochScriptVersion] → Size #

FromJSONKey AnyZerepochScriptVersion Source # 
Instance details

Defined in Bcc.Api.Script

Methods

fromJSONKey ∷ FromJSONKeyFunction AnyZerepochScriptVersion

fromJSONKeyList ∷ FromJSONKeyFunction [AnyZerepochScriptVersion]

ToJSONKey AnyZerepochScriptVersion Source # 
Instance details

Defined in Bcc.Api.Script

Methods

toJSONKey ∷ ToJSONKeyFunction AnyZerepochScriptVersion

toJSONKeyList ∷ ToJSONKeyFunction [AnyZerepochScriptVersion]

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 ∷ !(SimpleScriptVersion lang) → !(SimpleScript lang) → Script lang 
ZerepochScript ∷ !(ZerepochScriptVersion lang) → !(ZerepochScript lang) → Script lang 

Instances

Instances details
Eq (Script lang) Source # 
Instance details

Defined in Bcc.Api.Script

Methods

(==)Script lang → Script lang → Bool Source #

(/=)Script lang → Script lang → Bool Source #

Show (Script lang) Source # 
Instance details

Defined in Bcc.Api.Script

Methods

showsPrecIntScript lang → ShowS Source #

showScript lang → String Source #

showList ∷ [Script lang] → ShowS Source #

HasTypeProxy lang ⇒ HasTypeProxy (Script lang) Source # 
Instance details

Defined in Bcc.Api.Script

Associated Types

data AsType (Script lang) Source #

Methods

proxyToAsTypeProxy (Script lang) → AsType (Script lang) Source #

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

Defined in Bcc.Api.Script

Methods

serialiseToCBORScript lang → ByteString Source #

deserialiseFromCBORAsType (Script lang) → ByteStringEither DecoderError (Script lang) Source #

IsScriptLanguage lang ⇒ HasTextEnvelope (Script lang) 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)

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

ScriptInAnyLangScriptLanguage lang → Script lang → ScriptInAnyLang 

toScriptInAnyLangScript lang → ScriptInAnyLang Source #

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

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

Scripts in an era

data ScriptInEra era where Source #

Constructors

ScriptInEraScriptLanguageInEra lang era → Script lang → ScriptInEra era 

Instances

Instances details
Eq (ScriptInEra era) Source # 
Instance details

Defined in Bcc.Api.Script

Methods

(==)ScriptInEra era → ScriptInEra era → Bool Source #

(/=)ScriptInEra era → ScriptInEra era → Bool Source #

Show (ScriptInEra era) Source # 
Instance details

Defined in Bcc.Api.Script

HasTypeProxy era ⇒ HasTypeProxy (ScriptInEra era) Source # 
Instance details

Defined in Bcc.Api.Script

Associated Types

data AsType (ScriptInEra era) Source #

data AsType (ScriptInEra era) Source # 
Instance details

Defined in Bcc.Api.Script

toScriptInEraBccEra era → ScriptInAnyLangMaybe (ScriptInEra era) Source #

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

Use of a script in an era as a witness

data WitCtxTxIn Source #

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

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

data WitCtxMint Source #

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

This type tags the context as being to witness minting.

data WitCtxStake Source #

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

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

data WitCtx witctx where Source #

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

data ScriptWitness witctx era where Source #

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

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

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

Instances

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

Defined in Bcc.Api.Script

Methods

(==)ScriptWitness witctx era → ScriptWitness witctx era → Bool Source #

(/=)ScriptWitness witctx era → ScriptWitness witctx era → Bool Source #

Show (ScriptWitness witctx era) Source # 
Instance details

Defined in Bcc.Api.Script

Methods

showsPrecIntScriptWitness witctx era → ShowS Source #

showScriptWitness witctx era → String Source #

showList ∷ [ScriptWitness witctx era] → ShowS Source #

data Witness witctx era where Source #

Constructors

KeyWitnessKeyWitnessInCtx witctx → Witness witctx era 
ScriptWitnessScriptWitnessInCtx witctx → ScriptWitness witctx era → Witness witctx era 

Instances

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

Defined in Bcc.Api.Script

Methods

(==)Witness witctx era → Witness witctx era → Bool Source #

(/=)Witness witctx era → Witness witctx era → Bool Source #

Show (Witness witctx era) Source # 
Instance details

Defined in Bcc.Api.Script

Methods

showsPrecIntWitness witctx era → ShowS Source #

showWitness witctx era → String Source #

showList ∷ [Witness witctx era] → ShowS Source #

data KeyWitnessInCtx witctx where Source #

Instances

Instances details
Eq (KeyWitnessInCtx witctx) Source # 
Instance details

Defined in Bcc.Api.Script

Methods

(==)KeyWitnessInCtx witctx → KeyWitnessInCtx witctx → Bool Source #

(/=)KeyWitnessInCtx witctx → KeyWitnessInCtx witctx → Bool Source #

Show (KeyWitnessInCtx witctx) Source # 
Instance details

Defined in Bcc.Api.Script

Methods

showsPrecIntKeyWitnessInCtx witctx → ShowS Source #

showKeyWitnessInCtx witctx → String Source #

showList ∷ [KeyWitnessInCtx witctx] → ShowS Source #

data ScriptDatum witctx where Source #

Instances

Instances details
Eq (ScriptDatum witctx) Source # 
Instance details

Defined in Bcc.Api.Script

Methods

(==)ScriptDatum witctx → ScriptDatum witctx → Bool Source #

(/=)ScriptDatum witctx → ScriptDatum witctx → Bool Source #

Show (ScriptDatum witctx) Source # 
Instance details

Defined in Bcc.Api.Script

Methods

showsPrecIntScriptDatum witctx → ShowS Source #

showScriptDatum witctx → String Source #

showList ∷ [ScriptDatum witctx] → ShowS Source #

Languages supported in each era

scriptLanguageSupportedInEraBccEra 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.

The simple script language

data SimpleScript lang where Source #

Constructors

RequireSignature ∷ !(Hash PaymentKey) → SimpleScript lang 
RequireTimeBefore ∷ !(TimeLocksSupported lang) → !SlotNoSimpleScript lang 
RequireTimeAfter ∷ !(TimeLocksSupported lang) → !SlotNoSimpleScript lang 
RequireAllOf ∷ [SimpleScript lang] → SimpleScript lang 
RequireAnyOf ∷ [SimpleScript lang] → SimpleScript lang 
RequireMOfInt → [SimpleScript lang] → SimpleScript lang 

Instances

Instances details
Eq (SimpleScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

Methods

(==)SimpleScript lang → SimpleScript lang → Bool Source #

(/=)SimpleScript lang → SimpleScript lang → Bool Source #

Show (SimpleScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

Methods

showsPrecIntSimpleScript lang → ShowS Source #

showSimpleScript lang → String Source #

showList ∷ [SimpleScript lang] → ShowS Source #

IsSimpleScriptLanguage lang ⇒ FromJSON (SimpleScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

Methods

parseJSON ∷ Value → Parser (SimpleScript lang) #

parseJSONList ∷ Value → Parser [SimpleScript lang] #

ToJSON (SimpleScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

Methods

toJSONSimpleScript lang → Value #

toEncodingSimpleScript lang → Encoding #

toJSONList ∷ [SimpleScript lang] → Value #

toEncodingList ∷ [SimpleScript lang] → Encoding #

HasTypeProxy lang ⇒ HasTypeProxy (SimpleScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

Associated Types

data AsType (SimpleScript lang) Source #

data AsType (SimpleScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

data TimeLocksSupported lang where Source #

Time lock feature in the SimpleScript language.

The constructors of this type serve as evidence that the timelocks feature is supported in particular versions of the language.

Instances

Instances details
Eq (TimeLocksSupported lang) Source # 
Instance details

Defined in Bcc.Api.Script

Show (TimeLocksSupported lang) Source # 
Instance details

Defined in Bcc.Api.Script

adjustSimpleScriptVersionSimpleScriptVersion lang' → SimpleScript lang → Maybe (SimpleScript lang') Source #

Try converting the SimpleScript into a different version of the language.

This will work when the script only uses the features of the target language version. For example converting from SimpleScriptV2 to SimpleScriptV1 will work if the script happens not to use time locks feature. On the other hand converting SimpleScriptV1 to SimpleScriptV2 will always work because it is backwards compatible.

The Zerepoch script language

data ZerepochScript lang where Source #

Zerepoch scripts.

Note that Zerepoch scripts have a binary serialisation but no JSON serialisation.

Instances

Instances details
Eq (ZerepochScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

Methods

(==)ZerepochScript lang → ZerepochScript lang → Bool Source #

(/=)ZerepochScript lang → ZerepochScript lang → Bool Source #

Ord (ZerepochScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

Show (ZerepochScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

(Typeable lang, HasTypeProxy lang) ⇒ FromCBOR (ZerepochScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

Methods

fromCBOR ∷ Decoder s (ZerepochScript lang) #

labelProxy (ZerepochScript lang) → Text #

(Typeable lang, HasTypeProxy lang) ⇒ ToCBOR (ZerepochScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

Methods

toCBORZerepochScript lang → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (ZerepochScript lang) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [ZerepochScript lang] → Size #

HasTypeProxy lang ⇒ HasTypeProxy (ZerepochScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

Associated Types

data AsType (ZerepochScript lang) Source #

(HasTypeProxy lang, Typeable lang) ⇒ SerialiseAsCBOR (ZerepochScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

HasTypeProxy lang ⇒ SerialiseAsRawBytes (ZerepochScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

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

Defined in Bcc.Api.Script

data AsType (ZerepochScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

exampleZerepochScriptAlwaysSucceedsWitCtx witctx → ZerepochScript ZerepochScriptV1 Source #

An example Zerepoch 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.

exampleZerepochScriptAlwaysFailsWitCtx witctx → ZerepochScript ZerepochScriptV1 Source #

An example Zerepoch script that always fails, irrespective of inputs.

For example, if one were to use this for a payment address then it would be impossible for anyone to ever spend from it.

The exact script depends on the context in which it is to be used.

Script data

data ScriptData Source #

Instances

Instances details
Eq ScriptData Source # 
Instance details

Defined in Bcc.Api.ScriptData

Ord ScriptData Source # 
Instance details

Defined in Bcc.Api.ScriptData

Show ScriptData Source # 
Instance details

Defined in Bcc.Api.ScriptData

HasTypeProxy ScriptData Source # 
Instance details

Defined in Bcc.Api.ScriptData

Associated Types

data AsType ScriptData Source #

Eq (Hash ScriptData) Source # 
Instance details

Defined in Bcc.Api.ScriptData

Ord (Hash ScriptData) Source # 
Instance details

Defined in Bcc.Api.ScriptData

Show (Hash ScriptData) Source # 
Instance details

Defined in Bcc.Api.ScriptData

IsString (Hash ScriptData) Source # 
Instance details

Defined in Bcc.Api.ScriptData

FromJSON (Hash ScriptData) Source # 
Instance details

Defined in Bcc.Api.ScriptData

Methods

parseJSON ∷ Value → Parser (Hash ScriptData) #

parseJSONList ∷ Value → Parser [Hash ScriptData] #

ToJSON (Hash ScriptData) Source # 
Instance details

Defined in Bcc.Api.ScriptData

Methods

toJSONHash ScriptData → Value #

toEncodingHash ScriptData → Encoding #

toJSONList ∷ [Hash ScriptData] → Value #

toEncodingList ∷ [Hash ScriptData] → Encoding #

FromJSONKey (Hash ScriptData) Source # 
Instance details

Defined in Bcc.Api.ScriptData

Methods

fromJSONKey ∷ FromJSONKeyFunction (Hash ScriptData)

fromJSONKeyList ∷ FromJSONKeyFunction [Hash ScriptData]

ToJSONKey (Hash ScriptData) Source # 
Instance details

Defined in Bcc.Api.ScriptData

Methods

toJSONKey ∷ ToJSONKeyFunction (Hash ScriptData)

toJSONKeyList ∷ ToJSONKeyFunction [Hash ScriptData]

SerialiseAsRawBytes (Hash ScriptData) Source # 
Instance details

Defined in Bcc.Api.ScriptData

data AsType ScriptData Source # 
Instance details

Defined in Bcc.Api.ScriptData

newtype Hash ScriptData Source # 
Instance details

Defined in Bcc.Api.ScriptData

newtype Hash ScriptData = ScriptDataHash (DataHash StandardCrypto)

Script execution units

data ExecutionUnits Source #

The units for how long a script executes for and how much memory it uses. This is used to declare the resources used by a particular use of a script.

This type is also used to describe the limits for the maximum overall execution units per transaction or per block.

Constructors

ExecutionUnits 

Fields

Instances

Instances details
Eq ExecutionUnits Source # 
Instance details

Defined in Bcc.Api.Script

Show ExecutionUnits Source # 
Instance details

Defined in Bcc.Api.Script

FromJSON ExecutionUnits Source # 
Instance details

Defined in Bcc.Api.Script

Methods

parseJSON ∷ Value → Parser ExecutionUnits #

parseJSONList ∷ Value → Parser [ExecutionUnits] #

ToJSON ExecutionUnits Source # 
Instance details

Defined in Bcc.Api.Script

Methods

toJSONExecutionUnits → Value #

toEncodingExecutionUnits → Encoding #

toJSONList ∷ [ExecutionUnits] → Value #

toEncodingList ∷ [ExecutionUnits] → Encoding #

FromCBOR ExecutionUnits Source # 
Instance details

Defined in Bcc.Api.Script

Methods

fromCBOR ∷ Decoder s ExecutionUnits #

labelProxy ExecutionUnitsText #

ToCBOR ExecutionUnits Source # 
Instance details

Defined in Bcc.Api.Script

Methods

toCBORExecutionUnits → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy ExecutionUnits → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [ExecutionUnits] → Size #

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 StandardCrypto) 

Instances

Instances details
Eq ScriptHash Source # 
Instance details

Defined in Bcc.Api.Script

Ord ScriptHash Source # 
Instance details

Defined in Bcc.Api.Script

Show ScriptHash Source # 
Instance details

Defined in Bcc.Api.Script

IsString ScriptHash Source # 
Instance details

Defined in Bcc.Api.Script

FromJSON ScriptHash Source # 
Instance details

Defined in Bcc.Api.Script

Methods

parseJSON ∷ Value → Parser ScriptHash #

parseJSONList ∷ Value → Parser [ScriptHash] #

ToJSON ScriptHash Source # 
Instance details

Defined in Bcc.Api.Script

Methods

toJSONScriptHash → Value #

toEncodingScriptHash → Encoding #

toJSONList ∷ [ScriptHash] → Value #

toEncodingList ∷ [ScriptHash] → Encoding #

HasTypeProxy ScriptHash Source # 
Instance details

Defined in Bcc.Api.Script

Associated Types

data AsType ScriptHash Source #

SerialiseAsRawBytes ScriptHash Source # 
Instance details

Defined in Bcc.Api.Script

data AsType ScriptHash Source # 
Instance details

Defined in Bcc.Api.Script

Internal conversion functions

toSophieMultiSigSimpleScript SimpleScriptV1 → MultiSig StandardCrypto Source #

Conversion for the MultiSig language used by the Sophie era.

fromSophieMultiSig ∷ MultiSig StandardCrypto → SimpleScript lang Source #

Conversion for the MultiSig language used by the Sophie era.

toEvieTimelock ∷ ∀ lang. SimpleScript lang → Timelock StandardCrypto Source #

Conversion for the Timelock language that is shared between the Evie and Jen eras.

fromEvieTimelockTimeLocksSupported lang → Timelock StandardCrypto → SimpleScript lang Source #

Conversion for the Timelock language that is shared between the Evie and Jen eras.

toSophieScriptHashScriptHash → ScriptHash StandardCrypto Source #

fromSophieScriptHash ∷ ScriptHash StandardCrypto → ScriptHash Source #

toAurumDataScriptData → Data ledgerera Source #

fromAurumData ∷ Data ledgerera → ScriptData Source #

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)

data family Hash keyrole ∷ Type Source #

Instances

Instances details
Eq (Hash StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Eq (Hash VestedDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Eq (Hash VestedDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Eq (Hash VestedExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Eq (Hash VestedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Eq (Hash GenesisVestedDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Eq (Hash GenesisVestedDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Eq (Hash GenesisVestedExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Eq (Hash GenesisVestedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Eq (Hash VestedUTxOKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Eq (Hash GenesisUTxOKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Eq (Hash GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Eq (Hash GenesisDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Eq (Hash GenesisExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Eq (Hash GenesisKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Eq (Hash StakeExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Eq (Hash StakeKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Eq (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Eq (Hash PaymentKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Eq (Hash ScriptData) Source # 
Instance details

Defined in Bcc.Api.ScriptData

Eq (Hash ColeKeyLegacy) Source # 
Instance details

Defined in Bcc.Api.KeysCole

Eq (Hash ColeKey) Source # 
Instance details

Defined in Bcc.Api.KeysCole

Eq (Hash VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Eq (Hash KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Eq (Hash StakePoolMetadata) Source # 
Instance details

Defined in Bcc.Api.StakePoolMetadata

Eq (Hash BlockHeader) Source # 
Instance details

Defined in Bcc.Api.Block

Ord (Hash StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Ord (Hash VestedDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Ord (Hash VestedDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Ord (Hash VestedExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Ord (Hash VestedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Ord (Hash GenesisVestedDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Ord (Hash GenesisVestedDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Ord (Hash GenesisVestedExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Ord (Hash GenesisVestedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Ord (Hash VestedUTxOKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Ord (Hash GenesisUTxOKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Ord (Hash GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Ord (Hash GenesisDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Ord (Hash GenesisExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Ord (Hash GenesisKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Ord (Hash StakeExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Ord (Hash StakeKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Ord (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Ord (Hash PaymentKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Ord (Hash ScriptData) Source # 
Instance details

Defined in Bcc.Api.ScriptData

Ord (Hash ColeKeyLegacy) Source # 
Instance details

Defined in Bcc.Api.KeysCole

Ord (Hash ColeKey) Source # 
Instance details

Defined in Bcc.Api.KeysCole

Ord (Hash VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Ord (Hash KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Ord (Hash BlockHeader) Source # 
Instance details

Defined in Bcc.Api.Block

Show (Hash StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (Hash VestedDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (Hash VestedDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (Hash VestedExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (Hash VestedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (Hash GenesisVestedDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (Hash GenesisVestedDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (Hash GenesisVestedExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (Hash GenesisVestedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (Hash VestedUTxOKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (Hash GenesisUTxOKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (Hash GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (Hash GenesisDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (Hash GenesisExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (Hash GenesisKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (Hash StakeExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (Hash StakeKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (Hash PaymentKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (Hash ScriptData) Source # 
Instance details

Defined in Bcc.Api.ScriptData

Show (Hash ColeKeyLegacy) Source # 
Instance details

Defined in Bcc.Api.KeysCole

Show (Hash ColeKey) Source # 
Instance details

Defined in Bcc.Api.KeysCole

Show (Hash VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Show (Hash KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Show (Hash StakePoolMetadata) Source # 
Instance details

Defined in Bcc.Api.StakePoolMetadata

Show (Hash BlockHeader) Source # 
Instance details

Defined in Bcc.Api.Block

IsString (Hash StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (Hash VestedDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (Hash VestedDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (Hash VestedExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (Hash VestedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (Hash GenesisVestedDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (Hash GenesisVestedDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (Hash GenesisVestedExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (Hash GenesisVestedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (Hash VestedUTxOKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (Hash GenesisUTxOKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (Hash GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (Hash GenesisDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (Hash GenesisExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (Hash GenesisKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (Hash StakeExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (Hash StakeKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (Hash PaymentKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (Hash ScriptData) Source # 
Instance details

Defined in Bcc.Api.ScriptData

IsString (Hash ColeKeyLegacy) Source # 
Instance details

Defined in Bcc.Api.KeysCole

IsString (Hash ColeKey) Source # 
Instance details

Defined in Bcc.Api.KeysCole

IsString (Hash VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

IsString (Hash KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

FromJSON (Hash ScriptData) Source # 
Instance details

Defined in Bcc.Api.ScriptData

Methods

parseJSON ∷ Value → Parser (Hash ScriptData) #

parseJSONList ∷ Value → Parser [Hash ScriptData] #

ToJSON (Hash StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toJSONHash StakePoolKey → Value #

toEncodingHash StakePoolKey → Encoding #

toJSONList ∷ [Hash StakePoolKey] → Value #

toEncodingList ∷ [Hash StakePoolKey] → Encoding #

ToJSON (Hash ScriptData) Source # 
Instance details

Defined in Bcc.Api.ScriptData

Methods

toJSONHash ScriptData → Value #

toEncodingHash ScriptData → Encoding #

toJSONList ∷ [Hash ScriptData] → Value #

toEncodingList ∷ [Hash ScriptData] → Encoding #

FromCBOR (Hash StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

fromCBOR ∷ Decoder s (Hash StakePoolKey) #

labelProxy (Hash StakePoolKey) → Text #

FromCBOR (Hash VestedDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

FromCBOR (Hash VestedDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

FromCBOR (Hash VestedExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

FromCBOR (Hash VestedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

fromCBOR ∷ Decoder s (Hash VestedKey) #

labelProxy (Hash VestedKey) → Text #

FromCBOR (Hash GenesisVestedDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

FromCBOR (Hash GenesisVestedDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

FromCBOR (Hash GenesisVestedExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

FromCBOR (Hash GenesisVestedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

FromCBOR (Hash VestedUTxOKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

fromCBOR ∷ Decoder s (Hash VestedUTxOKey) #

labelProxy (Hash VestedUTxOKey) → Text #

FromCBOR (Hash GenesisUTxOKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

fromCBOR ∷ Decoder s (Hash GenesisUTxOKey) #

labelProxy (Hash GenesisUTxOKey) → Text #

FromCBOR (Hash GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

FromCBOR (Hash GenesisDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

FromCBOR (Hash GenesisExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

FromCBOR (Hash GenesisKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

fromCBOR ∷ Decoder s (Hash GenesisKey) #

labelProxy (Hash GenesisKey) → Text #

FromCBOR (Hash StakeExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

FromCBOR (Hash StakeKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

fromCBOR ∷ Decoder s (Hash StakeKey) #

labelProxy (Hash StakeKey) → Text #

FromCBOR (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

FromCBOR (Hash PaymentKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

fromCBOR ∷ Decoder s (Hash PaymentKey) #

labelProxy (Hash PaymentKey) → Text #

FromCBOR (Hash ColeKeyLegacy) Source # 
Instance details

Defined in Bcc.Api.KeysCole

Methods

fromCBOR ∷ Decoder s (Hash ColeKeyLegacy) #

labelProxy (Hash ColeKeyLegacy) → Text #

FromCBOR (Hash ColeKey) Source # 
Instance details

Defined in Bcc.Api.KeysCole

Methods

fromCBOR ∷ Decoder s (Hash ColeKey) #

labelProxy (Hash ColeKey) → Text #

FromCBOR (Hash VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Methods

fromCBOR ∷ Decoder s (Hash VrfKey) #

labelProxy (Hash VrfKey) → Text #

FromCBOR (Hash KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Methods

fromCBOR ∷ Decoder s (Hash KesKey) #

labelProxy (Hash KesKey) → Text #

ToCBOR (Hash StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toCBORHash StakePoolKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash StakePoolKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash StakePoolKey] → Size #

ToCBOR (Hash VestedDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toCBORHash VestedDelegateExtendedKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash VestedDelegateExtendedKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash VestedDelegateExtendedKey] → Size #

ToCBOR (Hash VestedDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toCBORHash VestedDelegateKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash VestedDelegateKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash VestedDelegateKey] → Size #

ToCBOR (Hash VestedExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toCBORHash VestedExtendedKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash VestedExtendedKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash VestedExtendedKey] → Size #

ToCBOR (Hash VestedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toCBORHash VestedKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash VestedKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash VestedKey] → Size #

ToCBOR (Hash GenesisVestedDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toCBORHash GenesisVestedDelegateExtendedKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash GenesisVestedDelegateExtendedKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash GenesisVestedDelegateExtendedKey] → Size #

ToCBOR (Hash GenesisVestedDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toCBORHash GenesisVestedDelegateKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash GenesisVestedDelegateKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash GenesisVestedDelegateKey] → Size #

ToCBOR (Hash GenesisVestedExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toCBORHash GenesisVestedExtendedKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash GenesisVestedExtendedKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash GenesisVestedExtendedKey] → Size #

ToCBOR (Hash GenesisVestedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toCBORHash GenesisVestedKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash GenesisVestedKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash GenesisVestedKey] → Size #

ToCBOR (Hash VestedUTxOKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toCBORHash VestedUTxOKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash VestedUTxOKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash VestedUTxOKey] → Size #

ToCBOR (Hash GenesisUTxOKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toCBORHash GenesisUTxOKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash GenesisUTxOKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash GenesisUTxOKey] → Size #

ToCBOR (Hash GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toCBORHash GenesisDelegateExtendedKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash GenesisDelegateExtendedKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash GenesisDelegateExtendedKey] → Size #

ToCBOR (Hash GenesisDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toCBORHash GenesisDelegateKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash GenesisDelegateKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash GenesisDelegateKey] → Size #

ToCBOR (Hash GenesisExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toCBORHash GenesisExtendedKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash GenesisExtendedKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash GenesisExtendedKey] → Size #

ToCBOR (Hash GenesisKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toCBORHash GenesisKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash GenesisKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash GenesisKey] → Size #

ToCBOR (Hash StakeExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toCBORHash StakeExtendedKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash StakeExtendedKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash StakeExtendedKey] → Size #

ToCBOR (Hash StakeKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toCBORHash StakeKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash StakeKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash StakeKey] → Size #

ToCBOR (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toCBORHash PaymentExtendedKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash PaymentExtendedKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash PaymentExtendedKey] → Size #

ToCBOR (Hash PaymentKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toCBORHash PaymentKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash PaymentKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash PaymentKey] → Size #

ToCBOR (Hash ColeKeyLegacy) Source # 
Instance details

Defined in Bcc.Api.KeysCole

Methods

toCBORHash ColeKeyLegacy → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash ColeKeyLegacy) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash ColeKeyLegacy] → Size #

ToCBOR (Hash ColeKey) Source # 
Instance details

Defined in Bcc.Api.KeysCole

Methods

toCBORHash ColeKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash ColeKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash ColeKey] → Size #

ToCBOR (Hash VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Methods

toCBORHash VrfKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash VrfKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash VrfKey] → Size #

ToCBOR (Hash KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Methods

toCBORHash KesKey → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Hash KesKey) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Hash KesKey] → Size #

FromJSONKey (Hash ScriptData) Source # 
Instance details

Defined in Bcc.Api.ScriptData

Methods

fromJSONKey ∷ FromJSONKeyFunction (Hash ScriptData)

fromJSONKeyList ∷ FromJSONKeyFunction [Hash ScriptData]

ToJSONKey (Hash StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toJSONKey ∷ ToJSONKeyFunction (Hash StakePoolKey)

toJSONKeyList ∷ ToJSONKeyFunction [Hash StakePoolKey]

ToJSONKey (Hash ScriptData) Source # 
Instance details

Defined in Bcc.Api.ScriptData

Methods

toJSONKey ∷ ToJSONKeyFunction (Hash ScriptData)

toJSONKeyList ∷ ToJSONKeyFunction [Hash ScriptData]

HasTypeProxy a ⇒ HasTypeProxy (Hash a) Source # 
Instance details

Defined in Bcc.Api.Hash

Associated Types

data AsType (Hash a) Source #

Methods

proxyToAsTypeProxy (Hash a) → AsType (Hash a) Source #

SerialiseAsCBOR (Hash StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsCBOR (Hash VestedDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsCBOR (Hash VestedDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsCBOR (Hash VestedExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsCBOR (Hash VestedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsCBOR (Hash GenesisVestedDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsCBOR (Hash GenesisVestedDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsCBOR (Hash GenesisVestedExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsCBOR (Hash GenesisVestedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsCBOR (Hash VestedUTxOKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsCBOR (Hash GenesisUTxOKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsCBOR (Hash GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsCBOR (Hash GenesisDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsCBOR (Hash GenesisExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsCBOR (Hash GenesisKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsCBOR (Hash StakeExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsCBOR (Hash StakeKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsCBOR (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsCBOR (Hash PaymentKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsCBOR (Hash ColeKeyLegacy) Source # 
Instance details

Defined in Bcc.Api.KeysCole

SerialiseAsCBOR (Hash ColeKey) Source # 
Instance details

Defined in Bcc.Api.KeysCole

SerialiseAsCBOR (Hash VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

SerialiseAsCBOR (Hash KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

SerialiseAsRawBytes (Hash StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (Hash VestedDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (Hash VestedDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (Hash VestedExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (Hash VestedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (Hash GenesisVestedDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (Hash GenesisVestedDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (Hash GenesisVestedExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (Hash GenesisVestedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (Hash VestedUTxOKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (Hash GenesisUTxOKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (Hash GenesisDelegateExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (Hash GenesisDelegateKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (Hash GenesisExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (Hash GenesisKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (Hash StakeExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (Hash StakeKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (Hash PaymentExtendedKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (Hash PaymentKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (Hash ScriptData) Source # 
Instance details

Defined in Bcc.Api.ScriptData

SerialiseAsRawBytes (Hash ColeKeyLegacy) Source # 
Instance details

Defined in Bcc.Api.KeysCole

SerialiseAsRawBytes (Hash ColeKey) Source # 
Instance details

Defined in Bcc.Api.KeysCole

SerialiseAsRawBytes (Hash VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

SerialiseAsRawBytes (Hash KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

SerialiseAsRawBytes (Hash StakePoolMetadata) Source # 
Instance details

Defined in Bcc.Api.StakePoolMetadata

SerialiseAsRawBytes (Hash BlockHeader) Source # 
Instance details

Defined in Bcc.Api.Block

SerialiseAsBech32 (Hash StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype Hash StakePoolKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype Hash StakePoolKey = StakePoolKeyHash (KeyHash 'StakePool StandardCrypto)
newtype Hash VestedDelegateExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype Hash VestedDelegateExtendedKey = VestedDelegateExtendedKeyHash (KeyHash 'Staking StandardCrypto)
newtype Hash VestedDelegateKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype Hash VestedDelegateKey = VestedDelegateKeyHash (KeyHash 'VestedDelegate StandardCrypto)
newtype Hash VestedExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype Hash VestedExtendedKey = VestedExtendedKeyHash (KeyHash 'Staking StandardCrypto)
newtype Hash VestedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype Hash VestedKey = VestedKeyHash (KeyHash 'Vested StandardCrypto)
newtype Hash GenesisVestedDelegateExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype Hash GenesisVestedDelegateKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype Hash GenesisVestedDelegateKey = GenesisVestedDelegateKeyHash (KeyHash 'VestedDelegate StandardCrypto)
newtype Hash GenesisVestedExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype Hash GenesisVestedExtendedKey = GenesisVestedExtendedKeyHash (KeyHash 'Staking StandardCrypto)
newtype Hash GenesisVestedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype Hash GenesisVestedKey = GenesisVestedKeyHash (KeyHash 'Genesis StandardCrypto)
newtype Hash VestedUTxOKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype Hash VestedUTxOKey = VestedUTxOKeyHash (KeyHash 'Payment StandardCrypto)
newtype Hash GenesisUTxOKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype Hash GenesisUTxOKey = GenesisUTxOKeyHash (KeyHash 'Payment StandardCrypto)
newtype Hash GenesisDelegateExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype Hash GenesisDelegateExtendedKey = GenesisDelegateExtendedKeyHash (KeyHash 'Staking StandardCrypto)
newtype Hash GenesisDelegateKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype Hash GenesisDelegateKey = GenesisDelegateKeyHash (KeyHash 'GenesisDelegate StandardCrypto)
newtype Hash GenesisExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype Hash GenesisExtendedKey = GenesisExtendedKeyHash (KeyHash 'Staking StandardCrypto)
newtype Hash GenesisKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype Hash GenesisKey = GenesisKeyHash (KeyHash 'Genesis StandardCrypto)
newtype Hash StakeExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype Hash StakeExtendedKey = StakeExtendedKeyHash (KeyHash 'Staking StandardCrypto)
newtype Hash StakeKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype Hash StakeKey = StakeKeyHash (KeyHash 'Staking StandardCrypto)
newtype Hash PaymentExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype Hash PaymentExtendedKey = PaymentExtendedKeyHash (KeyHash 'Payment StandardCrypto)
newtype Hash PaymentKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype Hash PaymentKey = PaymentKeyHash (KeyHash 'Payment StandardCrypto)
newtype Hash ScriptData Source # 
Instance details

Defined in Bcc.Api.ScriptData

newtype Hash ScriptData = ScriptDataHash (DataHash StandardCrypto)
newtype Hash ColeKeyLegacy Source # 
Instance details

Defined in Bcc.Api.KeysCole

newtype Hash ColeKey Source # 
Instance details

Defined in Bcc.Api.KeysCole

newtype Hash ColeKey = ColeKeyHash KeyHash
newtype Hash VrfKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

newtype Hash VrfKey = VrfKeyHash (Hash StandardCrypto (VerKeyVRF StandardCrypto))
newtype Hash KesKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

newtype Hash KesKey = KesKeyHash (Hash StandardCrypto (VerKeyKES StandardCrypto))
newtype Hash StakePoolMetadata Source # 
Instance details

Defined in Bcc.Api.StakePoolMetadata

newtype Hash StakePoolMetadata = StakePoolMetadataHash (Hash StandardCrypto ByteString)
newtype Hash BlockHeader Source #

For now at least we use a fixed concrete hash type for all modes and era. The different eras do use different types, but it's all the same underlying representation.

Instance details

Defined in Bcc.Api.Block

data AsType (Hash a) Source # 
Instance details

Defined in Bcc.Api.Hash

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