Skip to content

NAVCoin Specification Platform Review, 2026-10-01

A correctness review of the validator-behaviour statements in the NAVCoin create-and-swap specification against the deployed validator code.

  • Code reviewed: c93b2137 (release/combined-fastpay-20260928). crates/execution, crates/types, crates/rpc_sdk and crates/nav_reserve_protocol on main are identical to it. main differs from c93b2137 only in seven crates/node snapshot and status files, none on the paths below. The node fee-quote line is cited at c93b2137.
  • Scope: §3, §3.1, §3.2, §8.1–§8.5, §9.1, and the gate rows B1.3, B1.5, B2.5 and B2.6. Statements about off-chain services are included only where the specification attributes them to the validator, or where the validator constrains them.
  • Method: reading the code only. No tests were run, and no host was touched.
  • Paths: exec/ is crates/execution/src/. types/ is crates/types/src/. nft is exec/nft_escrow_asset_execution.rs, vault is exec/nav_vault_asset_execution.rs and sp1 is exec/nav_sp1_verifier.rs.

Summary

Verdict Count
Holds 13
Holds with a condition the specification does not state 24
Does not hold 3
Not implemented (planned item) 4
Total 44

Most important rows:

  • R3, R36: a paused route still accepts sells. apply_pftl_uniswap_primary_redeem deliberately skips the pause check. Pause blocks only buys, reservations and exports.
  • R15: the fee quote no longer has a 4,096-byte limit for asset operations. The planned quote-by-proof-hash item, B2.2, therefore rests on a premise that no longer holds at c93b2137.
  • R22, R29: the sp1-nav-reserve-v1 bindings hold only while the asset stays bound to such a profile. The issuer can rebind an asset by calling nav_asset_register again. An asset whose proof_profile is not a registered profile ID gets no proof check at all.
  • R38: a pre-signed pause expires when its key signs anything else, because asset transactions require the exact next sequence.

Findings

# Spec section and statement Observed behaviour (file:line) Expected per spec Verdict Suggested change
R1 §3 Open: "Latest epoch finalized ≤100 blocks ago … route not paused" Pricing requires block_height ≤ finalized_at_height + 100 (types/core_chain.rs:250, vault:6488-6503). It also requires ≤ finalized_at_height + policy.max_nav_age_blocks (vault:6424-6444, called at :4752 and :5360) and the policy validity window. Buys and sells also require the policy-pinned epoch to equal the finalized epoch (vault:4742-4751, :5350-5359). 100-block window Holds with condition State the effective window, min(100, max_nav_age_blocks) within the policy validity. State that trading rejects between a new finalize and route_epoch_advance.
R2 §3 Exit-limited: "Sell up to available principal" Redeem rejects the whole order with pftl_uniswap_redemption_unavailable when settlement_reserve_atoms < base_value. Consensus has no partial fill (vault:5369-5373). Partial exit up to principal Holds with condition Say that an over-sized sell is rejected and the wallet must size it to the available principal.
R3 §3 Paused: "Buy No / Sell No" Buys, reservations and exports call ensure_pftl_uniswap_route_live (vault:4442, :4706, :4927, :5649, :6348-6357). Redeem does not. The comment at vault:5309-5311 reads "Inbound pause/disable is not an escape hatch from redemption". The private redeem route transition does the same (vault:5128). Pause blocks sells Does not hold Change the Sell column of the Paused row to "Yes, while NAV is block-fresh". Alternatively, a code note for the other lane if blocking sells is intended.
R4 §3 Paused reasons: venue closed, observation older than 4 hours, or pipeline failure The chain records only the paused boolean. Pause is admitted from the issuer or the reserve operator (vault:5585-5638, :6375-6381). Operator-side reasons Holds None.
R5 §3 Stale: epoch older than 100 blocks, so no buy and no sell Subscribe, order reserve and redeem all call pftl_uniswap_pricing_nav_asset, which rejects with stale_pftl_uniswap_pricing (vault:6488-6503). Both blocked Holds None.
R6 §3 Halted: issuer nav_halt blocks buy and sell Pricing rejects a halted asset (vault:6464-6471). nav_halt is issuer-only (nft:2350-2377). A reserve challenge also halts the asset (nft:1572-1573). Any later nav_epoch_finalize clears the halt (nft:1734-1735). Halt holds until lifted Holds with condition State that the next finalize lifts any halt, including a challenge halt.
R7 §3.1: headers contain no timestamp BlockHeader has no time field (types/core_chain.rs:615-629). It also carries batch_kind, bridge_exit_root and pftl_uniswap_receipt_root. No timestamp Holds Optionally complete the field list.
R8 §3.1: "Block-based staleness alone does not close the route on a quiet weekend" No pricing or verifier path reads wall-clock time (vault:6424-6503, sp1:216-290). No wall-clock rule Holds None.
R9 §3.2: maximum observation age of 4 hours, which the chain cannot measure Nothing on chain measures it. The verifier's ObservationStale counts PFTL blocks and applies only when max_snapshot_age_blocks != 0 (sp1:254-262). Not measured on chain Holds with condition Say that the only on-chain age bound is in blocks and is optional per profile.
R10 §3.2 Calendar: pause at vault:5626, authority at :6415, and "Resume requires a fresh N and live value enabled" The pause function is at vault:5585, and authority is at :6360-6381 (:6415 is the route cap). Resume requires live_value_enabled and a NAV within 100 blocks (vault:5603-5611). It does not require a new epoch. Resume at the next epoch after reopening Holds with condition Fix the line numbers. State that "next epoch after reopening" is operator policy, not a chain rule.
R11 §8.1: "Creating a NAVCoin requires no chain governance" nav_profile_register (nft:2379-2396), nav_asset_register (nft:1095-1184) and pftl_uniswap_route_init_v2 (vault:4151-4310) have no governance gate. Permissionless Holds None.
R12 §8.1 table: type and execution line references The type lines are correct. The execution arms are at nft:842, :874, :1095, :1186, :1576, :2151 and :2379, about 25 lines below the cited ranges. Enum :3517 and :3529 are the v1 route_init and redemption_fund renames. The v2 variants are at :3522 and :3534. Cited lines Holds with condition Refresh the references.
R13 §8.1: the eight operations in order 1–8 Route init v2 pins the finalized epoch and packet (vault:4168-4178), so 6 precedes 8. Mint needs a live finalized packet and supply no greater than the packet's circulating_supply (nft:2164-2170, :2210-2222), so 6 precedes 7. Mint credit needs a trustline, authorized if private (exec/issued_asset_ledger_helpers.rs:546), so 4 precedes 7. Route init v2 rejects any max_supply (vault:4210-4215). Existing supply must equal the opening inventory and be held in full by one authorized, unfrozen holder (vault:4222-4270). Order 1–8 Holds with condition Add three conditions: asset_create without max_supply; minted supply equal to the finalized S; the whole supply in one opening holder.
R14 §8.1 signer column: issuer for nav_profile_register and route operations Any account may register a profile (nft:2379-2396). Route init, epoch advance and pause admit the issuer or the reserve operator (vault:6375-6381). Issuer Holds with condition Name both permitted signers.
R15 §8.1 Large proofs: "The fee quote still enforces the limit" (4,096 bytes) asset_fee_quote operation_json is capped at 96 KiB (crates/rpc_sdk/src/protocol_requests.rs:197-200, :2332-2334). The node caps it at 128 KiB (crates/node/src/lifecycle_queries.rs:14, :1472-1478 at c93b2137). The cap dates from 0f0a6214 (2026-07-27). The 4,096-byte default (protocol_requests.rs:195) applies only to other keys. 4,096-byte cap on the quote Does not hold Remove the sentence, or name the component that still enforces it. Wallet and proxy limits were not checked here.
R16 §8.1: "B2.2 therefore quotes submission by proof hash" No proof-hash quote exists. asset_fee_quote_request takes the full operation (protocol_requests.rs:409-421). Planned Not implemented Re-check whether B2.2 is still needed, given R15.
R17 §8.1 Keys: the reserve-operator key "signs only nav_reserve_submit" The code also admits the reserve operator for route init v2, epoch advance and pause (vault:6375-6381). Submit only Holds with condition Say that "only" is key-use policy and that the chain admits more.
R18 §8.1: execution admits the issuer or reserve operator to submit, at nft:1201 nft:1226-1231 Issuer or reserve operator Holds Fix the line number.
R19 §8.1: "Finalization is issuer-only today" nft:1589-1594 and :1613-1618. Finalize also requires the profile challenge window to have elapsed (nft:1622-1636) and finalization within max_snapshot_age_blocks of submission (nft:1637-1646). Issuer only Holds with condition State both block windows.
R20 §8.2: AssetDefinition at :418 has "no mandate or privacy field" The struct is at types/account_owned_asset_types.rs:402. display_name is at :418 and capped at 64 bytes (types/core_chain.rs:278). The struct has requires_authorization (:422), which the specification itself uses for privacy. No privacy field Holds with condition Reword to "no mandate field; privacy uses requires_authorization".
R21 §8.2: valuation_policy_hash at :3456-3460 Correct. The profile ID is content-addressed over the hash (types/market_nav_asset_types.rs:729-745). Field present Holds None.
R22 §8.2: "Each proof is therefore verified against a profile committed to the mandate" True for sp1-nav-reserve-v1 (sp1:233-235). Not true for sp1-groth16, which never checks the policy hash (sp1:344-393). The issuer can rebind proof_profile and reserve_operator by calling nav_asset_register again (nft:1144-1163). A proof_profile that is not a 64-hex profile ID resolves to no profile and gets no proof check (exec/vault_bridge_profile_resolution.rs:3-21, nft:1257). Every proof bound to the mandate Holds with condition Limit the statement to v1-bound assets. A code note for the other lane: consider freezing the profile binding once supply exists.
R23 §8.2 Visibility: requires_authorization admits only issuer-authorized holders Transparent credit is checked at exec/issued_asset_ledger_helpers.rs:546. Authorization through trust_set is issuer-only (nft:874-930). Authorized holders only Holds None.
R24 §8.2: "shielded swaps work in both modes" No Orchard execution path references requires_authorization (rg over crates/execution/src). Authorization applies only when value reaches a transparent trustline. This was not traced end to end within the time box. Works in both modes Holds with condition State that private-mode authorization is not enforced inside the shielded pool.
R25 §8.3: live sp1-groth16 binds no genesis, asset, epoch or observation time Only the decoded net-asset total is matched (sp1:344-393). No binding Holds None.
R26 §8.3: sp1-nav-reserve-v1 binds genesis, asset, profile, policy hash, manifest, unit and epoch sp1:224-244. The context is built at nft:1366-1386, cited as 1343-1362. Bound Holds Fix the line numbers.
R27 §8.3: current height is checked at sp1:262-285 through ObservationStale sp1:245-262. It is skipped when max_snapshot_age_blocks == 0, and v1 profile validation does not require it to be nonzero; only max_observation_span_blocks must be (types/market_nav_asset_types.rs:603-630). Always checked Holds with condition Require a nonzero max_snapshot_age_blocks in the BMNRC profile and say so.
R28 §8.3: route-principal overlay under a composite source root The overlay is vault-bridge NAV-subscription allocations plus each route's settlement_reserve_atoms, capped at active vault-bridge bucket backing (vault:293-440). The composite root is checked at sp1:266-280. Route principal counted Holds with condition State the cap at active bucket backing.
R29 §8.3: c93 "enforces the exact N floor" through nav_reserve_nav_floor_mismatch at nft:1370-1384 nft:1393-1407. Enforced only when circulating_supply != 0 and only for v1 profiles. Other kinds get only the collateralization check (nft:1213-1219). The scale is 10^precision (nft:1205-1212). Exact floor always Holds with condition State the S = 0 exemption and the v1-only scope.
R30 §8.4 step 3: N = floor(V × 1e8 / S) The scale is the asset's 10^precision (nft:1205-1212). Fixed 1e8 Holds with condition Write 10^precision, which is 1e8 only at precision 8.
R31 §8.4 step 4: finalize with the creator's tap Issuer only (R19). The challenge window is counted in blocks, so on a quiet chain finalize waits for block production. Tap finalizes Holds with condition Note the block-count wait.
R32 §8.4 step 5: advance the route epoch Requires the current finalized epoch and packet (vault:5506-5519) and no active reservations or export entitlements (vault:5527-5539). Until it lands, trading rejects (R1). Advance after finalize Holds with condition State the preconditions and the trading gap.
R33 §8.5 I1: N = floor(V / S) for every finalized epoch, enforced by consensus Only v1-bound assets with S ≠ 0 (R22, R29). Every epoch Holds with condition Scope I1 to v1-bound assets and S > 0.
R34 §8.5 I2: navcoin_bridge_supply_status.invariant_holds Computed in crates/bridge/src/lib.rs:1949. It is a reported status, not a consensus rejection. Alarm Holds None.
R35 §8.5 I3: fees and keeper reserve never count in V Not checked by the node, as the specification states. Route spread is held apart from settlement_reserve_atoms (vault:5423-5440). Packet construction Holds None.
R36 §8.5 I4: "Consensus enforces the first two conditions" (not paused; epoch ≤100 blocks) The 100-block window is enforced for buys and sells. Pause is enforced only for buys (R3). Both, for all trades Does not hold Scope I4 to buys, or add a code note to gate redeem on paused.
R37 §8.5 Quiet-chain test step 4: a buy rejects because the route is paused vault:4706, :6352-6357 Rejected Holds None.
R38 §8.5: a pre-signed pause held on three hosts, any one of which may submit Asset transactions require the exact next sequence (exec/entrypoints.rs:951-958). A pause pre-signed by the reserve-operator key becomes invalid after that key signs a nav_reserve_submit or a route operation. A duplicate pause fails with pftl_uniswap_route_pause_noop (vault:5597-5601). Valid until used Holds with condition State that the pause must be re-signed after every other transaction from its key, or that it uses a key that signs nothing else.
R39 §8.5: after B2.6, certified block time rejects over-age trades No time input at c93b2137 (R7, R8). Planned Not implemented None; the specification already marks B2.6 open.
R40 §9.1: handler and line references Buy at vault:4699 is correct. Pricing is at :6447-6550. Sell is at :5302, not :5344. Issue capacity is at :4868-4875, and redeem capacity at :5333-5347; :5290-5300 is the retired redemption_fund. Block freshness is at types/core_chain.rs:250 (types, not node), applied at vault:6488-6503. Cited lines Holds with condition Refresh the references.
R41 Gate B1.3: a replayed proof and a packet with a wrong N are rejected For v1 profiles, replay is rejected through the genesis, asset and epoch binding (sp1:224-244) and duplicate packets (nft:1243-1256). A wrong N is rejected only when S ≠ 0 (R29). BMNRC is not yet on v1. Both rejected Holds with condition Add a wrong-N case with S > 0 to the gate evidence.
R42 Gate B1.5: route principal counted in V Counted in the consensus overlay, capped at active bucket backing (R28). V = perimeter + overlay Holds with condition Use a fork whose bucket backing covers the route reserve.
R43 Gate B2.5: finalize with the reserve-operator key alone Issuer only (nft:1589-1594). Planned Not implemented None.
R44 Gate B2.6: consensus rejects a buy against an observation older than 4 hours No wall-clock input at c93b2137 (R8). Planned Not implemented None.