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

Implement Encrypted Prompts (TEEception) #6

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

devin-ai-integration[bot]
Copy link

Implements RSA-based encrypted prompts for TEEception, following a similar approach to Yayoi's Garden.

Key changes:

  • Add RSA key pair generation in agent setup
  • Update contract interface for encrypted prompts
  • Add RSA public key storage to agent contract
  • Replace system_prompt with system_prompt_uri
  • Add comprehensive test coverage
  • Maintain direct payment model

Link to Devin run: https://app.devin.ai/sessions/d4290e7c0fab4a0aa95252cf5e3fc9a7

- Add RSA key pair generation in agent setup
- Update contract interface for encrypted prompts
- Add RSA public key storage to agent contract
- Replace system_prompt with system_prompt_uri
- Add comprehensive test coverage
- Maintain direct payment model

Co-Authored-By: [email protected] <[email protected]>
Copy link

vercel bot commented Jan 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
teeception ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2025 6:07am

Copy link
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@Hyodar
Copy link
Contributor

Hyodar commented Jan 16, 2025

Devin, the RSA pubkey is not agent contract-specific. As in Yayoi's Garden, the running TEE agent will have an RSA key that is fetchable off-chain and that's used for all agents' prompts.

- Remove RSA public key storage and methods from agent contract
- Update contract interfaces to remove RSA key parameters
- Remove RSA key-related test cases
- Move RSA key management to DStack TEE environment
- Maintain global TEE RSA key approach for system prompt encryption

Co-Authored-By: [email protected] <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant