CLAWD TEE TERMINAL

tee.musebook.trade β€” confidential compute Β· Dark DeFi Β· attested inference. Digests over myths.
gateway checking… redpill checking… mode PREPARE-ONLY

01 / CONFIDENTIAL COMPUTE β€” THE CLAWD-TEE STACK

TEA: TEE attestation Β· Edge gateways Β· Anchor on Solana. Solana SVM settles; TEEs compute; digests only β€” never put GPU on-chain. Source: Solizardking/tea (public cut of clawd-tee).

╔════════ INFERENCE ════════╗ β•‘ client / agent / UI β•‘ β•šβ•β•β•β•β•β•β•β•β•β•β•β•€β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β• β”‚ OpenAI-shaped HTTP β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ CLAWD TEE GATEWAY β”‚ TDX Β· H100 CC Β· OP-TEE option β”‚ sign Β· attest Β· proxy β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ StoreProofV2 + secp256k1 β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ SOLANA SVM PROGRAM β”‚ TeeProofV2 PDA Β· day counters β”‚ digests permanent β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ threshold reached β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ SAS Token-2022 NFT β”‚ non-transferable credential β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ VERIFY plane (off-chain): redpill-verifier Β· clawd-verifier Β· Phala / NRAS / DCAP

β›“ Proof storage β€” Pinocchio program

Zero-std Rust program. Instructions: InitCounter (0), StoreProof (1, V1), StoreProofV2 (2). V2 stores a 372-byte TeeProofV2 PDA seeded by the signed payload hash, binding request β€– response β€– model β€– nonce β€” plus sharded ProofCounterDay counters so proofs never fight over one global account.

πŸ–₯ TEE gateway

Rust/axum OpenAI-compatible proxy. Each inference is hashed, signed inside the TEE boundary (secp256k1), attested (Intel TDX quote + NVIDIA NRAS for H100/H200 CC), and anchored via StoreProofV2 when a Solana keypair is configured. Replies carry a _clawd proof block + receipt headers. Hosted instance: clawd-tee-gateway-production.up.railway.app β€” live (checked from this desk 2026-11-13: ok:true, signing address 0x12d221eb…24209f; on-chain anchoring currently disabled on the hosted instance and SAS not yet initialized there β€” stated plainly, as the repo demands).

πŸ›‘ Provider verification β€” RedPill lineage

The redpill-verifier engine verifies TEE hardware across providers β€” Phala, NearAI, Chutes, Tinfoil β€” DCAP quote checks, signature verification, on-chain proof lookup. clawd-verifier (@clawd/tee-verifier) unifies verify + anchor in one package. Rewritten for self-hosted SVM anchoring, not someone else's black box.

🦾 OP-TEE signer

The Arm TrustZone twin: an OP-TEE trusted application exposing the same signed_payload_hash shape as the TDX path, so TDX, OP-TEE, and future providers share one StoreProofV2 account model. Host ↔ TA ABI in optee/include/clawd_ta.h.

Verification levels stored on every TeeProofV2:

0 StoredOnly 1 TeeSigOnchain 2 DcapOffchain 3 MultiVerifier 4 DcapOnchain 5 ZkAuthorized
AnchorAddressStatus
CLAWD-TEE proof program (live, per hosted gateway) HvXe5RpCcduVYJWDyavmNKde4uEgUFEiYz99JYQT4DkP devnet Β· executable β€” verified 2026-11-13
Repo-default REDPILL_PROGRAM_ID BnoUSPTE88ebzLb74RAnTogddDMzyBPtkmKxiRoRJG4L declared in repo config β€” account not found on devnet/mainnet public RPC, checked 2026-11-13
Solana Attestation Service (SAS) 22zoJMtdu4tQc2PzL74ZUT7FrwgB1Udec8DdW4yw4BdG mainnet Β· live (Solana Foundation) β€” verified 2026-11-13

02 / DARK DEFI β€” PROTOCOL PROGRAMS

Privacy-first DeFi on Solana: Zcash Sapling shielded wallets, encrypted pools, TEE agents attested via SAS. Source: Solizardking/Dark-Defi-1 Β· themusebook/dark402 Β· Dark Payments

⚠ ALPHA β€” NOT AUDITED. The Dark DeFi stack self-describes as Alpha. The TypeScript cryptography is faithful to the Zcash spec but uses simplified curve approximations and placeholder ZK proofs (no Groth16 yet). Do not use on mainnet with real funds until audited. Devnet and demo only.
ProgramAddressCluster Β· status
Dark Percolator β€” private perps engine (Dark family) Cf8dRz9xhvdwU825LBu6SGHa3gcHMiJwVh8LciJK1hPz devnet Β· executable β€” verified 2026-11-13
Dark Percolator β€” Market 0 64kBzfr4wFLLiNBAh5iZ1xQLsEpFvAmqETFArkUKSccN devnet Β· market account exists β€” verified 2026-11-13
Dark Protocol β€” shielded balances / encrypted assets 3KWLFYco7T2rUZkzjSSthjHGmbWmo9HAsRmvupDTomGC devnet Β· executable β€” verified 2026-11-13
Dark Shielded Wallet program 4753b1cCrPzwr7taWWD8yrcM8dc98fTR7wCFdv1TsAbg devnet Β· executable β€” verified 2026-11-13
Dark Protocol note pool β€” Anchor program (deposit Β· withdraw Β· shielded_transfer) E8zL7h9qHjC7sMf2WCYhdqS5iLkYhPJ9yAhTfevo74jm devnet Β· built + executable β€” mainnet deploy pending funding (repo status)
Solana Attestation Service β€” Dark agent identity + inference receipts 22zoJMtdu4tQc2PzL74ZUT7FrwgB1Udec8DdW4yw4BdG mainnet Β· live (Solana Foundation)

Status chips above attempt a live read-only getAccountInfo from your browser against the public Solana RPC on load. If the read can't complete, the chip falls back to the desk-verified facts dated 2026-11-13 β€” nothing here is faked live. Credential name for Dark agent attestations: Dark Protocol Agents.

πŸ“¦ @openclawdsol/dark-protocol-sdk Β· v0.3.1

ShieldedWallet (deposit / transfer / balance), Sapling ZIP-32 HD keys, ChaCha20-Poly1305 note encryption, CommitmentTree + NullifierSet, PrivateSwapManager (Jupiter Ultra), price oracle. npm i @openclawdsol/dark-protocol-sdk

πŸ€– @openclawdsol/dark-tee-agents Β· v0.1.0

Confidential agents in TEEs: ClawdTeeAgent β€” sealed converse + shielded trade, quote verification before a single byte is sent, x402 dark-shielded payments, SAS identity + inference receipts.

πŸ”Œ @openclawdsol/dark-protocol

Low-level protocol primitives: DarkProtocolClient, Sapling + note-encryption modules, privacy utilities, swap routing, AIAgentManager. Umbrella meta-package: dark-defi. SAS client (sas-lib) ships as a local workspace package.

πŸŒ‘ The Dark family

Dark Payments (umbrella) β€” live at percolator.musebook.trade. Dark x402 β€” shielded x402 settlement, code public at themusebook/dark402. Dark Percolator / Dark Perps β€” private perps on the devnet program above. dark-x402-terminal β€” the cypherpunk CLI in the Dark-Defi-1 tree.

03 / REDPILL TEE TRADING TERMINAL

Attested-inference console for trading analysis. Prompts are sent to our own server-side proxy (/api/redpill/chat), which forwards them to the RedPill TEE gateway (api.redpill.ai, OpenAI-compatible) β€” the API key never touches your browser. Inference runs inside provider TEEs in the RedPill lineage (Phala / NearAI / Chutes / Tinfoil).

PREPARE-ONLY β€” v1 doctrine. This console produces analysis, decisions, and unsigned action descriptions. It executes no orders, holds no wallet keys, and signs nothing server-side. Any trade you act on is signed in your own wallet, by you β€” browser-signing doctrine, always.
Idle. When configured, the model's analysis renders here, followed by the attestation / receipt metadata returned by the gateway.
{ "mode": "prepare-only", "execution": "none", "signing": "user wallet only β€” this terminal never signs", "action": null }

If the model proposes a trade, its parameters are transcribed here as an unsigned description for your own review. Submitting anything on-chain remains a separate, manual, wallet-signed step outside this terminal.