mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-11 07:56:50 +02:00
c79de772e4262effa8f7dd3191da3684f788f486
Added comprehensive reference documentation for NIP-60 (Cashu Wallets) and its implementation in the applesauce library. ## NIP-60 Cashu Wallet Reference Created `.claude/skills/nostr/references/nip-60-cashu-wallet.md`: ### Protocol Coverage - Complete NIP-60 specification with all event kinds - Event kind 17375 (wallet config) - Event kind 7375 (unspent tokens) - Event kind 7376 (transaction history) - Event kind 7374 (pending quotes) ### Wallet Operations - Creating wallets with encrypted private keys - Minting (deposit Bitcoin → receive ecash) - Sending (transfer ecash with state transitions) - Receiving (accept and swap tokens) - Melting (withdraw ecash → get Bitcoin) - Wallet recovery from relays ### applesauce-wallet Implementation - Architecture overview and usage patterns - ActionHub integration with wallet actions - React hooks for wallet components - Event encryption with NIP-44 - Reactive updates with RxJS observables ### Security Best Practices - Wallet private key management (separate from Nostr key) - NIP-44 encryption for sensitive data - Proof validation against mints - State transition atomicity - Multi-relay synchronization ### Code Examples - Fetching and decrypting wallet config - Managing token events and proofs - Creating transaction history events - Complete send flow with state transitions - Balance calculation and proof selection ### Use Cases - NIP-61 Nutzaps (Cashu Lightning zaps) - Cross-application wallet portability - Ecash savings for privacy - Merchant payment acceptance ## Documentation Updates Updated `.claude/skills/nostr/README.md`: - Added NIP-60 Cashu Wallet reference to documentation list - Linked to comprehensive wallet operations guide - Included applesauce-wallet implementation details ## Key Insights NIP-60 enables: ✅ Relay-based Cashu wallet storage for cross-app access ✅ Privacy-preserving ecash with blind signatures ✅ Instant value transfer without Lightning routing ✅ No account or KYC requirements ✅ Seamless integration with Nostr ecosystem The applesauce library (used by noStrudel) provides a work-in-progress implementation of NIP-60, enabling web clients to offer full Cashu wallet functionality. ## Resources Referenced - NIP-60 specification: github.com/nostr-protocol/nips/blob/master/60.md - applesauce docs: hzrd149.github.io/applesauce/ - Cashu protocol: cashu.space - cashu-ts library: github.com/cashubtc/cashu-ts
Grimoire
A Nostr protocol explorer and developer tool with a tiling window manager interface.
Features
- Tiling Windows - Each window is a Nostr "app" (profile viewer, event feed, NIP docs, etc.)
- Command Palette - Unix-style commands via
Cmd+Kto open apps and navigate - Multi-workspace - Virtual desktops with independent layouts
- Real-time - Reactive event subscriptions with automatic updates
Stack
React 19, TypeScript, Vite, TailwindCSS, Jotai, Dexie, Applesauce
Getting Started
npm install
npm run dev
Scripts
| Command | Description |
|---|---|
npm run dev |
Start dev server |
npm run build |
Build for production |
npm test |
Run tests in watch mode |
npm run lint |
Lint code |
npm run format |
Format code |
License
MIT
Languages
TypeScript
98.9%
CSS
0.8%
JavaScript
0.3%