Zecure-Fi
A zero knowledge based protocol for undercollaterized loans integrated with an AI-assistant for improving borrower's financial portfolio
Created on 2nd February 2025
•
Zecure-Fi
A zero knowledge based protocol for undercollaterized loans integrated with an AI-assistant for improving borrower's financial portfolio
The problem Zecure-Fi solves
Zecure-Fi solve problem for borrowers to get undercollaterized loans from lenders .Generally the collateral for loans it set to be little higher than the lending amount which makes it difficult for borrowers to take loans.Also lenders have no possible option to set higher collateral rate as they do not know about borrowers portfolio or the financial crypto status of the borrower so that they can even switch to the option for giving under collateral loan.Zecure-Fi uses zero knowledge proof to generate a zero knowledge proof for borrowers using Circom and zk-Snarks Groth-16 protocol which is further used by borrowers to verify themselves whether their financial history can match the threshold eligibility set by Lender for a particular loan.Also it solves the problem of various borrowers to trade and do analysis of tokens in various exchanges and protocols through CryptoSage AI agent.
- Financial History of borrower is taken from various exchanges and protocols using the Arbitrum API for subgraphs deployed on GraphQL.
- Now all the information gathered from the protocol is given to the generate_witness algorithm in zkSnarks and it generates private and public signals based on private and public parameters set in the circom circuit .We have set borrowers history as private and Loan threshold eligibility and other constant values as public.
- The public signals and zero knowledge proof generated is sent to the Loan contract ,inheriting the Verifier Contract to call the verify function which returns boolean value whether borrower finanical history passed threshold or not.
- Now borrower creates borrow request for loans and amongst all borrow requests lender can see who is eligible for loan based on passing loan threshold eligibility score or not.
- For the borrowers who have weak financial score and are not eligible for less loans have an option to use the AI agent with exchange protocol tools using exchange ABIs strengthning their score and do analysis.
Challenges we ran into
- Understanding about AgentKit and building trading tools for protocols like Aave and Aerodrome was a first time experience for both members but we got over it by creating two tools for protocols which do trading activities and tells user about the tokens and investing strategy and market analysis for those protocols.
- Finding resources about zkSnarks and zero knowledge proofs was really hard for us in the limited time period but we gathered the most out of it from Youtube and other resources and finally were able to generate Verifier contract as well as zero knowledge proof(public and private signals) for borrowers.
Tracks Applied (3)
Polygon Track
Polygon
Ethereum Track
ETHIndia
