Save roots of complete 2^16 subtrees within the Sapling commitment trees #6335
Labels
A-light-clients
Area: Light clients
A-orchard
Area: Orchard protocol
A-sapling
Area: Sapling protocol
Milestone
In order to use
shardtree
efficiently in a mobile client,lightwalletd
needs to be able to supply it with information about roots of 216 subtrees within the commitment tree. We needzcashd
to store this information.Currently,
zcashd
stores anIncrementalMerkleTree
state as of the end of every block. This is a tree frontier, onto which new leaves can be appended to move the frontier forward, but that does not store any information allowing leaf removals.We only need to store the roots of the 216 subtrees:
Additionally, because this is at most 2MiB of data, and we'll want it for the internal Orchard wallet eventually, we will just collect these roots for all nodes (not just when the
-lightwalletd
option is specified).zcashd
should store:The text was updated successfully, but these errors were encountered: