StateRoot

org.sigilaris.node.jvm.runtime.block.Model$package.StateRoot
object StateRoot

Companion for StateRoot.

Attributes

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

Members list

Value members

Concrete methods

def apply(value: UInt256): StateRoot

Wraps a UInt256 as a StateRoot.

Wraps a UInt256 as a StateRoot.

Value parameters

value

the raw 256-bit hash value

Attributes

Returns

the corresponding state root

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

Parses a hex string into a StateRoot.

Parses a hex string into a StateRoot.

Value parameters

value

hex-encoded 256-bit value

Attributes

Returns

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

Source
Model.scala

Givens

Givens

Attributes

Source
Model.scala

Extensions

Extensions

extension (stateRoot: StateRoot)
def toHexLower: String

Renders the state root as a lowercase hex string.

Renders the state root as a lowercase hex string.

Attributes

Source
Model.scala

Unwraps the underlying UInt256.

Unwraps the underlying UInt256.

Attributes

Source
Model.scala