bcc-api-1.99.0
Safe HaskellNone
LanguageHaskell2010

Bcc.Api.Sophie

Description

This module provides a library interface that is intended to be the complete API for Sophie covering everything, including exposing constructors for the lower level types.

Synopsis

Documentation

module Bcc.Api

Genesis

data SophieGenesis era #

Constructors

SophieGenesis 

Fields

Instances

Instances details
Eq (SophieGenesis era) 
Instance details

Defined in Sophie.Spec.Ledger.Genesis

Methods

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

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

Show (SophieGenesis era) 
Instance details

Defined in Sophie.Spec.Ledger.Genesis

Generic (SophieGenesis era) 
Instance details

Defined in Sophie.Spec.Ledger.Genesis

Associated Types

type Rep (SophieGenesis era) ∷ TypeType Source #

Methods

fromSophieGenesis era → Rep (SophieGenesis era) x Source #

toRep (SophieGenesis era) x → SophieGenesis era Source #

Era era ⇒ FromJSON (SophieGenesis era) 
Instance details

Defined in Sophie.Spec.Ledger.Genesis

Methods

parseJSON ∷ Value → Parser (SophieGenesis era) #

parseJSONList ∷ Value → Parser [SophieGenesis era] #

Era era ⇒ NoThunks (SophieGenesis era) 
Instance details

Defined in Sophie.Spec.Ledger.Genesis

Methods

noThunks ∷ Context → SophieGenesis era → IO (Maybe ThunkInfo)

wNoThunks ∷ Context → SophieGenesis era → IO (Maybe ThunkInfo)

showTypeOfProxy (SophieGenesis era) → String

Era era ⇒ ToJSON (SophieGenesis era) 
Instance details

Defined in Sophie.Spec.Ledger.Genesis

Methods

toJSONSophieGenesis era → Value #

toEncodingSophieGenesis era → Encoding #

toJSONList ∷ [SophieGenesis era] → Value #

toEncodingList ∷ [SophieGenesis era] → Encoding #

Era era ⇒ FromCBOR (SophieGenesis era) 
Instance details

Defined in Sophie.Spec.Ledger.Genesis

Methods

fromCBOR ∷ Decoder s (SophieGenesis era) #

labelProxy (SophieGenesis era) → Text #

Era era ⇒ ToCBOR (SophieGenesis era) 
Instance details

Defined in Sophie.Spec.Ledger.Genesis

Methods

toCBORSophieGenesis era → Encoding #

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

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

type Rep (SophieGenesis era) 
Instance details

Defined in Sophie.Spec.Ledger.Genesis

type Rep (SophieGenesis era) = D1 ('MetaData "SophieGenesis" "Sophie.Spec.Ledger.Genesis" "sophie-spec-ledger-0.1.0.0-4c171bfb240a40bb2ca5d8b05a0b89412ec45e443bab31db15a30939ac0fa97d" 'False) (C1 ('MetaCons "SophieGenesis" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "sgSystemStart") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UTCTime) :*: S1 ('MetaSel ('Just "sgNetworkMagic") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "sgNetworkId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Network) :*: S1 ('MetaSel ('Just "sgActiveSlotsCoeff") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PositiveUnitInterval))) :*: ((S1 ('MetaSel ('Just "sgSecurityParam") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64) :*: S1 ('MetaSel ('Just "sgVestMultiple") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "sgEpochLength") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 EpochSize) :*: S1 ('MetaSel ('Just "sgSlotsPerKESPeriod") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64)))) :*: (((S1 ('MetaSel ('Just "sgMaxKESEvolutions") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64) :*: S1 ('MetaSel ('Just "sgSlotLength") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NominalDiffTime)) :*: (S1 ('MetaSel ('Just "sgUpdateQuorum") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64) :*: S1 ('MetaSel ('Just "sgMaxEntropicSupply") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64))) :*: ((S1 ('MetaSel ('Just "sgProtocolParams") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (PParams era)) :*: S1 ('MetaSel ('Just "sgGenDelegs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'Genesis (Crypto era)) (GenDelegPair (Crypto era))))) :*: (S1 ('MetaSel ('Just "sgVestedDelegs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'Vested (Crypto era)) (VestedDelegPair (Crypto era)))) :*: (S1 ('MetaSel ('Just "sgInitialFunds") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (Addr (Crypto era)) Coin)) :*: S1 ('MetaSel ('Just "sgStaking") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (SophieGenesisStaking (Crypto era)))))))))
type TranslationError (AurumEra c) SophieGenesis 
Instance details

Defined in Bcc.Ledger.Aurum.Translation

type TranslationError (AurumEra c) SophieGenesis = Void
type TranslationError (EvieEra c) SophieGenesis 
Instance details

Defined in Bcc.Ledger.Evie.Translation

type TranslationError (EvieEra c) SophieGenesis = Void
type TranslationError (JenEra c) SophieGenesis 
Instance details

Defined in Bcc.Ledger.Jen.Translation

type TranslationError (JenEra c) SophieGenesis = Void

sophieGenesisDefaultsSophieGenesis crypto Source #

Some reasonable starting defaults for constructing a SophieGenesis.

You must override at least the following fields for this to be useful:

Cryptographic key interface

Hashes

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)

Payment addresses

Constructing and inspecting Sophie payment addresses

data Address addrtype where Source #

Addresses are used as locations where assets live. The address determines the rights needed to spend assets at the address: in particular holding some signing key or being able to satisfy the conditions of a script.

There are currently two types of address:

  • Cole addresses, which use the type tag ColeAddr; and
  • Sophie addresses, which use the type tag SophieAddr. Notably, Sophie addresses support scripts and stake delegation.

The address type is subtly from the ledger era in which each address type is valid: while Cole addresses are the only choice in the Cole era, the Sophie era and all subsequent eras support both Cole and Sophie addresses. The Address type param only says the type of the address (either Cole or Sophie). The AddressInEra type connects the address type with the era in which it is supported.

Constructors

SophieAddress ∷ Network → PaymentCredential StandardCrypto → StakeReference StandardCrypto → Address SophieAddr

Sophie addresses allow delegation. Sophie addresses were introduced in Sophie era and are thus supported from the Sophie era onwards

Instances

Instances details
Eq (Address addrtype) Source # 
Instance details

Defined in Bcc.Api.Address

Methods

(==)Address addrtype → Address addrtype → Bool Source #

(/=)Address addrtype → Address addrtype → Bool Source #

Ord (Address addrtype) Source # 
Instance details

Defined in Bcc.Api.Address

Methods

compareAddress addrtype → Address addrtype → Ordering Source #

(<)Address addrtype → Address addrtype → Bool Source #

(<=)Address addrtype → Address addrtype → Bool Source #

(>)Address addrtype → Address addrtype → Bool Source #

(>=)Address addrtype → Address addrtype → Bool Source #

maxAddress addrtype → Address addrtype → Address addrtype Source #

minAddress addrtype → Address addrtype → Address addrtype Source #

Show (Address addrtype) Source # 
Instance details

Defined in Bcc.Api.Address

Methods

showsPrecIntAddress addrtype → ShowS Source #

showAddress addrtype → String Source #

showList ∷ [Address addrtype] → ShowS Source #

HasTypeProxy addrtype ⇒ HasTypeProxy (Address addrtype) Source # 
Instance details

Defined in Bcc.Api.Address

Associated Types

data AsType (Address addrtype) Source #

Methods

proxyToAsTypeProxy (Address addrtype) → AsType (Address addrtype) Source #

SerialiseAsRawBytes (Address SophieAddr) Source # 
Instance details

Defined in Bcc.Api.Address

SerialiseAsRawBytes (Address ColeAddr) Source # 
Instance details

Defined in Bcc.Api.Address

SerialiseAsBech32 (Address SophieAddr) Source # 
Instance details

Defined in Bcc.Api.Address

SerialiseAddress (Address SophieAddr) Source # 
Instance details

Defined in Bcc.Api.Address

SerialiseAddress (Address ColeAddr) 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)

toSophieAddrAddressInEra era → Addr StandardCrypto Source #

fromSophieAddrIsSophieBasedEra era ⇒ Addr StandardCrypto → AddressInEra era Source #

toSophieStakeCredentialStakeCredential → StakeCredential StandardCrypto Source #

fromSophieStakeCredential ∷ StakeCredential StandardCrypto → StakeCredential Source #

data NetworkId Source #

Constructors

Mainnet 
Testnet !NetworkMagic 

Instances

Instances details
Eq NetworkId Source # 
Instance details

Defined in Bcc.Api.NetworkId

Show NetworkId Source # 
Instance details

Defined in Bcc.Api.NetworkId

Stake addresses

data StakeAddress where Source #

Constructors

StakeAddress ∷ Network → StakeCredential StandardCrypto → StakeAddress 

Instances

Instances details
Eq StakeAddress Source # 
Instance details

Defined in Bcc.Api.Address

Ord StakeAddress Source # 
Instance details

Defined in Bcc.Api.Address

Show StakeAddress Source # 
Instance details

Defined in Bcc.Api.Address

HasTypeProxy StakeAddress Source # 
Instance details

Defined in Bcc.Api.Address

Associated Types

data AsType StakeAddress Source #

SerialiseAsRawBytes StakeAddress Source # 
Instance details

Defined in Bcc.Api.Address

SerialiseAsBech32 StakeAddress Source # 
Instance details

Defined in Bcc.Api.Address

SerialiseAddress StakeAddress Source # 
Instance details

Defined in Bcc.Api.Address

data AsType StakeAddress Source # 
Instance details

Defined in Bcc.Api.Address

toSophieStakeAddrStakeAddress → RewardAcnt StandardCrypto Source #

fromSophieStakeAddr ∷ RewardAcnt StandardCrypto → StakeAddress Source #

fromSophieStakeReference ∷ StakeReference StandardCrypto → StakeAddressReference Source #

fromSophiePaymentCredential ∷ PaymentCredential StandardCrypto → PaymentCredential Source #

Building transactions

Constructing and inspecting transactions

data TxBody era where Source #

Constructors

SophieTxBody 

Fields

Instances

Instances details
Eq (TxBody era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

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

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

Show (TxBody era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

showsPrecIntTxBody era → ShowS Source #

showTxBody era → String Source #

showList ∷ [TxBody era] → ShowS Source #

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

Defined in Bcc.Api.TxBody

Associated Types

data AsType (TxBody era) Source #

Methods

proxyToAsTypeProxy (TxBody era) → AsType (TxBody era) Source #

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

Defined in Bcc.Api.TxBody

Methods

serialiseToCBORTxBody era → ByteString Source #

deserialiseFromCBORAsType (TxBody era) → ByteStringEither DecoderError (TxBody era) Source #

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

Defined in Bcc.Api.TxBody

data AsType (TxBody era) Source # 
Instance details

Defined in Bcc.Api.TxBody

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

newtype TxId Source #

Constructors

TxId (Hash StandardCrypto EraIndependentTxBody) 

Instances

Instances details
Eq TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

(==)TxIdTxIdBool Source #

(/=)TxIdTxIdBool Source #

Ord TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

compareTxIdTxIdOrdering Source #

(<)TxIdTxIdBool Source #

(<=)TxIdTxIdBool Source #

(>)TxIdTxIdBool Source #

(>=)TxIdTxIdBool Source #

maxTxIdTxIdTxId Source #

minTxIdTxIdTxId Source #

Show TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

showsPrecIntTxIdShowS Source #

showTxIdString Source #

showList ∷ [TxId] → ShowS Source #

IsString TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

fromStringStringTxId Source #

FromJSON TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

parseJSON ∷ Value → Parser TxId #

parseJSONList ∷ Value → Parser [TxId] #

ToJSON TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

toJSONTxId → Value #

toEncodingTxId → Encoding #

toJSONList ∷ [TxId] → Value #

toEncodingList ∷ [TxId] → Encoding #

FromJSONKey TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

fromJSONKey ∷ FromJSONKeyFunction TxId

fromJSONKeyList ∷ FromJSONKeyFunction [TxId]

ToJSONKey TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

toJSONKey ∷ ToJSONKeyFunction TxId

toJSONKeyList ∷ ToJSONKeyFunction [TxId]

HasTypeProxy TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

Associated Types

data AsType TxId Source #

SerialiseAsRawBytes TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

data AsType TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

toSophieTxIdTxId → TxId StandardCrypto Source #

fromSophieTxId ∷ TxId StandardCrypto → TxId Source #

getTxIdSophie ∷ Crypto (SophieLedgerEra era) ~ StandardCrypto ⇒ UsesTxBody (SophieLedgerEra era) ⇒ SophieBasedEra era → TxBody (SophieLedgerEra era) → TxId Source #

data TxIn Source #

Constructors

TxIn TxId TxIx 

Instances

Instances details
Eq TxIn Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

(==)TxInTxInBool Source #

(/=)TxInTxInBool Source #

Ord TxIn Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

compareTxInTxInOrdering Source #

(<)TxInTxInBool Source #

(<=)TxInTxInBool Source #

(>)TxInTxInBool Source #

(>=)TxInTxInBool Source #

maxTxInTxInTxIn Source #

minTxInTxInTxIn Source #

Show TxIn Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

showsPrecIntTxInShowS Source #

showTxInString Source #

showList ∷ [TxIn] → ShowS Source #

ToJSON TxIn Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

toJSONTxIn → Value #

toEncodingTxIn → Encoding #

toJSONList ∷ [TxIn] → Value #

toEncodingList ∷ [TxIn] → Encoding #

ToJSONKey TxIn Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

toJSONKey ∷ ToJSONKeyFunction TxIn

toJSONKeyList ∷ ToJSONKeyFunction [TxIn]

toSophieTxInTxIn → TxIn StandardCrypto Source #

fromSophieTxIn ∷ TxIn StandardCrypto → TxIn Source #

data TxOut era Source #

Constructors

TxOut (AddressInEra era) (TxOutValue era) (TxOutDatumHash era) 

Instances

Instances details
Eq (TxOut era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

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

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

Show (TxOut era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

showsPrecIntTxOut era → ShowS Source #

showTxOut era → String Source #

showList ∷ [TxOut era] → ShowS Source #

Generic (TxOut era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Associated Types

type Rep (TxOut era) ∷ TypeType Source #

Methods

fromTxOut era → Rep (TxOut era) x Source #

toRep (TxOut era) x → TxOut era Source #

IsBccEra era ⇒ ToJSON (TxOut era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

toJSONTxOut era → Value #

toEncodingTxOut era → Encoding #

toJSONList ∷ [TxOut era] → Value #

toEncodingList ∷ [TxOut era] → Encoding #

type Rep (TxOut era) Source # 
Instance details

Defined in Bcc.Api.TxBody

toSophieTxOut ∷ ∀ era ledgerera. SophieLedgerEra era ~ ledgerera ⇒ SophieBasedEra era → TxOut era → TxOut ledgerera Source #

fromSophieTxOutSophieLedgerEra era ~ ledgerera ⇒ SophieBasedEra era → TxOut ledgerera → TxOut era Source #

newtype TxIx Source #

Constructors

TxIx Word 

Instances

Instances details
Enum TxIx Source # 
Instance details

Defined in Bcc.Api.TxBody

Eq TxIx Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

(==)TxIxTxIxBool Source #

(/=)TxIxTxIxBool Source #

Ord TxIx Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

compareTxIxTxIxOrdering Source #

(<)TxIxTxIxBool Source #

(<=)TxIxTxIxBool Source #

(>)TxIxTxIxBool Source #

(>=)TxIxTxIxBool Source #

maxTxIxTxIxTxIx Source #

minTxIxTxIxTxIx Source #

Show TxIx Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

showsPrecIntTxIxShowS Source #

showTxIxString Source #

showList ∷ [TxIx] → ShowS Source #

FromJSON TxIx Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

parseJSON ∷ Value → Parser TxIx #

parseJSONList ∷ Value → Parser [TxIx] #

ToJSON TxIx Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

toJSONTxIx → Value #

toEncodingTxIx → Encoding #

toJSONList ∷ [TxIx] → Value #

toEncodingList ∷ [TxIx] → Encoding #

newtype Entropic Source #

Constructors

Entropic Integer 

Instances

Instances details
Enum Entropic Source # 
Instance details

Defined in Bcc.Api.Value

Eq Entropic Source # 
Instance details

Defined in Bcc.Api.Value

Num Entropic Source # 
Instance details

Defined in Bcc.Api.Value

Ord Entropic Source # 
Instance details

Defined in Bcc.Api.Value

Show Entropic Source # 
Instance details

Defined in Bcc.Api.Value

Semigroup Entropic Source # 
Instance details

Defined in Bcc.Api.Value

Monoid Entropic Source # 
Instance details

Defined in Bcc.Api.Value

FromJSON Entropic Source # 
Instance details

Defined in Bcc.Api.Value

Methods

parseJSON ∷ Value → Parser Entropic #

parseJSONList ∷ Value → Parser [Entropic] #

ToJSON Entropic Source # 
Instance details

Defined in Bcc.Api.Value

Methods

toJSONEntropic → Value #

toEncodingEntropic → Encoding #

toJSONList ∷ [Entropic] → Value #

toEncodingList ∷ [Entropic] → Encoding #

FromCBOR Entropic Source # 
Instance details

Defined in Bcc.Api.Value

Methods

fromCBOR ∷ Decoder s Entropic #

labelProxy EntropicText #

ToCBOR Entropic Source # 
Instance details

Defined in Bcc.Api.Value

Methods

toCBOREntropic → Encoding #

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

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

toJenValueValue → Value StandardCrypto Source #

fromJenValue ∷ Value StandardCrypto → Value Source #

calcMinimumDepositValueEntropicEntropic Source #

Calculate cost of making a UTxO entry for a given Value and mininimum UTxO value derived from the ProtocolParameters

Signing transactions

Creating transaction witnesses one by one, or all in one go.

data Tx era where Source #

Constructors

SophieTxSophieBasedEra era → Tx (SophieLedgerEra era) → Tx era 

Instances

Instances details
Eq (Tx era) Source # 
Instance details

Defined in Bcc.Api.Tx

Methods

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

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

Show (Tx era) Source # 
Instance details

Defined in Bcc.Api.Tx

Methods

showsPrecIntTx era → ShowS Source #

showTx era → String Source #

showList ∷ [Tx era] → ShowS Source #

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

Defined in Bcc.Api.Tx

Associated Types

data AsType (Tx era) Source #

Methods

proxyToAsTypeProxy (Tx era) → AsType (Tx era) Source #

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

Defined in Bcc.Api.Tx

Methods

serialiseToCBORTx era → ByteString Source #

deserialiseFromCBORAsType (Tx era) → ByteStringEither DecoderError (Tx era) Source #

IsBccEra era ⇒ HasTextEnvelope (Tx 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)

Incremental signing and separate witnesses

data KeyWitness era where Source #

Constructors

SophieBootstrapWitnessSophieBasedEra era → BootstrapWitness StandardCrypto → KeyWitness era 
SophieKeyWitnessSophieBasedEra era → WitVKey Witness StandardCrypto → KeyWitness era 

Instances

Instances details
Eq (KeyWitness era) Source # 
Instance details

Defined in Bcc.Api.Tx

Methods

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

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

Show (KeyWitness era) Source # 
Instance details

Defined in Bcc.Api.Tx

Methods

showsPrecIntKeyWitness era → ShowS Source #

showKeyWitness era → String Source #

showList ∷ [KeyWitness era] → ShowS Source #

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

Defined in Bcc.Api.Tx

Associated Types

data AsType (KeyWitness era) Source #

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

Defined in Bcc.Api.Tx

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

Defined in Bcc.Api.Tx

data AsType (KeyWitness era) Source # 
Instance details

Defined in Bcc.Api.Tx

data SophieSigningKey Source #

We support making key witnesses with both normal and extended signing keys.

Constructors

SophieNormalSigningKey (SignKeyDSIGN StandardCrypto)

A normal ed25519 signing key

SophieExtendedSigningKey XPrv

An extended ed25519 signing key

getSophieKeyWitnessVerificationKeySophieSigningKey → VKey Witness StandardCrypto Source #

makeSophieSignature ∷ SignableRepresentation tosign ⇒ tosign → SophieSigningKey → SignedDSIGN StandardCrypto tosign Source #

Transaction metadata

Embedding additional structured data within transactions.

Protocol parameters

data ProtocolParameters Source #

The values of the set of updateable protocol paramaters. At any particular point on the chain there is a current set of paramaters in use.

These paramaters can be updated (at epoch boundaries) via an UpdateProposal, which contains a ProtocolParametersUpdate.

The ProtocolParametersUpdate is essentially a diff for the ProtocolParameters.

There are also paramaters fixed in the Genesis file. See GenesisParameters.

Constructors

ProtocolParameters 

Fields

Instances

Instances details
Eq ProtocolParameters Source # 
Instance details

Defined in Bcc.Api.ProtocolParameters

Show ProtocolParameters Source # 
Instance details

Defined in Bcc.Api.ProtocolParameters

Generic ProtocolParameters Source # 
Instance details

Defined in Bcc.Api.ProtocolParameters

Associated Types

type Rep ProtocolParametersTypeType Source #

FromJSON ProtocolParameters Source # 
Instance details

Defined in Bcc.Api.ProtocolParameters

Methods

parseJSON ∷ Value → Parser ProtocolParameters #

parseJSONList ∷ Value → Parser [ProtocolParameters] #

ToJSON ProtocolParameters Source # 
Instance details

Defined in Bcc.Api.ProtocolParameters

Methods

toJSONProtocolParameters → Value #

toEncodingProtocolParameters → Encoding #

toJSONList ∷ [ProtocolParameters] → Value #

toEncodingList ∷ [ProtocolParameters] → Encoding #

type Rep ProtocolParameters Source # 
Instance details

Defined in Bcc.Api.ProtocolParameters

type Rep ProtocolParameters = D1 ('MetaData "ProtocolParameters" "Bcc.Api.ProtocolParameters" "bcc-api-1.99.0-inplace" 'False) (C1 ('MetaCons "ProtocolParameters" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "protocolParamProtocolVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Natural, Natural)) :*: (S1 ('MetaSel ('Just "protocolParamDecentralization") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Rational) :*: S1 ('MetaSel ('Just "protocolParamExtraOptimumEntropy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe OptimumNonce)))) :*: (S1 ('MetaSel ('Just "protocolParamMaxBlockHeaderSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "protocolParamMaxBlockBodySize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: S1 ('MetaSel ('Just "protocolParamMaxTxSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))) :*: ((S1 ('MetaSel ('Just "protocolParamTxFeeFixed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "protocolParamTxFeePerByte") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: S1 ('MetaSel ('Just "protocolParamMinUTxOValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Entropic)))) :*: (S1 ('MetaSel ('Just "protocolParamStakeAddressDeposit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Entropic) :*: (S1 ('MetaSel ('Just "protocolParamStakePoolDeposit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Entropic) :*: S1 ('MetaSel ('Just "protocolParamMinPoolCost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Entropic))))) :*: (((S1 ('MetaSel ('Just "protocolParamPoolRetireMaxEpoch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EpochNo) :*: (S1 ('MetaSel ('Just "protocolParamStakePoolTargetNum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: S1 ('MetaSel ('Just "protocolParamPoolPledgeInfluence") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Rational))) :*: (S1 ('MetaSel ('Just "protocolParamMonetaryExpansion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Rational) :*: (S1 ('MetaSel ('Just "protocolParamTreasuryCut") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Rational) :*: S1 ('MetaSel ('Just "protocolParamUTxOCostPerWord") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Entropic))))) :*: ((S1 ('MetaSel ('Just "protocolParamCostModels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map AnyZerepochScriptVersion CostModel)) :*: (S1 ('MetaSel ('Just "protocolParamPrices") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ExecutionUnitPrices)) :*: S1 ('MetaSel ('Just "protocolParamMaxTxExUnits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ExecutionUnits)))) :*: ((S1 ('MetaSel ('Just "protocolParamMaxBlockExUnits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ExecutionUnits)) :*: S1 ('MetaSel ('Just "protocolParamMaxValueSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "protocolParamCollateralPercent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "protocolParamMaxCollateralInputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Natural))))))))

Scripts

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 #

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

toAurumDataScriptData → Data ledgerera Source #

fromAurumData ∷ Data ledgerera → ScriptData Source #

Certificates

data Certificate Source #

Instances

Instances details
Eq Certificate Source # 
Instance details

Defined in Bcc.Api.Certificate

Show Certificate Source # 
Instance details

Defined in Bcc.Api.Certificate

FromCBOR Certificate Source # 
Instance details

Defined in Bcc.Api.Certificate

Methods

fromCBOR ∷ Decoder s Certificate #

labelProxy CertificateText #

ToCBOR Certificate Source # 
Instance details

Defined in Bcc.Api.Certificate

Methods

toCBORCertificate → Encoding #

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

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

HasTypeProxy Certificate Source # 
Instance details

Defined in Bcc.Api.Certificate

Associated Types

data AsType Certificate Source #

SerialiseAsCBOR Certificate Source # 
Instance details

Defined in Bcc.Api.Certificate

HasTextEnvelope Certificate Source # 
Instance details

Defined in Bcc.Api.Certificate

data AsType Certificate Source # 
Instance details

Defined in Bcc.Api.Certificate

toSophieCertificateCertificate → DCert StandardCrypto Source #

fromSophieCertificate ∷ DCert StandardCrypto → Certificate Source #

Operational certificates

data OperationalCertificate Source #

Constructors

OperationalCertificate !(OCert StandardCrypto) !(VerificationKey StakePoolKey) 

Instances

Instances details
Eq OperationalCertificate Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

Show OperationalCertificate Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

FromCBOR OperationalCertificate Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

ToCBOR OperationalCertificate Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

Methods

toCBOROperationalCertificate → Encoding #

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

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

HasTypeProxy OperationalCertificate Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

Associated Types

data AsType OperationalCertificate Source #

SerialiseAsCBOR OperationalCertificate Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

HasTextEnvelope OperationalCertificate Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

data AsType OperationalCertificate Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

data OperationalCertificateIssueCounter Source #

Instances

Instances details
Eq OperationalCertificateIssueCounter Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

Show OperationalCertificateIssueCounter Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

FromCBOR OperationalCertificateIssueCounter Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

ToCBOR OperationalCertificateIssueCounter Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

Methods

toCBOROperationalCertificateIssueCounter → Encoding #

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

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

HasTypeProxy OperationalCertificateIssueCounter Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

SerialiseAsCBOR OperationalCertificateIssueCounter Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

HasTextEnvelope OperationalCertificateIssueCounter Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

data AsType OperationalCertificateIssueCounter Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

data OperationalCertIssueError Source #

Constructors

OperationalCertKeyMismatch (VerificationKey StakePoolKey) (VerificationKey StakePoolKey)

The stake pool verification key expected for the OperationalCertificateIssueCounter does not match the signing key supplied for signing.

Order: pool vkey expected, pool skey supplied

Stake Pool

data StakePoolMetadata Source #

A representation of the required fields for off-chain stake pool metadata.

Constructors

StakePoolMetadata !Text !Text !Text !Text 

Instances

Instances details
Eq StakePoolMetadata Source # 
Instance details

Defined in Bcc.Api.StakePoolMetadata

Show StakePoolMetadata Source # 
Instance details

Defined in Bcc.Api.StakePoolMetadata

FromJSON StakePoolMetadata Source # 
Instance details

Defined in Bcc.Api.StakePoolMetadata

Methods

parseJSON ∷ Value → Parser StakePoolMetadata #

parseJSONList ∷ Value → Parser [StakePoolMetadata] #

HasTypeProxy StakePoolMetadata Source # 
Instance details

Defined in Bcc.Api.StakePoolMetadata

Associated Types

data AsType StakePoolMetadata Source #

Eq (Hash StakePoolMetadata) Source # 
Instance details

Defined in Bcc.Api.StakePoolMetadata

Show (Hash StakePoolMetadata) Source # 
Instance details

Defined in Bcc.Api.StakePoolMetadata

SerialiseAsRawBytes (Hash StakePoolMetadata) Source # 
Instance details

Defined in Bcc.Api.StakePoolMetadata

data AsType StakePoolMetadata Source # 
Instance details

Defined in Bcc.Api.StakePoolMetadata

newtype Hash StakePoolMetadata Source # 
Instance details

Defined in Bcc.Api.StakePoolMetadata

newtype Hash StakePoolMetadata = StakePoolMetadataHash (Hash StandardCrypto ByteString)

stakePoolNameStakePoolMetadataText Source #

A name of up to 50 characters.

stakePoolDescriptionStakePoolMetadataText Source #

A description of up to 255 characters.

stakePoolTickerStakePoolMetadataText Source #

A ticker of 3-5 characters, for a compact display of stake pools in a wallet.

stakePoolHomepageStakePoolMetadataText Source #

A URL to a homepage with additional information about the pool. n.b. the spec does not specify a character limit for this field.

data StakePoolRelay Source #

Constructors

StakePoolRelayIp (Maybe IPv4) (Maybe IPv6) (Maybe PortNumber)

One or both of IPv4 & IPv6

StakePoolRelayDnsARecord ByteString (Maybe PortNumber)

An DNS name pointing to a A or AAAA record.

StakePoolRelayDnsSrvRecord ByteString

A DNS name pointing to a SRV record.

Instances

Instances details
Eq StakePoolRelay Source # 
Instance details

Defined in Bcc.Api.Certificate

Show StakePoolRelay Source # 
Instance details

Defined in Bcc.Api.Certificate

newtype EpochNo #

Constructors

EpochNo 

Fields

Instances

Instances details
Enum EpochNo 
Instance details

Defined in Bcc.Slotting.Slot

Eq EpochNo 
Instance details

Defined in Bcc.Slotting.Slot

Methods

(==)EpochNoEpochNoBool Source #

(/=)EpochNoEpochNoBool Source #

Num EpochNo 
Instance details

Defined in Bcc.Slotting.Slot

Ord EpochNo 
Instance details

Defined in Bcc.Slotting.Slot

Show EpochNo 
Instance details

Defined in Bcc.Slotting.Slot

Generic EpochNo 
Instance details

Defined in Bcc.Slotting.Slot

Associated Types

type Rep EpochNoTypeType Source #

Methods

fromEpochNoRep EpochNo x Source #

toRep EpochNo x → EpochNo Source #

FromJSON EpochNo 
Instance details

Defined in Bcc.Slotting.Slot

Methods

parseJSON ∷ Value → Parser EpochNo #

parseJSONList ∷ Value → Parser [EpochNo] #

NoThunks EpochNo 
Instance details

Defined in Bcc.Slotting.Slot

Methods

noThunks ∷ Context → EpochNoIO (Maybe ThunkInfo)

wNoThunks ∷ Context → EpochNoIO (Maybe ThunkInfo)

showTypeOfProxy EpochNoString

ToJSON EpochNo 
Instance details

Defined in Bcc.Slotting.Slot

Methods

toJSONEpochNo → Value #

toEncodingEpochNo → Encoding #

toJSONList ∷ [EpochNo] → Value #

toEncodingList ∷ [EpochNo] → Encoding #

FromCBOR EpochNo 
Instance details

Defined in Bcc.Slotting.Slot

Methods

fromCBOR ∷ Decoder s EpochNo #

labelProxy EpochNoText #

ToCBOR EpochNo 
Instance details

Defined in Bcc.Slotting.Slot

Methods

toCBOREpochNo → Encoding #

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

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

Serialise EpochNo 
Instance details

Defined in Bcc.Slotting.Slot

Methods

encodeEpochNo → Encoding

decode ∷ Decoder s EpochNo

encodeList ∷ [EpochNo] → Encoding

decodeList ∷ Decoder s [EpochNo]

Condense EpochNo 
Instance details

Defined in Shardagnostic.Consensus.Util.Condense

Methods

condenseEpochNoString

type Rep EpochNo 
Instance details

Defined in Bcc.Slotting.Slot

type Rep EpochNo = D1 ('MetaData "EpochNo" "Bcc.Slotting.Slot" "bcc-slotting-0.1.0.0-31796ee1b38506581e134229951d26120392aac1ce6c978fbf7438ab37ed4173" 'True) (C1 ('MetaCons "EpochNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unEpochNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

Stake pool operator's keys

data StakePoolKey Source #

Instances

Instances details
HasTypeProxy StakePoolKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Associated Types

data AsType StakePoolKey Source #

Key StakePoolKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

CastSigningKeyRole VestedDelegateKey StakePoolKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

CastSigningKeyRole GenesisVestedDelegateKey StakePoolKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

CastSigningKeyRole GenesisDelegateKey StakePoolKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

CastVerificationKeyRole VestedDelegateKey StakePoolKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

CastVerificationKeyRole GenesisVestedDelegateKey StakePoolKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

CastVerificationKeyRole GenesisDelegateKey StakePoolKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Eq (Hash StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Eq (VerificationKey StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Ord (Hash StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (Hash StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (VerificationKey StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Show (SigningKey StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (Hash StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (VerificationKey StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

IsString (SigningKey StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

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 #

FromCBOR (Hash StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

fromCBOR ∷ Decoder s (Hash StakePoolKey) #

labelProxy (Hash StakePoolKey) → Text #

FromCBOR (VerificationKey StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

FromCBOR (SigningKey StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

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 (VerificationKey StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toCBORVerificationKey StakePoolKey → Encoding #

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

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

ToCBOR (SigningKey StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toCBORSigningKey StakePoolKey → Encoding #

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

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

ToJSONKey (Hash StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Methods

toJSONKey ∷ ToJSONKeyFunction (Hash StakePoolKey)

toJSONKeyList ∷ ToJSONKeyFunction [Hash StakePoolKey]

SerialiseAsCBOR (Hash StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsCBOR (VerificationKey StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsCBOR (SigningKey StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (Hash StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (VerificationKey StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsRawBytes (SigningKey StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (VerificationKey StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

HasTextEnvelope (SigningKey StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsBech32 (Hash StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsBech32 (VerificationKey StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

SerialiseAsBech32 (SigningKey StakePoolKey) Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType 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 VerificationKey StakePoolKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype VerificationKey StakePoolKey = StakePoolVerificationKey (VKey 'StakePool StandardCrypto)
newtype SigningKey StakePoolKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

newtype SigningKey StakePoolKey = StakePoolSigningKey (SignKeyDSIGN StandardCrypto)

KES keys

data KesKey Source #

Instances

Instances details
HasTypeProxy KesKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Associated Types

data AsType KesKey Source #

Key KesKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Eq (Hash KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Eq (VerificationKey KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Ord (Hash KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Show (Hash KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Show (VerificationKey KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Show (SigningKey KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

IsString (Hash KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

IsString (VerificationKey KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

IsString (SigningKey KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

FromCBOR (Hash KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Methods

fromCBOR ∷ Decoder s (Hash KesKey) #

labelProxy (Hash KesKey) → Text #

FromCBOR (VerificationKey KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

FromCBOR (SigningKey KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Methods

fromCBOR ∷ Decoder s (SigningKey KesKey) #

labelProxy (SigningKey KesKey) → Text #

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 #

ToCBOR (VerificationKey KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Methods

toCBORVerificationKey KesKey → Encoding #

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

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

ToCBOR (SigningKey KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Methods

toCBORSigningKey KesKey → Encoding #

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

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

SerialiseAsCBOR (Hash KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

SerialiseAsCBOR (VerificationKey KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

SerialiseAsCBOR (SigningKey KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

SerialiseAsRawBytes (Hash KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

SerialiseAsRawBytes (VerificationKey KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

SerialiseAsRawBytes (SigningKey KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

HasTextEnvelope (VerificationKey KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

HasTextEnvelope (SigningKey KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

SerialiseAsBech32 (VerificationKey KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

SerialiseAsBech32 (SigningKey KesKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

data AsType KesKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

newtype Hash KesKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

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

Defined in Bcc.Api.KeysOptimum

newtype VerificationKey KesKey = KesVerificationKey (VerKeyKES StandardCrypto)
newtype SigningKey KesKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

newtype SigningKey KesKey = KesSigningKey (SignKeyKES StandardCrypto)

newtype KESPeriod #

Constructors

KESPeriod 

Fields

Instances

Instances details
Eq KESPeriod 
Instance details

Defined in Bcc.Protocol.TOptimum.OCert

Ord KESPeriod 
Instance details

Defined in Bcc.Protocol.TOptimum.OCert

Show KESPeriod 
Instance details

Defined in Bcc.Protocol.TOptimum.OCert

Generic KESPeriod 
Instance details

Defined in Bcc.Protocol.TOptimum.OCert

Associated Types

type Rep KESPeriodTypeType Source #

NoThunks KESPeriod 
Instance details

Defined in Bcc.Protocol.TOptimum.OCert

Methods

noThunks ∷ Context → KESPeriodIO (Maybe ThunkInfo)

wNoThunks ∷ Context → KESPeriodIO (Maybe ThunkInfo)

showTypeOfProxy KESPeriodString

FromCBOR KESPeriod 
Instance details

Defined in Bcc.Protocol.TOptimum.OCert

Methods

fromCBOR ∷ Decoder s KESPeriod #

labelProxy KESPeriodText #

ToCBOR KESPeriod 
Instance details

Defined in Bcc.Protocol.TOptimum.OCert

Methods

toCBORKESPeriod → Encoding #

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

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

type Rep KESPeriod 
Instance details

Defined in Bcc.Protocol.TOptimum.OCert

type Rep KESPeriod = D1 ('MetaData "KESPeriod" "Bcc.Protocol.TOptimum.OCert" "bcc-protocol-toptimum-0.1.0.0-e4c0ddeda0ea93d48bc0ac574b4d9bf5a041e1f973a8cf794f57007f11331e09" 'True) (C1 ('MetaCons "KESPeriod" 'PrefixI 'True) (S1 ('MetaSel ('Just "unKESPeriod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word)))

VRF keys

data VrfKey Source #

Instances

Instances details
HasTypeProxy VrfKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Associated Types

data AsType VrfKey Source #

Key VrfKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Eq (Hash VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Eq (VerificationKey VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Ord (Hash VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Show (Hash VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Show (VerificationKey VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Show (SigningKey VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

IsString (Hash VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

IsString (VerificationKey VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

IsString (SigningKey VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

FromCBOR (Hash VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Methods

fromCBOR ∷ Decoder s (Hash VrfKey) #

labelProxy (Hash VrfKey) → Text #

FromCBOR (VerificationKey VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

FromCBOR (SigningKey VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Methods

fromCBOR ∷ Decoder s (SigningKey VrfKey) #

labelProxy (SigningKey VrfKey) → Text #

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 (VerificationKey VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Methods

toCBORVerificationKey VrfKey → Encoding #

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

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

ToCBOR (SigningKey VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Methods

toCBORSigningKey VrfKey → Encoding #

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

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

SerialiseAsCBOR (Hash VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

SerialiseAsCBOR (VerificationKey VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

SerialiseAsCBOR (SigningKey VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

SerialiseAsRawBytes (Hash VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

SerialiseAsRawBytes (VerificationKey VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

SerialiseAsRawBytes (SigningKey VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

HasTextEnvelope (VerificationKey VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

HasTextEnvelope (SigningKey VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

SerialiseAsBech32 (VerificationKey VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

SerialiseAsBech32 (SigningKey VrfKey) Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

data AsType VrfKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

newtype Hash VrfKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

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

Defined in Bcc.Api.KeysOptimum

newtype VerificationKey VrfKey = VrfVerificationKey (VerKeyVRF StandardCrypto)
newtype SigningKey VrfKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

newtype SigningKey VrfKey = VrfSigningKey (SignKeyVRF StandardCrypto)

Low level protocol interaction with a Bcc node

data SophieMode Source #

The Sophie-only consensus mode consists of only the Sophie era.

This was used for the early Sophie testnets prior to the use of the multi-era BccMode. It is useful for setting up Sophie test networks (e.g. for benchmarking) without having to go through the complication of the hard fork from Cole to Sophie eras. It also shows how a single-era consensus mode works. It may be replaced by other single-era modes in future.

data ConsensusMode mode where Source #

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

Instances

Instances details
Show (ConsensusMode mode) Source # 
Instance details

Defined in Bcc.Api.Modes

data LocalNodeClientProtocols block point tip tx txerr query m Source #

The protocols we can use with a local node. Use in conjunction with connectToLocalNode.

These protocols use the types from the rest of this API. The conversion to/from the types used by the underlying wire formats is handled by connectToLocalNode.

Constructors

LocalNodeClientProtocols (LocalChainSyncClient block point tip m) (Maybe (LocalTxSubmissionClient tx txerr m ())) (Maybe (LocalStateQueryClient block point query m ())) 

Sophie based eras

type family SophieLedgerEra era where ... Source #

A type family that connects our era type tags to equivalent type tags used in the Sophie ledger library.

This type mapping connect types from this API with types in the Sophie ledger library which allows writing conversion functions in a more generic way.

Equations

SophieLedgerEra SophieEra = StandardSophie 
SophieLedgerEra EvieEra = StandardEvie 
SophieLedgerEra JenEra = StandardJen 
SophieLedgerEra AurumEra = StandardAurum 

Local State Query

data DebugLedgerState era where Source #

Constructors

DebugLedgerStateSophieLedgerEra era ~ ledgerera ⇒ NewEpochState ledgerera → DebugLedgerState era 

Instances

Instances details
(IsSophieBasedEra era, SophieLedgerEra era ~ ledgerera, SophieBasedEra ledgerera, ToJSON (PParams ledgerera), ToJSON (PParamsDelta ledgerera), ToJSON (TxOut ledgerera)) ⇒ ToJSON (DebugLedgerState era) Source # 
Instance details

Defined in Bcc.Api.Query

Methods

toJSONDebugLedgerState era → Value #

toEncodingDebugLedgerState era → Encoding #

toJSONList ∷ [DebugLedgerState era] → Value #

toEncodingList ∷ [DebugLedgerState era] → Encoding #

(Typeable era, TransLedgerState FromCBOR (SophieLedgerEra era)) ⇒ FromCBOR (DebugLedgerState era) Source # 
Instance details

Defined in Bcc.Api.Query

Methods

fromCBOR ∷ Decoder s (DebugLedgerState era) #

labelProxy (DebugLedgerState era) → Text #

newtype ProtocolState era Source #

Constructors

ProtocolState (Serialised (ChainDepState (Crypto (SophieLedgerEra era)))) 

newtype SerialisedDebugLedgerState era Source #

Constructors

SerialisedDebugLedgerState (Serialised (NewEpochState (SophieLedgerEra era))) 

newtype UTxO era Source #

Constructors

UTxO (Map TxIn (TxOut era)) 

Instances

Instances details
Eq (UTxO era) Source # 
Instance details

Defined in Bcc.Api.Query

Methods

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

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

Show (UTxO era) Source # 
Instance details

Defined in Bcc.Api.Query

Methods

showsPrecIntUTxO era → ShowS Source #

showUTxO era → String Source #

showList ∷ [UTxO era] → ShowS Source #

IsBccEra era ⇒ ToJSON (UTxO era) Source # 
Instance details

Defined in Bcc.Api.Query

Methods

toJSONUTxO era → Value #

toEncodingUTxO era → Encoding #

toJSONList ∷ [UTxO era] → Value #

toEncodingList ∷ [UTxO era] → Encoding #

Conversions

fromSophiePParams ∷ PParams ledgerera → ProtocolParameters Source #