SnapshotNodeVerifier

org.sigilaris.node.jvm.runtime.consensus.hotstuff.SnapshotNodeVerifier

Verifies the integrity of fetched snapshot trie nodes by checking their hashes.

Attributes

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

Members list

Value members

Concrete methods

def rootHash(stateRoot: StateRoot): MerkleHash

Converts a state root to its equivalent Merkle hash for snapshot traversal.

Converts a state root to its equivalent Merkle hash for snapshot traversal.

Attributes

Source
SnapshotSync.scala
def verifyBatch(nodes: Vector[SnapshotTrieNode]): Either[SnapshotSyncFailure, Vector[SnapshotTrieNode]]

Verifies a batch of snapshot trie nodes, checking each hash matches the node content.

Verifies a batch of snapshot trie nodes, checking each hash matches the node content.

Attributes

Source
SnapshotSync.scala