Skip to content

Zero Knowledge Lending using Compound Protocol (submission for ETHIndia Online)

Notifications You must be signed in to change notification settings

tezansahu/zkCompoundify

Repository files navigation

zkCompoundify

Zero-Knowledge Lending with Compound Protocol


Problem Statement:

Currently, in the Blockchain Ecosystem, everything that we do is open and visible to all, which is good for some applications but really not appreciated for others: especially the ones that involve high-value transactions. There is currently no lending protocol that offers built-in privacy for preserving the transaction amount of loans and borrows carried out by the lenders and borrowers respectively.

Our Solution: zkCompoundify



Provided here is a novel solution using zero-knowledge proofs that helps us achieve complete privacy on the MATIC plasma chain. In this solution, the stakeholders can avail of the services of the platform in complete confidentiality and can still prove its correctness. This is done by integrating AZTEC Protocol with the Compound Finance Protocol.

Challenges I ran into

I land up in a lot of challenges during the project, some of which are:

  1. Understanding the nuances of the Compound Protocol.

  2. Working with AZTEC caused me some trouble as their library has changed a lot since I had started working with it. However, I was able to deal with them.

  3. I had issues with working with Web3 as we needed to interface it with Aztec.js for Zero-Knowledge Transactions.

How to run?

$ git clone https://github.com/tezansahu/zkCompoundify
$ cd zkCompoundify
$ yarn install

# Follow the next step to run on local node
$ ganache-cli -m 'differ idle retire demise glare sentence glove hammer iron mango way empty'

# On a new terminal
$ cd zkCompoundify
$ truffle migrate # To run on local node
# Or, to run on Matic Network
$ truffle migrate --network matic

# On a new terminal
$ cd zkCompoundify/client
$ live-server dashboard
# Install this if not already installed using `npm install live-server`

# On a new terminal
$ cd zkCompoundify
$ node server.js

Created with ❤️ by Tezan Sahu

About

Zero Knowledge Lending using Compound Protocol (submission for ETHIndia Online)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published