Skip to content

rxhul18/LitSceretManager

Repository files navigation

🔐 Hackathon Project at ETHIndia 2024: Secure AI Crypto Solutions

Welcome to our project repository! 🚀 At ETHIndia 2024, we tackled some exciting challenges in the world of crypto and AI integration. Here's a quick overview of our journey, challenges, and solutions.


🛠️ Tech Stack

We built this solution using the following technologies:

Screenshot 2024-12-22 at 1 44 34 AM


🌐 How to Run Locally

  1. Clone the repository:

    git clone https://github.com/rxhul18/LitSceretManager.git
    cd LitSceretManager
    npm install
    npm run dev
  2. Ollama must be install and runing in background to get access of AI agent

  3. Environment Configuration:

    Create a .env file in the root directory and add your configuration:

    NEXT_PUBLIC_ETHEREUM_PRIVATE_KEY = <Your private Key of connected public key>
    NEXT_APP_PUBLIC_LIT_CAPACITY_CREDIT_TOKEN_ID= (optional)

Start the Project:

npm run dev

Key Challenges and Solutions

1. Key Encryption and Decryption Not Matching

What Happened:
While using Lit Protocol’s encryption tools, the secret key we encrypted didn’t match the original once decrypted.

How We Fixed It:

  • Discovered that incompatible key formats caused the mismatch.
  • Aligned encryption and decryption processes to use compatible formats.
  • Adopted Lit Protocol’s recommended encryption methods for seamless functionality.

2. Slow AI Performance with Crypto Transactions

What Happened:
Integrating AI models to optimize crypto transactions led to significant slowdowns, with real-time analysis causing delays.

How We Fixed It:

  • Introduced parallel processing for AI tasks.
  • Streamlined data flow and simplified AI models to maintain accuracy while boosting speed.
  • Achieved faster responses without compromising crypto analytics quality.

3. Datil Testnet Connectivity Issues

What Happened:
Intermittent connectivity with the Datil testnet created difficulties in testing key management and transactions.

How We Fixed It:

  • Identified API rate limits and slow server responses as the primary issues.
  • Implemented retry mechanisms and robust error handling to stabilize the system during testing.

🏆 Our ETHIndia Journey

This project was a collaborative effort, where we explored innovative ways to merge AI and crypto technologies while ensuring security and efficiency. We’re proud of the solutions we built, the challenges we overcame, and the recognition we received!

💡 Milestones Achieved:

  • We were one of the first teams to use Lit Protocol at the event.
  • Won a hoodie as part of our achievements and contributions.

ETHIndia 2024 provided a fantastic platform to innovate, learn, and showcase cutting-edge solutions in the Web3 space. 🚀

Contributing 🤝

We welcome contributions! Please fork the repository and create a new branch for your contributions. Submit a pull request once you're done.

  1. Fork the project
  2. Create your feature branch: git checkout -b feature/YourFeature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin feature/YourFeature
  5. Open a pull request

👥 Contributors

Contributor 1
Divesh Kankani
Diveshdk
Contributor 2
Bhavesh Choudhary
Bhavesh-0909
Contributor 3
Rahul Shah
GitHub

Contact 📬

Feel free to reach out if you have any questions or suggestions!

About

An encrypted or decrypted with credential handler or Secret manager. Encrypting on Lit Network at ETHIndia 2024

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages