Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aztec Workshop 1 - Noir Apps Sprint #490

Open
0xrafi opened this issue Feb 4, 2025 · 0 comments
Open

Aztec Workshop 1 - Noir Apps Sprint #490

0xrafi opened this issue Feb 4, 2025 · 0 comments

Comments

@0xrafi
Copy link

0xrafi commented Feb 4, 2025

Demonstrating a potential Aztec feature that could be added to Noir starter kit 1 (StealthNote)

The feature could be adding simple voting to StealthNote through a basic contract for each privacy preserving post.

  1. Verify Employment (Existing)
  • Already using Noir JWT library to verify employment status
  1. Add Private Voting Contract
  1. Basic Implementation
  • Each post gets a unique ID
  • Contract stores:
    • Vote tallies (public)
    • Admin address (public)
    • Vote status (public)
    • Individual votes (private)
  1. Flow
  • User proves employment with existing JWT verification
  • If verified, they can vote privately on posts
  • Votes are executed clientside in PXE
  • Only final tallies are public
  1. Integration
  • JWT library / starter kit circuit fro verification
  • Use Aztec.js for private voting interactions
  • Keep frontend simple: just "upvote/downvote" buttons that trigger private transactions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants