Vote
Inputs
Pseudocode name | zk-SNARK input type | Description |
---|---|---|
root | Public | A merkle root of the tree. |
nullifierHash | Public | A value ℎ output of ℎ = 𝘏1(𝑘) . |
nullifier | Private | A private known 𝑘 value at the time of deposit. |
secret | Private | A private known 𝑟 value at the time of deposit. |
path_elements[levels] | Private | Private path elements to prove the existence of the current leaf represented by 𝑂(𝜏, 𝜄) at the time of deposit. |
path_index[levels] | Private | A private path index 𝜄 from merkle tree at the time of deposit. |
recipient | Public | A recipient ethereum address. |
Outputs
Pseudocode name | zk-SNARK input type | Description |
---|---|---|
new_root | Public | An updated merkle root of the tree. |