BlockRecordHash

org.sigilaris.node.jvm.runtime.block.Model$package.BlockRecordHash

Companion for BlockRecordHash.

Attributes

Source
Model.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

Attributes

Source
Model.scala
Supertypes
trait Ordering[BlockRecordHash]
trait PartialOrdering[BlockRecordHash]
trait Equiv[BlockRecordHash]
trait Serializable
trait Comparator[BlockRecordHash]
class Object
trait Matchable
class Any
Show all
Self type

Value members

Concrete methods

Wraps a UInt256 as a BlockRecordHash.

Wraps a UInt256 as a BlockRecordHash.

Value parameters

value

the raw 256-bit hash value

Attributes

Returns

the corresponding record hash

Source
Model.scala
def compute[TxRef : ByteEncoder, ResultRef : ByteEncoder, Event : ByteEncoder](record: BlockRecord[TxRef, ResultRef, Event]): BlockRecordHash

Computes the canonical hash for a given block record.

Computes the canonical hash for a given block record.

Type parameters

Event

event type

ResultRef

result reference type

TxRef

transaction reference type

Value parameters

record

the block record to hash

Attributes

Returns

the computed record hash

Source
Model.scala
def fromHex(value: String): Either[String, BlockRecordHash]

Parses a hex string into a BlockRecordHash.

Parses a hex string into a BlockRecordHash.

Value parameters

value

hex-encoded 256-bit value

Attributes

Returns

Right(hash) on success, or Left(error) on parse failure

Source
Model.scala

Extensions

Extensions

extension (recordHash: BlockRecordHash)
def toHexLower: String

Renders the record hash as a lowercase hex string.

Renders the record hash as a lowercase hex string.

Attributes

Source
Model.scala

Unwraps the underlying UInt256.

Unwraps the underlying UInt256.

Attributes

Source
Model.scala