Execution Platform

Your code runs in an Intel TDX enclave and gets signatures, never keys — connectors, NEAR smart contracts and HTTPS applications, all on one verifiable execution layer

What's Under
the Hood

Ship verifiable apps without building cryptographic infrastructure

Intel TDX Attestation

Every completed run produces a hardware-signed attestation report. Cryptographic proof that your code ran with your inputs — inside CPU-encrypted memory that even the server operator can't access.

Confidential Key Derivation

Derive encryption keys via NEAR MPC Network — threshold BLS12-381. No single node ever sees the full secret. The same infrastructure securing NEAR Intents and billions in cross-chain assets.

User Secrets in TEE

Store API keys, private keys, and sensitive data inside hardware-encrypted TEE memory. Access control via NEAR balance, NFT ownership, or whitelist. Secrets persist across code upgrades — plaintext never leaves the enclave.

Blockchain + HTTPS

Call from NEAR smart contracts via yield/resume or from any app via HTTPS API. Same security, same attestation. No wallet popups required for web apps.

Built-in Monetization

OutLayer payment keys let you charge microtransactions per call — agents pay, do the work, get change back. Sell subscriptions or per-use access. No Stripe, no payment processor.

AI-Friendly by Design

Vibe-code blockchain apps with AI. Your copilot generates business logic in plain Rust — OutLayer abstracts TEE attestation, MPC cryptography, and key management automatically.

What Your Code
Can Call

Your code runs as a sandboxed WASI component. Blockchain access, storage, wallets, randomness, payments and signing keys are host interfaces it imports, served from inside the enclave.

near:rpc Blockchain

Blockchain Access

Full NEAR RPC from inside the enclave. View calls, send signed transactions, read any contract state. Your code interacts with DeFi, DAOs and NFTs without exposing signing keys.

near:storage Storage

Encrypted Storage

Persistent key-value storage with atomic CAS and increment. Private by default — even the operator can't read it. Public when you choose, so other projects can read it.

outlayer:wallet Wallet

Multi-Chain Wallet

NEAR, every EVM chain, and Solana. Keys are derived in the enclave from a root issued by the NEAR MPC network. Transfer, swap, withdraw — all governed by the owner's policy with spending limits and multisig.

near:vrf Randomness

Verifiable Randomness

Ed25519 VRF with a proof any NEAR contract can verify. Anti-grinding via blockchain-assigned request IDs. Provably fair lotteries, games, NFT minting.

near:payment Payments

Built-in Payments

Stablecoin payments per execution. Refund API for partial returns. Developers earn per call — no Stripe, no invoicing, no intermediaries.

outlayer:signing-keys Signing

Keys of Your Own

Ed25519 and secp256k1 keys bound to your project and its caller. Your code gets signatures, never the key — sign what you return so anyone can check it.

Sandboxed Execution

WASI capability-based security. Code cannot reach the host filesystem or network except through these interfaces. Every instruction is metered.

Cross-Project Composability

Any project can publish to public storage, and any other project can read it. An oracle publishes prices; a trading bot reads them; a risk agent monitors both.

Autonomous Scheduling

Interval-based ticks, storage-diff triggers, webhooks. The scheduler is untrusted — it can decide when to trigger, but can't influence what the code does. All execution happens in the TEE.

End-to-End Encrypted.
Access Checked Before Decryption.

Secrets Are a Cryptographic Primitive

Developers encrypt secrets in their browser using the keystore's public key. The encrypted blob lives on the NEAR blockchain. When the agent runs, the TEE fetches it, decrypts with a hardware-derived key, and injects as environment variables.

At no point does the operator, the coordinator, or any component outside the TEE see plaintext. Combined with Access Conditions, secrets are protected by both cryptography and hardware isolation, with access gated by on-chain conditions the TEE validates before decrypting.

access_conditions.rs
// Only DAO council members
// who hold 100+ USDC
// can trigger this agent:

Logic(And, [
    DaoMember {
        dao: "traders.sputnik-dao.near",
        role: "council"
    },
    FtBalance {
        contract: "usdc.near",
        operator: Gte,
        value: 100_000_000
    }
])
Whitelist
Account Pattern (regex)
NEAR Balance
Token Balance
NFT Ownership
DAO Membership
Boolean Logic (And/Or/Not)

Two Layers of
Unbreakable Security

To compromise OutLayer, an attacker must break both

Layer 1

Intel TDX

Hardware-enforced Trusted Execution Environment. Code runs inside CPU-encrypted memory. The server operator, the OS, and even physical access cannot extract secrets or tamper with execution.

  • CPU-level memory encryption
  • Remote attestation reports
  • Tamper-evident execution
  • Secrets never touch host OS
  • Post-quantum on-chain signatures (ML-DSA-65)
+
Layer 2

NEAR MPC Network

Independent node operators running threshold BLS cryptography. Key derivation is distributed — no single node ever sees the complete secret. The same network securing NEAR Intents and billions in cross-chain transactions.

  • Threshold of independent MPC nodes
  • BLS12-381 pairing-based cryptography
  • Deterministic yet distributed secrets
  • All operations auditable on-chain

The result: to steal a user's secret, an attacker must simultaneously break Intel TDX hardware isolation and compromise a threshold of independent MPC nodes operated by separate organizations. This is the same security model protecting billions in assets through NEAR Intents today.

Verify, Don't Trust

"Verifiable" is not a marketing adjective. It is a technical property backed by Intel TDX measurements approved on-chain and an attestation for every completed run.

Operator CANNOT

Hardware-enforced by Intel TDX

  • ✕ Read decrypted secrets or wallet private keys
  • ✕ Modify execution results
  • ✕ Run different code than what was deployed
  • ✕ Forge attestation reports
  • ✕ Extract storage encryption keys

Anyone CAN Verify

Publicly auditable

  • ✓ Exact code running in the enclave (TDX measurements)
  • ✓ Binary matches public source (Sigstore certificates)
  • ✓ Each completed run was attested (TDX quote over code, input and output)
  • ✓ 5 hardware measurements match approved set
  • ✓ Worker keys registered with verified TDX quotes

Intel TDX provides five hardware measurements (MRTD, RTMR0–3) that uniquely identify the code running inside the enclave. All five must match an approved set stored on the NEAR blockchain. Workers generate keypairs inside the TEE and register them on-chain with verified TDX attestation quotes; on-chain results are submitted with keys that never leave the enclave. Every completed run also carries a TDX quote over the code hash, the input and the output.

How It Works

From request to verifiable result in seconds

01

Request Execution

Your smart contract or HTTPS app calls a published build: an OutLayer project or an immutable WASM URL with its hash. Attach payment in stablecoins.

02

Secrets Injection

The TEE Keystore validates access conditions, then derives decryption keys via CKD (NEAR MPC Network). User secrets are decrypted and injected as env vars — plaintext never leaves the enclave.

03

TEE Execution

Workers run your published WASM build inside Intel TDX hardware. Process fully isolated — no filesystem, no network access, instruction-metered.

04

Verified Result

Results return to your contract (or HTTPS response) with a hardware attestation report. Anyone can cryptographically verify the exact code that produced the output.

Offchain Verifiable Extension
for Smart Contracts

NEAR smart contracts can call OutLayer via the native yield/resume mechanism. Your contract pauses, heavy computation runs off-chain in TEE, and results return directly to L1 — no bridge, no L2, no separate consensus.

Break free from gas limits. Run ML models, fetch external APIs, generate ZK proofs, or process megabytes of data — all with cryptographic proof that the result is correct.

contract.rs
// Call OutLayer from NEAR contract
#[near_bindgen]
impl Contract {
  pub fn run_offchain(&mut self) {
    outlayer::request_execution(
      "alice.near/my-app", // published project
      json!({ "action": "analyze" }),
      "on_result",
    );
  }

  // TEE-attested result arrives here
  pub fn on_result(
    &mut self,
    result: ExecutionResult
  ) { /* ... */ }
}

Off-Chain Compute,
On-Chain Payments

Users attach stablecoins to every call — on-chain or via HTTPS payment keys. Your code receives the deposit, does the work, and refunds the change automatically.

Easy version management and secret rotation. Publish a new version, rotate API keys in the TEE keystore — no redeployment, no downtime.

ai_service.rs
fn main() {
    // Stablecoin deposit attached by caller
    let deposit: u128 = env::var("ATTACHED_USD")
        .unwrap().parse().unwrap();

    // API key from TEE-encrypted secrets
    let api_key = env::var("OPENAI_API_KEY")
        .unwrap();

    // Call the AI model
    let prompt = env::var("USER_PROMPT").unwrap();
    let (result, cost) = call_openai(&api_key, &prompt);

    // Refund unused deposit via SDK
    near::payment::api::refund_usd(
        (deposit - cost) as u64
    );

    print!("{}", json!({ "result": result }));
}

Not Another L2

A fundamentally different approach to running agents that hold money

Others

  • ✕ L2s require separate consensus & bridging
  • ✕ Oracles only fetch data, can't run your code
  • ✕ Cloud functions: "trust us" — no proof
  • ✕ Separate payment infrastructure needed
  • ✕ Secrets require external KMS + custom setup
  • ✕ Hard for AI agents to build on

OutLayer

  • ✓ No new chain. Results return to NEAR L1
  • ✓ Execute any user code, not just data fetching
  • ✓ Intel TDX + NEAR MPC hardware proof
  • ✓ Built-in stablecoin monetization
  • ✓ TEE vault + CKD key derivation out of the box
  • ✓ Standard WASI — AI agents generate code easily

Start Shipping
Verifiable Apps

OutLayer's enclave code is open source and reproducible, live on mainnet, and ready for your next project.