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

  • China Properties Investment plans to purchase and hold BNB as a strategic reserve asset.

    China Real Estate Investment (00736) announced that in order to promote the diversification of the company's asset allocation and seize the opportunities of digital economy development, the company has resolved to use its own funds to purchase and hold BNB (Binance Coin) and other suitable digital assets in the open market, under the premise of complying with relevant laws, regulations, and risk control, as the company's strategic reserve assets. The company is optimistic about the long-term development prospects of the digital asset industry and has full confidence in the operating entity behind BNB, its technology research and development, ecological layout, and industry competitiveness, recognizing its long-term development potential and value growth space in the blockchain field.

  • Payment infrastructure company Speed1 raises $8 million in funding, led by Tether.

    payment infrastructure company Speed1 announced the completion of an $8 million financing round, led by Tether and participated by Ego Death Capital. The company is committed to building instant global settlement channels using the Bitcoin Lightning Network and stablecoins.

  • Visa begins supporting US financial institutions to settle transactions using USDC on Solana.

    Visa has started supporting U.S. financial institutions to use USDC on Solana for transaction settlements. Cross River Bank and Lead Bank are the first institutions to use this service. As a partner of the Circle Arc blockchain, Visa will also provide support after Arc goes live.

  • Bank of America survey: Kevin Hassett expected to lead the Federal Reserve

     Bank of America's December Global Fund Manager Survey shows that most investors expect U.S. President Trump to nominate White House economic advisor Kevin Hassett as the next Federal Reserve Chair. About 69% expect Hassett to be nominated, while only 4% mentioned Federal Reserve Governor Christopher Waller, and another 4% expect former Fed Governor Kevin Warsh. The survey was conducted before Trump told the media he preferred Hassett or Warsh to lead the Fed. Current Federal Reserve Chair Jerome Powell's term will end in May.

  • Singapore-based digital trade platform Olea completes $30 million Series A funding round.

    Singapore digital trade platform Olea has completed a $30 million Series A funding round, with investors including Banco Bilbao Vizcaya Argentaria (BBVA), XDC Network, theDOCK, and SC Ventures, a subsidiary of Standard Chartered Bank. The funds will be used to accelerate the deployment of AI and Web3 solutions in high-growth markets, strengthening embedded finance, risk analysis, and other products. Since its establishment in 2022, the Olea platform has been licensed by the Monetary Authority of Singapore (MAS) CMS and has provided over $3 billion in financing to more than 1,000 enterprises across more than 70 trade corridors.

  • BTC breaks through $87,000

    market shows BTC breaking through $87,000, currently at $86,986.63, with a 24-hour decline of 3.19%. The market is highly volatile, please manage your risk accordingly.

  • MEXC now supports USD1 (AB Core network).

    On December 16, AB DAO announced that MEXC has officially supported the deposit of USD1 (World Liberty Financial USD) on the AB Core network, and withdrawals will be opened after liquidity meets the platform requirements, further promoting the cross-platform circulation and use of USD1 within the AB ecosystem.

  • The US spot Bitcoin ETF saw a net outflow of $315.69 million yesterday.

     according to TraderT monitoring, the US spot Bitcoin ETF had a net outflow of 315.69 million USD yesterday.

  • This week, the US spot Ethereum ETF saw a net outflow of $224.94 million.

     according to TraderT monitoring, this week the US spot Ethereum ETF had a net outflow of 224.94 million USD.

  • Nvidia releases new version of its open-source AI model, claiming it's "faster, cheaper, and smarter."

     on Monday, Nvidia (NVDA.O) released a series of new open-source artificial intelligence models, stating that these models will be faster, cheaper, and smarter than its previous products. Nvidia is mainly known for providing chips, which companies like OpenAI use to train their closed-source models and profit from them. However, Nvidia also offers a large number of proprietary models covering various fields from physical simulation to autonomous vehicles, made available as open-source software for researchers or other companies to use. For example, companies like Palantir Technologies have integrated Nvidia's models into their products. On Monday, Nvidia announced the third-generation "Nemotron" large language model, primarily aimed at tasks such as writing and programming. The smallest model, Nemotron 3 Nano, was released on the same day, while two larger versions will be launched in the first half of 2026. Meanwhile, there are reports that Meta Platforms (META.O) is considering switching to closed-source models, making Nvidia one of the main providers of open-source models in the United States.