given_Decoder_Metadatum
scalus.cardano.ledger.Metadatum.given_Decoder_Metadatum
object given_Decoder_Metadatum extends Decoder[Metadatum]
CBOR decoder for TransactionMetadatum.
It does not recurse over the nesting: it keeps the arrays and maps it has opened on the heap (NestedCbor), so how deep it reads does not depend on the stack of the thread that reads, with one exception: a map compares and hashes its keys, and the equality and the hash of a key recurse over it, as those of a case class do. It reads at most scalus.serialization.cbor.Cbor.maxMetadataAndScriptNestingLevels levels: a deeper metadatum fails to decode.
An array is read as borer reads an IndexedSeq, into a Vector, and a map as borer reads an immutable.Map: a later entry of a key replaces an earlier one.
Attributes
- Graph
-
- Supertypes
- Self type
Members list
In this article