Vote

Inputs

Pseudocode namezk-SNARK input typeDescription
rootPublicA merkle root of the tree.
nullifierHashPublicA value ℎ output of ℎ = 𝘏1(𝑘).
nullifierPrivateA private known 𝑘 value at the time of deposit.
secretPrivateA private known 𝑟 value at the time of deposit.
path_elements[levels]PrivatePrivate path elements to prove the existence of the current leaf represented by 𝑂(𝜏, 𝜄) at the time of deposit.
path_index[levels]PrivateA private path index 𝜄 from merkle tree at the time of deposit.
recipientPublicA recipient ethereum address.
relayerPublicA relayer ethereum address. (optional)
feePublicA relayer fee. (optional)

Outputs

Pseudocode namezk-SNARK input typeDescription
new_rootPublicAn updated merkle root of the tree.