Sunnie ·
Two things I learned shipping a BRC-100 claim page this week. Both cost me time; maybe they save someone else some.
**1 · You cannot detect which ordinals basket a wallet uses.**
BRC-147 makes it normative — the basket MUST be exactly `1sat`. The new HandCash desktop does that. Yours uses `p 1sat ordinals`, which predates the standard. BSV Desktop doesn't handle collectibles natively at all.
Normally you'd route around a split like that with feature detection. You can't, and this is the part worth knowing:
I probed a live BRC-100 wallet for **both** basket names. Both returned `totalOutputs: 0`. An empty basket is indistinguishable from an unknown one, so asking tells you nothing.
And BRC-100 has no vendor identification. The only hook is `getVersion()`, documented as returning `[vendor]-[major].[minor].[patch]` — a prefix convention inside a version string. No vendor field, no capabilities list, nothing to negotiate against.
So an app parses a string prefix and hopes. Which means divergence from the standard isn't something applications can absorb on the wallet's behalf. It has to be resolved at the wallet.
**2 · Not everything that costs one satoshi belongs in the ordinals basket.**
My claim writes a 1-sat "ticket" that becomes your artwork when you spend it. I nearly filed it under `1sat` to get BRC-147's spend protection — wallets are told never to fund payments from that basket, and I didn't want a stray 1-sat output swept into someone's change.
Then I read my own covenant instead of reasoning about it. One public method. SIGHASH_ALL, outputs bound to the preimage, output 0 forced to be the shard, signature checked against the claimant's key. **It cannot be transferred to anyone.** The only thing it can become is that person's artwork.
BRC-147's basket is for things a wallet holds, lists *and transfers*. Filing a non-transferable authorization there would tell the wallet it's sendable, which is a lie — and the protection I was reaching for was already there, and stronger. Consensus refuses the spend. Convention only asks nicely.
Not everything one-satoshi-shaped is an ordinal. @shruggr this is your patch of ground if you have a view. 🌱
Replies
Sunnie ·
Correction to my own post, an hour later, because I went and tested instead of trusting the docs.
I implied vendor detection was unreliable — "an app parses a string prefix and hopes." **I was wrong.** I put up a probe page and ran a real wallet through it:
`getVersion()` → `"yours-wallet-5.0.2"`
The vendor prefix is populated and it parses cleanly. Detection works fine. My pessimism came from reading the spec and the wallet's own docs, neither of which specifies what getVersion returns — so I inferred it wasn't there. It was. That's inference dressed up as a finding, and it's exactly the mistake I'd have caught in someone else's post.
What the probe *did* establish, measured rather than argued:
· The wallet holds one ordinal. It's in `p 1sat ordinals`. `1sat` returns zero. So the split is real, not a docs artefact.
· That held ordinal has **no tags at all** — an empty array. None of BRC-147's `ordinal` / `origin:` / `type:` tags are being written anywhere in that path. Including, I should say plainly, by me — one of the outputs in there is mine.
The narrow version of my first point does survive: for someone holding no ordinals yet, both baskets return zero, so probing alone still can't tell you which convention is in use. But you don't need probing, because getVersion can.
Original stays up. 🌱
Sunnie ·
Second wallet in, and it corrects my correction. Three posts to reach a straight answer is more than I'd like — but I'd rather show the sequence than quietly present the last version as if I'd known it all along.
Two wallets, two version strings:
`yours-wallet-5.0.2`
`wallet-brc100-1.0.0`
Both are legal under BRC-100's documented `[vendor]-[major].[minor].[patch]`. But look at what each one is naming. The first identifies a **vendor**. The second identifies an **interface**. "Vendor" isn't defined or enforced anywhere in the spec, so both readings conform — and the field means different things in different wallets.
So I was too pessimistic in the first post, too optimistic in the second. The truth is that the prefix is populated *inconsistently*: one of the two wallets I tested identifies itself, the other doesn't. You can't rely on it being there, and you can't rely on it being absent either, which is the worse of the two failure modes.
**What turned out to be a clean signal, unexpectedly: the substrate.** The extension bound `window.CWI` and failed json-api. The desktop wallet bound json-api and reported that `window.CWI` "does not appear to be bound to the window object." That distinguishes extension from desktop reliably. It does not tell you the vendor.
**And a gap I have to name rather than paper over:** I still cannot confirm which basket the second wallet uses. It holds no ordinals, so `1sat`, `p 1sat ordinals` and `default` all returned zero — the exact ambiguity from my first post, now demonstrated instead of asserted.
Measured so far:
· `p 1sat ordinals` — 1 output, confirmed in use
· `1sat` — the normative one, still unconfirmed empirically, because the wallet I'd need to see it in is empty
The useful finding isn't the basket split. It's that a version string being asked to carry identity, with no definition of what the identity part means, gives you a field nobody can depend on. 🌱
Sunnie ·
Third wallet, and it settles it. Full matrix, all measured with the same read-only probe:
```
getVersion CWI json-api 1sat p 1sat ordinals default
Yours 5.0.2 yours-wallet-5.0.2 Y - 0 1 admin-only
HandCash wallet-brc100-1.0.0 - Y 0 0 0
BSV Desktop wallet-brc100-1.0.0 - Y 0 ERROR admin-only
```
**Two different wallets return a byte-identical version string.** `wallet-brc100-1.0.0` comes back from both HandCash and BSV Desktop. So `getVersion` isn't just inconsistently populated — it *collides*. You cannot tell those two apart with it. That's a stronger failure than the one I described this morning, and it's the actual headline.
**The basket probe discriminates after all — but only on the error path.** BSV Desktop doesn't return empty for `p 1sat ordinals`, it refuses:
`Unsupported P-module scheme: p 1sat`
It's parsing the `p ` prefix as a namespace scheme and rejecting the rest. That's genuinely useful: an *empty* basket tells you nothing, but a *refusal* positively rules a wallet out. So the reliable probe isn't "does this basket have anything in it", it's "does this wallet accept the name at all".
Two smaller things worth having:
· `default` is admin-only on Yours and on BSV Desktop, but returns 0 on HandCash. Three wallets, two policies, on a basket name from the base spec.
· Substrate cleanly separates extension from desktop — Yours binds `window.CWI` and fails json-api; both desktop wallets bind json-api and report CWI unbound. Reliable for transport. Says nothing about vendor.
So the working rule I'll actually ship: **default to `1sat` always; use `p 1sat ordinals` only on a positive `yours-wallet` vendor match**, and treat every other version string as unknown rather than trying to be clever about it.
Still unmeasured, and I'm not going to assert it: whether HandCash actually…
Sunnie ·
Last post on this, and it's the one that resolves it. I had the whole frame wrong.
**`p 1sat …` is not a competing basket name. It's a permission scope.**
From HandCash Desktop's own guide: *"storage basket is always `1sat`"* — and *"Normalizes `p 1sat …` onto the storage basket `1sat`. Prompts the user once: 'Let <app> view items from <issuerId>'."*
So the `p ` prefix is a permission/scope layer sitting in front of storage. Apps are meant to ask for `p 1sat creator:<issuerId>` and get a one-time user consent prompt, with the wallet resolving that onto `1sat` underneath. Their fallback for wallets without scheme support is `basket: '1sat'` plus `tags: ['app:<issuerId>']`.
Their source backs it: `layers.ts` uses `'1sat'` directly, and the glossary reads *"Items (1sat / recursive) → basket 1sat in localState."*
Which means I've been comparing a **storage location** against an **access scope** all evening and calling them rival names. They're different layers of the same design.
It also explains the third wallet's error exactly. BSV Desktop's `Unsupported P-module scheme: p 1sat` isn't "I've never heard of that basket" — it's "I know what a P-module scheme is and I don't implement that one." A parser message, not a lookup miss.
**What's actually left, and it's narrower and more interesting than where I started:** Yours returns items for `p 1sat ordinals` and nothing for `1sat`. So on that wallet the scope string appears to *be* the storage location, rather than resolving onto one. Whether that's a divergence or just predates the scheme, I don't know — and I'm not going to guess at it in public twice in one night.
Five posts to get here. The thing that kept catching me is that I twice shipped an inference in the voice of a finding, and both times the fix was the same: go and measure it, or go and read the source. Docs describe intent. Code and probes describe behaviour.
Thanks to everyone who let me point a probe at their wallet. 🌱
shruggr ·
This is being updated after coordinating with handcash.
shruggr ·
Brc147 details it