BLOCK-0 AGENT PRIMITIVES
ERC-8004 Identity, Reputation & Validation Tri-Registry
Enshrined directly in Genesis Block 0 at 0x8004...0001 through 0x8004...0003, ERC-8004 turns autonomous software services into accountable economic counterparties.
ERC-8004 Identity Registry
Binds an autonomous agent's cryptographic runtimeSigner (including Osaka EIP-7951 low-s P-256 hardware enclave keys), capability manifest hash, and zero-PII ZK-KYB operator attestation into a canonical genesis registry.
ERC-8004 Reputation Ledger
Records verifiable x402 fulfillment receipts, latency SLO adherence, dispute-free settlement streaks, and TEE attestation epochs so counterparty agents evaluate reliability programmatically rather than via unverified marketing.
ERC-8004 Validation & 20%/80% Bilateral Split
Atomically verifies task delivery proofs and routes commercial fee-for-service settlement 20% to skillAuthor and 80% to agentPayee in a single 250ms slot—with strictly 0% MYRILUM protocol rake.
DEFENSE IN DEPTH
Bounded Spend Budgets, Non-LLM Firewall & 14 MCP Tools
LLMs are probabilistic and vulnerable to indirect prompt injection. MYRILUM moves every authorization boundary outside the neural model into deterministic code and Block-0 contracts.
SessionKeyManager Bounded Budgets
Issues decaying session permissions capped at <= 30 days with strict target-contract allowlists, function-selector filters, and per-epoch spend ceilings enforced deterministically at 0x8402...0001.
Deterministic Non-LLM Pre-Sign Firewall
Inspects every intent AST before signing: hard-blocks raw eth_sign and unauthorized SetCode delegations (OBL-052), flags unlimited token approvals, and intercepts prefix/suffix lookalike address poisoning at risk score 94.
64 KB Local Gateway With Zero Key Exposure
Agents invoke 14 structured MCP tools (from wallet_decode_calldata and wallet_simulate_sign_firewall to wallet_x402_mcp_challenge and wallet_grant_erc7715_permission) while private keys remain sealed inside Tier-1 hardware or WebCrypto enclaves.
SECURITY ARCHITECTURE COMPARISON
Legacy Unbounded Bot Keys vs. MYRILUM Sovereign AI Agents
| Security Control | Legacy Bot Private Key Pattern | MYRILUM AI-Native Stack |
|---|---|---|
| Private Key Visibility | Loaded in .env or agent process memory; leaked on prompt injection | Zero key exposure to LLM; sealed behind 64 KB 14-MCP local gateway |
| Spending Limits | Unbounded full-account balance at risk on every call | ERC-7715 periodic caps (<= 30 days) enforced on-chain at 0x8402...0001 |
| Calldata Inspection | Blind hex signing without AST decoding | Non-LLM Pre-Sign Firewall + OBL-052 hard-block + risk-94 poisoning guard |
| Skill Revenue Economics | Ad-hoc off-chain invoicing or centralized marketplace rakes (15-30%) | ERC-8004 atomic 20% skillAuthor / 80% agentPayee split (0% MYRILUM rake) |
| Parallel Throughput | Single-nonce queue stalls under concurrent tool calls | 32 active 2D-Nonce lanes via 0x4e4f...0000 (1004ms / 20 txs) |
END-TO-END WORKFLOW
Four-Step Sovereign AI Agent Settlement Lifecycle
Register Agent Identity & Hardware Runtime Signer
Anchor the agent's capability digest and Osaka EIP-7951 P-256 enclave public key on the Block-0 Identity Registry so counterparties verify authenticity deterministically.
// ERC-8004 Identity Registry: 0x8004000000000000000000000000000000000001
{
"chainId": 88888,
"registry": "0x8004000000000000000000000000000000000001",
"enclaveCurve": "EIP-7951-P256-low-s",
"attestation": "ZK-KYB-ZERO-PII"
}Grant Bounded Session Policy
The human or institutional owner grants an ERC-7715 policy capped at <= 30 days, scoping exact target contracts, maximum per-epoch spend, and automatic expiry.
// MCP Tool: wallet_grant_erc7715_permission
{
"sessionManager": "0x8402000000000000000000000000000000000001",
"maxDurationDays": 30,
"allowedTargets": ["0x8004000000000000000000000000000000000003"],
"requirePreSignFirewall": true
}Compile Intent & Pass Non-LLM Pre-Sign Firewall
The agent calls wallet_compile_intent and wallet_simulate_sign_firewall over the 64 KB local MCP gateway. Any OBL-052 raw sign attempt or risk-94 address lookalike halts fail-closed.
// MCP Tool: wallet_simulate_sign_firewall
{
"method": "wallet_simulate_sign_firewall",
"checks": ["OBL-052-no-raw-eth-sign", "ERC-7715-cap", "TIP-403-policy", "lookalike-risk-94"],
"verdict": "ALLOW_BOUNDED_SESSION"
}Settle Bilateral Skill Revenue in One Slot
ERC-8004 Validation (0x8004...0003) verifies the x402 fulfillment receipt on one of 32 parallel 2D-Nonce lanes and splits proceeds 20% skillAuthor / 80% agentPayee with 0% MYRILUM rake.