cardano-ledger-binary-1.3.3.0: Binary serialization library used throughout ledger
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Ledger.Binary.FlatTerm

Synopsis

Documentation

type FlatTerm = [TermToken] Source #

A "flat" representation of an Encoding value, useful for round-tripping and writing tests.

Since: cborg-0.2.0.0

data TermToken Source #

A concrete encoding of Encoding values, one which mirrors the original Encoding type closely.

Since: cborg-0.2.0.0

Instances

Instances details
Show TermToken 
Instance details

Defined in Codec.CBOR.FlatTerm

FromCBOR TermToken 
Instance details

Defined in Cardano.Binary.FromCBOR

Eq TermToken 
Instance details

Defined in Codec.CBOR.FlatTerm

Ord TermToken 
Instance details

Defined in Codec.CBOR.FlatTerm

fromFlatTermVersion → (∀ s. Decoder s a) → FlatTermEither String a Source #

validFlatTerm Source #

Arguments

FlatTerm

The input FlatTerm

Bool

True if valid, False otherwise.

Ensure a FlatTerm is internally consistent and was created in a valid manner.

Since: cborg-0.2.0.0