Core: shipped genesis sys.minter is a public key but mint authorization compares account addresses — the authorized minter can never mint on the shipped config, and the broken value is live on all thr
Report
Claim
Every shipped statechain genesis sets sys.minter to a single ed25519 PUBLIC KEY (testnet-0005: 8bc63438d2e9e59ef229865abb73520955da9f3c43b41ff50298884f78ab970d), but the ledger's mint authorization compares that value against the mint block's ACCOUNT ADDRESS — and an address is sha256("xe/account/v1" || pubkey), never the pubkey itself. The two strings can never be equal, so on any node whose sys.minter holds the shipped genesis value, the authorized minter's mint block — built exactly as the shipped xe mint client builds it, Account = the minter wallet's derived address — is rejected 100% of the time with "not an authorized minter", and XUSD issuance is dead. This is not a fresh-bootstrap hypothetical: the broken value is live-configured today. Read on 2026-11-04, GET /statechain/kv/sys.minter on all three bootstrap nodes (ldn, ffm, nyc.core.test.network) returns the genesis pubkey form byte-identically — no DAO rewrite to address form has ever been applied — and the live XUSD minted total is frozen at exactly 213,000,000 µXUSD, unchanged since the 2026-11-01 baseline snapshot, across three days in which escrow burns continued to move. The failure is fail-closed: it locks out the one authorized account and grants nobody else anything (a mint block with Account set to the pubkey string itself is rejected at credential verification — proven). We claim Medium: a total outage of the network's only XUSD issuance path on the shipped and currently-live configuration, recoverable by a governance action and impossible to abuse for unauthorized issuance — not High, and more than a Minor corner case.
Code (repos/xe, source as shipped, HEAD 9787859)
genesis/testnet-0005/statechain-genesis.json(~line 47; identically 0001/0003):sys.minter = {"keys": ["8bc63438d2e9e59ef229865abb73520955da9f3c43b41ff50298884f78ab970d"]}— one ed25519 pubkey, no threshold field. Every other keyset in the same file (sys.dao_keyset,sys.oracle,sys.timekeepers) uses the same pubkey form CORRECTLY, because their consumers compare public keys;sys.minteris the one consumer that does not.core/mint.go:12isMinter(account): loopscfg.Keysand returns true only onstrings.EqualFold(k, account). Its argument isb.Account(validateAndAddMint, mint.go:32; staged path,core/ledger.go:2857) — an account address, not a public key.node/node.go:358minterConfigFn: readssc.GetKV("sys.minter")and unmarshals it verbatim intocore.MinterConfig{Keys}— noDeriveAddressconversion anywhere on this path (contrastcore/crypto.go:23DeriveAddress, which produces the address every other account-facing check uses). The node therefore feeds pubkeys into a comparator that expects addresses.cmd/xe/main.go:822cmdMint: builds exactly the failing form —addr := kp.Address()(derived address),SignBlockfillsPubKey— so the shipped minter CLI can never produce an accepted mint on a genesis-configured node. The block passesValidatePubKeyDeclaration(declared pubkey derives the account) and fails only atisMinter; the error message ("not an authorized minter") points away from the real cause.- Nothing upstream catches the mismatch: the statechain validator for
sys.minterchecks only 64-hex + uniqueness, so the pubkey form passesValidateOp— and so does the address form, which is why a DAO rewrite is a valid recovery (see Bounds).
Reproduced?
Yes — standalone harness poc_deep7_minter_form.go (attached; real core.Ledger + MemStore, the node's minterConfigFn wiring replicated verbatim as the config function, fresh test keys), 38 checks PASS, FAILURES=0, run twice by the finding lane, twice by an independent verifier, and twice from a clean scratch copy at gate review — 6 executions, all clean (full transcripts and the verbatim live responses in the attached run evidence):
- G6 (the defect): minter config in the GENESIS form (
Keys: [pubkey]); a mint built exactly asxe mintbuilds it (Account = derived address, signed) → REJECTED:mint: account bfc3f1ead285... is not an authorized minter. - G7 (control): the identical block with the config in ADDRESS form (
Keys: [derived address]) → ACCEPTED, balance credited. The only variable changed is the key form; the form mismatch is the whole cause. - G9 (no bypass): the same mint with Account set to the pubkey string itself → REJECTED at credential verification (
pub_key does not derive account address). No account-string form both passes credential verification and passesisMinterunder the genesis config — minting is not bypassable, it is unavailable. - G8 (recovery exists): a
sys.mintervalue holding addresses passesValidateOp, so a DAO-threshold statechain block rewritingsys.minterwould restore minting on existing nodes without a code change. - Baseline legs: all four ledger genesis files and all four statechain genesis files parse with the real validators; the testnet-0005 ledger hash matches its README; every statechain genesis op passes
ValidateOp, includingsys.minteritself in pubkey form. - Live leg (read-only, 2026-11-04):
GET /statechain/kv/sys.minteron ldn/ffm/nyc all return{"key":"sys.minter","value":{"keys":["8bc63438d2e9e59ef229865abb73520955da9f3c43b41ff50298884f78ab970d"]}}— byte-identical to the shipped genesis; the derived address of that pubkey (ad21987b…f66) appears nowhere in the live value.GET /supply(ldn): XUSD minted = 213,000,000 µXUSD, exactly the 2026-11-01 snapshot figure, while escrow_burned moved 70,840 → 73,942 µXUSD over the same period.
Impact
On the shipped configuration — the documented bootstrap path (xe node --genesis-dir ./genesis/testnet-0005, same value in 0001/0003) and the configuration the live testnet still carries — XUSD issuance is entirely unavailable: the authorized minter, using the shipped client, fails 100% of the time. XUSD is the lease-payment asset: the faucet and every consumer's lease escrow depend on minting, so the lease economy cannot be supplied from the shipped files alone, and on the live network no new XUSD has been issued in the observable three-day window. The damage is bounded in kind: it is fail-closed (no unauthorized issuance — G9; no fund movement; no consensus split), and it is recoverable by a DAO-threshold rewrite of sys.minter to address form (G8) without a code change. That combination — total outage of a core primitive, zero abuse potential, governance-recoverable — is why this is Medium and not High.
Bounds (honest)
- Live-configured, not live-executed. No live mint attempt was made or claimed: we hold no minter key, and minting is not ours to attempt. The live claim is exactly what was read: the defective genesis value is the current
sys.minteron all three bootstrap nodes (2026-11-04, verbatim responses in the run evidence), and on the shipped HEAD code that value makes the authorized minter's mint always rejected. - Deployed-binary caveat, stated by us: live nodes run build
xe/c665c60, which matches no commit in the public repo, so the deployed binary's comparator cannot be proven identical to HEAD 9787859 from outside. A private fix inside that build (e.g. deriving addresses inminterConfigFn) would make live minting work despite the pubkey KV, without a public trace. We consider that unlikely — the minted total has not moved by one micro-unit in three days while the network kept transacting — but the frozen figure is a supporting observation, not a proof, and we present it as such. - The 213,000,000 µXUSD already minted proves issuance succeeded at some earlier point under an earlier build or configuration; it does not bear on the current shipped/live configuration, which is what this report covers.
- Recovery bound: a DAO 2-of-3 block can rewrite
sys.minterto addresses (G8) without a code change, so a network with an available DAO can restore minting by governance alone. That path exists in code but has never been exercised live. If the DAO keys were unavailable the outage would not be recoverable this way — that scenario is not the claim. - No attacker premise: this needs no key, no victim, no volume — it is the authorized minter's own normal operation failing. Conversely it grants an attacker nothing (G9).
- Proof is on a real Ledger + MemStore with the node wiring replicated as the config function; the full node binary was not run end-to-end for the mint, but the failing check is in the ledger, not in node plumbing, and
cmdMint's block shape is quoted verbatim.
Already known? Body-grepped against all 127 public desk tickets, the 135 GitHub issues, and the shared findings register (not title-only). The nearest neighbour is disclosed and answered, not hidden:
- XE-0129 item 8 (status New, unassessed, no PoC): one sentence — "I investigate inconsistencies between
sys.minter, account authorization, and transaction signatures. If these checks disagree, I may find a way to issue XUSD without legitimate permission." That is an unfocused investigation prompt in the OPPOSITE direction (unauthorized issuance / fail-open), with no mechanism, no genesis value, noisMintercomparison and no proof. This report proves the opposite effect (authorized minter locked out / fail-closed) with an executed proof — and its G9 control affirmatively refutes item 8's hypothesised direction for this path: no account-string form both passes credential verification and passesisMinter, so unauthorized issuance through the minter check is impossible, not merely unproven. If triage nevertheless reads item 8 as covering minter authorization generally, that is the honest fold risk; we cite it ourselves and let the executed, opposite-direction proof speak. - XE-0102 (lease force-settle client bug, claimed High): its own harness feeds
MinterConfigFnwith ADDRESSES (k.Address()) — the test-suite assumption is address form while the shipped genesis is pubkey form. That inconsistency is corroboration, not a prior claim: XE-0102 never mentionssys.minter's genesis form orisMinter. - XE-0003 (accepted Medium): timekeeper key hex/dedup and a cancel-balance leg — a different keyset, a different defect.
- GitHub issues mentioning
sys.minterare an SDK docs-shape issue (/statechain/kv/sys.minterreturns an object, not a string) and the XE-0129 mirror — neither claims this mechanism.
Fix (suggested)
Either (a) ship sys.minter in address form in every genesis bundle (one-line data fix; ValidateOp already accepts it — G8), or (b) make isMinter compare against both forms — derive the address for each configured key and accept either (robust to a genesis that already shipped pubkeys, and to a DAO rewrite that already shipped addresses). Doing both is safest: fix the shipped value AND make the comparator form-tolerant, so a stale bundle or a mixed DAO update cannot re-break minting. Add a regression test that mints with the genesis-derived config (pubkey form) and with the address form, asserting both accept — the XE-0102 harness pattern (address-only config) is exactly the blind spot that let this ship. Independently of the code fix, a DAO rewrite of the live sys.minter to the derived address ad21987b20007437e8b3bef82ca38ee3f42ed05cc0501ccfe1fe28b141ec4f66 restores live minting immediately.
Thread
DEEP-7 — Run evidence (6 harness executions, all 38 PASS / FAILURES=0, + live reads)
Harness executions
Harness: poc_deep7_minter_form.go (byte-identical copy of the finding lane's findings/deep/poc/da4f/main.go, cmp-verified; module files poc_deep7_go.mod / poc_deep7_go.sum, replace github.com/xeprotocol/xe => ../../../../repos/xe resolving to the pinned repo). Real core.Ledger + MemStore; the node's minterConfigFn wiring replicated verbatim as the config function. Invocation: go run . <path-to-repos/xe> (Go 1.25.0, GOPROXY=off, GOTMPDIR/GOCACHE under the workspace). repos/xe verified git-clean (HEAD 9787859) after every pass.
| # | Who | When (ICT) | Result |
|---|---|---|---|
| 1–2 | Finding lane (deep-audit DA-4) | 2026-11-04 | 38 PASS, FAILURES=0, twice (findings/deep/logs/da4f.log, da4f_run2.log; logs differ only in genesis timestamps) |
| 3–4 | Independent verifier | 2026-11-04 ~11:02 | 38 PASS, FAILURES=0, twice, clean scratch; PASS/FAIL line sets identical to lane log (findings/deep/DEEP7-VERIFY-2026-11-04.md) |
| 5–6 | Gate review | 2026-11-04 | 38 PASS, FAILURES=0, twice, clean scratch (findings/_shared/gate-runs/deep7-rerun/run1.log, run2.log); check-name sets identical to lane log |
Load-bearing lines (identical in all runs):
G6-genesis-pubkey-minter-mint-rejected :: err=mint: account bfc3f1ead285... is not an authorized minter— genesis-form config (Keys: [pubkey]), block built exactly asxe mintbuilds it (Account = derived address).G7-address-form-minter-mint-accepted :: err=<nil>— identical block, address-form config; sole variable changed is the key form.G9-pubkey-as-account-mint-rejected :: err=verify: pub_key does not derive account address: derived bfc3f1ead285d06b0574a114de5430166c9b8f8f0ef7361f16a64bd7dd1e2dd3, account 6e0b50d4573afe518d41450d01fce055809c7f0511d701e7c49a8116bf32aea6 (fail-closed: no unauthorised issuance via this path).G8-dao-rewrite-to-address-form-passes-validateop :: err=<nil>— a DAOsys.minterupdate to addresses would restore minting without a code change.
Live reads (read-only GETs, ≤1 rps, 2026-11-04 ~11:02–11:05 ICT, verifier)
Raw responses saved at findings/deep/verify-runs/da4f-live/resp-{ldn,ffm,nyc}.json.
GET /statechain/kv/sys.minter — ldn.core.test.network (HTTP 200):
{"key":"sys.minter","value":{"keys":["8bc63438d2e9e59ef229865abb73520955da9f3c43b41ff50298884f78ab970d"]}}
GET /statechain/kv/sys.minter — ffm.core.test.network (HTTP 200):
{"key":"sys.minter","value":{"keys":["8bc63438d2e9e59ef229865abb73520955da9f3c43b41ff50298884f78ab970d"]}}
GET /statechain/kv/sys.minter — nyc.core.test.network (HTTP 200):
{"key":"sys.minter","value":{"keys":["8bc63438d2e9e59ef229865abb73520955da9f3c43b41ff50298884f78ab970d"]}}
All three are byte-identical to the shipped genesis value in genesis/testnet-0005/statechain-genesis.json. The pubkey's derived account address (sha256("xe/account/v1" || pubkey), computed during verification) is ad21987b20007437e8b3bef82ca38ee3f42ed05cc0501ccfe1fe28b141ec4f66 — it appears nowhere in the live value: no DAO rewrite to address form has occurred.
Corroboration: GET /supply (ldn, same session) — XUSD minted = 213,000,000 µXUSD, exactly the 2026-11-01 baseline snapshot figure; escrow_burned moved 70,840 → 73,942 µXUSD over the same period. Zero new XUSD minted in the observable three-day window while the network kept transacting. (Supporting observation, not proof of a failed live mint — no live mint was attempted; we hold no minter key. Deployed build xe/c665c60 matches no public commit; see the report's Bounds.)
Thanks for the detailed report. We are checking the configuration question it raises with the team and will update https://bounty.xe.network/XE-0360 once we have an answer.