WO-09 — Block QTL commitments

Status: implementation and verification complete on wo-09-block-qtl.

Scope and decisions

WO-09 is built on wo-12-tx and includes the no-rewrite merge of wo-10-genesis (merge commit da1ef4c), including decision #23 and the genesis work. Decision #24 resolves the multi-input salt ambiguity: one commitment covers one reveal transaction; every type-0x04 witness in that transaction carries the same 32-byte salt, used in C. Wallets must generate a fresh random 32-byte salt from the operating system’s secure random source for each Block QTL unlock, never reuse or derive it, and never ask the user to enter it. This wallet rule applies to full, light, and Android wallets; nodes do not maintain a used-salt registry. The platform wallet integrations are outside this consensus-library work order.

The implementation follows §2f and §2g:

C = SHAKE256("E46-commit\0" || txid || SHAKE256(canonical_witness_section) || salt)
event = 0x03 || C[32] || u64_le(nonce)

The event’s sort ID is C; proof-of-work reuses the frozen WO-08 commitment stamp and applies active Z_commit. Reveal depth is inclusive from 6 through 2,016 blocks. The event validator rejects malformed commitments, invalid work, duplicate event IDs, invalid policy values, and more than 1,000 commitment events in a block. mine_event supports at most four workers and selects the lowest valid nonce in its requested range.

Files and verification

  • C++ library/API: e46/include/e46/block_qtl.hpp, e46/src/block_qtl.cpp.

  • CLI, unit tests, and parser fuzz target: e46/tools/block_qtl_cli.cpp, e46/tests/block_qtl_tests.cpp, e46/tests/block_qtl_fuzz.cpp.

  • Independent reference and frozen vector: e46/golden/block_qtl_reference.py, e46/golden/wo09-golden.json, e46/golden/generate_wo09.py.

  • Differential exam: e46/tests/verify_wo09.py checks the frozen vector plus 102 fresh deterministic randomized transactions against C++ and rejects malformed encodings.

Release and ASan/UBSan full builds passed. Both complete CTest suites passed, 37/37 tests. The inherited genesis differential replay took 99.93 seconds in release and 407.54 seconds under sanitizers; both passed. WO-09 unit coverage includes shared and mismatched multi-input salts, commitment/event shape, work verification, reveal boundaries 5/6/2016/2017, altered transaction/salt, duplicate event IDs, and the 1,000/1,001 event limit. Its Python differential exam passed the frozen vector and 102 randomized transactions, and rejected malformed encodings. Golden regeneration passed.

The first default fuzz build could not link because the Apple Clang installation lacks libclang_rt.fuzzer_osx.a. Reconfigured with the installed Homebrew LLVM 22.1.8, then ran the Block QTL parser/commitment harness seeded with the frozen valid transaction: 500,000 libFuzzer runs, 29,411 executions/second average, no crash or ASan/UBSan finding. The four-worker Z_commit=18 mining sample found nonce 65,318 in 203 ms on this machine; this single local sample is not a network performance constant.

Boundary of validation

verify_reveal validates the commitment event and transaction’s witness commitment match at a caller-supplied depth. The block/chain caller must authenticate the event’s inclusion and derive its depth from the validated chain. Transaction signature, UTXO, double-spend, event-root, and Rad semantic checks remain with their existing validators. The library does not implement wallet salt generation or wallet user interfaces.