cardano-ledger-binary-1.10.0.0: Binary serialization library used throughout ledger
Safe HaskellNone
LanguageHaskell2010

Cardano.Ledger.Binary.Plain

Contents

Description

Module that re-exports everythign from `cardano-binary` package.

Everything that gets defined in this module should most likely be migrated to `cardano-binary` package.

Synopsis

Documentation

invalidKey ∷ (Typeable a, MonadFail m) ⇒ Word → m a Source #

Report an error when a numeric key of the type constructor doesn't match.

decodeRecordNamed ∷ Text → (a → Int) → Decoder s a → Decoder s a Source #

decodeRecordNamedT ∷ (MonadTrans m, Monad (m (Decoder s))) ⇒ Text → (a → Int) → m (Decoder s) a → m (Decoder s) a Source #

decodeRecordSum ∷ Text → (Word → Decoder s (Int, a)) → Decoder s a Source #

decodeListLikeT Source #

Arguments

∷ (MonadTrans m, Monad (m (Decoder s))) 
⇒ Text

Name for error reporting

→ m (Decoder s) a

Decoder for the datastructure itself

→ (a → Int → m (Decoder s) ())

In case when length was provided, act upon it.

→ m (Decoder s) a 

serializeAsHexText ∷ ToCBOR a ⇒ a → Text Source #

Encode a type as CBOR and encode it as base16

decodeFullFromHexText ∷ FromCBOR a ⇒ Text → Either DecoderError a Source #

Try decoding base16 encode bytes and then try to decoding them as CBOR

encodeEnum ∷ Enum a ⇒ a → Encoding Source #

DSIGN

KES

VRF