ungovernable.tech

[ DEEP DIVE ][ FINANCIAL SOVEREIGNTY ][ IDENTITY, SOCIAL AND TRUST ]

P2P Markets over Nostr and Lightning

Also Mostro, Shopstr, Nostr marketplaces, NIP-69, NIP-99 marketplaces, Plebeian Market.

Two different jobs get collapsed into "Nostr marketplace." One is a fiat-for-bitcoin desk with a Lightning escrow coordinator (Mostro, NIP-69 order events). The other is a goods listing that anyone can publish and that the merchant collects on (Shopstr and the NIP-99 / Gamma stack; the older NIP-15 stall model).

Experimental updated 2026-11-11 18 min read
Contents

Companion notes: Lightning Network Deep Dive for hold invoices and routing, Cashu and Chaumian Ecash for mint trust, Nostr Deep Dive and Running a Nostr Relay for what relays see. Version anchors below were read from the repos, NIPs, and protocol pages on 2026-11-11.

Summary

Nostr is a signed-event protocol. A marketplace on it is whoever publishes events and whoever is willing to pay. There is no shared order-matching engine unless a program — a Mostro daemon, a merchant's listener, an indexer — sits in the middle and does the matching.

Checked 2026-11-11:

Piece What shipped Date
mostrod tag v0.20.2; main still moving (price-peg commit 8111f5e, bond-CLTV commit a95fbed) tag 2026-10-28; repo pushed 2026-11-10
mostro-core tag v0.17.3 2026-10-07
Mostro app tag v2.1.2; repo pushed 2026-11-10 tag 2026-10-28
mostrix (TUI) tag v0.3.8; repo pushed 2026-11-08 tag 2026-10-14
mostro-cli no release in the last page fetched; repo pushed 2026-11-10 —
Shopstr package.json version 0.10.3; no GitHub releases or tags; commit 2ed18bc commit 2026-11-02
NIP-69 draft optional in nostr-protocol/nips 69.md fetched 2026-11-11
NIP-99 draft optional; 99.md last commit is the repo-wide YAML conversion 2026-06-13
NIP-15 draft unrecommended optional; README says try NIP-99 fetched 2026-11-11
Gamma market spec GammaMarkets/market-spec not archived; last push 2025-05-10 19 stars
lnbits/nostrmarket MIT; last commit 92bb15a "require LNbits 1.7.0" 2026-11-10
Plebeian source PlebeianApp/plebeian-market archived, last push 2024-03-30; PlebeianApp/old-plebeian.market archived, last push 2026-04-01, README says it will be deleted site still served listings on 2026-11-11

Repo metadata the same day: MostroP2P/mostro 341 stars, 59 forks, Rust, GPL-3.0, not archived. shopstr-eng/shopstr 107 stars, 83 forks, TypeScript, GPL-3.0. lnbits/nostrmarket 145 stars.

Mostro's own site still describes the project as non-custodial because the sats sit in a Lightning hold invoice rather than in a Mostro hot wallet before the trade starts. That sentence is true and incomplete. The daemon creates the invoice, so it holds the preimage. Settling pays Mostro. Paying the buyer afterwards is a second payment Mostro can skip. See Attack surface.

Two families

Mostro (fiat desk) Goods listings (Shopstr, NIP-99, NIP-15)
What is for sale Bitcoin, priced in fiat, a stablecoin code, or BTC on another network A product, service, or classified
Who publishes the book The Mostro daemon, kind 38383, signed by the daemon key The merchant, kind 30402 (NIP-99) or 30017/30018 (NIP-15)
Who holds the bitcoin during the trade Seller's outgoing HTLC, until the operator settles or the CLTV expires Nobody in the protocol. The merchant's invoice is paid, or it is not
Fiat or shipping Off-protocol. The daemon never sees the bank transfer Off-protocol, except a Lightning or Cashu receipt the merchant chooses to check
Identity on the wire Per-trade key. Long-term key is inside ciphertext, or omitted in full-privacy mode The listing pubkey is the merchant
Shared liquidity NIP-69's point: one order-event shape across desks No shared cart. Discovery is "subscribe to these pubkeys and these relays"

A site comparison of P2P bitcoin acquisition that names Bisq and RoboSats and omits Mostro is missing the only one of those desks whose order book is a Nostr event. NIP-69's implementation list, as fetched from nips/69.md, names Mostro, @lnp2pBot, a RoboSats pull request, and a Peach announcer bot. Publishing a kind 38383 event is not the same as using Mostro's escrow.

Mostro

Mostro is a protocol plus a daemon (mostrod), not an app. Clients (the official app, mostrix, mostro-cli) speak to any daemon that publishes a kind 38385 info event. Each operator picks fees, fiat codes, relays, and whether an anti-abuse bond is on. The site FAQ says there is no official node. That is the censorship property: one daemon can be seized and the order events on other daemons remain.

It is also the trust property. You are not trusting "Mostro." You are trusting the operator whose pubkey is on the info event, for the length of one hold invoice.

What the daemon actually does

Happy path, from the v0.20.2 README sequence (amounts there are an illustration, not a fee schedule):

  1. Maker publishes a buy or sell. Status pending. A market order sets amt to 0; sats are priced when someone takes it.
  2. Taker takes it. The daemon asks the seller for a hold invoice the daemon created.
  3. Seller pays that hold invoice. Funds lock in the seller's outgoing HTLC. Mostro's node has not yet been paid.
  4. Buyer hands over a regular Lightning invoice (or a Lightning address). Seller sends fiat by whatever method the order named. Buyer tells the daemon fiat was sent.
  5. Seller tells the daemon to release. The daemon settles the hold invoice with the preimage. That payment lands in the daemon's Lightning wallet, minus nothing yet — the README's illustration then has the daemon pay the buyer's invoice and keep a fee.
  6. A scheduler later pays a development fee from the operator's fee, and publishes a kind 8383 audit event.

The fiat leg is not checked. The FAQ says Mostro does not intervene in the fiat exchange. A mediator, if one is called, is reading chat the daemon kept, not a bank API.

Protocol v2, and the v1 removal

Protocol Envelope Kind Status
v1 NIP-59 gift wrap 1059 Removed from mostrod in v0.19.0 (2026-09-29, PR #1004). Default through v0.18.4
v2 NIP-44 ciphertext inside a signed event 14 Only protocol from v0.19.0. Advertised as protocol_version = "2" on the kind 38385 info event

The two are incompatible. A v2 node does not read a v1 message and does not answer it. A settings.toml that still says transport = "gift-wrap" refuses to start. Clients have to read protocol_version before they send. A client that still gift-wraps will look like a dead daemon.

Logical message, both versions: a wrapper with version, optional request_id, optional trade_index, an action, and a payload. v1 puts that plus a trade-key signature in a 2-element array inside the gift-wrap rumor. v2 puts a 3-element array in the kind 14 ciphertext: the message, the trade-key signature (or null), and an identity proof ["<identity pubkey>", "<identity signature>"] (or null in full-privacy mode). The identity key is not a tag on the event. Relays see the trade key and Mostro's pubkey, not the recovery-phrase key.

Full-privacy mode is the FAQ's "not even the node can know which operations belong to you" claim, narrowed: the identity proof is omitted and the trade key is the only key the daemon sees for that order. Reputation (trade_index, ratings) is the thing you give up. The daemon still sees the trade, the invoices, and the chat.

Event kinds the daemon publishes

From the protocol index and the v0.20.2 README:

Kind Role Who signs
14 v2 protocol DM Client trade key, to the daemon pubkey. NIP-40 expiration tag
38383 Order (z=order) Daemon. This is the public book
38384 Rating snapshot Daemon
38385 Instance info, including protocol_version Daemon
38386 Dispute Daemon
38387 Client announcement The client project's keys, not the daemon
38388 Reputation attestation An issuer. Not published; travels inside encrypted messages
38389 Health, republished about once a minute Daemon. Also used as a watcher heartbeat
8383 Dev-fee payment audit Daemon. NIP-40 retention default 365 days
30078 BTC/fiat rates the daemon is using Daemon

NIP-69, in the official NIPs repo, standardizes the public order event only. It is draft optional. Its example rating tag is a bare JSON object. Mostro's protocol page says the daemon publishes a JSON-serialized two-element array and that clients should accept both. Mostro's page also adds tags the NIP text fetched on 2026-11-11 does not have: published_at, cashu_mint_url, and the later kinds 38388 and 38389. Treat mostro.network/protocol as the operator spec and nips/69.md as the shared order-event shape. They have drifted.

Order status on the wire is pending, canceled, in-progress, success, or expired. A pending event can already have a taker paying an anti-abuse bond. The daemon state waiting-taker-bond is not on the wire. Clients must not hide a pending order just because the local user started a take. Whichever bond locks first wins.

f is an ISO 4217 code, a stablecoin code, or BTC / LBTC / RBTC for bitcoin on another network. v0.20.2 quotes BTC, LBTC, and RBTC at 1:1 in sats and adds a fixed-peg provider for stablecoins (PRs #1091, #1083). A peg is an operator price-feed choice, not a bridge.

Fees, and the number that does not match

Three sources, all read on 2026-11-11, do not agree:

  • MostroSettings's Rust default and the sample settings embedded in src/config/types.rs at tag v0.20.2 set fee = 0.0. Routing cap default is max_routing_fee = 0.002.
  • The same tag's README features line says the fee structure is "configurable, default 0.6%."
  • The website FAQ says each operator sets fees, "generally low (for example, around 0.3% for both buyer and seller)."

The README sequence diagram uses a 1% illustration on 100,000 sats (seller pays 100,500, buyer invoice 99,500). docs/DEV_FEE.md uses that same 1% illustration. Neither is the code default. Read the kind 38385 info event for the node you are about to use. Do not budget from the README's "default."

Development fee is separate and is not optional below 10% of the operator's fee. MIN_DEV_FEE_PERCENTAGE is 0.10, max is 1.0, sample and default are 0.30. The daemon pays it from its own fee to dev@pay.mostro.foundation (hardcoded in src/config/constants.rs; a unit test locks that string). Payments run only when LND reports mainnet. Failures do not unwind the trade. Kind 8383 is the public receipt. Donation address on the website (funding@pay.mostro.foundation) is a different address.

Bonds, health, reputation

Anti-abuse bond is a second hold invoice, off unless the operator sets it. apply_to is take, make, or both. It is released on an honest trade and slashed on a solver directive or a waiting-state timeout. v0.20.2 fixed bond HTLCs sitting on their own CLTV (PR #1085) and, on main after the tag, defaulted the bond CLTV from the hold CLTV (a95fbed, 2026-10-29). A bond is still a hold invoice the operator can settle.

v0.20.0 (2026-10-15) started publishing kind 38389 health events and failing closed while LND is not synced to chain (PRs #1066, #1065). An info event can look healthy while buyer payouts are failing. Health is the event that says whether payouts, relays, the database, and LND sync are ok, degraded, or down. The mostro_version tag on the example in the protocol page was 0.19.3; that example is illustrative. Read the live event.

Reputation import landed in the same v0.20.0 train (PRs #1029–#1032): the daemon can store imported attestations, republish ratings, and an admin RPC can revoke an import. Kind 38388 attestations are not a public book. A rating on a kind 38383 order is whatever that daemon calculated. Importing another issuer's score does not make it yours, and a revoked import is only as good as operators who actually revoke.

Cashu escrow mode

escrow_mode can be lightning or cashu. On a Cashu node there is no LND, and health-event LND tags are omitted. The maker picks cashu_mint_url when creating the order. Taking the order accepts that mint. Clients should show the URL before the take. This swaps the hold-invoice operator for a mint operator. See Cashu and Chaumian Ecash: a mint can refuse to redeem. It does not remove the Mostro operator, who still coordinates the trade and the dispute.

The Cashu note in this folder used to say Mostro settles over gift wrap. That was v1. Gift wrap is gone as of v0.19.0.

Running a node

The website's operator answer: a server, an LND node (unless you are in Cashu mode), and Nostr relays. GPL-3.0-or-later as of the v0.20.2 README; older releases were MIT, and pre-switch contributions keep that grant in LICENSE-MIT. Install from the repo's INSTALL.md, not from a copied pin. Releases are signed by maintainer keys published in the repo (negrunch, arkanoider, catrya on the v0.20.2 instructions). The signature how-to pasted into the release body still shows a sample gpg: Signature made fri 10 oct 2025 line. Verify the manifest against the keys; do not treat that sample timestamp as this release's signature time.

Grants named in the README: HRF and OpenSats. That is funding, not a control of the order book.

Goods listings

NIP-99 and Shopstr

NIP-99 defines kind 30402, an addressable classified. draft optional. Content is markdown. The pubkey is the seller. Structured tags that should be present: title, summary, published_at, location, price as ["price", "<amount>", "<currency>", "<optional frequency>"], and optional status of active or sold. Images should use NIP-58 image tags. Kind 30403 is the same shape for a draft or inactive listing.

The NIP itself has no checkout, no escrow, and no inventory lock. Paying is whatever the two clients do next. NIP-99 points at the Gamma Markets extension for clients that want a shared e-commerce shape.

Shopstr (shopstr.market, GPL-3.0) is a client for that shape, not a daemon. Its README's supported-NIP list includes NIP-99, NIP-17 (private DMs), NIP-47 (Nostr Wallet Connect), NIP-60 (Cashu wallet), NIP-61 (nutzaps), NIP-57 (zaps), and NIP-65 (relay list). It does not list NIP-15. package.json on main is version 0.10.3, Next 16, nostr-tools 2.23.9, @cashu/cashu-ts 4.6.0. There is no GitHub release. The version field is not a tag.

Commit 2ed18bc (2026-11-02) is a security fix: only apply order-status DMs from authorized senders. Before that, a status DM was a message any sender could use to move an order in the client. If you run a Shopstr checkout, that commit is the minimum, not a feature.

What Shopstr does not give you: a third party who can force a refund. The merchant's key publishes the listing. You pay the invoice or the Cashu they ask for. A fake listing is a fake npub, or a real npub that never ships. NIP-85 reviews and NIP-56 reports are client conventions. They are not escrow.

Gamma market spec

GammaMarkets/market-spec is the interoperability doc NIP-99 links. draft. Required: kind 30402 listings, kind 30405 collections, merchant preferences, order messages over NIP-17. Optional: kind 30406 shipping, kind 31555 reviews, drafts via NIP-37.

Payment preference is a tag on the merchant's kind 0: manual, ecash, or lud16. Default if absent is manual (buyer sends an order, waits for a payment request). ecash wants a kind 10019 mint list. lud16 is a Lightning address. A kind 31989 event can point buyers at a recommended app (NIP-89).

The spec was last pushed 2025-05-10. Shopstr has moved since then (the November 2026 status-DM fix is not in that spec). Implement the spec as a shared vocabulary, then read the client you are actually running.

lnbits/nostrmarket issue #144 describes Gamma as a collective of Shopstr, Cypher, Plebeian, and Conduit developers, and asks the LNbits extension to publish kind 30402 next to its existing kind 30018 products. That is the migration path off NIP-15. It is an open issue, not a shipped replacement. Confirm against the repo before treating NIP-99 publish as done in LNbits.

NIP-15 and Plebeian

NIP-15 is the older stall model, based on lnbits/Diagon-Alley. The NIPs README marks it unrecommended: too complicated, try NIP-99. The file itself is draft unrecommended optional.

Kind Role
30017 Stall. d tag equals the stall id. Shipping zones live in the content JSON
30018 Product. stall_id, price, quantity, optional per-zone shipping adder
4 NIP-04 DM for checkout and support
5 Delete

Checkout is three JSON messages inside NIP-04: type 0 customer order (can include a shipping address, phone, and email), type 1 merchant payment request (url, btc, ln, or lnurl), type 2 status. NIP-04 is not forward-secret. The merchant's key decrypts every past order. A stolen merchant key is a stolen address book, not just a stolen listing.

The same file also specifies auction kinds 1021 (bid) and 1022 (bid confirmation). Bids reference the event id, so editing the auction after the first bid orphans the bids. That is intentional. It is also easy to get wrong in a client.

NIP-15 names two implementations: lnbits/nostrmarket and Plebeian Market. nostrmarket is alive (pushed 2026-11-10, now requiring LNbits 1.7.0). Plebeian's GitHub history is not. PlebeianApp/plebeian-market is archived (last push 2024-03-30). PlebeianApp/old-plebeian.market is archived (last push 2026-04-01) and its README says the tree is old and will be deleted. plebeian.market still returned a product grid when fetched on 2026-11-11, including sats prices and stock counts. A live site with no current public source tree means you cannot audit the indexer, the checkout listener, or who can edit a listing after you have paid. Prefer a client whose repo you can pin.

Trade-offs

Strengths, if you use the right tool for the job:

  • No platform account. A seed (Mostro's FAQ: 12 words, generated in the client) or an existing Nostr key is the identity. Losing the backup loses the in-flight trade. There is no support desk that can restore it.
  • The public goods book is just events. A relay that refuses one merchant does not refuse the merchant's other relays. See Running a Nostr Relay for what that does and does not hide.
  • Mostro's order book is replaceable events signed by the daemon. A relay can drop them or serve a stale copy. It cannot forge a new one without the daemon key. Health events have the same property.
  • Multiple Mostro daemons are real competition on fees and uptime, and a real split of liquidity. NIP-69 exists so a client can show more than one desk. It does not pool the escrow.
  • Cashu and Lightning-address checkout on a goods listing can complete without the merchant typing an invoice by hand. That is UX. It is not a new trust model.

Limitations:

  • Fiat, cash, and shipping are outside the signature. The protocol can prove who said "fiat sent." It cannot prove the transfer happened.
  • Mostro is a trusted escrow for the bitcoin leg, for one CLTV window. "Non-custodial" here means "not sitting in a custodial exchange balance before you start," not "the operator cannot take the coins."
  • A market order (amt = 0) trusts the daemon's price feed at take time. v0.19.0 bounded relayed price staleness. A pegged stablecoin rate is the operator's table.
  • Goods listings have no protocol timeout that returns your sats. You are in the merchant's refund policy.
  • NIP-15 checkout over NIP-04 will leak the address you typed to anyone who later gets that merchant key.
  • Reputation is per daemon, and imported reputation is per issuer. A high score on one Mostro is not a high score on another, unless that other daemon has imported and not revoked it.
  • Legal exposure of the fiat leg is not solved by skipping KYC. That is a different note: Legal Exposure of the Parallel Economy. This note is not legal advice.

Attack surface

Vector What breaks What does not save you
Operator settles the hold invoice and does not pay the buyer Seller's sats are in the daemon's wallet. The preimage release is the theft The word "non-custodial" on the homepage. The kind 8383 event only audits the dev-fee slice
Operator never settles, CLTV expires Seller is refunded. Buyer who already sent fiat is not A dispute chat, if the operator is the one refusing to act
README dispute diagram vs hold-invoice direction The v0.20.2 README mermaid labels "Settle order (seller wins)" as settling the hold invoice, and "Cancel order (buyer wins)" as canceling it. Settling pays the invoice creator (the daemon), then the daemon must pay someone. Canceling refunds the payer (the seller). The happy-path diagram matches that direction; the dispute diagram's parentheticals do not Guessing from the diagram. docs/ADMIN_RPC_AND_DISPUTES.md says admin_settle "settles/cancels hold or pays out as needed," and a read solver cannot execute it. The operator, or a read-write solver they appointed, decides
Fake fiat proof Buyer is paid in bitcoin, or seller releases, against a transfer that reverses or never arrived Encryption of the chat. The chat is evidence for a human, not a proof
Bond slash A second hold invoice the operator can settle on a timeout or a solver order Leaving the bond feature off, which is the default, but then no-shows are cheap
Price-feed lie on amt=0 Taker locks the wrong number of sats The premium tag. Premium is on top of the feed
Cashu mint halt Escrow token does not redeem. Trade is stuck on that mint's keys Switching mints mid-order. The URL was accepted at take
Relay and IP Kind 14 shows trade-key ↔ daemon pubkey. Your relay sees your IP. Lightning path sees your node or LSP and the daemon's node Full-privacy mode, which hides the long-term key from the daemon, not your IP from the relay
Public order tags Payment method, fiat code, amount, geohash, and premium are on kind 38383 in cleartext The signature. It authenticates the daemon, not the trader
Stale v1 client Silence. v2 nodes do not answer gift wrap Retrying. Read protocol_version first
NIP-04 order (NIP-15) Address, phone, email in the type-0 message decrypt under the merchant's long-term key Deleting the listing. Kind 5 does not delete the peer's copy of the DM
Forged Shopstr status DM A non-merchant event used to mark an order paid or shipped Clients older than 2ed18bc (2026-11-02). The fix is "authorized senders only"
Listing impersonation Kind 30402 / 30018 signed by a key you have never paid before The marketplace UI's name. Check the pubkey
Archived Plebeian trees You cannot see what plebeian.market is running while it still serves a cart The NIP-15 citation. A spec naming a project is not a current build
Dev-fee floor An operator cannot set the dev-fee percentage below 0.10; startup fails. That is a forced skim of the operator's fee, paid to a hardcoded address Treating it as optional like the trade fee, which the code default sets to 0
Unsynced LND v0.20.0 fails closed (PR #1065). Older daemons can pay from a node that has not seen the chain An info event alone. Use kind 38389

Worst case on Mostro is the same as any Lightning escrow bot: the operator takes one side's bitcoin and the fiat side has already moved, or the operator disappears and the CLTV returns the bitcoin to the seller after the buyer has paid fiat. Worst case on a goods listing is a normal online-shopping loss, plus the metadata in the order DM.

Evidence at a glance

Claim Source Date What it supports
mostrod v0.20.2 is the latest GitHub release; repo pushed 2026-11-10 GitHub API repos/MostroP2P/mostro and /releases 2026-11-11 Version anchor. main has commits after the tag
v0.20.2 adds 1:1 sats quotes for BTC/LBTC/RBTC and a stablecoin peg provider Release body "What's Changed in 0.20.2"; PRs #1091, #1083 published 2026-10-28 Do not treat those codes as a bridge
v0.20.0 publishes health events and fails closed when LND is unsynced; reputation import lands Release body "What's Changed in v0.20.0"; PRs #1066, #1065, #1029–#1032 published 2026-10-15 Info event ≠ healthy payouts
Protocol v1 gift wrap removed in v0.19.0 Release body PR #1004; README "Protocol Transport"; protocol index tag published 2026-09-29 Old "gift wrap + ecash" descriptions are stale
Code default fee is 0.0; README says default 0.6%; FAQ example is ~0.3% per side src/config/types.rs at v0.20.2; README features line; mostro.network FAQ 2026-11-11 Read the live info event, not the marketing number
Dev fee default 30%, floor 10%, address dev@pay.mostro.foundation, mainnet only, kind 8383 docs/DEV_FEE.md, src/config/constants.rs tag v0.20.2 Operator skim, not a user-set donation
Hold invoice is created by the daemon; seller pays it; release settles then pays the buyer README "Order Flow" sequence, tag v0.20.2 2026-11-11 Operator holds the preimage
Kind 38383 order event is NIP-69, draft optional nostr-protocol/nips 69.md raw 2026-11-11 Shared book shape, not shared escrow
NIP-15 unrecommended; checkout is NIP-04; NIP-99 is the suggested replacement NIPs README and 15.md / 99.md 2026-11-11 Do not start a new stall integration
Shopstr is NIP-99, version 0.10.3, status-DM fix 2ed18bc shopstr README, package.json, commit list commit 2026-11-02; meta 2026-11-11 No protocol escrow; pin past that commit
Gamma spec last pushed 2025-05-10 GitHub API GammaMarkets/market-spec 2026-11-11 Spec is behind the clients
Plebeian site served a product grid; both GitHub trees found are archived plebeian.market fetch; GitHub API on PlebeianApp/plebeian-market and old-plebeian.market 2026-11-11 Live vitrine, no current public source
nostrmarket still moves, requires LNbits 1.7.0 GitHub API commits, 92bb15a 2026-11-10 NIP-15 reference implementation is not dead

Also in Identity, Social and Trust

Page history

Updated
2026-11-11
Origin
Compiled from the ungovernable.tech research notes.
Improve this page
Suggest an edit — issues and pull requests are welcome.