Expand description
Vote proof builder (ZKP #2).
Constructs a vote proof from delegation key material, a vote commitment
tree witness, and vote parameters. Lives inside the orchard crate to
access pub(crate) key internals.
El Gamal encryption randomness and share blind factors are derived deterministically via a Blake2b-512 PRF keyed by the spending key and bound to the specific VAN being spent, enabling crash recovery without persisting secrets and preventing nonce reuse across VANs.
Structs§
- Encrypted
Share Output - Encrypted share output from the vote proof builder.
- Vote
Proof Bundle - Result of building a vote proof.
Enums§
- Vote
Proof Build Error - Errors that can occur during vote proof construction.
Functions§
- build_
vote_ proof_ from_ delegation - Build a real vote proof (ZKP #2) from delegation key material.
- denomination_
split - Decompose
num_ballotsinto [NUM_SHARES] shares using a greedy denomination strategy with randomized remainder distribution. - derive_
share_ blind - Derive deterministic blind factor
blind_ifor a share commitment. - derive_
share_ randomness - Derive deterministic El Gamal randomness
r_ifor a share.