CHAIN & GENESIS TRUTH LEDGER
Authoritative Network Parameters (ChainID 88888)
All protocol parameters below are anchored directly to config/linghe-genesis.json and verified against the cryptographic release ledger.
| Parameter | Authoritative Value | Verification Basis |
|---|---|---|
| Network Name | MYRILUM Linghe Chain (Sovereign EVM L1) | Protocol Spec v2.0.0 | Manifest v3.0.0 |
| ChainID (Decimal / Hex) | 88888 / 0x15b38 | eth_chainId deterministic constant |
| Genesis SHA-256 | 96208e9900b218935143be3024d2602566a86d61caa906d42399f35b83afd991 | config/linghe-genesis.json |
| Fail-Closed JSON-RPC Gatekeeper | https://rpc.myrilum.org (fallback: https://rpc.myrilum.network) | 13-method AST allowlist + HMAC write gate (ChainID 88888 / 0x15b38) |
| Block Explorer & Telemetry | https://scan.myrilum.network | https://status.myrilum.network | Blockscout REST v2 + Cap. 656 Merkle PoR |
| Documentation & Whitepaper Corpus | https://docs.myrilum.network | 10-volume bilingual corpus with SHA-256 verification |
| Consensus Cadence & Block Ceiling | 250 ms Simplex BFT | 3.0 Ggas (3,000,000,000 gas/slot) | 4-validator benchmark testbed committee |
| Parallel 2D-Nonce Benchmark | 32 lanes (type-0x76) | 20/20 concurrent tx in 1004 ms | NONCE_MANAGER_2D zero head-of-line blocking |
| BN254 Groth16 Verification Cost | 815,381 Gas (0.027% of 3.0 Ggas slot) | Native EVM precompiles 0x06, 0x07, 0x08 |
BLOCK-0 ENSHRINED PRECOMPILES & SYSTEM CONTRACTS
Precompile Address & ABI Reference Table
Every settlement asset, agent registry, session guard, compliance gate, and cryptographic verifier is deployed deterministically at Block 0 with immutable genesis addresses.
| Contract / Precompile | 42-Char EVM Address | Runtime | Primary ABI Methods |
|---|---|---|---|
| LHC (Native Gas & Settlement) | 0x20c0000000000000000000000000000000000000 | Rust Enshrined TIP-20 | transfer(address,uint256), transferFrom(address,address,uint256), balanceOf(address) |
| LUSD (USD Benchmark Interface) | 0x20c0000000000000000000000000000000000001 | Rust Enshrined TIP-20 | transfer(address,uint256), balanceOf(address), transferPolicyId() |
| LHKD (HKD Benchmark + TIP-403) | 0x20c0000000000000000000000000000000000002 | Rust Enshrined TIP-20 + TIP-403 | transfer(address,uint256), transferFrom(address,address,uint256), transferPolicyId() |
| ERC-8004 Identity Registry | 0x8004000000000000000000000000000000000001 | Block-0 Genesis Contract | registerAgent(address,string,string,string,bytes32), registerAgentFor(...), totalAgents() |
| ERC-8004 Reputation Ledger | 0x8004000000000000000000000000000000000002 | Block-0 Genesis Contract | submitVerifiedFeedback(...), getReputation(uint256), getExtendedReputation(uint256) |
| ERC-8004 Validation Escrow | 0x8004000000000000000000000000000000000003 | Block-0 Genesis Contract | createValidationTask(...), createVerifiableTask(...), validateAndSettleWithProof(...), validateAndSettleWithHardwareQuote(...) |
| SessionKeyManager | 0x8402000000000000000000000000000000000001 | Block-0 Genesis Contract | authorizeSession(...), authorizeScopedSession(...), recordSessionSpend(...), getSession(address,address) |
| TIP-403 Policy Registry | 0x403c000000000000000000000000000000000000 | Rust Enshrined Precompile | isAuthorized(uint64 policyId, address account) returns (bool) |
| NONCE_MANAGER_2D | 0x4e4f4e4345000000000000000000000000000000 | Rust Enshrined Precompile | 32-lane type-0x76 parallel nonce key scheduling eliminating head-of-line blocking |
| ComplianceReserveVault | 0x8800000000000000000000000000000000000001 | Block-0 Genesis Contract | Cap. 656 Binary Merkle PoR attestation & recordCrossChainIntent(...) |
| LingheZkLightClientBridge | 0x8900000000000000000000000000000000000002 | Block-0 + BN254 0x06/0x07/0x08 | verifyGroth16Proof(a,b,c,signal), computePublicSignal(...), verifyProofAndRelease(...) |
| HardwareAttestationVerifier | 0x8900000000000000000000000000000000000003 | Block-0 + EIP-7951 P-256 0x0100 | isHardwareVerifiedEnclave(address runtimeSigner) returns (bool) |
EVM TOOLCHAIN QUICKSTART
Configure Hardhat, Foundry & Viem for ChainID 88888
MYRILUM Linghe Chain is 100% EVM bytecode-compatible with Osaka P-256 and BN254 precompiles. Connect existing toolchains in three deterministic steps.
1. Hardhat Configuration (hardhat.config.mjs)
Register ChainID 88888 with the fail-closed JSON-RPC gatekeeper and pass X-Linghe-Auth-Key via environment variable when broadcasting signed transactions.
export default {
solidity: {
version: "0.8.24",
settings: { optimizer: { enabled: true, runs: 200 }, evmVersion: "cancun" }
},
networks: {
linghe: {
url: "https://rpc.myrilum.org",
chainId: 88888,
httpHeaders: process.env.LINGHE_AUTH_KEY
? { "X-Linghe-Auth-Key": process.env.LINGHE_AUTH_KEY }
: {}
}
}
};2. Foundry Configuration (foundry.toml + 1-Command eth_chainId Check)
Configure rpc_endpoints in foundry.toml and verify deterministic ChainID 88888 (0x15b38) in one curl command or via cast.
[profile.default]
solc_version = "0.8.24"
evm_version = "cancun"
[rpc_endpoints]
linghe = "https://rpc.myrilum.org"
# 1-command eth_chainId connectivity check (expected result: "0x15b38" = 88888)
curl -sS -X POST https://rpc.myrilum.org -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'
# Verify ChainID (88888) and ERC-8004 Identity Registry bytecode with cast
cast chain-id --rpc-url https://rpc.myrilum.org
cast call 0x8004000000000000000000000000000000000001 "totalAgents()(uint256)" \
--rpc-url https://rpc.myrilum.org3. Viem Chain Definition & Read Client
Define lingheChain with canonical explorer and RPC endpoints to query Block-0 contracts with strict TypeScript ABI inference.
import { defineChain, createPublicClient, http } from "viem";
export const lingheChain = defineChain({
id: 88888,
name: "MYRILUM Linghe Chain",
nativeCurrency: { name: "Linghe Testnet Unit", symbol: "LHC", decimals: 6 },
rpcUrls: { default: { http: ["https://rpc.myrilum.org", "https://rpc.myrilum.network"] } },
blockExplorers: {
default: { name: "LingheScan", url: "https://scan.myrilum.network" }
}
});
const client = createPublicClient({ chain: lingheChain, transport: http() });
const blockNumber = await client.getBlockNumber();
console.log("ChainID 88888 head block:", blockNumber.toString());W0-04 JSON-RPC AST GATEKEEPER
Fail-Closed JSON-RPC Surface & Security Invariants
Unlike permissive RPC proxies, https://rpc.myrilum.org (fallback: https://rpc.myrilum.network) parses every request into a canonical JSON AST and re-serializes clean JSON before upstream dispatch.
12 Public Read-Only Methods + 1 Auth-Gated Write Method
Public read allowlist: eth_chainId, eth_blockNumber, eth_call, eth_getBalance, eth_getTransactionCount, eth_getTransactionReceipt, eth_getBlockByNumber, eth_getLogs, eth_gasPrice, eth_estimateGas, net_version, web3_clientVersion. Only eth_sendRawTransaction mutates state, gated behind constant-time HMAC X-Linghe-Auth-Key (HTTP 451 fail-closed when missing).
Hard-Blocked Namespaces & Structural Limits
Privileged namespaces (admin_*, debug_*, personal_*, miner_*, anvil_*, tempo_faucet*, txpool_*, trace_*) return HTTP 403 / JSON-RPC -32601 even under Unicode escape obfuscation. WebSocket upgrades are rejected (HTTP 403), non-JSON Content-Type returns HTTP 415, batch requests are capped at 10 items, and payload size is bounded to 1 MiB.