Add complete Ledger hardware wallet setup

Full Ledger Integration:
- Comprehensive Ledger app at /ledger.html
- WebUSB connection with proper device handling
- Real-time connection status
- Device information display
- Account management (BTC, ETH, SOL)
- Address retrieval and verification
- Transaction signing
- Public key export
- Connection logs and monitoring
- Automatic disconnect handling

Features:
- USB-C connection via WebUSB API
- Ledger vendor ID: 0x2c97
- Multi-account support
- Real-time balance tracking
- Transaction history
- Secure signing workflow
- Device verification
- Address confirmation on device

Browser Support:
- Chrome/Edge (WebUSB required)
- Proper error handling
- Connection persistence
- Disconnect detection

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Alexa Louise
2025-12-13 14:09:12 -06:00
parent d8a52fb1d2
commit 111d6d2a84
2 changed files with 529 additions and 2 deletions

View File

@@ -118,8 +118,8 @@
<strong>Connection:</strong><br>
USB-C Physical Device
</div>
<button onclick="connectLedger()">Connect Ledger</button>
<button onclick="signTransaction()">Sign Transaction</button>
<button onclick="window.location.href='/ledger.html'">Open Ledger App</button>
<button onclick="quickConnect()">Quick Connect</button>
</div>
<!-- Bitcoin Wallet -->