Please describe your proposed solution
<u>Problem:</u>
Smart contract vulnerabilities pose a significant risk to the Cardano ecosystem, potentially leading to financial losses and reducing trust. Current auditing processes are time-consuming and costly and may miss critical bugs, hindering Cardano's adoption and growth.
<u>Motivation</u><u>: </u>
Previous studies have already demonstrated the potential for large language models to help identify bugs for other blockchains, such as Ethereum. Our approach builds on the findings of these studies and adapts them to Cardano.
<u>Approach:</u>
Our approach consists of three major steps:
Data Collection:
- Gather a wide range of Cardano smart contracts from various sources.
- Ensure diversity in the dataset by including contracts with different functionalitiess.
- Screen the dataset, and perform preprocessing and cleaning.
Model Fine-tuning:
- Test and select a suitable pre-trained LLM.
- Format and tokenize the dataset for fine-tuning
- Fine-tune the pre-trained LLM using the annotated dataset, optimizing it for the specific task of identifying bugs and vulnerabilities in Cardano smart contracts.
- Evaluate the fine-tuned model's performance.
Development of user-friendly tools to run the model:
- Create user-friendly scripts that allow developers to easily interact with the fine-tuned model and perform audits on their smart contracts.
- Develop clear and concise documentation that guides users through the installation, setup, and usage.
- Provide examples and tutorials demonstrating how to run the model and interpret the model's outputs.
<u>Expected Outcome:</u><u></u>
We expect that our project will engage various stakeholders within the Cardano community:
- Developers: The AI auditing tool will assist developers early in the development process, enhancing security and reducing time-to-market by identifying potential vulnerabilities and strengthening the security of their smart contracts.
- Auditors: The tool will complement traditional auditing processes, providing an additional layer of analysis.
- Users: The AI auditing tool will enhance the security of smart contracts, protecting users' assets and increasing confidence in the Cardano platform.
- Researchers: The project's open-source nature will encourage collaboration and knowledge sharing among researchers interested.