A state leaf represents a user's participation declared through an identity (their public key) and information relevant to their ability or right to cast votes in a poll (their voice credit balance and the block timestamp at which they signed up).
We define a state leaf sl as the poseidon4 hash of the following:
Symbol | Name | Comments |
---|
slPx | Public key's x-coordinate | |
slPy | Public key's y-coordinate | |
slv | Voice credit balance | |
slt | Block timestamp | In Unix time (seconds since Jan 1 1970 UTC) |
The hash sl is computed as such:
sl=poseidon4([slAx,slAy,slv,slt])
Blank state leaf
A blank state leaf slB has the following value:
6769006970205099520508948723718471724660867171122235270773600567925038008762
This value is computed as such:
Abx