DatumOption

scalus.cardano.ledger.DatumOption
See theDatumOption companion object
sealed trait DatumOption

Represents a datum option in Cardano outputs

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Hash
class Inline

Members list

Value members

Concrete 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

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

def dataHashOption: Option[DataHash]
def dataOption: Option[Data]