Inline

scalus.cardano.ledger.DatumOption.Inline
See theInline companion object
final case class Inline extends DatumOption

Inline datum value, with the CBOR it arrived in, spec [SC-13b].

Haskell memoizes these bytes (BinaryData), and so does this: the encoder writes them back, and two inline datums are equal only if their bytes are, spec [SC-13g]. Build one with Inline(data), and read its Data with case Inline(d).

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait DatumOption
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def data: Data

The datum value.

The datum value.

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def contentEquals(other: DatumOption): Boolean

Return true when the semantic content is the same (handles hash vs inline). Two inline datums compare by their Data, not their bytes, spec [SC-13h]. A hash compares with the hash of the original bytes of an inline datum, spec [SC-13l].

Return true when the semantic content is the same (handles hash vs inline). Two inline datums compare by their Data, not their bytes, spec [SC-13h]. A hash compares with the hash of the original bytes of an inline datum, spec [SC-13l].

Attributes

Inherited from:
DatumOption

The datum hash. For an inline datum, the hash of its original bytes, spec [SC-13i].

The datum hash. For an inline datum, the hash of its original bytes, spec [SC-13i].

Attributes

Inherited from:
DatumOption
def dataHashOption: Option[DataHash]

Attributes

Inherited from:
DatumOption
def dataOption: Option[Data]

Attributes

Inherited from:
DatumOption
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product