Skip to content

[academy] Implement Parallel Cross-Shard Voting Tally Example #607

@0xAleksaOpacic

Description

@0xAleksaOpacic

Description:

This project explores how to distribute voting tally calculations across multiple shards. Each shard handles counting votes for a specific subset of voters (e.g., regions, districts) and reports back asynchronously. The results are aggregated once all shards complete their tallying.

##Example Workflow:

  1. Shard 1: A voting contract initiates the tallying process, delegating vote counting to different shards
  2. Async Call: The contract sends asynchronous messages to multiple shards, assigning them specific regions or voter groups
  3. Shard 2, 3, etc.: Each shard processes votes independently and sends back its results
  4. Shard 1: The contract collects and aggregates all vote counts into a final result

Why It’s Useful:

This example demonstrates how distributed vote counting can improve scalability in elections while utilizing the parallel processing capabilities of a sharded blockchain.

Project: Academy Repository

Metadata

Metadata

Assignees

Labels

ODHack12Tag for issues which are suitable for ODHack weekacademy

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions