Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spike: can an AI Agent Interact with an Escrow and Sign a Milestone? #29

Open
techrebelgit opened this issue Jan 22, 2025 · 14 comments
Open

Comments

@techrebelgit
Copy link
Contributor

Can an AI Agent Interact with an Escrow and Sign a Milestone?

Objective

We aim to explore whether an AI agent controlling a Stellar wallet can call the Trustless Work API and sign a milestone update transaction assigned to its role within an escrow. This experiment is crucial for scenarios like compliance checks, where an escrow can be deployed to receive funds, do compliance checks on these funds, and then release to continue with the deposit. An AI agent can autonomously mark milestones as done (checks complete).

  • Use the Trustless Work dApp to initialize an escrow and assign the AI agent’s address a role in the escrow.
  • Test whether the agent can successfully call the API and securely sign off transactions tied to its assigned role.

Key Responsibilities

1. Escrow Initialization

  • Use the Trustless Work dApp to:
    • Initialize an escrow.
    • Assign the AI agent’s Stellar wallet address a role in the escrow (e.g., Milestone Approver).

2. API and Blockchain Interaction

  • Enable the AI agent to:
    • Call the Trustless Work API to perform its assigned role.
    • Mark milestones as done and sign the associated transaction.
    • Broadcast the signed transaction to the Stellar blockchain.

3. Wallet Control and Security

  • Implement a mechanism for the AI agent to:
    • Manage its assigned Stellar wallet securely.
    • Sign transactions tied to its role in the escrow.
  • Follow best practices for:
    • Key Management: Secure handling of Stellar private keys.
    • Transaction Signing: Ensure transactions are signed securely and correctly.

4. Exploration and Research

  • Investigate:
    • Existing tools, libraries, or SDKs that facilitate wallet management and signing.
    • Community insights from the Stellar Discord or other blockchain-related forums.
  • Experiment with alternative approaches if available solutions are insufficient.

5. Risk and Security Mapping

  • Document potential risks or vulnerabilities in the PoC and propose mitigation strategies where possible.

Deliverables

  1. Working Prototype:
    • Demonstrates the AI agent:
      • Controlling a Stellar wallet.
      • Calling the Trustless Work API to mark a milestone as done.
      • Signing and broadcasting the milestone update transaction.
  2. Documentation:
    • Clear instructions on:
      • How to initialize and configure the escrow.
      • How the AI agent manages its role and interacts with the API.
      • Security measures implemented and risks identified.
      • Tools, libraries, or resources used in the implementation.

Acceptance Criteria

  1. Functionality:
    • The AI agent successfully calls the API and marks a milestone as done.
    • Transactions are signed securely and broadcasted to the Stellar blockchain.
  2. Escrow Role Validation:
    • The agent interacts only within the limits of its assigned role.
  3. Exploration and Research Evidence:
    • Demonstrates thoughtful exploration of tools, libraries, and community feedback.
  4. Security and Risk Documentation:
    • Risks or vulnerabilities are clearly documented, with proposed mitigation strategies.
  5. Documentation Quality:
    • Comprehensive, clear, and easy-to-follow documentation for replication and testing.

I understand this might be too much, depending on conversations during ODBoost, scope can be pruned.

@JoelVR17 JoelVR17 changed the title Can an AI Agent Interact with an Escrow and Sign a Milestone? spike: can an AI Agent Interact with an Escrow and Sign a Milestone? Jan 22, 2025
@mimisavage
Copy link

I’d like to help with this.

@Praizfotos
Copy link

This is an exciting and innovative project! I'd love to explore how an AI agent can autonomously interact with a Stellar wallet and the Trustless Work API to manage escrow milestones. By leveraging secure key management, blockchain interactions, and thoughtful research into tools and risks, this concept can push the boundaries of automation and trust in decentralized systems. Can't wait to dive in and contribute!

@salazarsebas
Copy link

My background

I'm a software engineer and passionate about solving problems, I've been contributing to open source software for a few months and it's an experience that has taught me a lot and I really like to contribute to other projects. I am a member of the Dojo Coding community⛩️. I will dedicate all my effort to complete this issue in the best way.

@Jagadeeshftw
Copy link

Proposal to Work on the Issue

I am eager to contribute to this issue and believe I am well-suited for the task, given my extensive experience in Cairo programming and building decentralized applications on StarkNet. My expertise spans across multiple domains crucial for this implementation:

  • Smart Contracts & Blockchain Development: Proven expertise in StarkNet, Stellar, and Rust, with hands-on experience in developing secure and efficient smart contracts, blockchain integrations, and high-performance backend systems.
  • Backend Engineering: Strong background in designing and managing scalable APIs, handling server-side operations, and ensuring robust backend performance for blockchain applications.
  • Frontend Development: Proficient in building intuitive and responsive frontend interfaces using React and Next.js, ensuring seamless interaction between users and blockchain-based applications.

Why Assign This to Me?

I have a track record of delivering high-quality solutions efficiently, with a deep understanding of smart contract security, decentralized architectures, and full-stack development. My ability to bridge frontend, backend, and blockchain components ensures a well-rounded, optimized solution.

Estimated Timeline

I anticipate delivering a fully functional solution within 2 days. Please let me know if I can proceed.

I am excited about the opportunity to contribute and look forward to collaborating!

Best regards,
Jagadeesh B

@bruhhgnik
Copy link

Hey! I'm agnik, recently i've been working a lot with agentic ai, i also got selected to the Mode ai agent founder school.
Provided the time period, i think i can actually ship the deliverables withinthe period with enough interaction back and forth with the trustless team.
Looking up for this assignment!

@ShantelPeters
Copy link

Can I attempt this issue?

@Wendyalbert
Copy link

Can I start working on this?

@suhas-sensei
Copy link
Contributor

I'd like to take this issue. I aim to test if an AI agent can interact with a Trustless Work escrow on Stellar, mark milestones as done, and securely sign transactions.
The AI will manage its wallet, call the Trustless Work API, and broadcast the signed transaction to the blockchain. I'll also explore security risks and document my findings.

@1nonlypiece
Copy link

Application for Contribution

I am excited about the opportunity to contribute to this issue and am confident that my expertise aligns well with the requirements. With a strong background in Cairo programming and decentralized application development on StarkNet, I bring a well-rounded skill set to deliver an effective solution.

Relevant Expertise

  • Blockchain & Smart Contracts: Extensive experience with StarkNet, Stellar, and Rust, specializing in developing secure and optimized smart contracts, blockchain integrations, and high-performance backend infrastructure.
  • Backend Development: Well-versed in API design, server-side logic, and scalable system architecture, ensuring efficient and seamless backend performance.
  • Frontend Engineering: Skilled in crafting interactive and responsive UI components using React and Next.js, enhancing the user experience for blockchain-based platforms.

Why Consider My Application?

My proven track record of delivering high-quality, optimized solutions in blockchain and full-stack development sets me apart. I have a deep understanding of smart contract security, decentralized architectures, and the synergy between frontend, backend, and blockchain layers—ensuring a seamless and efficient implementation.

ETA

I expect to have a working solution ready within 48 hours. Please let me know if I can proceed with the implementation.

@aniruddhaaps
Copy link

To address this issue, I would
-Escrow Initialization: Use the Trustless Work dApp to create an escrow, assigning the AI agent's Stellar wallet as the milestone approver. Ensure that the escrow has the proper structure to simulate milestone interactions.
-API and Blockchain Interaction: Implement the AI agent to interact with the Trustless Work API for marking milestones as done. Use Stellar SDKs to sign transactions securely and broadcast them on the blockchain.
-Security Implementation: Set up a secure key management system for the AI agent, ensuring the private keys are stored safely. Use transaction signing best practices to validate all milestone updates before broadcasting.
-Prototype and Documentation: Deliver a working prototype with detailed documentation, covering the escrow setup, API integration, wallet security, and risk mitigation strategies, ensuring ease of replication.

@Iwueseiter
Copy link

Iwueseiter commented Jan 22, 2025

Can I contribute to this one?
I'm a frontend and smart contract developer, and a technical writer. I have made research and written an article on AI Agents, AI Agent hosting, orchestration and processing. I have vast understanding of AI Agents and my previous research will serve as a guide for this task. I will research, test and document this as expected.

ETA: 2days

@brolag
Copy link

brolag commented Jan 22, 2025

Hi, I'd like to work on this.

I have more than 10 years of experience working as a Software Engineer. I've been down into the AI Agents rabbit hole in the past few weeks.

My plan for tackling this is:

  1. Research if Eliza or other framework could support an Stellar Wallet.
  2. Map other available tools that could be used in a solution.
  3. Design an architecture for the agent or multiagent.
  4. Adjust the scope for the POC.
  5. Create a POC covering as much as possible from the use case.

Thanks

@sanwalsulehri
Copy link

May I be assigned to this?

@brolag
Copy link

brolag commented Feb 2, 2025

Hi @techrebelgit, I've been working on a plugin to test the integration with Eliza however I'll need more time if that's ok with you.

Here you can see an update of the plugin. I still need to work on the docs though.

Thanks!

@onlydustapp onlydustapp bot unassigned brolag Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests