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.
- Multi-Currency Support: Buy Bitcoin in USD, IDR (Indonesian Rupiah), or INR (Indian Rupee)
- Direct Lightning Payments: Pay directly to Lightning addresses via YakiHonne wallet
- Silent Payments: Receive Bitcoin privately using BIP-352 Silent Payments
- Recommended wallet: Silentium Wallet for Silent Payment address generation
- Smart Widget Handler: Native payment integration with YakiHonne using smart-widget-handler SDK
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.
Scenario: You've accumulated 0.5 BTC through DCA purchases
| Event | BTC Price | Your BTC | USD Value | Action |
|---|---|---|---|---|
| Initial DCA | $60,000 | 0.5 BTC | $30,000 | Accumulating Bitcoin |
| BTC Pumps 40% | $84,000 | 0.5 BTC | $42,000 | ๐ฏ Rebalance Trigger |
| Deposit to Stable | $84,000 | 0.3 BTC + 0.2 BTC (stable) |
$25,200 (BTC) + $16,800 (stable) |
Lock in $12,000 gains |
| BTC Drops 20% | $67,200 | 0.3 BTC + 0.2 BTC (stable) |
$20,160 (BTC) + $16,800 (stable) |
Protected value! |
Without Stable Channel: 0.5 BTC @ $67,200 = $33,600 (-$8,400 from peak)
With Stable Channel: $20,160 + $16,800 = $36,960 (+$3,360 saved! โ
)
- Deposit: When BTC price rises, deposit a portion into Lightning stable channels
- Lock Value: Your deposited BTC maintains its USD value regardless of price changes
- Withdraw: Exit the channel anytime to convert back to regular Bitcoin
- Rebalance: Optimize channel capacity for better Lightning routing
- Optimized for YakiHonne playground
- Progressive Web App (PWA) support
- Touch-friendly interface
- Responsive layout for all screen sizes
- Silent Payments (BIP-352): Receive Bitcoin without address reuse
- Generate addresses with Silentium Wallet
- No on-chain linkability between transactions
- Enhanced privacy for all DCA purchases
- Nostr Integration: Your identity and history on decentralized relays
- Lightning Payments: Fast, low-fee Bitcoin transactions
As Bitcoin evolves, we're preparing for quantum-resistant cryptography:
ML-DSA (Module-Lattice-Based Digital Signature Algorithm) - FIPS-204 standard for post-quantum signatures. See implementation example: btc-vision/noble-post-quantum
This ensures your Bitcoin transactions remain secure even against quantum computers. The noble-post-quantum library provides:
- ML-DSA: Lattice-based signatures (FIPS-204)
- ML-KEM: Key encapsulation mechanism (FIPS-203)
- SLH-DSA: Hash-based signatures (FIPS-205)
Integration planned for future Nostr event signing and Bitcoin transaction security.
# Clone the repository
git clone https://github.com/Vib-UX/dca-bitcoin.git
cd dca-bitcoin
# Install dependencies
npm install
# Start development server
npm run devOpen http://localhost:5173 in your browser.
- Open YakiHonne app
- Navigate to Widget Playground
- Load the widget using
widget.jsonconfiguration - Start DCA-ing Bitcoin with native payments!
- React 18 - UI framework
- Redux Toolkit - State management
- React Router - Navigation
- Vite - Build tool & dev server
- NDK (@nostr-dev-kit/ndk) - Nostr Development Kit
- nostr-tools - Core Nostr utilities
- Dexie - IndexedDB cache for Nostr events
- smart-widget-handler - Native payment integration for YakiHonne
- LNURL - Lightning address support
- BIP-352 Silent Payments - Privacy-preserving Bitcoin reception
- wss://nostr-01.yakihonne.com
- wss://nostr-02.yakihonne.com
- wss://relay.damus.io
- wss://relay.nostr.band
- wss://nos.lol
User Input โ Calculate Sats โ Request Payment โ YakiHonne Approval โ Success
Example: Buy $100 USD of Bitcoin
- BTC Price: $84,000
- Amount in BTC: 0.00119048 BTC (119,048 sats)
- Payment to:
[email protected] - Silent Payment Address: Receive Bitcoin privately
Accumulate BTC โ Price Rises โ Deposit to Stable โ Lock USD Value โ Rebalance
Strategy:
- DCA into Bitcoin regularly
- When BTC pumps 30-50%, move 40% to stable channels
- Lock in gains at higher prices
- Buy back BTC when price dips
All DCA purchases are published as Nostr events (kind 31111):
{
"kind": 31111,
"content": {
"fiatAmount": 100,
"currency": "USD",
"btcAmount": 0.00119048,
"btcPrice": 84000,
"silentPaymentAddress": "sp1...",
"timestamp": 1735868876
}
}- Automate Bitcoin accumulation with DCA
- Track all purchases on Nostr
- Protect gains with stable channels during bull runs
- Use Silent Payments for anonymous Bitcoin reception
- No address reuse, no on-chain tracking
- Recommended: Silentium Wallet for Silent Payment addresses
- Instant payments via Lightning Network
- Low fees (<1%)
- Native YakiHonne integration
- Identity and history on Nostr
- Decentralized, censorship-resistant
- Portable across clients
Create a .env file:
VITE_DEFAULT_LIGHTNING_ADDRESS=[email protected]
VITE_ENABLE_MARKETPLACE=falseEdit widget.json for YakiHonne integration:
{
"name": "DCA Bitcoin",
"version": "1.0.0",
"permissions": ["payment", "nostr"]
}The app is optimized for mobile devices:
- Viewport: Configured for mobile screens
- Touch: Large, touch-friendly buttons
- Responsive: Adapts to all screen sizes
- PWA: Install as standalone app
- Manifest:
public/manifest.json
# Run tests
npm test
# Run linter
npm run lint
# Build for production
npm run buildContributions welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
MIT License - see LICENSE file
- YakiHonne: https://yakihonne.com - Nostr client with Smart Widget Handler
- Smart Widget Handler: https://github.com/Vib-UX/smart-widget-handler - Native payment SDK
- Silentium Wallet: https://github.com/AndySchroder/silentium - Silent Payment wallet
- BIP-352: https://github.com/bitcoin/bips/blob/master/bip-0352.mediawiki - Silent Payments spec
- Noble Post-Quantum: https://github.com/btc-vision/noble-post-quantum - Future quantum-resistant cryptography
- Nostr: https://nostr.com - Decentralized social protocol
- Built with NDK
- Lightning integration via smart-widget-handler
- Inspired by Bitcoin DCA strategies and privacy best practices
- Future-ready with noble-post-quantum for ML-DSA integration
โก Start DCA-ing Bitcoin today with privacy, Lightning speed, and gain protection!