What TEE means for your keys
A TEE is a hardware-isolated compute environment. The processor physically separates TEE memory from the rest of the system. The host operating system, cloud provider, and even Wraith’s own infrastructure team cannot read what is happening inside the enclave. For you, this means:- Keys are never stored on disk. Your agent’s private keys are derived on demand for each operation and discarded from memory immediately after. There is no database entry, no file, no encrypted backup containing your key material.
- Keys are derived from hardware. Key derivation uses the TEE’s hardware root secret — a value burned into the processor at manufacture that cannot be extracted or copied.
- Only your wallet can authorize key export. If you need to export your agent’s private key, you must sign a message with the owner wallet you registered at creation. Without that signature, nobody — including Wraith — can release the key.
Remote attestation: verify the code yourself
TEE hardware can produce a cryptographic proof — called an attestation — that describes exactly what code is running inside the enclave and that it has not been modified. You can request this proof for any agent:- The code inside the TEE matches the published Wraith source
- Your agent’s keys were derived by the legitimate Wraith software
- No unauthorized modifications have been made to the running code
What you are protected against
| Threat | Protection |
|---|---|
| Cloud provider reads your keys | TEE memory encryption — hardware prevents host OS access |
| Wraith employee extracts your keys | Keys never leave the enclave; no storage to query |
| Wraith infrastructure is compromised | Attestation lets you verify code integrity before use |
| Someone exports your key without permission | Export requires a fresh signature from your owner wallet |
| Key material persists after agent operations | Keys are re-derived per operation and garbage collected |
The privacy guardian
Beyond key security, the AI agent running inside the TEE actively monitors for on-chain privacy risks and warns you before you make a mistake:- Timing analysis — warns if transactions happen too close together
- Amount patterns — flags identical payment amounts that could correlate payments
- Address correlation — warns about withdrawing to a known wallet
- Consolidation risk — alerts when too many stealth addresses are unspent
The AI agent’s privacy warnings are informational. You can proceed after reviewing them. The agent will not block a transaction — it will make sure you understand the privacy implications first.
Key export
If you need to take your agent’s private key out of the TEE for any reason, useexportKey with a fresh owner wallet signature: