The Whitelist strategy on Snapshot X assigns specific voting power to chosen addresses. It uses a format of address:voting_power
and a Merkle tree for onchain verification. A list of addresses with their voting powers is created and converted into a Merkle tree. Only the tree's "root" is stored on-chain. During voting, users prove their inclusion in the list using Merkle proofs. This approach saves gas, allows easy updates, and provides precise control over voting power distribution.
โ
Here's a simplified example of the Whitelist strategy parameters with 3 addresses:
0x1234567890123456789012345678901234567890:100
0xabcdefabcdefabcdefabcdefabcdefabcdefabcd:50
0x9876543210987654321098765432109876543210:75
In this example, the first address has 100 voting power, the second address has 50 voting power, and the third address has 75 voting power.