Skip to main content

Module client

Module client 

Source
Expand description

Client-side vote commitment tree.

TreeClient maintains a sparse local copy of the tree for witness generation. It syncs from a TreeSyncApi source (the server), marks positions of interest, and generates Merkle authentication paths.

This mirrors how Zcash wallets use ShardTree via WalletCommitmentTrees: the client receives all leaves (no trial decryption needed since all vote-tree leaves are public), inserts them, and generates witnesses only for its own marked positions.

Structs§

TreeClient
Client-side sparse vote commitment tree.

Enums§

SyncError
Errors that can occur during TreeClient::sync.