-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Opacity Verifiable Interference zkTLS Plugin #1673
Open
RonTuretzky
wants to merge
67
commits into
elizaOS:develop
Choose a base branch
from
RonTuretzky:plugin-opacity
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+433
−57
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some possible action items for future iterations:
|
Great! Thanks for adding the changes - I will test in a bit |
This reverts commit 931514c.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Co-authored @Hmac512 @RonTuretzky @Gajesh2007
Background
A few weeks ago, issues with aixbt were observed, where users mistakenly believed the moderation was performed by humans. This misconception caused a public relations disaster and raised concerns about the AI's autonomy. As a result, the team had to make logs public to maintain transparency and trust.
This problem can be mitigated using zkTLS. zkTLS enables the generation of zero-knowledge proofs and MPC for TLS sessions, also known as "web proofs." With zkTLS, any off-chain data can be proven either on-chain or off-chain, ensuring authenticity without compromising privacy.
Here is a high-level diagram of the process.
What does this PR do?
This PR integrates Opacity as an adapter into the framework without introducing breaking changes. Opacity is a zkTLS platform built on EigenLayer as an Actively Validated Service (AVS).
What kind of change is this?
Introducing a new adaptor to produce verifiable inference.
Why are we doing this? Any context or related work?
This update addresses the critical need for transparency and trust in AI interactions, as highlighted by the PR disaster involving aixbt. By integrating Opacity as a zkTLS adapter, we ensure that all inferences and interactions are verifiable without compromising privacy. This addition strengthens the framework's credibility by enabling zk/MPC proof generation and verification for TLS sessions.
The integration aligns with EigenLayer's/Opacity's mission to build secure and verifiable systems, leveraging Actively Validated Services (AVS) to enhance both functionality and trustworthiness. This is especially relevant as more AI systems require robust mechanisms to prove autonomy and authenticity in a seamless and privacy-preserving manner.
Cloudflare's AI Gateway provides logs for all prompt request responses , which are the target of the mpc-tls , ensuring that all AVS validators are performing MPC-TLS on the same date.
Documentation changes needed?
Documentation has been updated in the adapter-opacity
README.md
and.example.env
No further changes to the project documentation are required.
Proof Verification Example
Here is proof of a prompt request. This can be verified using the adapter or otherwise through
https://opacity-ai-zktls-demo.vercel.app/api/verify
By writing the proof to
proof.json
, you can also verify usingThis invokes a shared mpc-tls session as listed in step 7.
Testing
Automated tests are sufficient; no manual testing is required for deployment.
Where should a reviewer start?
packages/adapter-opacity/README.md
and thenpackages/adapter-opacity/src/index.ts
Detailed testing steps
Follow steps in
packages/adapter-opacity/README.md
Start the client: pnpm start:client
Interact with the agent via chat and check the logs for proof generation and verification.
Additional Notes
No database changes or additional deployment instructions are necessary.
Discord username
turetzkyron#0000