Republic of Singapore · Open-Access Scientific Research · Non-Advisory & Zero Fundraising 6-Jurisdiction Safe Harbor & COPE Disclosures
W3AI-RFC-003 Verified Reference Standard Apache-2.0 / CC-BY-4.0 (Royalty-Free)

Multi-Dimensional Lock-Free Account Nonce Lanes (Type-0x76 2D-Nonce)多维无锁账户并行 Nonce 车道协议标准(Type-0x76 二维 Nonce)

W3AI Open Standards Steering Group · Parallel Execution & Mempool Working GroupW3AI 开放标准指导委员会 · 并行执行与多维调度工作组

Defines an EIP-2718 Type-0x76 typed transaction envelope decomposing per-account sequence numbers into orthogonal (nonceKey, nonceSeq) lanes (reference L = 32) paired with deterministic read/write Optimistic Concurrency Control (OCC) to eliminate head-of-line blocking.定义 EIP-2718 Type-0x76 类型交易信封,将账户一维序列号拆解为正交的(nonceKey, nonceSeq)二维车道(标准参考 L = 32),结合确定性读写集乐观并发控制(OCC)消除多智能体同账户队头阻塞。

Normative Specification规范协议定义

1. EIP-2718 Type-0x76 Envelope & State Representation

Classical single-dimensional FIFO account nonces stall all subsequent transactions k' > k whenever a single sub-agent transaction experiences gas underpricing or revert contention. Under W3AI-RFC-003, each account state maintains an independent sequence map N: {0, ..., L - 1} -> N_0 with reference cardinality L = 32.

2. Lane Isolation & Deterministic OCC Scheduling

  • Intra-Lane Monotonicity: A transaction carrying (nonceKey = j, nonceSeq = s) is executable iff N[j] == s, atomically incrementing N[j] <- s + 1 without locking N[m] for m != j.
  • Conflict-Free Parallel Commit: Concurrent transactions across distinct lanes with disjoint storage read/write footprints (W_a intersect (R_b union W_b)) = empty execute in parallel within the same BFT slot.
  • Deterministic Hot-Spot Fallback: When two lanes write to a shared storage slot, the scheduler MUST deterministically re-execute the higher-indexed lane in canonical ascending (nonceKey, txIndex) order, guaranteeing byte-identical post-state roots across all validators.
PHoL(M,L) = 1 − (1−1L) M−1

1. EIP-2718 Type-0x76 交易信封与二维状态映射

传统一维顺序 Nonce 在单笔交易挂起或回滚时将锁死同账户全部后续交易。W3AI-RFC-003 将账户序列状态定义为独立车道映射 N: {0, ..., L - 1} -> N_0(基准车道数 L = 32)。

2. 车道正交隔离与确定性 OCC 冲突回退

  • 同道单调递增:携带 (nonceKey = j, nonceSeq = s) 的交易当且仅当 N[j] == s 时放行并将 N[j] 原子自增,对任意其他车道 m != j 零阻塞。
  • 无冲突并行提交:读写存储槽集合互不相交的跨车道交易在同一共识槽内无锁并行提交。
  • 热点槽确定性串行重放:当跨车道交易命中同一写入存储槽时,调度器必须按规范升序 (nonceKey, txIndex) 确定性重放冲突事务,严格确保全网验证节点状态根字节级一致。
PHoL(M,L) = 1 − (1−1L) M−1

Canonical Wire JSON Schema标准报文 JSON Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://research.web3.capital/schemas/w3ai-rfc-003.schema.json",
  "title": "W3AI-RFC-003 Type-0x76 2D-Nonce Transaction Envelope",
  "type": "object",
  "required": [
    "txType",
    "chainId",
    "sender",
    "nonceKey",
    "nonceSeq",
    "readSlots",
    "writeSlots",
    "gasLimit"
  ],
  "properties": {
    "txType": {
      "const": "0x76"
    },
    "chainId": {
      "type": "integer",
      "minimum": 1
    },
    "sender": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$"
    },
    "nonceKey": {
      "type": "integer",
      "minimum": 0,
      "maximum": 31
    },
    "nonceSeq": {
      "type": "integer",
      "minimum": 0
    },
    "readSlots": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^0x[0-9a-f]{64}$"
      }
    },
    "writeSlots": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^0x[0-9a-f]{64}$"
      }
    },
    "gasLimit": {
      "type": "integer",
      "minimum": 21000,
      "maximum": 30000000
    }
  },
  "additionalProperties": false
}

Clean-Room & Open-Source Reference Implementations独立洁净室验证器与开源参考实现

250 / 250 (100.0%)

W3AI-RFC-003 Deterministic 2D-Nonce & OCC Reference SimulatorW3AI-RFC-003 二维 Nonce 与 OCC 确定性参考验证器

Web3 Capital Research (Republic of Singapore) · Apache-2.0

Clean-room read/write conflict scheduler & 250 OCC test vectors洁净室读写冲突调度验证器与 250 组 OCC 测试向量

https://research.web3.capital/vectors/w3ai-conformance-v1.json

250 / 250 (100.0%)

MYRILUM Linghe Chain NONCE_MANAGER_2D PrecompileMYRILUM 灵核公链 NONCE_MANAGER_2D 内生预编译调度器

MYRILUM LIMITED (HK UBI 80912065 · COPE Disclosed R&D Reference) · MIT

32-lane Rust enshrined scheduler (0x4e4f...0000, 20-tx batch in 1,004 ms)32 车道 Rust 内生预编译实现(0x4e4f...0000,20 笔并发 1,004 ms,披露研发协同关联)

https://myrilum.org/what-is-linghe/

Normative References规范性引用文件

Search Monographs, Standards & Divisions