Node

merkle.MerkleTree.Node
class Node extends MerkleTree

Attributes

Graph
Supertypes
class MerkleTree
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def render(colors: Boolean = ...): Vector[String]

Renders the tree as a list of strings.

Renders the tree as a list of strings.

Value parameters

colors

whether to use ASCII colours or not

Attributes

Inherited from:
MerkleTree
def renderToString(colors: Boolean = ...): String

Attributes

Inherited from:
MerkleTree
def serialise(toHashID: Hasher => Option[String] = ..., toBytesID: (ToBytes[Any]) => Option[String] = ...): Result[Vector[String]]

Attributes

Inherited from:
MerkleTree
def serialiseToString(toHashID: Hasher => Option[String] = ..., toBytesID: (ToBytes[Any]) => Option[String] = ...): Result[String]

Attributes

Inherited from:
MerkleTree

Concrete fields

lazy val hash: Result[Array[Byte]]

Hash of this node contents. IMPORTANT: hash computation is lazy and cached. The only reason this is a def and not a lazy val is that Scala does not allow abstract lazy values

Hash of this node contents. IMPORTANT: hash computation is lazy and cached. The only reason this is a def and not a lazy val is that Scala does not allow abstract lazy values

Attributes

val hasher: Hasher

Instance of the Hasher used to produce hashes

Instance of the Hasher used to produce hashes

Attributes

val label: String

Human-readable label for this node. Labels are important – they are preserved in (de-)serialisation, are present in the rendering, and are used for structural checks when constructing a DiffTree

Human-readable label for this node. Labels are important – they are preserved in (de-)serialisation, are present in the rendering, and are used for structural checks when constructing a DiffTree

Attributes

Inherited fields

lazy val hashString: Result[String]

Stringified hex representation of the hash of the data (see hash)

Stringified hex representation of the hash of the data (see hash)

Attributes

Inherited from:
MerkleTree