final case class ViewPosition(position: List[MerklePathElement]) extends AnyVal with Product with Serializable
A position encodes the path from a view in a transaction tree to its root. The encoding must not depend on the hashes of the nodes.
- position
The path from the view to the root as a singly-linked list. The path starts at the view rather than the root so that paths to the root can be shared.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ViewPosition
- Serializable
- Product
- Equals
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ViewPosition(position: List[MerklePathElement])
- position
The path from the view to the root as a singly-linked list. The path starts at the view rather than the root so that paths to the root can be shared.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- def +:(index: MerklePathElement): ViewPosition
Adds a ViewPosition.MerklePathElement at the start of the path.
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def encodeDeterministically: ByteString
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val position: List[MerklePathElement]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def reverse: ViewPositionFromRoot
Reverse the position, as well as all contained MerkleSeqIndex path elements