StateRoot
org.sigilaris.node.jvm.runtime.block.Model$package.StateRoot
object StateRoot
Companion for StateRoot.
Attributes
- Source
- Model.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
StateRoot.type
Members list
Value members
Concrete methods
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
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, orLeft(error)on parse failure - Source
- Model.scala
Givens
Extensions
Extensions
extension (stateRoot: StateRoot)
Renders the state root as a lowercase hex string.
Unwraps the underlying UInt256.
In this article