# MYRILUM Linghe Chain — Full Technical Reference for AI Coding Agents (llms-full.txt) Primary Canonical Host: https://myrilum.org Network Mirror Host: https://myrilum.network Documentation Corpus: https://docs.myrilum.network Block Explorer: https://scan.myrilum.network Telemetry & PoR Portal: https://status.myrilum.network JSON-RPC Gatekeeper: https://rpc.myrilum.network Sovereign Wallet Client: https://myrilum.io Legal R&D Entity: MYRILUM LIMITED (Hong Kong Cap. 622 UBI 80912065 | BR 80912065-000-07-26-0 | D-U-N-S 374308629) --- ## 1. Chain & Genesis Truth Ledger - Network Name: MYRILUM Linghe Chain (Sovereign EVM L1) - ChainID (Decimal): 88888 - ChainID (Hex): 0x15b38 - Protocol Spec Version: 2.0.0 | Manifest Version: 3.0.0 - Genesis SHA-256: 96208e9900b218935143be3024d2602566a86d61caa906d42399f35b83afd991 - Consensus Slot Cadence: 250ms single-slot deterministic finality (4-validator Simplex BFT benchmark committee) - Block Gas Ceiling: 3.0 Ggas (3,000,000,000 gas per slot) - Parallel Nonce Execution: 32 concurrent type-0x76 2D-Nonce lanes (~1004ms benchmark for 20/20 concurrent transactions) - BN254 Groth16 Verification Cost: 815,381 Gas (0.027% of a 3.0 Ggas block) - Omnichain Intent Settlement: ERC-7683 escrows across 6 EVM chains (Ethereum, Base, Arbitrum, Optimism, BNB Chain, Linghe) + Solana (~936ms benchmark fill latency) - Synthetic Test-Vector Reserve Roots (Non-Circulating Benchmarks, r_holder === 0, S_token === 0): - LHKD Benchmark Merkle Root: 0xa3e5fd1ee51db26128c49f848bc4eb6d71443fbfee51a40b9159832a21beae6e (101.20% synthetic test vector) - LUSD Benchmark Merkle Root: 0x5c3f82332fbffc0be49434232a9a97e2bf2c797423aa3fde4afd19b2c264f410 (100.50% synthetic test vector) - Corridor Bounds: [7.7500, 7.8500] HKD/USD linked-rate invariant --- ## 2. Dual-Domain 24+ Portal Sitemap (myrilum.org & myrilum.network) - https://myrilum.org/ (mirror: https://myrilum.network/) - https://myrilum.org/learn/ (mirror: https://myrilum.network/learn/) - https://myrilum.org/what-is-linghe/ (mirror: https://myrilum.network/what-is-linghe/) - https://myrilum.org/lhc/ (mirror: https://myrilum.network/lhc/) - https://myrilum.org/ai-agents/ (mirror: https://myrilum.network/ai-agents/) - https://myrilum.org/glossary/ (mirror: https://myrilum.network/glossary/) - https://myrilum.org/sandbox/ (mirror: https://myrilum.network/sandbox/) - https://myrilum.org/wallets/ (mirror: https://myrilum.network/wallets/) - https://myrilum.org/x402/ (mirror: https://myrilum.network/x402/) - https://myrilum.org/omnichain/ (mirror: https://myrilum.network/omnichain/) - https://myrilum.org/run-a-node/ (mirror: https://myrilum.network/run-a-node/) - https://myrilum.org/developers/ (mirror: https://myrilum.network/developers/) - https://myrilum.org/developers/docs/ (mirror: https://myrilum.network/developers/docs/) - https://myrilum.org/developers/mcp/ (mirror: https://myrilum.network/developers/mcp/) - https://myrilum.org/developers/tutorials/ (mirror: https://myrilum.network/developers/tutorials/) - https://myrilum.org/developers/tools/ (mirror: https://myrilum.network/developers/tools/) - https://myrilum.org/community/ (mirror: https://myrilum.network/community/) - https://myrilum.org/security/ (mirror: https://myrilum.network/security/) - https://myrilum.org/brand/ (mirror: https://myrilum.network/brand/) - https://myrilum.org/roadmap/ (mirror: https://myrilum.network/roadmap/) - https://myrilum.org/whitepapers (mirror: https://myrilum.network/whitepapers) - https://myrilum.org/research/ (mirror: https://myrilum.network/research/) - https://myrilum.org/enterprise/ (mirror: https://myrilum.network/enterprise/) - https://myrilum.org/enterprise/privacy-compliance/ (mirror: https://myrilum.network/enterprise/privacy-compliance/) - https://myrilum.org/explorer (mirror: https://myrilum.network/explorer) - https://myrilum.org/status (mirror: https://myrilum.network/status) --- ## 3. Block-0 Enshrined Precompiles & Genesis System Contracts | Symbol | Address (42-char EVM) | Category | Runtime | Role | | :--- | :--- | :--- | :--- | :--- | | LHC | 0x20c0000000000000000000000000000000000000 | Settlement Asset | Rust Enshrined TIP-20 | Native protocol gas & settlement unit | | LUSD | 0x20c0000000000000000000000000000000000001 | Settlement Asset | Rust Enshrined TIP-20 | Non-circulating USD clearing benchmark interface | | LHKD | 0x20c0000000000000000000000000000000000002 | Settlement Asset | Rust Enshrined TIP-20 + TIP-403 | Non-circulating HKD clearing benchmark interface | | ERC-8004 Identity | 0x8004000000000000000000000000000000000001 | Agent & Session | Block-0 Genesis Contract | Agent digital identity & ZK-KYB compliance registry | | ERC-8004 Reputation | 0x8004000000000000000000000000000000000002 | Agent & Session | Block-0 Genesis Contract | Agent payment & TEE attestation reputation ledger | | ERC-8004 Validation | 0x8004000000000000000000000000000000000003 | Agent & Session | Block-0 Genesis Contract | Deterministic escrow & 20% skillAuthor / 80% agentPayee split (0% MYRILUM rake) | | SessionKeyManager | 0x8402000000000000000000000000000000000001 | Agent & Session | Block-0 Genesis Contract | Bounded agent spend limits, periodic caps & expiry enforcement | | TIP-403 Registry | 0x403c000000000000000000000000000000000000 | Compliance & Scheduling | Rust Enshrined Precompile | Kernel-level transfer policy, allowlist & sanctions screening | | NONCE_MANAGER_2D | 0x4e4f4e4345000000000000000000000000000000 | Compliance & Scheduling | Rust Enshrined Precompile | 32-lane 2D parallel nonce scheduler eliminating head-of-line blocking | Additional Cryptographic Precompiles & Genesis Vaults: - BN254 ecPairing Precompile: 0x0000000000000000000000000000000000000008 (used by LingheZkLightClientBridge at 0x8900000000000000000000000000000000000002) - Osaka EIP-7951 P-256 Enclave Precompile: 0x0000000000000000000000000000000000000100 (low-s secp256r1 hardware verification at 0x8900000000000000000000000000000000000003) - Compliance Reserve Audit Vault: 0x8800000000000000000000000000000000000001 (Binary Merkle Proof-of-Reserve verification) --- ## 4. 14 Zero-Trust MCP Tools (AI Agent Local Gateway) 1. `wallet_get_status` [READ_ONLY / read] — Inspect active local vault lock state, ChainID 88888 RPC health, and bound session key metadata without exposing private keys. 2. `wallet_get_portfolio` [READ_ONLY / read] — Read deterministic balances and allowance states across LHC, LUSD, LHKD benchmark vectors and multi-chain read endpoints. 3. `wallet_decode_calldata` [READ_ONLY / security] — Deterministically decode raw EVM calldata into human- and agent-verifiable ABI method signatures and argument trees. 4. `wallet_compile_intent` [SIMULATE_FIRST / execution] — Compile a declarative agent goal into an unsigned EIP-712 / type-0x76 2D-Nonce transaction bundle ready for firewall review. 5. `wallet_verify_session_policy` [READ_ONLY / security] — Validate an operation against SessionKeyManager (0x8402...0001) spend caps, target allowlists, and <= 30-day expiry. 6. `wallet_quote_dex` [READ_ONLY / execution] — Request a deterministic clearing benchmark quote across the enshrined orderbook engine with HKMA [7.75, 7.85] corridor checks. 7. `wallet_x402_mcp_challenge` [BOUNDED_SIGN / payments] — Parse an HTTP 402 WWW-Authenticate challenge header and assemble a bounded SessionKeyManager micro-payment receipt. 8. `wallet_check_tip403_compliance` [READ_ONLY / compliance] — Query TIP-403 Transfer Policy Registry (0x403c...0000) to confirm zero-PII allowlist/denylist clearance before dispatch. 9. `wallet_omnichain_x402_invoke` [BOUNDED_SIGN / payments] — Execute a cross-chain x402 skill call across 6 EVM chains + Solana via ERC-7683 intent escrow (~936ms benchmark fill). 10. `wallet_zk_light_client_bridge` [SIMULATE_FIRST / compliance] — Verify BN254 Groth16 state-root proofs (815,381 Gas = 0.027% of 3.0 Ggas slot) via precompile 0x08 without multisig relays. 11. `wallet_audit_approvals_and_revoke` [BOUNDED_SIGN / security] — Enumerate open ERC-20/TIP-20 spender allowances and construct zero-allowance revocation transactions for excess approvals. 12. `wallet_simulate_sign_firewall` [READ_ONLY / security] — Run the deterministic non-LLM Pre-Sign Firewall detecting lookalike address poisoning (risk 94), raw eth_sign, and cap breaches. 13. `wallet_build_eip5792_batch` [BOUNDED_SIGN / execution] — Assemble atomic EIP-5792 call batches across 2D-Nonce parallel lanes so approve + settle execute deterministically without race hazards. 14. `wallet_grant_erc7715_permission` [HUMAN_APPROVAL / security] — Issue a time-bounded, contract-scoped ERC-7715 decaying session permission signed inside local hardware enclave (EIP-7951 P-256). --- ## 5. HTTP 402 (x402) Machine-Payment State Machine 1. REQUEST_RESOURCE (HTTP GET /v1/inference): Agent sends request with headers `X-Agent-Registry: 0x8004...0001` and `X-Preferred-Asset: LUSD`. 2. PAYMENT_REQUIRED_402 (HTTP 402 Payment Required): Gateway returns `WWW-Authenticate: x402 chainId=88888 asset=LUSD`, `X-Payment-Amount`, `X-Payment-Recipient: 0x8004...0003`, and assigned `X-Payment-NonceLane` (0..31). 3. SUBMIT_SIGNED_RECEIPT (HTTP 202 Accepted): Agent signs a bounded EIP-712 authorization through `SessionKeyManager (0x8402...0001)` on its assigned 2D nonce lane via `NONCE_MANAGER_2D (0x4e4f...0000)`. 4. VERIFIED_FULFILLMENT (HTTP 200 OK): Gateway validates 250ms slot finality and kernel `TIP-403 (0x403c...0000)` policy status (`X-TIP403-Policy-Status: AUTHORIZED`) before releasing the payload (~936ms omnichain fill target). --- ## 6. EVM JSON-RPC & SDK Quickstart ### Network Configuration ```json { "networkName": "MYRILUM Linghe Chain", "rpcUrl": "https://rpc.myrilum.network", "chainId": 88888, "chainIdHex": "0x15b38", "blockExplorerUrl": "https://scan.myrilum.network" } ``` ### Read-Only ChainID Verification (JSON-RPC) ```bash curl -sS -X POST https://rpc.myrilum.network \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}' # Expected response: {"jsonrpc":"2.0","id":1,"result":"0x15b38"} ``` ### Sovereign Client & AI Agent MCP Integration - LingheOS Wallet v5.1.0 (https://myrilum.io): 60 clean-room verified obligations (OBL-001..OBL-060), 0 runtime npm dependencies, 0 dev npm dependencies, 169 networks. - 14 Zero-Trust MCP Tools over a 64 KB bounded local gateway with zero private-key exposure to LLM context. - Non-LLM Pre-Sign Firewall: ERC-7715 periodic/allowlist caps (<= 30 days), EIP-5792 atomic batch validation, OBL-052 raw `eth_sign`/`SetCode` hard-blocking, and risk-score 94 prefix/suffix lookalike address-poisoning interception. - Key Continuity: Shamir k-of-n threshold backup over GF(2^8) (polynomial 0x11b) + ERC-7579/ERC-7201 48-hour owner-vetoable timelocked guardian recovery. --- ## 7. REST v2 Portal & Verification APIs - `GET /api/v2/network-portal-summary` — Deterministic genesis & benchmark telemetry summary - `GET /v1/whitepapers/verify` — Cryptographic SHA-256 verification of all 10 bilingual whitepapers - `GET /v1/status/telemetry` — 4-validator BFT committee & Cap. 656 Merkle PoR telemetry - `GET /api/v2/dashboard` — Explorer genesis overview - `GET /api/v2/contracts` — Verified Block-0 contracts & Rust enshrined precompiles - `GET /api/v2/compliance` — Cap. 656 PoR, TIP-403 policy & 4-region BFT quorum metrics - `GET /api/v2/omnichain` — ERC-7683, BN254 Groth16 & EIP-7951 omnichain overview - `GET /.well-known/hk-regulatory-posture.json` — Machine-readable HK statutory posture - `GET /openapi.json` — OpenAPI 3.1.0 schema - `GET /sitemap.xml` — Complete dual-domain canonical sitemap --- ## 8. 10-Volume Bilingual Whitepaper Suite (docs.myrilum.network) 1. `MYR-WP-PRIMER-2026-V1.0-ZH` (14 pages, zh-HK) — Global Public & Executive Primer (ZH) 2. `MYR-WP-PRIMER-2026-V1.0-EN` (15 pages, en) — Global Public & Executive Primer (EN) 3. `MYR-WP-MASTER-2026-V1.0-ZH` (27 pages, zh-HK) — Vol. 0 Group Master Architecture & Governance (ZH) 4. `MYR-WP-MASTER-2026-V1.0-EN` (31 pages, en) — Vol. 0 Group Master Architecture & Governance (EN) 5. `MYR-WP-TECH-2026-V2.0-ZH` (63 pages, zh-HK) — Vol. I Linghe Chain Formal Protocol Specification (ZH) 6. `MYR-WP-TECH-2026-V2.0-EN` (69 pages, en) — Vol. I Linghe Chain Formal Protocol Specification (EN) 7. `MYR-WP-CAP656-2026-V2.0-ZH` (46 pages, zh-HK) — Vol. II Enshrined RegTech & Cap. 656 Binary Merkle PoR (ZH) 8. `MYR-WP-CAP656-2026-V2.0-EN` (51 pages, en) — Vol. II Enshrined RegTech & Cap. 656 Binary Merkle PoR (EN) 9. `MYR-WP-EXEC-2026-V2.0-ZH` (23 pages, zh-HK) — Vol. III Systems Architecture & Empirical Benchmark Monograph (ZH) 10. `MYR-WP-EXEC-2026-V2.0-EN` (27 pages, en) — Vol. III Systems Architecture & Empirical Benchmark Monograph (EN) --- ## 9. Maturity Taxonomy & Hong Kong Statutory Safe-Harbor - `VERIFIED_IN_CODE`: Deterministically implemented in source code and verified by automated zero-mock test suites. - `BENCHMARKED_TESTBED`: Measured empirically on controlled ChainID 88888 / 4-validator Simplex BFT testbed; distinct from public retail traffic. - `ARCHITECTURAL_SPEC`: Formal mathematical, cryptographic, or compliance interface ready for licensed institutional integration. - `ROADMAP_GATED`: Future milestone contingent on independent third-party security audit, external regulatory licensing, or governance sign-off. Corporate & Statutory Posture: - Entity: MYRILUM LIMITED (Hong Kong Cap. 622 UBI 80912065 | BR 80912065-000-07-26-0 | D-U-N-S 374308629) - Registered Office: UNIT 1603, 16/F THE L. PLAZA, 367-375 QUEEN'S RD CENTRAL, SHEUNG WAN, HONG KONG - Commercial Model: Pure non-custodial protocol and enterprise software engineering under IFRS 15 / IAS 7 with zero token subsidies (S_token === 0), zero holder yield (r_holder === 0), zero client key custody, non-VATP under HK Cap. 615 s. 53ZRD, and non-issuer safe harbor under HK Cap. 656 ss. 8 & 9.