Status: NORMATIVE (opcode registry). This appendix is the single consolidated
reference for the Bond RSC (Reserve Sovereign Chain) programmable-UTXO script
system. It assembles the genesis opcode set (§6.5.2) together with every opcode
added elsewhere in the specification — OP_MIGRATE (§6.6.3), the recovery/systemic
opcodes OP_DEADMAN (§11.2.3) and OP_VETO/OP_CONFIRM (§12.5.2, corrected
deny-by-default semantics), the cross-chain opcodes OP_HTLC_XLOCK /
OP_SHA256_PREIMAGE_CHECK (§EI.3.1), and the LBCT confidential-transaction
opcodes (§15.3.5) plus the stealth/CoinJoin surface (§15.4–§15.5).
Where this appendix and a chapter disagree on a value, CONSTANTS.md governs and
both are reconciled to it. Hex assignments, stack signatures, semantics, tier
classification, and a derived relative-weight cost are given for each opcode.
Items that are not yet frozen (unassigned hex, ⚠️ RATIFY parameters,
formal-review-pending soundness claims) are flagged explicitly rather than
invented.
A03.1. Conventions
A03.1.1. Execution model
The Bond RSC script interpreter is a stack machine that is intentionally non-Turing-complete (§6.5.1): no loops, no unbounded recursion, and — critically for this appendix — no gas metering in the Aevum/EVM sense. Termination and resource bounds are guaranteed by construction, not by a runtime gas counter.
Consequently the Bond RSC has no per-opcode gas price. What each opcode carries instead is a relative computational weight used for fee estimation in the Free Lane auction (§2.3.2), exactly as flagged in §6.5.1:
"opcodes carry relative computational weight classifications — see Appendix 03 — used for fee estimation in the Free Lane auction. These weights inform miner fee preference, not gas metering in the Aevum sense."
This appendix therefore reports weight, not gas. The weight model is derived analytically in §A03.3 from the verification-time figures of §6.2.1; its absolute conversion to a fee is a Free-Lane calibration constant and is called out as an open governance parameter (§A03.14).
A03.1.2. Stack-signature notation
Signatures are written <in₁> … <inₖ> → <out>, top of stack rightmost among
inputs and the result on top after execution. → <bool> opcodes push 1 (true)
or 0 (false); a locking script succeeds iff it terminates with a single true on
the stack and no failed VERIFY. <script>/(non-spendable) denote
output-template or provably-unspendable constructions rather than boolean
predicates. Witness-supplied items (signatures, preimages, public keys, opening
data) are provided by the spending transaction; script-embedded items (thresholds,
allowed-destination hashes, timeouts) are fixed in the pUTXO locking_script at
creation.
A03.1.3. sig_version vs. script_version (immutability rule)
Two 2-byte fields on every pUTXO (§6.4.2) govern extensibility:
sig_versionselects the signature scheme and confidentiality mode (§6.6.1, §15.3.6). Canonical registry in §A03.12.2.script_versionselects the interpreter version. New opcodes are added under ascript_versionbump via the 95%-miner-signalling soft fork (§6.5.3).
The immutability invariant (§6.5.3) is load-bearing for this registry: a soft
fork may only ADD opcodes; it may never redefine an existing opcode's
hex, stack effect, or semantics. Semantic changes are deployed under a new
script_version, leaving prior pUTXOs untouched. Every hex value in §A03.2 is
therefore permanently bound to the semantics stated here once activated.
A03.1.4. Tier classification
Per CONSTANTS.md §8: Tier-0 = genesis-immutable (hard-fork only); Tier-1
= core, bicameral supermajority + ADR-0005 counter-sign; Tier-2 = operational.
All consensus-critical opcode semantics are Tier-0 once activated; only
associated economic scalars (e.g. range_proof_gas_rate, §15.3.4) are Tier-1.
A03.2. Master OpCode Summary
Weight column uses the cost classes derived in §A03.3 (V3 = one ML-DSA-65
verification = 1000 VWU anchor; V2 = ML-DSA-44 = 600 VWU; H = one SHA3-256/
SHA-256 block ≈ 5 VWU; C0 = elementary stack/arith op = 1 VWU; R = LBCT
range-proof verify ≈ 10 000 VWU estimated, harness-pending). m, n, n_out,
n_in are runtime multiplicities.
| # | OpCode | Hex | Group | Source | Tier | Weight (VWU) |
|---|---|---|---|---|---|---|
| 1 | OP_CHECKSIG_PQC |
0xAC |
Signature/Auth | §6.5.2 | 0 | V(sig_version) = 1000 or 600 |
| 2 | OP_CHECKMULTISIG_THRESHOLD |
0xAD |
Signature/Auth | §6.5.2 | 0 | m · V(tag) + C0 |
| 3 | OP_VETO |
0xB0 |
Governance/Systemic | §6.5.2, §11.2.4, §12.5.2 | 0 | V3 + H (script path); H (coinbase signal) |
| 4 | OP_DEADMAN |
0xB1 |
Recovery | §6.5.2, §11.2.3 | 0 | m · V3 + 2·C0 |
| 5 | OP_DELAY_BARRIER |
0xB2 |
Timelock/Covenant | §6.5.2 | 0 | 2·C0 |
| 6 | OP_HTLC_LOCK |
0xB3 |
HTLC (internal) | §6.5.2, §7.3.1 | 0 | create: ~3·C0; claim path adds V3 + H |
| 7 | OP_HTLC_CLAIM |
0xB4 |
HTLC (internal) | §6.5.2 | 0 | H |
| 8 | OP_COVENANT_DEST |
0xB5 |
Timelock/Covenant | §6.5.2, §12.3 | 0 | n_out · H |
| 9 | OP_COVENANT_VALUE |
0xB6 |
Timelock/Covenant | §6.5.2 | 0 | 3·C0 |
| 10 | OP_CHECKBLOCKHEIGHT |
0xB7 |
Timelock/Covenant | §6.5.2 | 0 | 2·C0 |
| 11 | OP_RETURN |
0x6A |
Data | §6.5.2 | 0 | 0 (non-executing; byte-weighted only) |
| 12 | OP_MIGRATE |
0xB8 |
Crypto-agility | §6.6.3 | 0 | n_in · V3 + C0, n_in ≤ 50 |
| 13 | OP_HTLC_XLOCK |
0xB9 |
HTLC (cross-chain) | §EI.3.1 | 0 | create: ~3·C0; claim path adds V3 + H |
| 14 | OP_SHA256_PREIMAGE_CHECK |
0xBA |
HTLC (cross-chain) | §EI.3.1 | 0 | H (SHA-256, not SHA3) |
| 15 | OP_COMMITMENT_VERIFY |
0xC0 |
LBCT/Confidential | §15.3.5 | 0 | ~0.3·V3 ≈ 300 |
| 16 | OP_COMMITMENT_ADD |
0xC1 |
LBCT/Confidential | §15.3.5 | 0 | ~8·C0 |
| 17 | OP_RANGE_PROOF_VERIFY |
0xC2 |
LBCT/Confidential | §15.3.5 | 0 | R ≈ 10 000 (estimate) |
| 18 | OP_COMMITSCRIPT |
0xC3 |
LBCT/Confidential | §15.3.5 | 0 | ~5·C0 + guarded subscript |
| — | OP_CHECKSIG_STEALTH |
unassigned (proposed 0xC4) |
Privacy/Stealth | §15.4.2 | 0 | V3 + H |
| — | OP_CONFIRM |
coinbase marker, hex pending | Governance/Systemic | §12.5.2 | 0 | H (coinbase signal) |
PQ-CoinJoin (§15.5) defines no dedicated opcode — it reuses OP_CHECKSIG_PQC
on equal-denomination outputs plus off-chain P2P coordination (§A03.11.2).
Two entries above are not yet frozen and MUST NOT be cited as canonical:
OP_CHECKSIG_STEALTHhas no ratified hex (§15.4.2 names the opcode but assigns no byte;0xC4is the next free slot and is a proposal here), andOP_CONFIRM(§12.5.2) is specified as a coinbaseOP_RETURNattestation payload whose marker encoding is likewise unassigned. See §A03.14.
A03.3. Weight-Cost Model (derivation)
No weight table exists in CONSTANTS.md; the model below is derived
analytically from the only load-bearing performance figures in the corrected
spec — the ML-DSA verification times of §6.2.1 — and is presented as a relative
ordering. Absolute VWU→Nob conversion is a Free-Lane parameter (§A03.14).
A03.3.1. Cost classes and the anchor
Define one Verification Weight Unit (VWU) and fix the anchor at a single Level-3 signature verification, the dominant cost in ordinary spends:
W(ML-DSA-65 verify) ≡ V3 = 1000 VWU (anchor; verification ≈ 10³ elementary ops)
The remaining classes follow from §6.2.1 by time-ratio and by operation count:
| Class | Operation | Reference basis | Derivation | Weight |
|---|---|---|---|---|
C0 |
elementary stack / integer op | baseline | definition | 1 VWU |
H |
one SHA3-256 or SHA-256 block (≤136 B rate) | one Keccak-f/SHA-2 permutation | ≈ 1/200 of a Level-3 verify | ≈ 5 VWU |
V2 |
ML-DSA-44 verify | §6.2.1: 3–6 ms vs 5–10 ms | t₄₄/t₆₅ = 4.5/7.5 = 0.60 |
0.60 · V3 = 600 VWU |
V3 |
ML-DSA-65 verify | §6.2.1: 5–10 ms (midpoint 7.5 ms) | anchor | 1000 VWU |
C |
MLWE-C commitment open/verify | §15.3.1 (one R_q^k product, no rejection sampling) |
≈ 0.3 · V3 | ≈ 300 VWU |
R |
8-limb range-proof verify + carry chain | §15.3.2 (MatRiCT-style, 8 sigma verifies + carries) | ≈ 8–12 · V3 | ≈ 10 000 VWU (estimate) |
Derivation of V2. §6.2.1 gives ML-DSA-44 verification 3–6 ms and ML-DSA-65
verification 5–10 ms on the ARM Cortex-M4 reference core. Taking the interval
midpoints, V2/V3 = 4.5 ms / 7.5 ms = 0.60, hence V2 = 600 VWU. The ratio is
scale-invariant, so it transfers to node-class hardware even though the absolute
milliseconds do not.
Derivation of H. A single SHA3-256 permutation on ≤136 B runs ~2–3 orders of
magnitude faster than a lattice verification (a verify performs an NTT plus
thousands of modular multiplications and hint checks; a Keccak-f is one fixed
permutation). Placing it at ≈1/200 of V3 gives H ≈ 5 VWU, i.e. a hash is ~5
elementary ops — a defensible ordering, not a measured constant.
Derivation of R (flagged estimate). The LBCT range proof (§15.3.2, §15.3.5
OP_RANGE_PROOF_VERIFY) verifies 8 base-2⁸ limb sigma protocols plus an
inter-limb carry chain (k = 8 limbs, carries ∈ [−N_max, N_max], N_max = 2¹⁰).
Each limb verification is comparable to a lattice signature verify; with 8 limbs
plus carry-chain linear checks the total is ≈ 8–12 · V3. We record R ≈ 10 000
VWU as the working estimate. This is the one class the whitepaper argument cannot
pin exactly; it is to be replaced by the measured constant from the benchmark
harness of §A03.13.
Consistency cross-check with the fee proxy. §15.3.4 sets the fee surcharge byte-proportionally:
privacy_surcharge = range_proof_bytes × range_proof_gas_ratewithrange_proof_gas_rate = 2 Nob/byte(genesis, Tier-1). The range-proof size is pending Appendix 09 re-derivation (§15.3.3), so the surcharge in Nob is pending with it; the §15.3.4 calibration "~28 KNob" rests on a superseded ~14 KB figure and is pending too. Our CPU-weight estimateR ≈ 10·V3and the byte-proportional fee proxy are two different measures of the same object; they agree in ordering (LBCT verify is roughly one-to-two orders of magnitude above a plain spend). The protocol's operational charge is the byte proxy; the VWU model is the finer relative-cost ranking used for Free-Lane preference.
A03.3.2. Composite-opcode weight formulas
| OpCode | Weight formula | Worst case |
|---|---|---|
OP_CHECKSIG_PQC |
V(sig_version) |
1000 (0x0001) |
OP_CHECKMULTISIG_THRESHOLD |
m · V(tag) + C0 |
7·V3 = 7000 (FCRC 7-of-10) |
OP_MIGRATE |
n_in · V3 + C0 |
50·V3 = 50 000 (input cap 50) |
OP_DEADMAN |
m · V3 + 2·C0 |
m = guardian quorum |
OP_COVENANT_DEST |
n_out · H |
scales with outputs |
OP_RANGE_PROOF_VERIFY |
R |
≈ 10 000 (estimate) |
OP_MIGRATE and OP_CHECKMULTISIG_THRESHOLD are the heaviest verification
opcodes; the input caps (n_in ≤ 50, bounded quorum n) are precisely what keep
worst-case script weight bounded and satisfy §6.5.1's "bounded by construction"
guarantee.
A03.4. Group I — Signature & Authorization
A03.4.1. OP_CHECKSIG_PQC — 0xAC
- Stack:
<sig> <pubkey> → <bool> - Semantics (§6.5.2). Verifies an ML-DSA signature over the signing
serialization of the spending transaction. The pUTXO's
sig_versionselects the parameter set:0x0001→ ML-DSA-65,0x0002→ ML-DSA-44 (verification-only, §6.6.1). Pushes1iff the signature is a valid FIPS-204 signature under<pubkey>and is in ML-DSA's fixed-length canonical byte encoding — non-canonical encodings are rejected (§6.2.1 Enforcement, §6.9). - Corrected determinism note (§6.2.1). The opcode does not re-derive or re-sign to check the signer's mode. Deterministic signing is a signer-side mandate and is not verifier-checkable; consensus enforces only (a) FIPS-204 validity and (b) canonical encoding. Strong unforgeability (SUF-CMA) plus canonical encoding — not signer determinism — is what binds one transaction serialization to one TXID (§6.9, Signature-Malleability row). Verification cost is unchanged from §6.2.1.
- Weight:
V(sig_version)= 1000 VWU (0x0001) or 600 VWU (0x0002).
A03.4.2. OP_CHECKMULTISIG_THRESHOLD — 0xAD
- Stack:
<sig₁>…<sigₘ> <m> <pub₁>…<pubₙ> <n> [<sig_version_tag>] → <bool> - Semantics (§6.5.2, §6.6.1). Verifies that at least
mofnML-DSA signatures are valid. The parameter set is chosen by the optional<sig_version_tag>in witness data (default: pUTXOsig_version). Two canonical uses: (i) M-of-N guardian quorums and FCRC ceremony signing under ML-DSA-65 (the 7-of-10 custody quorum,CONSTANTS.md §fcrc.custody_quorum); and (ii) bridge oracle attestation verification under ML-DSA-44 viasig_version_tag = 0x0002(§6.6.1). Oracle public keys are supplied as witness data, never queried from global state — preserving the state-isolation guarantee (§6.4.3). - Deduplication (corrected,
CONSTANTS.md §oracle.quorum_dedup_rule). When used for oracle quorums, only distinct registered signers are counted towardm; duplicate signatures from one signer do not inflate the count. - Weight:
m · V(tag) + C0. Worst case for the FCRC 7-of-10 ceremony:7·V3 = 7000 VWU.
A03.4.3. OP_CHECKSIG_STEALTH — hex unassigned (proposed 0xC4)
- Stack:
<sig> <pk_stealth> <k_eph> → <bool> - Semantics (§15.4.2). Spends a stealth-addressed pUTXO locked as
<tag_stealth> OP_CHECKSIG_STEALTH, wheretag_stealth = SHA3-256(pk_spend ∥ k_eph). The recipient reveals the one-time keypk_stealth, the tweakk_eph, and an ML-DSA-65 signature underpk_stealth; the opcode verifies (a) the signature and (b) thatpk_stealthis the one-time key bound totag_stealthunder the recipient's spend key. Because ML-DSA-65 is not key-homomorphic (§15.4.2), the one-time keypair is generated recipient-side from the KEM shared secret; the sender can fund but never sign.k_ephis recoverable only viadk_scanandsk_stealthonly viask_spend. - Weight:
V3 + H(one ML-DSA-65 verify + one binding hash) ≈ 1005 VWU. - Status. §15.4 activates under the privacy roadmap governance gate (§15.9,
supermajority 66%/60%). Hex not ratified — see §A03.14.
0xC4is proposed as the next contiguous slot after the LBCT block (0xC0–0xC3).
A03.5. Group II — Timelocks & Covenants
All block counts refer to Bond RSC blocks (bond.block_time = 20 min,
CONSTANTS.md §1).
A03.5.1. OP_CHECKBLOCKHEIGHT — 0xB7
- Stack:
<height> → <bool>· Semantics (§6.5.2): true iff current block height ≥<height>(absolute timelock: vesting cliffs, epoch-aligned releases). - Weight:
2·C0.
A03.5.2. OP_DELAY_BARRIER — 0xB2
- Stack:
<delay_blocks> → <bool>· Semantics (§6.5.2): enforces a minimum height delta between the pUTXO's creation (block_height_created, §6.4.2) and its spend. Canonical uses: FCRC timelock (1,008 blocks ≈ 14 days, §12.5.1), social- recovery windows (216 blocks ≈ 72 h floor, §11.2.4), vesting. - Weight:
2·C0(one subtraction + one compare).
A03.5.3. OP_COVENANT_DEST — 0xB5
- Stack:
<allowed_dest_hash> → <bool>· Semantics (§6.5.2, §12.3): restricts the spending transaction's outputs to a predefined destination set, identified bySHA3-256hash. This is the opcode that ring-fences the FCRC (§12.3): FCRC pUTXOs are locked withOP_COVENANT_DESTso spends can only route to addresses satisfying the full unlock protocol (ceremony + timelock + veto). Also enforces guardian-recovery routing to designated heir addresses (§11.2). - Weight:
n_out · H(one hash per output checked).
A03.5.4. OP_COVENANT_VALUE — 0xB6
- Stack:
<min_value> <max_value> → <bool>· Semantics (§6.5.2): bounds the spending transaction's output values to[min,max]. Drives Volumetric Delay Barriers — withdrawals above threshold triggerOP_DELAY_BARRIER. - Weight:
3·C0.
Composition (§6.5.2). Covenant opcodes compose via IF/ELSE/ENDIF branching;
the transaction is valid if any path succeeds. The canonical Staking-While-Vested
example (§6.5.2) combines OP_COVENANT_DEST, OP_CHECKBLOCKHEIGHT, and
OP_CHECKMULTISIG_THRESHOLD across three spend paths. All compositions remain
statically analysable and bounded (§6.5.1); the aggregate weight of a branching
script is the weight of the taken path.
A03.6. Group III — HTLC & Cross-Chain Atomicity
A03.6.1. Timelock invariant (corrected)
All HTLC opcodes are parameterized subject to the corrected initiator/responder
timelock ordering (CONSTANTS.md §htlc.timelock_invariant, §7.3.2):
T_initiator ≥ T_responder + Δ (initiator refund timelock STRICTLY exceeds responder's)
The party that can reveal the preimage first (the initiator) must have the later
refund deadline, so the responder always has a safe interval to claim after the
preimage is revealed. Any OP_HTLC_LOCK / OP_HTLC_XLOCK pair MUST be constructed
with the initiator's refund height above the responder's by Δ (the confirmation-
safety margin of §EI.3.4). In the xHTLC-BTC flow (§EI.3.2) this is expressed as
timeout_bond > timeout_btc.
A03.6.2. OP_HTLC_LOCK — 0xB3 (internal, SHA3-256)
- Stack:
<hash> <timeout_height> → <script>· Semantics (§6.5.2, §7.3.1): constructs a hash-time-locked output — spendable by presenting the SHA3-256 preimage beforetimeout_height, refundable by the sender after. Internal (Bond↔Aevum) swaps only; hash function is SHA3-256, fixed (§6.3). - Weight: construction ≈
3·C0; the claim path costsV3 + H(the claimant's signature +OP_HTLC_CLAIM).
A03.6.3. OP_HTLC_CLAIM — 0xB4
- Stack:
<preimage> <hash> → <bool>· Semantics (§6.5.2): true iffSHA3-256(preimage) = hash. · Weight:H.
A03.6.4. OP_HTLC_XLOCK — 0xB9 (cross-chain, SHA-256)
- Stack:
<h_ext:32> <timeout:height> <chain_id:4> → <script> - Semantics (§EI.3.1). Cross-chain HTLC template whose spend paths are:
OP_HTLC_XLOCK <h_ext> <timeout_bond> <chain_id>
IF OP_SHA256_PREIMAGE_CHECK <h_ext> ; claim: external-hash preimage
<recipient_pubkey> OP_CHECKSIG_PQC
ELSE <timeout_bond> OP_CHECKBLOCKHEIGHT ; refund after timeout
<refund_pubkey> OP_CHECKSIG_PQC
Distinct from OP_HTLC_LOCK because the Bond side must check a SHA-256 (not
SHA3-256) commitment for Dual-Hash-Commitment compatibility with external chains
(§EI.2). A single preimage s satisfies both SHA3-256(s)=h_pqc and
SHA256(s)=h_ext, giving cross-chain atomicity.
- Why a new opcode (§EI.3.1). Parameterizing the hash of OP_HTLC_LOCK would
put a hash-selection vector on the consensus layer and create a governance surface
to weaken internal HTLC security. A distinct opcode preserves the SHA3-256 mandate
(§6.3) unconditionally. OP_HTLC_XLOCK is not available for internal
Bond↔Aevum swaps.
- chain_id. Informational (watchtower indexing); does not affect consensus
logic.
- Tier: 0 (genesis-immutable, §EI.3.1). · Weight: construction ≈ 3·C0;
claim path V3 + H.
A03.6.5. OP_SHA256_PREIMAGE_CHECK — 0xBA
- Stack:
<preimage> <h_ext> → <bool>· Semantics (§EI.3.1): true iffSHA256(preimage) = h_ext. The only consensus opcode that uses SHA-256 rather than SHA3-256; scoped exclusively to external-chain compatibility. · Weight:H(one SHA-256 block).
A03.7. Group IV — Governance, Recovery & Systemic
A03.7.1. OP_DEADMAN — 0xB1 (§11.2.3)
- Stack:
<guardian_sigs> <inactivity_period> → <bool> - Semantics (§6.5.2, §11.2.3). Activates a succession/recovery path when
current_block_height − pUTXO_creation_height > inactivity_period, gated by M-of-N guardian signatures. The inactivity proof is local to the protected pUTXO, not global: the creation height is the "last-activity" marker, refreshed by a keepalive self-send. This sidesteps the non-constructive "no transaction signed by key X anywhere" proof that a UTXO chain cannot furnish. - Parameters (§11.2.3): inactivity period user-set within [90 days, 1,825
days]; the 90-day floor is hardcoded (anti-coercion). Guardian keys become
eligible only after a
guardian_active_after_blockprobation (default 90 days, §11.2.4). - Weight:
m · V3 + 2·C0(one height compare +mguardian verifies).
A03.7.2. OP_VETO — 0xB0 (dual role)
OP_VETO serves two distinct roles. Both are genesis consensus rules (§12.5.2 "No
Chain Split"); neither requires a fork.
Role A — Social-recovery cancellation (§6.5.2, §11.2.4).
- Stack: <veto_proof> <txid_target> → <bool>
- Semantics. During a recovery veto window the original owner submits OP_VETO
carrying their ML-DSA signature authorizing cancellation. Effect (§11.2.4): (1)
cancels the pending recovery; (2) slashes all guardians who signed the
recovery, confiscating their entire accumulated rewards to the DAO Treasury; (3)
permanently revokes those guardians' status for the account. Guaranteed timely
inclusion via Systemic Expressway Tier-1 (§2.2, §11.2.4) so an attacker cannot
spam the veto past window expiry.
- Weight: V3 + H.
Role B — FCRC deny-by-default fraud challenge (corrected, §12.5.2). This is the
corrected semantics and supersedes any earlier permissive description.
- Encoding. A coinbase OP_RETURN signal:
OP_RETURN OP_VETO <SHA3-256(FCRC_withdrawal_TXID)> ; bonded fraud challenge
- Deny-by-default finalization rule (§12.5.2, §12.5.1). An FCRC withdrawal is
rejected the moment it is broadcast and stays rejected unless it actively
earns confirmation. Over the 1,008-block (~14-day) challenge window it finalizes
only if both: (i) > 50% of the window's blocks (≥ 505 / 1,008) carry a
valid
OP_CONFIRMfor the withdrawal's TXID, and (ii) no bondedOP_VETOfraud challenge remains unrebutted at window close. Timelock expiry alone never releases funds (§12.5.1) — silence is rejection. - Veto bond (§12.5.2). Every withdrawal escrows a slashable veto bond, posted
from the DAO mobilization proposal's operational budget, never from ring-fenced
FCRC principal. A correct
OP_VETO(or withheldOP_CONFIRM) on a fraudulent withdrawal slashes the bond pro-rata to the winning miners; a legitimate withdrawal returns its bond in full; a false veto earns nothing. - Security bound (derived, §A03.7.4). The rejection default forces an attacker to manufacture an affirmative > 50% confirming majority — the Nakamoto honest-majority bound — rather than merely suppress opposition at ~49%.
- Weight:
H(coinbase-marker signal; a hash comparison ofSHA3-256(TXID)plus bond accounting at block validation — not a per-input script execution).
Formal-review pending (ADR-0005 counter-sign). The deny-by-default veto game (incentive compatibility, > 50% security bound) is to be proved in Appendix 09 (Pending Formal Derivations), per §12.5.2.
A03.7.3. OP_CONFIRM — coinbase marker, hex pending (§12.5.2)
- Encoding.
OP_RETURN OP_CONFIRM <SHA3-256(FCRC_withdrawal_TXID)>in the block's coinbase. · Semantics (§12.5.2): a miner who has independently verified the on-chain FCRC trigger (§12.2) postsOP_CONFIRM— the affirmative attestation the finalization rule counts (≥ 505/1,008 required). Confirmations cannot be censored without the miner refusing to mine the block entirely. - Weight:
H. · Status: the confirm/veto pair are the two coinbase signaling primitives introduced with the deny-by-default correction;OP_VETOinherits0xB0, butOP_CONFIRM's marker byte is not yet assigned — see §A03.14.
A03.7.4. Derived: the deny-by-default security threshold
Let the challenge window be W = 1,008 blocks and let a fraction h_A of window
blocks be produced by an attacker coalition (≈ its hashrate share over the window).
- Old permissive rule (superseded). A fraudulent unlock succeeded unless
cancelled by a strict-majority veto. An honest supermajority all vetoing could
at most reach the 51%-cancellation boundary, so an adversary with
h_A ≈ 0.49could push a fraudulent withdrawal through by inaction. Attack cost ≈ 49% hashrate. - Corrected deny-by-default rule. Finalization needs an affirmative
confirm_blocks / W > 1/2, i.e.≥ 505confirming blocks. Honest miners confirm only a publicly verifiable trigger (§12.2), so to finalize a fraudulent withdrawal the attacker must itself author ≥ 505 confirming blocks:
finalize_fraud ⇔ h_A · W ≥ 505 ⇔ h_A ≥ 505/1008 = 0.5010 > 1/2
The threshold is a strict majority (> 50%) sustained for the full ~14-day
window — exactly the Nakamoto honest-majority bound, with no ~49% shortcut.
The corrected rule strictly raises the attack floor from h_A ≈ 0.49 to h_A >
0.50 and makes fraud the harder outcome (§12.5.2, §12.5.3). Symmetrically,
griefing a legitimate withdrawal now also requires withholding a majority of
window blocks (a cartel-level, honest-majority-breaking commitment) and earns no
reward, since the honest DAO's bond is returned rather than slashed.
A03.8. Group V — Crypto-Agility & Migration
A03.8.1. OP_MIGRATE — 0xB8 (§6.6.3)
- Stack:
<deprecated_utxos> → <consolidated_utxo> - Semantics (§6.5.2, §6.6.3). Consolidates multiple deprecated-
sig_versionpUTXOs into a single new-sig_versionpUTXO at 1× base fee. Valid only during active grace windows; outside them the opcode is consensus-invalid. Receives Systemic Expressway Tier-4 priority during grace windows. - Canonical parameters (
CONSTANTS.md §5, §6.6.3):
| Parameter | Value | Source |
|---|---|---|
| Grace-window cadence | every 13,104 blocks (≈ 6 months, 26 epochs), twice/yr | sig_version.grace_cadence; §6.6.3 |
| Grace-window duration | 504 blocks (≈ 7 days, 1 epoch) | §6.6.3 |
| Fee during window | 1× base (multiplier suspended) | §6.6.3 |
Max inputs / OP_MIGRATE |
50 pUTXOs | §6.6.3 (anti-block-stuffing) |
| Migration fee ceiling | ≤ 10% of face value | crypto.op_migrate_ceiling (Tier-0) |
- Relationship to CET (§6.6.2, §1.3).
OP_MIGRATE(≤10% ceiling, periodic) and the Confiscation Equivalence ThresholdCET_ratio = 0.50(CONSTANTS.md §crypto.cet_ratio) are complementary, not conflicting, and both Tier-0: CET caps any deprecated-sig_versionspend at 50% of face value at all times;OP_MIGRATEgives a ≤10% cheap-migration path twice a year. Neither ever confiscates funds (Axiom 1). - Continuous mode (§6.7.1, C-08). Under a Quantum-Canary Multi-Signal Array
reaching Active Signals ≥ 2 (§6.7.2),
OP_MIGRATEbecomes valid in every block (Level-2 continuous mode); at Active Signals = 3 all deprecated-sig_versionmigration fees are waived. Continuous mode persists until signals hold at 0 for 8,064 blocks (≈ 16 weeks, 16 epochs). - Weight:
n_in · V3 + C0,n_in ≤ 50→ worst case50·V3 = 50 000 VWU. The input cap bounds worst-case verification load per §6.5.1.
A03.8.2. sig_version registry (context for OP_MIGRATE, §6.6.1)
See §A03.12.2 for the full table; the migration path (soft-fork activation → coexistence → progressive fee escalation → organic migration) is specified in §6.6.1. Fee escalation tiers (1× / 3× / 6× / 12× cap) are hardcoded at deprecation (§6.6.2) and, per CET, never exceed 50% of face value.
A03.9. Group VI — Data
A03.9.1. OP_RETURN — 0x6A
- Stack:
(non-spendable)· Semantics (§6.5.2): embeds ≤ 256 bytes in a provably unspendable output. Carries cross-ledger oracle attestations, Quantum- Canary monitoring markers, the genesis governance commitment (§11.5.8), FCRC post-mortems (§12.5.4), and — as the transport forOP_VETO/OP_CONFIRM(§A03.7) — the coinbase FCRC signaling payloads. - Weight: 0 execution weight; the output is charged only by byte weight in
the Free-Lane auction. The 256-byte cap is relaxed to 1,088 bytes for
sig_version 0x02xxstealth transactions (§15.4.2) to carry the KEM ciphertext.
A03.10. Group VII — LBCT Confidential-Transaction OpCodes (§15.3.5)
All four are Tier-0 (genesis-immutable once activated) and activate
simultaneously via the LBCT governance vote (§15.9). They operate on Module-LWE
commitments (MLWE-C) over the ML-DSA ring R_q, q = 8 380 417 (§15.3.1), with
amounts represented as k = 8 base-2⁸ limbs.
A03.10.1. OP_COMMITMENT_VERIFY — 0xC0
- Stack:
<v> <r> <C> → <bool>· Semantics (§15.3.5): true iffMLWE-C(v,r) = Cfor disclosed opening(v,r). Backs fee-check transparency — the fee limbs are disclosed so miners can verify their reward while amounts stay confidential (§15.3.3 "Fee Field Always Transparent"). · Weight:C≈ 300 VWU.
A03.10.2. OP_COMMITMENT_ADD — 0xC1
- Stack:
<C₁> <C₂> → <C₁+C₂ mod q>· Semantics (§15.3.5): homomorphic sum of two commitments. This is the additive homomorphismMLWE-C(m₁,r₁) + MLWE-C(m₂,r₂) = MLWE-C(m₁+m₂, r₁+r₂)(§15.3.1) that makes the per-limb conservation netS_jcomputable on-chain. · Weight:≈ 8·C0(k = 8 ring additions, one per limb).
A03.10.3. OP_RANGE_PROOF_VERIFY — 0xC2
- Stack:
<range_proof> <commitments> → <bool> - Semantics (corrected multi-limb conservation, §15.3.2). Verifies the 8-limb
lattice sigma protocol (each limb
∈ [0, 2⁸)) together with the carry-chain range bounds (each carry∈ [−N_max, N_max],N_max = 2¹⁰). This is the opcode that upgrades value conservation fromZ_qtoZ(the integers): limb commitments are never recombined into a single aggregate (which would re-expand to 64-bit magnitude and re-admit mod-q wraparound inflation); instead conservation is checked limb-by-limb via the carry chainS_j + K_{j−1} = 256·K_j,K_{−1}=K_7=0. Because every term stays≤ N_max·2⁸ = 2¹⁸ ≪ q, each per-limb identity that holds modqholds overZ; telescoping proves∑ v_in = ∑ v_out + feeover the integers, for up to the consensus I/O capN_max = 2¹⁰value-bearing commitments per transaction (§15.3.1–§15.3.2). - Soundness (§15.3.2). Statistically sound: a prover committing to an out-of-range limb or carry cannot produce a small-norm response without solving Module-SIS (soundness error negligible in the security parameter). Construction follows MatRiCT / MatRiCT+ (Esgin–Steinfeld–Zhao–Liu, CCS 2019; Esgin et al., IEEE S&P 2021).
- Weight:
R ≈ 10 000 VWU— the heaviest opcode, estimate pending harness (§A03.13). Consensus nodes run full verification (no sampling).
A03.10.4. OP_COMMITSCRIPT — 0xC3
- Stack:
<commitment> <subscript> → <bool>· Semantics (§15.3.5): a script guard that operates on the commitment value rather than the plaintext value, enabling covenant scripts over confidential pUTXOs (cpUTXOs) — e.g. a value-bounded covenant that must hold without revealing the amount. · Weight:≈ 5·C0+ the weight of the guarded subscript.
cpUTXO note (§15.3.3, §15.3.6). A cpUTXO removes the 8-byte plaintext value
and adds a ~6.1 KB commitment (k = 8 limb commitments × ~768 B), a range_proof
of a few KB (exact size pending Appendix 09 re-derivation), and a 32-byte
blinding_nonce. Confidentiality mode is encoded in sig_version bit 8
(0x0100 mask): 0x0101 = ML-DSA-65 + LBCT (§15.3.6). Transparent and confidential
pUTXOs coexist; a transaction may mix them provided transparent legs satisfy the
plaintext fee equation and confidential legs satisfy the per-limb commitment
conservation (§15.3.6).
A03.11. Group VIII — Privacy Surface (Stealth & CoinJoin)
A03.11.1. Stealth addressing
The stealth mechanism (§15.4, ML-KEM-768 / FIPS-203) introduces exactly one new
scripting opcode, OP_CHECKSIG_STEALTH (documented in §A03.4.3; hex
unassigned). Everything else in §15.4 is off-chain derivation (sender computes
tag_stealth, recipient scans with dk_scan) or metadata transport in the
OP_RETURN/metadata field (relaxed to 1,088 bytes, §A03.9). No opcode reads
KEM state on-chain, preserving §6.4.3 isolation.
A03.11.2. PQ-CoinJoin — no dedicated opcode (§15.5)
PQ-CoinJoin (§15.5) achieves transaction-graph unlinkability without a new
opcode. It combines multiple users' spends into one joint transaction using:
(i) standard OP_CHECKSIG_PQC on equal-denomination outputs (standard
denomination tiers, §15.5.1 — equal values are indistinguishable by amount); and
(ii) an off-chain coordination protocol over the P2P Relay (§15.5.2), which replaces
the RSA-based Chaum blind signatures of classical CoinJoin (quantum-vulnerable) with a
lattice blind signature (blind-issued single-use redemption token) plus a Tor/I2P
anonymous channel. Because coordination is off-chain and outputs use the existing signature
opcode, the consensus opcode set is unchanged by PQ-CoinJoin. This is recorded
here so implementers do not search for a nonexistent OP_COINJOIN.
A03.12. Hex Allocation Map & sig_version Registry
A03.12.1. Opcode hex namespace
| Range | Assignment |
|---|---|
0x6A |
Data (OP_RETURN) — inherited Bitcoin-style opcode number |
0xAC–0xAD |
Signature/auth (OP_CHECKSIG_PQC, OP_CHECKMULTISIG_THRESHOLD) |
0xB0–0xB7 |
Genesis governance/covenant/HTLC/timelock block |
0xB8 |
OP_MIGRATE (crypto-agility) |
0xB9–0xBA |
Cross-chain (OP_HTLC_XLOCK, OP_SHA256_PREIMAGE_CHECK) |
0xC0–0xC3 |
LBCT confidential block |
0xC4 (proposed) |
OP_CHECKSIG_STEALTH — not ratified |
| coinbase marker (pending) | OP_CONFIRM — not ratified |
Every assignment above is append-only under the §6.5.3 immutability rule; a soft fork may claim a new slot but may never repurpose an assigned one.
A03.12.2. sig_version registry (§6.6.1, §15.3.6)
sig_version |
Scheme | Confidentiality | Status |
|---|---|---|---|
0x0000 |
— | — | Permanently invalid (null sentinel) |
0x0001 |
ML-DSA-65 (Level 3) | transparent | Active (genesis); all Bond RSC pUTXO signing |
0x0002 |
ML-DSA-44 (Level 2) | transparent | Active (genesis); verification-only — cannot create pUTXOs; used by OP_CHECKMULTISIG_THRESHOLD for oracle attestations |
0x0003–0x00FF |
future PQC schemes | transparent | Inactive (soft-fork activated) |
0x0101 |
ML-DSA-65 | LBCT (MLWE-C) | Roadmap (§15.3.6); bit-8 (0x0100) = confidentiality flag |
0x0102 |
ML-DSA-65 (upgraded) | LBCT | Reserved (§15.3.6) |
0x02xx |
ML-DSA-65 + stealth | stealth metadata | Roadmap (§15.4.2); relaxes metadata cap to 1,088 B |
A03.13. Weight Benchmark Harness (specification — not yet run)
The one weight class the whitepaper argument cannot fix analytically is R
(OP_RANGE_PROOF_VERIFY, §A03.3.1), and the absolute VWU→Nob constant for the Free
Lane. Rather than invent numbers, we specify the harness that will produce them.
- Model. Micro-benchmark each opcode's dominant primitive on the reference node
build in isolation,
n = 10⁴iterations, warm cache, pinned core, turbo disabled; report median and IQR (nanoseconds), converted to VWU by normalizing to the measured ML-DSA-65 verification median (≡ V3 = 1000 VWU). - Primitives to measure. (a) ML-DSA-65 verify; (b) ML-DSA-44 verify; (c) one
SHA3-256 block; (d) one SHA-256 block; (e) MLWE-C open/verify (
OP_COMMITMENT_VERIFY); (f) MLWE-C homomorphic add (OP_COMMITMENT_ADD); (g) full 8-limb range-proof + carry-chain verify (OP_RANGE_PROOF_VERIFY); (h)OP_CHECKSIG_STEALTHend-to-end (binding hash + verify). - Metric / claim to validate.
V2/V3 ∈ [0.5, 0.7](predicted 0.60 from §6.2.1);R/V3 ∈ [8, 12](predicted ≈10);H/V3 ≈ 5×10⁻³. Worst-case script weightOP_MIGRATE(50) = 50·V3andOP_CHECKMULTISIG_THRESHOLD(7-of-10) = 7·V3must each verify within the block-validation budget for a full 2 MB Bond block. - Random process. Fixed seed; inputs drawn from valid signature/commitment/ proof distributions produced by the reference signer.
- Expected outputs: to be produced by executing the specified harness on the
reference node build — not yet run. Until then the VWU numbers in §A03.2–
§A03.3 are the analytically-derived ordering, with
Ran explicit estimate.
A03.14. Open Dependencies & Pending Items
| Item | Nature | Dependency |
|---|---|---|
OP_CHECKSIG_STEALTH hex |
Unassigned | §15.4 names the opcode but assigns no byte. 0xC4 proposed (next free slot); ratify with the §15.9 privacy governance gate. |
OP_CONFIRM marker byte |
Unassigned | §12.5.2 introduces the confirm/veto coinbase pair with the deny-by-default correction; the marker encoding is not yet frozen. |
R (range-proof weight) |
Estimate | ≈10 000 VWU pending the §A03.13 harness. |
| VWU→Nob Free-Lane constant | Open (governance) | Absolute weight-to-fee conversion is a Free-Lane calibration (§2.3.2); not in CONSTANTS.md. |
range_proof_gas_rate |
Tier-1 | 2 Nob/byte at genesis (§15.3.4); governance-adjustable. |
sig.bridge_oracle (ML-DSA-65 vs -44) |
⚠️ RATIFY | CONSTANTS.md §5 — affects the sig_version_tag weight for bridge OP_CHECKMULTISIG_THRESHOLD (600 vs 1000 VWU per signature). Stated as a dependency, not resolved here. |
| Deny-by-default veto game proof | Formal-review pending | §12.5.2 / Appendix 09, ADR-0005 counter-sign. |
| LBCT integer-conservation soundness | Cited as sound | §15.3.2 (Module-SIS reduction, MatRiCT/MatRiCT+); whitepaper-level proof in Appendix 10; machine-checked formalization deferred (Appendix 09). |
Formal-review pending (ADR-0005 counter-sign). The two soundness/security claims marked above (deny-by-default veto threshold; LBCT multi-limb conservation over
Z) carry rigorous whitepaper arguments here (§A03.7.4, §A03.10.3) but their machine-checked formalization is deferred to Appendices 09–10.
Cross-references: genesis opcodes §6.5.2; soft-fork extensibility §6.5.3;
crypto-agility/OP_MIGRATE §6.6; OP_DEADMAN §11.2.3; OP_VETO/OP_CONFIRM
deny-by-default §12.5.2; OP_HTLC_XLOCK §EI.3.1; LBCT opcodes §15.3.5; stealth
§15.4.2; PQ-CoinJoin §15.5. Canonical values: CONSTANTS.md §1, §5,
§fcrc.custody_quorum, §crypto.cet_ratio, §crypto.op_migrate_ceiling,
§htlc.timelock_invariant, §oracle.quorum_dedup_rule.