Module tallytree::navigate[][src]

Expand description

Functions for navigating the merkle tally tree.


Finds the two nearest sibling vote references of a given reference. The given reference does not need to exist. A boolean representing if it exists or not is returned.

Find the path to the inner node furthest down to the right. Returns all nodes in the path.

Find a node in a merkle tally tree given a vote reference. Returns all nodes in the path.

Find the depth of the merkle tally tree at this node, including leaf wrapper nodes.

Type Definitions

A pair of vote references