Skip to main content

Module precomputed_trees

Module precomputed_trees 

Source
Expand description

Note commitment trees computed for a block before its commit, so the commit can reuse them.

A mining candidate computes the trees for a block right after its proof of work is checked. The block’s commit needs the same trees, so it reuses the candidate’s result when the inputs match, instead of repeating the Sinsemilla and Pedersen hashing.

Structs§

PrecomputedTrees 🔒
The note commitment trees after a block, and the parent trees they were computed from.