Infimum v0.3 · Developer & B2B Integration Guide

Documentation

Go from zero to a Z3-verified, Ed25519-signed B2B WebAssembly capsule running behind an HTTP sidecar or native SDK in under 5 minutes.

1. Quickstart 2. Language Tour 3. Sidecar, Docker & SDKs 4. Threat Model & Isolation

1. Quickstart (3 Commands)

Build the compiler, Z3 verifier, and zero-GPU headless B2B sidecar from source (requires Rust 1.80+ and z3 on PATH):

git clone https://github.com/aminadav-ai/infimum.git && cd infimum cargo build --release -p infimum-lang -p infimum-rt # 1. Verify Z3 contracts & compile FinTech pricing capsule (7.81 KB .ifw) mkdir -p /tmp/capsules ./target/release/infimum compile-wasm \ crates/infimum-lang/examples/b2b/fintech_pricing.ifm \ -o /tmp/capsules/fintech_pricing.ifw # 2. Start zero-GPU HTTP Sidecar with structured JSONL audit logging ./target/release/infimum-rt-serve \ --capsules-dir /tmp/capsules \ --bind 127.0.0.1:8080 \ --audit-log /tmp/audit.jsonl # 3. Execute capsule (293 us warm p50, 512 KiB peak Wasm RAM) curl -s http://127.0.0.1:8080/v1/execute/fintech_pricing \ -H 'Content-Type: application/json' \ -d '{"amount": 100.00, "discount_pct": 0.10, "tax_rate": 0.20, "currency": "EUR"}'

Prefer testing with zero local setup? Try the Zero-Key Z3 Playground right in your browser.

2. Language Tour: Built-in Safety Primitives

Feature Syntax Guarantee
Telos Contracts (Z3 SMT) req amount >= 0.0d
ens result >= 0.0d
Mathematically proved for all possible inputs via Z3 SMT before emitting a single Wasm byte.
Exact Finance Math dec64 (100.00d) Fixed-point decimal arithmetic with zero IEEE-754 floating-point drift and overflow proofs.
Taint-Tracked Secrets Secret<T>, reveal("domain", s) Compiler rejects leaking secrets to logs/JSON; runtime injects custom headers strictly on host side for pinned domains.
Flux Effect System -[Mem, Net("api.stripe.com")]-> Capabilities are statically checked and embedded in the Ed25519-signed SecurityPassport.
Guaranteed Halting while i < n max 64 { ... } Unbounded loops are rejected at compile time; runtime enforces deterministic wasmi fuel metering.
Forma Native GPU UI layout / Mesh3D 1-draw-call Vulkan/wgpu & WebGL2 UIs inside 19–55 KB capsules with fixed linear memory.

3. Multi-Stack Integration: Sidecar, Docker, Python, Node.js & C ABI

Docker (Distroless / Zero-curl Image)

docker build -f crates/infimum-rt/Dockerfile -t infimum-rt:local . docker run --rm -p 8080:8080 -v /path/to/capsules:/capsules:ro \ -e STRIPE_KEY=sk_live_... \ infimum-rt:local --capsules-dir /capsules --bind 0.0.0.0:8080 \ --allow-net api.stripe.com \ --secret-header api.stripe.com=Authorization:Bearer\ =STRIPE_KEY \ --audit-log /tmp/audit.jsonl

Python SDK (sdk/python — zero dependencies)

from infimum_rt import SidecarClient, NativeRuntime # Option A: HTTP Sidecar (works across microservices / Kubernetes) client = SidecarClient("http://127.0.0.1:8080") res = client.execute("fintech_pricing", { "amount": 100.00, "discount_pct": 0.10, "tax_rate": 0.20, "currency": "EUR" }) print(res.output(), res.audit.capsule_blake3, res.audit.z3_obligations_proved) # Option B: In-process C-ABI via libinfimum_rt.so (959 us cold start) rt = NativeRuntime() res = rt.execute_ifw(open("fintech_pricing.ifw", "rb").read(), {"amount": 100.00, "discount_pct": 0.10, "tax_rate": 0.20, "currency": "EUR"})

Node.js / TypeScript SDK (sdk/node — @infimum/rt, zero dependencies)

import { InfimumSidecarClient } from '@infimum/rt'; const client = new InfimumSidecarClient('http://127.0.0.1:8080'); const res = await client.execute('fintech_pricing', { amount: 100.00, discount_pct: 0.10, tax_rate: 0.20, currency: 'EUR', }); console.log(res.output, res.audit.fuel_consumed, res.audit.peak_memory_bytes);

4. Security & Isolation Architecture (3 Distinct Environments)

Infimum separates isolation boundaries cleanly depending on where you run capsules:

Server / B2B (infimum-rt)

Zero-GPU wasmi interpreter with hard 2 MiB linear memory cap, deterministic instruction fuel, Ed25519 SecurityPassport verification before instantiation, pure-Rust TLS (rustls) with TCP IP-pinning against DNS rebinding & cloud IMDS (169.254.169.254), zero redirects, and host-side Multi-Secret Vault.

Browser (/code/ & /playground/)

WebAssembly memory isolation inside your browser tab + COOP/COEP cross-origin isolation for local Z3.wasm. BYOK LLM keys remain strictly in browser localStorage and never pass through our servers.

Local Studio (infimum-agentd)

On Linux desktops, the optional local AI studio daemon wraps workspace commands inside strict bubblewrap (bwrap) namespace sandboxing with read-only system mounts and isolated project roots.

Open Zero-Key Z3 Playground Enterprise Licensing & Pilots Full THREAT_MODEL.md ↗