Inspiration

Bitcoin has become the ultimate store of value, but DCA investors face two major problems:

  1. Privacy leak: Every purchase creates on-chain footprints linking identity to holdings
  2. Earnings volatility: Accumulating BTC while holding other assets means fiat exposure fluctuates wildly with price swings

We wanted to build a sovereignty-first DCA app that lets users stack sats privately and settle volatile earnings with quantum-safe mechanisms.

What it does

QuietGain DCA is a privacy-first Bitcoin DCA app: stack sats via Nostr with BIP-352 Silent Payments, use Lightning stable channels to keep your fiat exposure steady when BTC pumps, and settle long-term wealth on P2QRH addresses generated with ML-DSA (CRYSTALS-Dilithium) to remain secure against quantum attacks.

๐Ÿ’ฐ DCA Purchase Flow

  • Multi-Currency Support: Buy Bitcoin in USD, IDR (Indonesian Rupiah), or INR (Indian Rupee)
  • Direct Lightning Payments: Pay via YakiHonne wallet integration
  • Silent Payments: Receive Bitcoin privately using BIP-352 Silent Payments
  • Smart Widget Handler: Native payment integration with YakiHonne SDK

โšก Stable Channels - Stabilize Your Bitcoin Gains

Lock in your Bitcoin value using Lightning Network stable channels. When BTC price increases, protect your gains by depositing into stable channels that maintain USD-equivalent value.

Example: You've accumulated 0.5 BTC through DCA

  • Initial DCA at $60,000: 0.5 BTC = $30,000
  • BTC Pumps 40% to $84,000: 0.5 BTC = $42,000
  • Deposit to Stable: 0.3 BTC ($25,200) + 0.2 BTC stable ($16,800)
  • BTC Drops 20% to $67,200: 0.3 BTC = $20,160 + stable = $16,800 = $36,960 (protected!)

Without stable channels: 0.5 BTC @ $67,200 = $33,600 (lost $8,400 from peak)
With stable channels: $36,960 (saved $3,360! โœ…)

๐Ÿ” Privacy & Security

  • Silent Payments (BIP-352): Receive Bitcoin without address reuse - no on-chain linkability
  • Nostr Integration: Your identity and history on decentralized relays (kind 31111 events)
  • Lightning Payments: Fast, low-fee Bitcoin transactions
  • Post-Quantum Ready: Future ML-DSA (FIPS-204) support for quantum-resistant settlements

๐Ÿ“ฑ Mobile-First Design

  • Optimized for YakiHonne playground
  • Progressive Web App (PWA) support
  • Touch-friendly interface
  • Responsive layout for all screen sizes

How we built it

Frontend: React 18 + Vite + Redux Toolkit for state management
Nostr Protocol: @nostr-dev-kit/ndk for relay communication and event publishing
Cryptography: BIP-352 Silent Payments, Schnorr signatures, post-quantum key derivation
Lightning: bolt11 invoice generation, QR code rendering
Infrastructure: Connected to YakiHonne relays + Damus, Nostr Band, nos.lol

Key components:

  • NostrProvider: Handles identity via nos2x extension or npub
  • DCAEngine: Computes BTC amounts, manages purchase events
  • ChannelManager: Tracks stable channel deposits and synthetic USD positions
  • MarketplaceHandler: P2P order matching and invoice settlement
  • QuantumSafeModule: Post-quantum signature validation and ML-DSA key generation

Challenges we ran into

  1. Silent Payment Integration: BIP-352 is non-standard. Required implementing full tweak chain and address scanning logic from scratch.
  2. Nostr Relay Sync: Multiple relay sources can have conflicting event versions. Implemented consensus logic for historical consistency.
  3. Quantum-Safe Cryptography: Integrating post-quantum signatures (CRYSTALS-Dilithium/ML-DSA) with Schnorr signatures required careful key commitment schemes.
  4. UX for Lightning: Generating invoices on-the-fly while syncing channel state to Nostr proved complex. Solution: local caching + relay fallback.
  5. Stable Channel Math: Creating synthetic USD positions without derivatives infrastructure. Used Lightning channel capacity ratios as collateral proxies.

Accomplishments we're proud of

  • โœ… Full Silent Payment flow: From address generation to verified receipt tracking
  • โœ… P2P Marketplace: Live order feed with Lightning invoice settlement
  • โœ… Quantum-Safe Settlement: First Bitcoin DCA app with ML-DSA earnings stabilization
  • โœ… Cross-Device Sync: Nostr-native history accessible from any device
  • โœ… Real-Time Analytics: DCA statistics with average price tracking and rebalance suggestions
  • โœ… Mobile-Ready: YakiHonne integration for Telegram/web UI

What we learned

  1. Privacy != Obscurity: Silent Payments require rigorous validation. A single leaked tweak breaks privacy.
  2. Nostr as Infrastructure: Using kind 31111 for structured financial data proved flexible.
  3. Quantum Post-Mortems Matter: Post-quantum cryptography needs active monitoring. Integrated key rotation for algorithm agility.
  4. Lightning Channel Atomicity: Payment channels simplify UX but complicate state consistency.
  5. Bitcoin Community: Feedback on BIPs and cryptography from Twitter/Nostr pushed protocol design forward.

What's next for QuietGain DCA

  • [ ] Real Lightning Node: Integrate LNbits or BTCPay for production channels
  • [ ] ML-DSA Settlement: Generate P2QRH addresses from Dilithium keys for long-term HODL security
  • [ ] HODL Invoices: Escrow-based orders with timelock releases
  • [ ] Automated DCA Scheduling: Cron-like recurring purchases via Nostr event scheduling
  • [ ] Silent Payment Wallet: Full wallet UI with balance tracking via Silentium integration
  • [ ] Reputation System: NIP-05 verification for marketplace trust
  • [ ] Quantum Algorithm Agility: Monitor NIST PQC standardization, rotate keys proactively
  • [ ] Social Features: Follow friend DCA strategies, compare accumulation rates

Stack sats. Stay humble. Build on Nostr. โšก๐Ÿงก

Built With

Share this project:

Updates