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
Ship verifiable apps without building cryptographic infrastructure
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.
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.
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.
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.
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.
Vibe-code blockchain apps with AI. Your copilot generates business logic in plain Rust — OutLayer abstracts TEE attestation, MPC cryptography, and key management automatically.
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
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
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
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
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
Stablecoin payments per execution. Refund API for partial returns. Developers earn per call — no Stripe, no invoicing, no intermediaries.
outlayer:signing-keys
Signing
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.
WASI capability-based security. Code cannot reach the host filesystem or network except through these interfaces. Every instruction is metered.
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.
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.
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.
// 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
}
])
To compromise OutLayer, an attacker must break both
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.
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.
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.
"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.
Hardware-enforced by Intel TDX
Publicly auditable
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.
From request to verifiable result in seconds
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.
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.
Workers run your published WASM build inside Intel TDX hardware. Process fully isolated — no filesystem, no network access, instruction-metered.
Results return to your contract (or HTTPS response) with a hardware attestation report. Anyone can cryptographically verify the exact code that produced the output.
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.
// 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
) { /* ... */ }
}
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.
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 }));
}
A fundamentally different approach to running agents that hold money
OutLayer's enclave code is open source and reproducible, live on mainnet, and ready for your next project.