0xbrief · marmot · cashu · nostr
Kimchi
A private group tab for the moments you would rather not publish. The group chat is Marmot: MLS over Nostr relays. The money is Cashu: P2PK-locked ecash requested with NUT-18. No phone number, no email, no Kimchi server.
Why it is a Marmot app
Kimchi is not a payment app with a chat bolted on. The group, the invite, the receipt, the tab, and the settlement all ride one MLS group. The relay sees the same kind 445 ciphertext envelope whether the group is chatting or splitting a bill.
- Group creation is an MLS group with a public Nostr group id and a relay set.
- Invites are KeyPackages (
kind 30443) plus MLS Welcomes delivered as NIP-59 gift wraps. - Chat, reactions, media, and tabs are application rumors inside the same encrypted group.
- Membership is MLS group state; adding or removing a member is a commit, not a database update.
- Forward secrecy and post-compromise security come from MLS's epoch-based key schedule.
The next step is kimchi.tab.v1, a Marmot application component so White Noise and other clients can render the tab natively.
The three layers
Marmot / MLS
MLS supplies the group key agreement and membership state. Kimchi uses @internet-privacy/marmot-ts for group creation, KeyPackage publication, Welcome delivery, commits, history, and encrypted media.
Nostr
Nostr supplies identity and transport. The npub is the user; there is no signup server. Relays carry kind 445group events, kind 30443 KeyPackages, andkind 1059 gift wraps. Join links add a capability token and a gift-wrapped join request on top.
Cashu
Cashu supplies the money. For each guest share, the host derives a fresh P2PK key and builds a NUT-18 creqA… request locked with NUT-10/NUT-11. The guest pays; the host checks NUT-07 states and redeems with the share private key. Minibits is the default and advertises NUT-10, NUT-11, and NUT-07.
Because every share uses a fresh key, the mint sees distinct locks rather than one reusable address. It still sees amounts and timing; the privacy model says so.
What leaks
| Party | Sees | Does not see |
|---|---|---|
| Relay | Group id, sender pubkey, timing, sizes, ciphertext | Chat text, receipt, tab amounts, who paid whom |
| Mint | Amounts, timing, distinct P2PK locks | Group, names, who paid which share |
| Blossom host | Encrypted media blobs and hashes | Receipt plaintext |
| Network | IP addresses and connection metadata | — (use Tor/VPN if this matters) |
Kimchi does not claim anonymity or untraceability. It claims specific, checkable properties: MLS ciphertext on the relay, fresh-key P2PK on the mint, and no server holding the group or the tab.
Demo in one minute
- The host creates a Marmot group and shares a join link.
- Guests tap the link and are added automatically.
- The host attaches the receipt and opens a tab in KRW, split equally.
- Each guest sees one amount and pays with ecash.
- The host auto-redeems; the tab settles.
- The relay log shows
kind 445ciphertext; the mint log shows amounts only.
Stack
@internet-privacy/marmot-ts0.9 · MLS group chat, KeyPackages, Welcomes, MIP-04 media@cashu/cashu-ts4.13 · wallet, P2PK, NUT-18 requests, NUT-07 states- Applesauce 7 · Nostr signers, relay pool, event store, gift wrap
- React 19, Vite 7, TypeScript 5.9, Tailwind 4, PWA
- Minibits mint ·
https://mint.minibits.cash/Bitcoin
Read more
- README — architecture, protocol, and privacy summary
- Architecture — join, chat, tab, payment, storage flows
- Privacy model — adversary matrix and non-goals
- Marmot protocol · Cashu NUTs