Skip to content

Commit 6f24839

Browse files
committed
fix last items for cleanup
1 parent aadf8cb commit 6f24839

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

docs/docs/packages/plugins.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,10 @@ const response = await runtime.triggerAction("INVOKE_CONTRACT", {
449449

450450
Integrates [Dstack SDK](https://github.com/Dstack-TEE/dstack) to enable TEE (Trusted Execution Environment) functionality and deploy secure & privacy-enhanced Eliza Agents:
451451

452+
**Actions:**
453+
454+
- `REMOTE_ATTESTATION` - Generate a Remote Attestation Quote based on `runtime.agentId` when the agent is prompted for a remote attestation. The quote is uploaded to the [proof.t16z.com](https://proof.t16z.com) service and the agent is informed of the attestation report URL.
455+
452456
**Providers:**
453457

454458
- `deriveKeyProvider` - Allows for secure key derivation within a TEE environment. It supports deriving keys for both Solana (Ed25519) and Ethereum (ECDSA) chains.
@@ -526,8 +530,12 @@ docker run --rm -p 8090:8090 phalanetwork/tappd-simulator:latest
526530
When using the provider through the runtime environment, ensure the following settings are configured:
527531

528532
```env
529-
# Optional, for simulator purposes if testing on mac or windows. Leave empty for Linux x86 machines.
530-
DSTACK_SIMULATOR_ENDPOINT="http://host.docker.internal:8090"
533+
# TEE_MODE options:
534+
# - LOCAL: Uses simulator at localhost:8090 (for local development)
535+
# - DOCKER: Uses simulator at host.docker.internal:8090 (for docker development)
536+
# - PRODUCTION: No simulator, uses production endpoints
537+
# Defaults to OFF if not specified
538+
TEE_MODE=OFF # LOCAL | DOCKER | PRODUCTION
531539
WALLET_SECRET_SALT=your-secret-salt // Required to single agent deployments
532540
```
533541

packages/plugin-tee/src/actions/remoteAttestation.ts

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { IAgentRuntime, Memory, State, HandlerCallback } from "@elizaos/core";
22
import { RemoteAttestationProvider } from "../providers/remoteAttestationProvider";
3-
import { fetch, type BodyInit } from 'undici'
3+
import { fetch, type BodyInit } from "undici";
44

55
function hexToUint8Array(hex: string) {
66
hex = hex.trim();
@@ -58,11 +58,9 @@ export const remoteAttestationAction = {
5858
const response = await uploadUint8Array(attestationData);
5959
const data = await response.json();
6060
callback({
61-
text: `Uploading attestation to proof.t16z.com...`,
62-
action: "NONE",
63-
});
64-
callback({
65-
text: `Attestation report for ${agentName}: https://proof.t16z.com/reports/${data.checksum}`,
61+
text: `Here's my 🧾 RA Quote 🫡
62+
63+
https://proof.t16z.com/reports/${data.checksum}`,
6664
action: "NONE",
6765
});
6866
return true;
@@ -85,7 +83,7 @@ export const remoteAttestationAction = {
8583
{
8684
user: "{{user2}}",
8785
content: {
88-
text: "One second, let me generate and upload my attestation report",
86+
text: "Of course, one second...",
8987
action: "REMOTE_ATTESTATION",
9088
},
9189
}

packages/plugin-tee/tsup.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ export default defineConfig({
2424
"@solana/buffer-layout",
2525
"stream",
2626
"buffer",
27+
"undici",
2728
],
2829
});

0 commit comments

Comments
 (0)