Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ALP05: Off-chain tabulation of votes #5
Proposal: ALP05 Off-Chain tabulation
Author(s): Luke Duncan
Last updated: 12/5/2017
In order for a vote to be used to execute an action such as calling an arbitrary function, the result of the vote must be tabulated. Doing this tabulation can be expensive. Votes can be tabulated when cast, distributing the cost across all voters, or votes can be tabulated in batches at the end of a poll. Tabulation at the end lends itself well to off-chain scalability solutions, in particular interactive verification solutions like Truebit seem like promising approaches that could reduce voting cost significantly.
At a minimum a successful implementation would enable the following user stories.
Carbon-vote style applications are relatively simple, and the cost to participate is low. They can include both direct voting and delegation, including complex delegation chains. By moving the logic for validation and tabulation off-chain we minimize the amount of calculation that happens on the main chain which may present significant cost savings.
It is unclear how expensive computation will be on the main chain in the future as things like proof-of-stake and sharding come online, but it is almost certain that it will be more expensive than computation that are done in second-layer solutions.