BlockRecordHash
org.sigilaris.node.jvm.runtime.block.Model$package.BlockRecordHash
object BlockRecordHash
Companion for BlockRecordHash.
Attributes
- Source
- Model.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
BlockRecordHash.type
Members list
Type members
Classlikes
object given_Ordering_BlockRecordHash extends Ordering[BlockRecordHash]
Attributes
- Source
- Model.scala
- Supertypes
-
trait Ordering[BlockRecordHash]trait PartialOrdering[BlockRecordHash]trait Equiv[BlockRecordHash]trait Serializabletrait Comparator[BlockRecordHash]class Objecttrait Matchableclass AnyShow 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
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, orLeft(error)on parse failure - Source
- Model.scala
Givens
Extensions
Extensions
extension (recordHash: BlockRecordHash)
Renders the record hash as a lowercase hex string.
Unwraps the underlying UInt256.
In this article