Skip to main content

Use App Wallet

important

The TEE mnemonic is generated by the KMS and bound to your app's enclave. Once injected, the mnemonic safety depends on the app not leaking it.

Any mnemonic you see in .env.example is a placeholder for local development. The TEE overwrites the placeholder with the actual KMS-generated mnemonic that's unique and persistent to your app. Only your specific TEE instance can decrypt and use this mnemonic.

When deployed, EigenCompute apps receive a persistent and private wallet that serves as the cryptographic identity, allowing the app to sign transactions, hold funds, and operate autonomously.

The TEE mnemonic is generated by the KMS and only decryptable inside your specific TEE application. It is provided at runtime using the MNEMONIC environment variable. The wallet addresses are derived from the TEE mnemonic.

TEE Mnemonic

Derive Address from TEE Mnemonic

Etheruem

To derive the Etheruem wallet address from the MNEMONIC environment variable:

const mnemonic = process.env.MNEMONIC;
if (!mnemonic) {
throw new Error('MNEMONIC environment variable is not set');
}

const wallet = ethers.Wallet.fromPhrase(mnemonic);

Solana

To derive the Solana address from the MNEMONIC environment variable, refer to the Solana Wallets documentation.