Luggom — a Cosmos SDK app-chain where you mine LUG by paying real taxes (public testnet)

Hi everyone,

We just opened the public testnet of Luggom, a Cosmos SDK app-chain with one job: turn a real tax payment into money you own, proven 

end to end with TLSNotary.

No KYC. No third parties. The bank session never leaves the user's device.

## Why another chain?

Because Cosmos is at its best when an app-chain brings a new kind of user. Luggom brings the taxpayer.

There is no subsidy and no token sale. The inflow is a real payment that already leaves people's accounts every year. The chain's job 

is to prove it happened and mint against it.

## How it works

1. The user pays a real tax at their bank, as always.
2. TLSNotary proves the paid receipt without exposing the session.
3. The notary signs the attestation; the chain verifies it and mints.
4. Each receipt mines exactly once (payment_id + proof_commitment anti-replay).

The desktop app (Tauri/Rust) builds the proof request and signs locally. The seed never leaves the device.

What is live

- chain-id: `luggom-test`
- RPC: `https://rpc.luggom.com`
- LCD: `https://lcd.luggom.com`
- API: `https://api.luggom.com`
- Notary: `wss://notary.luggom.com/session`
- Full nodes: open (p2p 26656) — seed `1530baa7b3a07e0cab8dc81c9c08fccc51a47471@62.146.183.122:26656`
- Validators: by invitation (the operator funds 200 testnet LUG)
- App + node binaries: https://github.com/Luggom/Luggom/releases/tag/testnet-2026-10-21
- Endpoints + curl: https://luggom.com/developers.html

First real mining on the testnet: R$ 1,291.49 → 21.09 LUG, height 1284, code 0.
Tx: `75EEF27E00190D2117E2DBA4388B694C34962467F56F77A57CC4114A61E5141D`
Verify: https://lcd.luggom.com/cosmos/tx/v1beta1/txs/75EEF27E00190D2117E2DBA4388B694C34962467F56F77A57CC4114A61E5141D

## What we need

- Cosmos devs to review `x/luggom`: mining rules, split, anti-replay, oracle, governance guards.
- Node runners to sync and report issues.
- US/Canada rail testers: a real, sanitised tax receipt + the canonical payment field.
- Windows and Chromium/Edge devs: the app is Linux+Firefox today.
- API fuzzing and anti-replay testing.

## Known limitations (honest)

    - Testnet, unaudited; it can be reset. No monetary value.
    - One operator, four validators on one host. It is not decentralized yet.
    - One bank is proven end to end: Viacredi (Brazil). The US and Canada are next; the rail needs evidence.
    - The API has no auth; mining is rate-limited (5/hour/IP). Do not use it as a production backend.
    - Validators are by invitation; full nodes are open.
    - Linux only; Windows/macOS installers and a Chromium collector are pending.

    ## Mainnet design (context, not testnet)

    Basket `(EUR/USD + GBP/USD + CHF/USD) / 3 × 3`, +10%/year, immutable. Cap 7B LUG, −5%/year. OTC vault gets 40% in Phase 2, BTC only, 
  immobile. The ATOM reservoir is a mainnet design: lock 100 ATOM for +10%/year on top of the staking drip, capped at 25%/year, paid in 
  LUG. There is no token sale.

    Whitepaper: https://luggom.com/whitepaper.html

    ## Links

    - Site: https://luggom.com
    - Developers: https://luggom.com/developers.html
    - Source (Apache-2.0): https://github.com/Luggom/Luggom
    - Release: https://github.com/Luggom/Luggom/releases/tag/testnet-2026-10-21
    - Telegram group: https://t.me/+XRWgwPwvz4hkOTJh

    Feedback and code review are welcome. If you want to run a node or test a rail, reply here or join the Telegram group.

    — Lugo Vane

1 Like

Nice to see the inflow come from real payments instead of emissions. I had a read through x/luggom, and three things stood out around mining and anti-replay:

  1. miner_address isn’t part of the signed attestation. BuildAttestationPayload covers the proof commitment, payment, entity, date, tax nature, payer and provider, but not who receives the mint. The mempool is public, so anyone who sees a MsgMineTaxPayment (or anything sitting between the notary and the user) can resend the same attestation from their own address. Whoever lands first gets the LUG, and the real payer’s tx then fails with ErrProofAlreadyUsed. Adding the miner address to the payload closes it.

  2. The domain is luggom-attestation/v3 with no chain-id in it. If the notary key carries over from luggom-test to mainnet, every receipt already mined on testnet (like the first Viacredi one) can be mined again on mainnet, because UsedDocumentHashes and UsedPaymentIDs start empty there and the 365 day window is still open. Putting the chain-id in the payload, or using a fresh notary key for mainnet, fixes it.

  3. brlUsdRate and cadUsdRate are hardcoded at 5.0 and 1.37. That’s fine on a testnet, but any gap between those numbers and the market rate turns directly into over or under minting, so I’d put it at the top of the oracle work before mainnet.

Happy to look at the anti-replay side again once those change.

1 Like

Thanks Zealynx — all three hold up against the code, and they’re the right things to be looking at.

1- miner_address outside the digest. Correct. BuildAttestationPayload signs nine fields and the recipient isn’t one of them, so anyone
who sees the MsgMineTaxPayment can resubmit the same attestation to their own address; whoever lands first gets the LUG and the payer
gets ErrProofAlreadyUsed. We’re raising the domain to luggom-attestation/v4 with miner_address and chain_id inside the signed payload.
The miner address enters the attestation at session registration — the wallet tells the notary who will receive the mint before the
proof is made — so it’s covered by the notary’s signature, not supplied afterwards by the API.
chain-id. Same change closes it. v4 carries the chain id and the keeper reconstructs it from ctx.ChainID(), so a luggom-test receipt
can’t be replayed on mainnet even if the notary key were carried over. We’ll also rotate the notary key at mainnet as defence in depth.

  1. brlUsdRate / cadUsdRate. Agreed, and it’s at the top of the oracle work, not a cosmetic default. Those are minting parameters: any
    gap to market is over- or under-minting. The plan is BRL from PTAX/BCB and a proper CAD feed, plus an explicit decision on payment-date
    vs mining-date rate.

On US/Canada — we have one provider proven end to end: Viacredi (Brazil). For the next two markets we need at least five banks per
country — ten rails in total. Each one is a separate provider entry in the chain’s whitelist plus its own extractor profile, and each
needs a real, sanitised receipt to prove that the canonical fields (amount, payment id, date, payer identity) come through that bank’s
session consistently. Five is the minimum that shows a rail rather than a one-off integration.

So the ask is concrete: which US (IRS/state) and Canadian (CRA/Revenu Québec) banks do you see as gettable, and do you have access to a
sanitised receipt from any of them? That evidence is what turns a bank into a rail. We’re deliberately not going through Plaid-style
aggregators — the proof has to come from the bank session itself, otherwise the point is lost.

And one question back, since you’ve now read the code: the design target is a currency that sits close to stability but still
appreciates — a basket (EUR/USD + GBP/USD + CHF/USD) / 3 × 3, +10%/year, immutable on mainnet. The ATOM reservoir is mainnet design too:
lock ATOM and you earn on top of the staking drip, capped, paid in LUG. None of that is live on the testnet — no ATOM, no IBC, no
monetary value — which is exactly why review of the minting rules matters more than anything else right now. If you want the context,
it’s at luggom dot com

Happy to come back to the anti-replay side once v4 is in. Thanks for taking the time.

— Lugo Vane

Good to hear, and binding the miner at session registration is the clean way to do it.

On payment-date vs mining-date, I’d go with the payment date, and the current code shows why. A receipt can be mined up to 365 days after the payment, and the USD/LUG parity (the CHF/EUR/GBP legs and the basket multiplier) is read at mining time; once BRL comes from PTAX, the BRL/USD rate will be too. So every receipt becomes a free option for a year: wait for a good FX day, and mine before the anniversary of the chain start, because the multiplier steps 10% there and the same receipt mints about 9% less LUG one block later. Pricing the whole conversion at the attested payment date takes that away, and the mint then depends on the payment, not on when it’s submitted. It means keeping one oracle snapshot per day on chain so the keeper can look that day up.

On the banks I can’t help, we don’t have sanitised US or Canadian receipts. And I’ll leave the basket design itself to people who do monetary design. The minting path is the part I’d keep reviewing.

1 Like

Hey Zealynx — seriously, thank you. That conversation was worth far more than the three findings, and the option framing changed the
design.

All three are addressed:

Attestation v4. luggom-attestation/v4 is live: miner_address and chain_id are inside the signed payload, and the miner is declared by
the wallet at session registration, so the mempool or the API can no longer redirect a mint or replay it on another chain. Commit
81a8e37; the two notary files are public now (bd4d27f).

Receipt privacy. payment_id (the settlement id) and payer_tax_id (CNPJ/EIN/BN) are hashed before they reach the chain (0ffaeb9). The
government that received the tax stays public — the mine event emits tax_entity_id next to the amount. Validated on the testnet: tx
5D9B60EC…, height 21091, code 0.

Payment date vs mining date. You were right, and the option argument is why we changed it. Minting is priced entirely at the attested
date: a per-UTC-day oracle snapshot (basket legs, plus BRL/CAD once the feeds land), the multiplier computed at that instant, and a
7-day lookback so a Saturday payment resolves to the last published rate. Tests: the same receipt mined on different days mints the same
LUG; a receipt dated day 364 mints 1.1× the same receipt dated day 365; BRL at 4.0 mints 1.25× what 5.0 does. It ships in the next
upgrade with the BRL/CAD feeds and a 366-day backfill of daily snapshots, so receipts dated before the upgrade still resolve.

Two questions if you have a spare minute:

  1. Would you carry the last published rate through weekends and holidays (our plan), or price at the next business day?
  2. Would you reject a future payment_date explicitly, or let it fail closed on a missing snapshot?

And yes — please keep reviewing the minting path. That’s where I want the eyes.

“On the banks: we’re bringing in
devs who file US/CA taxes to sanitise receipts. If you cross paths with one, send them our way.”

Nice, v4 and the hashing look right.

On weekends I’d carry the last published rate, it’s how PTAX works anyway (only published on business days, the previous one applies). Two details: key each snapshot by the date of the fixing, not the day the keeper wrote it, so a late or backfilled write can’t change what a receipt already resolves to. And fail closed when the 7 day lookback finds nothing, instead of reaching further back.

On future dates I’d reject them explicitly, in the keeper. With a 7 day lookback a payment_date a few days ahead doesn’t fail closed, it resolves to today’s snapshot. At 0ffaeb9 the max age check in sacrifice_tax_payment.go only bounds the past, so a future date passes on chain; the only future check I found is in api/reclaimverify, with a one day margin, and none on the taxproof path.

One more on the minting path: taxproof.go still stamps PaymentDate with now for BR receipts where no date is extracted. Once pricing moves to the payment date, that fallback brings back the option you just removed, since the prover picks when to attest. I’d fail closed for BR too, like US and CA.

Hi Lugo,

I’m representing UTSA, an independent blockchain validator and infrastructure provider operating across 25+ networks, primarily Cosmos SDK, Gno, and EVM ecosystems.

We run our own infrastructure across multiple locations and provide public RPC/API endpoints, monitoring, and technical guides.

We have also developed our own multichain explorer from scratch:

https://explorer.utsa.tech

We’d be interested in joining the Luggom public testnet as an independent validator and helping improve network decentralization.

Could you please clarify:

  • Are you currently accepting new external validators?
  • Can you provide the required 200 testnet LUG for validator registration?
  • Which release should new validators use, given the recent protocol fixes?
  • Is there a planned path for reliable testnet validators to participate in mainnet?

We’re happy to contribute infrastructure and provide technical feedback as the network develops.

Best regards,
UTSA Validator

1 Like

Thanks Carlos — all four points hit the mark, and three of them actually changed our design, not just the code. Here is what just shipped (commit 747bd45, live on testnet now):

  1. The fixing date now comes from the message instead of the keeper’s clock. MsgUpdateUsdOracleBasket carries the rate_date, the daily snapshot is keyed by it, and each day can only be written once—any duplicate write gets rejected. Days covered by the compiled history reject writes too, ensuring the on-chain record can never disagree with the actual price used. To price receipts older than the upgrade, 366 days of published fixings are embedded directly into the binary, with their SHA-256 pinned in a test. No runtime fetches, so two nodes can’t price the same receipt differently.

We actually went a step further than just keying by the fixing date. A receipt dated D resolves to the last fixing strictly before D (D-1 down to D-7, never D). The reason is the flip side of your point: the fixing for D can only be written during D, meaning including D would make the price depend on whether the miner submitted before or after the feeder ran. With a strict cut, the candidate set for D is frozen at 00:00 UTC on D, so no late writes, backfills, or retries can mess with what a receipt resolved to.
2. The 7-day lookback was already fail-closed, but we’ve now added tests to lock it down: D-7 resolves, D-8 is PAUSED, and a receipt whose only available fixing is its own payment day gets paused too.
3. Future dates are now rejected by the keeper (ErrFuturePayment), and the API margin window was tightened from one day down to five minutes so it won’t accept what the chain refuses. The taxproof path goes through the exact same check.
4. The Brazil (BR) fallback is gone. No attested date means an error, across the board. You were totally right: once pricing shifts to the payment date, time.Now() hands the choice of price right back to the prover—which is the exact loophole we just closed.

Two quick consequences worth noting:

  • The bank where the full flow was proven keeps working smoothly (the complete receipt carries data with the transaction timestamp).
  • The second rail we captured (an HTML/JSON receipt with no date field in the body) stops mining until its extractor finds one. That’s the price of the fix, and it’s the right call. If anyone has a sanitized receipt from that rail that includes a date field, we can easily restore it.

While we were in there, we also wrapped up your third finding from the first round: BRL/USD and CAD/USD are now real rates on the message instead of 5.0 / 1.37 constants, and any day missing them will pause mining. Also, the 365-day validity window is now compared using UTC calendar days instead of raw instants (it was effectively 364 before).

One last thing, since it’s right in your domain: the notary was logging the full bank response (Sent data: / Received data:), leaking payer names and tax IDs in plaintext into journald. That’s gone. It now logs the byte length and a short SHA-256 per direction, and the attestation lives purely in memory with a hard 15-minute cap. The notary never persists the receipt. It still sees the receipt during the session—that’s just our trust model—but we’re going to document that explicitly so nobody has to guess.

Really appreciate you taking the time to look into this. The fixing-date / payment-date interaction is one of those things that’s totally obvious in hindsight but so easy to miss under deadline pressure. Catching it before mainnet was worth way more than our entire test suite.

Hi UTSA,

Thanks for reaching out — and for the detail on your setup. Yes on all four, with the caveats spelled out

  1. New external validators: yes. The testnet is open to outside validators and we are actively onboarding. It is invite-based only in
    the practical sense that the operator funds the bond, not because the set is closed.

  2. The 200 testnet LUG: yes. The operator sends 200 LUG plus a margin for the fee. Post your luggom1… address and your intended moniker
    in the Luggom Telegram group — the invite is in the project README — and we will send it. Worth being precise about what this is: the
    200 LUG is transferred to your account and you sign create-validator with your own key. The bond stays in your account, so slashing
    during the testnet is yours to manage. There is no custody on our side.

Two practical warnings, because these are the two ways this usually goes wrong:

  • Sync first. Wait for catching_up: false and for your height to track the network before sending create-validator. A validator that
    bonds while it is still catching up starts missing blocks immediately and gets jailed.
  • Send the account address, luggom1… (luggomd keys show -a), not the validator operator address (luggomvaloper1…). The operator
    address cannot receive funds.

The 201 LUG is 200 for the bond plus 1 for the create-validator fee; 200 LUG is the testnet standard, the same bond as the four
validators currently in the set.

  1. Which release. Use the testnet-2026-10-21 release — the current asset is luggom-release-2026-10-23.tar.gz (the tag predates the
    rebuild; always take the newest asset). The luggomd inside it must hash to:

2c3d4c1625ba9d0c43acb0d9e1bf1a0ff53c066715df33420896dbb8e1d2de76

The same binary is on the downloads page of the project site, with a SHA256SUMS next to it.

Please do not use the 2026-10-22 build. The protocol changed today: mining is now priced at the receipt’s payment date against a daily
FX fixing, and the oracle message carries the fixing date and the real BRL/CAD rates. An older luggomd cannot interpret that message and
will diverge at the first oracle or mining transaction. Since the coordinated upgrade is already done, there is no upgrade height to
wait for — sync with this build and create the validator whenever you are ready.

  1. Mainnet. Yes, but with no token allocation and no yield promise — testnet LUG has no value, and we will not imply otherwise. What we
    will do is look at sustained uptime, participation and incident reporting here, and open the genesis/mainnet validator set with a
    published gentx and self-bond rule before launch. A validator that keeps the network running for months is the profile we want in
    genesis.

Practical bits: chain id luggom-test; the seed and the p2p port are in the validator guide (TESTNET/VALIDATORS.en.md in the repository);
Linux 64-bit, 2+ vCPU, 4 GB RAM, 50 GB SSD; keep RPC/LCD closed to the internet.

Send us your explorer once you are synced and we will list it under community tooling. Technical feedback is genuinely welcome — the
network is small enough that a good bug report still moves the protocol.

Good call on the strict cut, it also takes the race between the miner and the feeder out of the price.

One thing write-once makes more important: the BRL and CAD legs are only checked against a fixed band, [0.50, 20.00] in validateOraclePerUsdLeg. A BRL/USD of 0.50 passes and converts a BRL receipt at about 10x. The day can’t be rewritten, and receipts dated the next day always resolve to it, so they keep minting at that rate for the whole 365 day window. The feeder’s median covers one bad source, not a bad write from the updater key or a bug in the feeder. A bound against the previous fixing in the keeper would contain it: reject a move of more than a few percent, and those receipts fall back to the fixing before.

On the notary logs: the fix stops new leaks, but what’s already in journald from the testnet sessions still holds payer names and tax IDs, so I’d vacuum the journal on that host too.

1 Like

Hi… Zealynx

You’re right on both counts — and the first was the sharper one: the median protects against a bad source, not against a bad write that
reaches the chain. Since the day is write-once, one bad write prices every receipt for 365 days. Different threat from the one the
feeder solves.

It’s on chain now (commit 75be7ee, live since height ~46.3k). The keeper refuses a fixing that moves more than 10% per elapsed day from
the previous one, capped at 50%, on all five legs. The limit scales with the gap, so a feeder that was down for three days can still
catch up, and the previous fixing is resolved read-only (embedded history first, then store), so it works from the first post-table day.
A refused write leaves the day empty and mining falls back to the earlier fixing — fail closed, never a mispriced mint. Tests pin the
case you described: brl_usd 5.0 → 0.50 is rejected even though it sits inside the old absolute band, and a 10× move on a basket leg is
rejected too. Honest limitation: this stops the catastrophic write, not a slow drift — a compromised key can still walk 10% a day, but
it has to do it visibly, over weeks.

On the journal: done before your message landed. Rotated and vacuumed on the host — 70.9 MB freed, occurrences of payer name and tax id
went 2 → 0. The notary binary no longer logs the body at all (byte length plus a short SHA-256 per direction), the debug transcript dump
is gone, and the attestation TTL is now explicit in code — 900 s with a hard ceiling, so an environment variable cannot widen it.

Two things in progress, since you’ll see them in the repo:

  • Native Windows build of the miner. Same proof path — Firefox, the extension, the local CA; the trust model does not change, only the
    platform. Windows is where most of the desktop audience is, and today the miner is Linux-only.
  • The second rail. Open Finance is designed and off, but the protocol now has an attestation budget: 0.5% of each mint, in a separate
    module account the treasury vote cannot reach, never burned, plus a message to spend it whose destination is restricted to a
    governance-managed payee list. The point is that whichever mechanism actually produces the proof — a notary or an aggregator — gets paid
    by the protocol, without minting and without touching the token split. The TLS rail is adversarial to banks by construction; consented
    data is the only version of this a bank can live with.

Thanks again for the second pass. Both findings were real and both are closed.

Nice, that was fast. One thing on the new bound: it’s measured from the previous fixing even when that fixing is the bad one, so it also caps the way back. A key that wins the daily write four days in a row can walk brl_usd 5.0 → 4.5 → 4.05 → 3.65 → 3.29, each step inside the 10%. The true 5.0 is then 52% above 3.29, over the 50% cap, so every honest write after that is refused, gov’s included since the check runs for every signer. The next seven payment days price at 3.29 through the lookback, then mining pauses until someone writes in-between values by hand, or until 30 days pass and the guard stops finding a previous fixing, at which point the next write goes through with no bound at all. Having the feeder do that itself, writing the bounded step toward the median when the median is out of range instead of nothing, walks a bad fixing back at the speed it can be walked in.

On the attestation budget in c5ba84f: notary_payees is an ordinary param and x/gov runs a proposal’s messages in order, so one proposal can add an address with MsgUpdateParams and pay it the whole notary reserve with MsgSpendFromReserve in the same execution. A delay before a new payee can receive, or a per period cap on notary spends, would keep “governance changes who, not where” true.

1 Like

Both land, and the first one bit exactly as you described. What we did:

Walking a bad fixing back. The feeder now reads the previous fixing and, when the median is out of range, writes the largest allowed
step towards it instead of nothing. One thing your sketch would have hit: prev × 1.10 rounds at 18 decimals and can land one ulp above
the limit, so the keeper refuses it and the walk-back stalls on an identical value forever. We nudge the step down by up to 4 ulp before
submitting, and if it still does not fit we submit prev (a zero move is always accepted). There is a test over the corner cases,
including one from the embedded table that reproduces the 1-ulp case. Reading the previous fixing is now a query (query luggom
oracle-fixing [day], with source: history|store), which also fixes the audit gap: the on-chain fixing was not readable before.

A read failure is fail-closed now — the feeder does not submit without the bound. Note the honest edge: after 30 days with no write
there is no previous fixing to compare against, so the first write is unbounded; the absolute bands still apply.

The payee hole. A payee must be listed for 7 days before it can receive, and the notary reserve spends at most 25% of its balance per
window. To be explicit: this applies only to destinations of the 0.5% attestation budget, not to miners — a miner receives their share
in the mining transaction itself. Two things your framing made me look at harder: the window is anchored, not rolling, so the real worst
case is 50% in any rolling 7 days — the comment now says that instead of the stronger claim; and the cap slows the drain geometrically
rather than stopping it (each window takes a quarter of what is left). If you think a per-period absolute cap is worth the extra state,
say so and we will do it. Also: payees at genesis are stamped as already eligible, and addresses are stored in canonical form — our own
pre-deploy review caught that a payee stored with different casing could never be paid.

Live since height ~48.5k (commit 3bdb15b), with the tests you would expect, Thanks Again.

Nice catch on the 1 ulp case, that one would have stalled without anyone noticing.

On your question, I wouldn’t add the absolute cap. The fractional one already scales with whatever the reserve holds, and the window is what bounds the speed. The part I’d pin down is the delay against the voting period. 7 days works because voting_period on luggom-test is 2 days, so a removal can pass before a new payee turns eligible. If mainnet ever runs a voting period longer than 7 days, a spend proposal can be queued to end right when the payee turns eligible, and a removal submitted after the add passes can’t execute first. Deriving the delay from x/gov’s voting period at spend time, with 7 days as the floor, keeps that true whatever gov sets.

On the 30 day edge, keeping the last written fixing in its own item would give the bound an anchor forever, and after a long gap the 50% cap is already the right limit.

Thanks — and agreed on the cap: the fractional one scales with whatever the reserve holds, and the window is what bounds the speed. No
absolute cap

Both suggestions go in:

  • Last fixing in its own item. That kills the 30-day hole: the anchor always exists, and after a long gap the 50% cap is already the
    right limit. We will fall back to the current lookup for the first write after the upgrade, so no migration is needed.
  • Delay derived from the voting period. Reading x/gov’s voting_period at spend time, with 7 days as the floor. We are planning max(7d, 2
    × voting_period) — one period plus deposit and execution felt too tight to me. Would you read it as 2×, or is there a smaller factor
    you would be comfortable with?

I’d size it from the deposit period rather than as a multiple. A removal only starts voting once it reaches min_deposit, and x/gov runs a passed proposal in the EndBlock where its vote ends, so execution adds nothing on top. The worst case is max_deposit_period + voting_period, plus a day or so for someone to notice the add and submit. On luggom-test both are 2 days, so 2× voting_period lands on exactly that, but it stops covering it if gov ever raises the deposit period on its own. Reading both at spend time, max(7d, max_deposit_period + voting_period + 1d), stays right either way.

An expedited removal can be quicker (1 day at 66.7% on luggom-test), but if it misses that threshold it becomes a normal proposal whose vote ends a full voting_period after it started, so I’d still size for the normal path.

Deployed — tag testnet-2026-10-27 (commit 298b619), live on the testnet since height ~98k.

Both of your points are in: the fixing anchor is permanent now (a bad fixing can always be walked back, even after a long gap, and the
50% cap is the limit once the gap is long), and the notary delay is derived at spend time as max(7d, max_deposit_period + voting_period

  • 1d) — your formula, not my multiple.

Thanks again for the two rounds; the protocol is materially better for them. We’ll keep shipping — looking forward to your next pass
whenever you have the time.

1 Like

One more, since it may matter for your review: we are porting the miner to Windows — same proof path (Firefox, the extension, the local
CA), so the trust model does not change, only the platform.

On rails: a second Brazilian bank is being mapped so we can define its canonical field, and we are collecting receipt structures for the
US and Canada — field names and formats only, never documents — to add a rail. One county lead so far (Hennepin, which is already
whitelisted).

If you have a view on how a US rail should define its canonical field — in many cases the receipt lives on a county portal rather than
in a bank session, so the provider model is not the same — I would take it.

1 Like

Nice, glad both landed in testnet-2026-10-27.

On a US rail’s canonical field, two things I’d settle before the first county goes live:

  1. Scope the id to its issuer. A PIX E2E is unique everywhere because it carries the bank’s ISPB, but a county receipt or confirmation number is only unique inside that one portal. The chain checks UsedPaymentIDs on payment_id alone, and HashPaymentID hashes just the raw number, so if two counties ever issue the same one, the second real payer gets ErrPaymentIDAlreadyUsed. Hashing the tax entity slug together with the number (us:county:hennepin_mn plus the receipt) fixes that. I’d also accept a single page per rail: card payments on county portals usually go through a processor whose confirmation number isn’t the county’s receipt number, and if both pages are ever accepted, one payment mines twice.

  2. Make sure only the payer can produce it. In a bank session only the account holder sees the receipt. County parcel pages are usually public (Hennepin’s property search shows any parcel’s taxes without a login), so if the rail ever attests a parcel lookup that shows the tax as paid, anyone can notarize someone else’s payment and mint before the owner does. It has to be a page only the payer reaches, like the confirmation right after paying or a logged-in payment history, and that sits awkwardly with the reflective endpoint rule in your developer guide, since a confirmation page usually can’t be fetched again later.

A smaller one for Hennepin: they count an e-check as paid the day it’s submitted and the bank posts it a day or two later, so the confirmation number exists before the money has moved, while the mint goes through right away.

1 Like

Thanks Zealynx

You’re right on all three, and two of them are gates, not nits. Here’s what we plan to
change; tell us if this is how you’d do it before we write code.

  1. Scope the payment id to its issuer — agreed, as a per-rail rule.

    Confirmed in code: HashPaymentID hashes only the raw id (sha256(UPPER(TRIM(raw)))) and
    UsedPaymentIDs is keyed by that alone, so two counties issuing the same number would make
    the second legitimate payer fail with ErrPaymentIDAlreadyUsed (1203). No double mint, but
    a real liveness bug.

    Plan: the canonical id becomes sha256(tax_entity_slug || “|” || canonical_id) for rails
    whose id is portal-scoped, exactly as you suggest. …

    One deliberate difference: we want to apply it per rail, not globally. BRL keeps
    sha256(E2E) — the ISPB already makes it globally unique — and only portal-scoped rails get
    the entity in the preimage. Reason: changing the preimage globally would make already-mined
    receipts mineable again (their old hash is on chain, the new hash is different and passes the
    uniqueness check). Per-rail we don’t reopen any history. Agree?

    We’re also taking “one page per rail” literally: the rail spec pins exactly ONE canonical
    page per rail. If a county has both a portal receipt and a card-processor confirmation, the
    other one is rejected as a rail mismatch, so one payment cannot mine twice.

  2. Only the payer can produce it — agreed, and we treat it as a blocker for any county.

    This is the one that worries us most. miner_address is bound into the attestation (v4), but
    nothing binds the attested receipt to the payer, so with a public parcel page a scraper can
    notarize someone else’s paid tax and mint first — and the owner then gets 1203. That isn’t
    spam, it’s theft of the mining.

    So: only an authenticated, payer-specific page qualifies (logged-in payment history /
    receipt detail). Never the public parcel search.

    On the reflective-endpoint rule: you’re right that it collides. Our prover doesn’t fetch a
    stored page — it rebuilds and re-issues the request at prove time (we had to do exactly that
    on the Brazilian rail, whose API only accepts a fresh Access-Time header). What we actually
    need isn’t “public and immutable”, it’s “the payer can re-open it while their session is
    valid”. A one-shot post-payment confirmation cannot be replayed and would not work; the
    authenticated history can.

    Proposal: replace question 2 in the developer guide with “authenticated, payer-specific, and
    re-issuable while the session is valid”, with a public unauthenticated endpoint being
    disqualifying even if it is reflective. Does that satisfy your concern, or would you keep
    both conditions?

  3. Submitted vs settled — agreed, we’ll require settled..

    Nothing in the keeper has a notion of settlement: it mints when the proof is accepted. So if
    Hennepin shows “paid” at submission, we’d mint against money that can still bounce. Plan: the
    rail’s attested state must be settled/cleared (with the cleared date as the payment date),
    not “submitted”. The mint window is 365 days, so the user simply waits the 1-2 days and mines
    after clearing — no usability loss, and it matches the rule that the price comes from the
    payment date.

    Before we implement: does this match what you’d do? Specifically (a) per-rail scoping instead
    of global, and (b) replacing the reflective criterion with authenticated + re-issuable.

2 Likes