Cointime

Download App
iOS & Android

Building a private, on-chain, implementation for RetroPGF

From optimism By samajammin

Hello Optimism Collective!

Excited to share plans on a project our team has been working on over the past few weeks.

Our goal is simple - we’d like to add private, bribery-resistant, on-chain voting to Optimism’s RetroPGF rounds.

Who are we?

We’re the core team working on MACI, an on-chain voting platform which protects privacy and minimizes the risk of collusion and bribery. We’re an engineering team within PSE 1, which is supported by the Ethereum Foundation

You can learn more about MACI in our documentation.

What are we doing?

We’re building a proof-of-concept RPGF implementation that supports private on-chain voting for badgeholders of the Citizens House.

  • Thanks to folks at Gitcoin & their work on EasyRetroPGF, we have a purpose-built web app that we’re forking for our frontend
  • For the “backend”, we’re essentially swapping out the SQL database for the MACI smart contracts
  • For badgeholder verification, we’ve built an EAS gatekeeper contract which ensures only OP badgeholders are eligible to register to vote
  • In line with PSE’s mission 1 and inspired by the efforts of EasyRetroPGF, we also open-source all our code in case it’s beneficial for others

Here’s the source code:

GitHub

GitHub - privacy-scaling-explorations/maci-rpgf: RPGF with MACI 3

RPGF with MACI. Contribute to privacy-scaling-explorations/maci-rpgf development by creating an account on GitHub.

Here’s where were tracking our progress:

GitHub

MACI team sprint board • privacy-scaling-explorations 3

MACI team sprint board

Why are we doing this?

In many ways, Optimism’s RPGF rounds are already a massive success. It seems the process worked in round 3 but - like many of you - we see several areas that can be improved.

For one, the RPGF process currently depends heavily on the OP foundation to act honestly and competently. In round 3, the community had to trust that:

  • Only badgeholders would be able to submit ballots
  • No badgeholder ballots would be censored or manipulated or double-counted
  • The final tally of ballots would be calculated correctly

If we think about what security properties are critical to a voting, Vitalik outlined this in his blog post (Blockchain voting is overrated among uninformed people but underrated among informed people) as well as anyone could:

Any voting system requires a few crucial security properties in order to be trusted by users:

  • Correct execution: the results (tally of votes) must be correct, and the results must be guaranteed by a transparent process (so that everyone is convinced that the results are correct)
  • Censorship resistance: anyone eligible to vote should be able to vote, and it should not be possible to interfere with anyone’s attempt to vote or to prevent anyone’s vote from being counted
  • Privacy: no one should be able to tell which candidate anyone voted for, or if they even voted at all
  • Coercion resistance: you should not be able to prove to someone else how you voted, even if you want to

Unfortunately RPGF currently fails in all 4 dimensions. As RPGF continues to grow, we think the need to enforce process integrity will be of upmost importance.

Talking with the folks from the OP foundation about, they’ve mentioned some key requirements for future versions of their RPGF stack:

  • Provably correct execution - They’d want to demonstrate the legitimacy to community in terms of how ballots are submitted and calculated
  • Privacy protection - They want to ensure not just voter privacy, but also vote privacyWhy? While voter privacy alone would offer some valuable protection, if the votes are public, there’s the chance that data sleuths would be able to deduce the identity of some badgeholders. e.g. say a badgeholder publicly declares a few projects where they have conflicts of interest. If they are the only badgeholder who does NOT vote for those specific projects, anyone would be able view their public ballot and tie it to that specific badgeholder, thus circumventing this supposed privacy protection
  • Why? While voter privacy alone would offer some valuable protection, if the votes are public, there’s the chance that data sleuths would be able to deduce the identity of some badgeholders. e.g. say a badgeholder publicly declares a few projects where they have conflicts of interest. If they are the only badgeholder who does NOT vote for those specific projects, anyone would be able view their public ballot and tie it to that specific badgeholder, thus circumventing this supposed privacy protection
  • Collusion resistance - given the money at stake with RPGF, bribery resistance is a key component for any RPGF implementation

What solutions exist?

We reviewed the options in this private voting report: State of Private Voting

It’s great to see an array of private on-chain voting solutions emerging! As you can see from the report, each has a unique set of features and trade-offs with their implementation.

Image 2024-02-28 at 15.00.571470×734 205 KB

Why did we decide on this implementation?

A number of projects solve some of the above requirements, but again - given the money at stake with RPGF, we feel that collusion resistance (”Briber Protection”, in that report), is an essential component for any RPGF implementation. Currently MACI is the only project with all 3 of these features:

Image 2024-02-26 at 19.13.391326×640 179 KB

An RPGF MACI integration has the potential to provide several important security guarantees to the RPGF voting process:

  1. Correct execution: With MACI, user registration, voting data and poll logic is stored on-chain. While tallying computation is handled off-chain, ZK-proofs guarantee the correct execution of this logic. In this way, we know the result (tally of votes) will be correct, and the results are guaranteed by a transparent process (anyone can verify that the result is correct) .
  2. Censorship resistance: With voter verification (via an EAS attestation gatekeeper) and vote submission happening on-chain, there’s no way for anyone (including the OP foundation) to censor any badgeholder votes.
  3. Privacy: With MACI’s receipt-free voting scheme, we’re able to ensure that results are transparent, but it is impossible for outsiders to verify how any specific user voted (since on-chain votes are encrypted). Vote tallying takes place off-chain but ZKPs are submitted and verified on-chain, which guarantees votes are counted correctly without revealing the individual votes.
  4. Coercion resistance: With MACI’s private, receipt-free votes, this makes cheating (like bribery) much harder. User’s cannot prove which option they voted for, and therefore bribers cannot reliably trust that a user voted for their preferred option. This prevents any bribers from simply reading the transaction data to see which option a user voted for.

Input/Feedback?

We’d love to hear feedback on this plan! The implementation is in-progress but we’re happy to make potential adjustments based on community input.

If there are any badgeholders interested in being user-testers for us, please let us know and we’ll get in touch to schedule an user interview once we have a working demo up and running on a testnet! Feel free to comment here, hop into the PSE Discord (#🗳️-maci channel), hit us up on Twitter/X 1, or reach out to me directly (sam at ethereum dot org).

Comments

All Comments

Recommended for you

  • ZeroLend will open ZERO airdrop claims on Linea at 15:30 on May 6th, and will take a snapshot closer to TGE

    On May 6th, ZeroLend, a decentralized lending protocol, announced that ZERO airdrop claiming will be opened on Linea at 15:30 on May 6th, and ZERO trading will be opened at 16:00. The Zero Gravity points and earlyZERO (1 earlyZERO = 1 ZERO) accumulated by users will be automatically converted to ZERO and displayed on the reward page. In terms of airdrop distribution, ZeroLend will distribute 18% of the token supply to the community, of which 5% will be allocated to Zero Gravity participants and 13% will be allocated to earlyZERO holders. ZeroLend stated that a snapshot will be taken near TGE. ZERO stakers will receive voting rights, staking rewards, and potential future airdrops based on their voting power. If staked for more than 1 year, a staking bonus of 5%-20% can be obtained.

  • It is estimated that there are about 28 days left before ETC production cuts

    Data shows that Ethereum Classic (ETC) is expected to undergo a reduction in production on June 3, 2024, which is about 28 days and 6 hours away. The current block reward is 2.56 ETC, and after the reduction, it will be 2.048 ETC.

  • South Korea's Seoul Prosecutors' Office recovers and seizes 7.6 billion won worth of Ethereum

    The cybercrime investigation team of the Seoul Eastern District Prosecutor's Office in South Korea announced that they have recovered a deleted electronic wallet from a fraud suspect and seized 760 million Korean won (approximately $5.6 million) worth of Ethereum.

  • The total value of Starknet bridge storage exceeds 900,000 ETH

    According to Dune data, the total value bridged (TVB) by Ethereum Layer 2 solution Starknet has exceeded 900,000 ETH, reaching 901,512 ETH, which is approximately worth $2.84 billion at current prices. The total number of bridged user addresses is 1,225,098.

  • NFT transactions on the Bitcoin chain exceeded $55 million in the past 7 days

    According to CryptoSlam data, the Bitcoin on-chain NFT transaction volume in the past seven days reached 55.02 million US dollars, Ethereum NFT transaction volume reached 48.7 million US dollars, and Solana NFT transaction volume reached 24.62 million US dollars.

  • USDe issuance is nearly 2.3 billion

    According to Etherscan data reported, the stablecoin USDe issued by Ethena Labs has reached a circulation of 2,292,060,769. USDe is a stablecoin based on Ethereum, which is collateralized by derivatives and achieves price stability through delta-neutral hedging in centralized and decentralized venues. To create USDe, Ethena allows users to use USD, ETH, or liquidity collateral tokens as collateral.

  • CEL breaks through $0.55, with a 24-hour increase of more than 75%

    According to market data, CEL has broken through $0.55 and is currently priced at $0.5651, with a 24-hour increase of over 75%. The market is volatile, so please be prepared for risk control.

  • SlowMist: The total loss from security incidents last week (April 28-May 4, 2024) exceeded US$71.4 million

    According to the weekly security report (April 28 - May 4, 2024) released by SlowMist, the total loss this week exceeded $71,399,000. An incident this week resulted in losses rising from the nine-digit range to the astonishing ten-digit range. Surprisingly, this was not due to complex technical flaws or sophisticated phishing scams, but a simple error that could have been easily avoided by implementing a whitelist. Multiple security incidents include:

  • Tether issued USDT worth $240 million on May 4 and redeemed USDT worth $8.6 million

    According to ChainArgos monitoring, on May 4th, Tether conducted a large-scale issuance and redemption activity. A total of $240 million USDT was issued that day, while $8.6 million USDT was redeemed.

  • Ethereum stablecoin transaction volume breaks monthly record in April

    The total transaction volume of stablecoins on Ethereum last month was significantly higher than any previous month, but most of the trading volume was contributed by a single stablecoin, DAI. As previously reported by The Block, DAI is increasingly being used for complex MEV transactions, usually involving flash loans, with a large portion of DAI being minted and returned in a single transaction. Just one of these transactions increased DAI trading volume by nearly $1 billion.