- The CurveTrees class is a useful object for updating the curve
trees merkle tree. It is instantiated with the widths of each layer
in the tree, as well as the curve objects themselves.
- The outputs_to_leaves function takes in outputs that enter the
chain, and converts them into valid leaves prepared to be inserted
to the curve trees merkle tree. We do not add invalid outputs to
the tree, so outputs_to_leaves checks outputs for validity and only
includes the valid outputs in the final response.