Since Cardano is a transparent layer lacks built-in privacy features, which limits the ability of many applications to meet their privacy requirements.
This is the total amount allocated to Cardano Privacy Layer: A Zero-Knowledge based anonymous membership and voting protocol (Phase 2).
Port the Semaphore Protocol from the Ethereum ecosystem to bring a privacy layer to Cardano that empowers communities with secure, verifiable anonymous messages, votes and endorsements.
No dependencies
The project will be fully open source.
¿Why this proposal matters?
Privacy is a key element of every network that pursues to be safe, power balanced and censorship-resistant. These matters are even more important today with the emergence of hypervigilance and Artificial Intelligence technologies. At the moment, Cardano is by default a transparent network that lacks built-in privacy capabilities; however, the adoption of Zero-Knowledge cryptography is enhancing key aspects of the blockchain industry that were neglected in the past such as Privacy. Our proposal aims to add private capabilities directly in layer 1 and in other contexts as well such as in the Hydra protocol. The usage of this technology will catalyze the development of new privacy-focused applications in Cardano with a broad use-cases.
¿What is the Semaphore protocol?
The Semaphore Protocol is a privacy focused layer that was born in the Ethereum ecosystem. It allows users to demonstrate their membership in a group and send arbitrary information without revealing their identity. It uses Zero-Knowledge cryptography to achieve anonymous proof of membership and overcome the double-signaling problem. As we point out later, the protocol has proven to have a wide range of use cases, and it serves as a base layer where other types of applications can be built on top of it. Since the verification of Zero-Knowledge proofs will be possible soon with the next Plutus hard fork, the objective of this proposal is to adapt this protocol to the Cardano network.
The proposal
Thus, in general, this proposal intends to port the Semaphore protocol to Cardano, a project consisting of a two-phased process.
The first phase, funded in Catalyst F11 and presently under development, consist in: On one hand, it mainly involved conducting research and laying the groundwork for integrating the cryptographic components into the Cardano ecosystem. On the other hand, the base smart contracts of the protocol are currently
As a second phase, the current proposal will intend to improve the on-chain components and develop the off-chain components of the protocol. This will imply the following:
Although our project will do a demo of the protocol by implementing a voting solution, the completion of this proposal will mainly result in an open-source tool that can be reused for various purposes. In this sense, the Semaphore protocol serves as a base protocol that can be extended by developers to address different privacy solutions (we will list many of the use cases below). Any project needing to privately verify its members and send anonymous messages to the blockchain will benefit from this solution. This adaptation of the Semaphore protocol will help develop new privacy-focused applications on Cardano that weren't possible before. Projects can use this proposal according to their needs and apply it in various contexts
In summary, this project aims to adapt the Semaphore protocol and create an open-source tool that satisfy a wide range of privacy use-cases. As mentioned, the first phase is nearing completion, and in this round, we seek funding to refine our current progress and develop the off-chain components of the project.
Annex: Status of the project
Additionally, it could be useful to mention the state of the project and highlight some key pieces of the protocol that already has been developed:
(1) Zero-Knowledge Validator
The protocol in order to work and function, it requires to verify Zero-Knowledge proofs. This verification is an indispensable component of the protocol operation, concretely, the validator (smart contract) which checks the Zero-Knowledge proofs. We already developed this validator along with some front-end utilities to make proof construction a straight forward process. This component can be found in the ak-381 library:
To showcase and demonstrate the possible applications of this validators a dapp has been made. It is important to note that these demo is one of the first fully functional Zero-Knowledge application of the Cardano ecosystem.
(2) Semaphore circuit adaptation
Originally, the circuit of the protocol was implemented to work on the BN254 elliptic curve, we already concluded the adaptation of the circuit to the BLS12-381 supported by Cardano:
(3) Base smart contracts of the protocol.
A first prototype of the protocol's smart contracts has already been developed. Also, the repository contains a document with the research findings that summarize the conclusions from the first phase:
With the integration of the Semaphore protocol into the Cardano network, numerous privacy-centric signaling applications can be envisioned and developed. The Semaphore protocol has diverse use cases, including:
Bringing the Semaphore will significantly expand the privacy capabilities of the Cardano ecosystem.
Our team was formed last year as a result of winning in the Zero-Knowledge track of the Cardano Emurgo Build 2023 Hackaton. As a result of very intensive work we were able to:
Then, during 2024 we achieve some important progress in the field of Zero-Knowledge proofs in the Cardano ecosystem:
Second iteration of the smart contracts
The first step of the protocol will be to review the base smart contract prototypes and improve them by adding new features.
Acceptance Criteria
Develop Cardano validators capable of:
Evidence
The code found in the github repository.
Review and testing of the smart contracts
The second milestone will involve conducting unit tests and possibly property tests on the base smart contracts.
Acceptance Criteria
Ensure that the smart contracts pass the following tests:
Evidence
The tests present in the github repository.
Protocol off-chain library
Develop a library for constructing transactions that can interact with the protocol.
Acceptance Criteria
The library should have an API that includes the following features:
Evidence
A github repository the code of the library.
Relayer development
With the use of a front-end library, a relayer will be developed. This involves creating a REST API that users can use to send signals anonymously.
Acceptance Criteria
Create a REST API that can succesfully:
In this step, all previous developments will be integrated into a decentralized application (dApp) that demonstrates the usage of the protocol.This dapp will include:
Evidence
A website with the demonstration of the Dapp.
Clouse-out & documentation.
In this final milestone, a promotional blog articles will be created to highlight the product, alongside the completion of a comprehensive close-out report.
This milestone will involve:
The main expense of the project is the development hours. In that sense is important to note: