bitcoin-hardware-ledger
Ledger hardware wallets: Nano S Plus, Nano X, Stax, Flex. BOLOS app architecture, Ledger Live, secure element, anti-klepto. USE WHEN: integrating with Ledger, supporting Ledger in app, debugging PSBT signing or HW Recovery service issues.
What this skill does
# Ledger Hardware Wallets
Ledger (France) — second-most popular hardware wallet line. Models
based on **Secure Element** (SE) chips.
## Models
| Model | Year | Notes |
|-------|------|-------|
| Nano S | 2016 (deprecated) | First popular Ledger; SE + MCU |
| Nano X | 2019 | Bluetooth, larger screen |
| Nano S Plus | 2022 | Successor to Nano S, more memory |
| Stax | 2023 | Touchscreen, e-ink |
| Flex | 2024 | Color touchscreen |
## BOLOS architecture
Ledger devices run **BOLOS** (Blockchain Open Ledger Operating
System). Each cryptocurrency has a separate **app** loaded onto
the device:
- Bitcoin app (`bitcoin-app-developer`)
- Ethereum app
- Various altcoins.
App switching during use (close old, open new). Apps signed by
Ledger.
## Bitcoin app
Functions:
- Get xpub at any path.
- Generate addresses.
- Sign txs (legacy mode).
- Sign PSBTs (modern mode, since v2.0+).
## Connection
- USB (HID).
- Bluetooth (Nano X / Stax / Flex).
- Ledger Live (desktop / mobile).
- Third-party: HWI, Sparrow, Specter, Electrum, Wasabi.
## Anti-klepto
Defense against compromised firmware leaking the seed via
deterministic-looking signatures (DUSEC attack):
- Host provides random `aux_rand`.
- Device combines with internal randomness.
- Final nonce derivation uses both → tamper-evident if firmware tries
to leak seed.
## Recovery service (controversial)
In May 2023, Ledger announced "Recover" — optional opt-in service
that splits seed into encrypted shards stored by 3rd parties.
Backlash: critics argued device firmware can extract seed.
Legitimate users can opt-out / never enable.
## API
ledger-bitcoin (Python):
```python
from ledger_bitcoin import Client, ChainID
with Client(transport=connect_hid_or_ble(), chain=ChainID.MAIN) as client:
pk = client.get_extended_pubkey("m/84'/0'/0'")
psbt_signed = client.sign_psbt(psbt, wallet_policy, hmac=None)
```
JavaScript: `@ledgerhq/hw-app-btc`.
## PSBT support
Modern Ledger (v2+) supports PSBT directly. Older Ledger requires
legacy "raw tx + path" flow.
Multi-sig: Ledger requires "wallet policies" — registered descriptor
on the device with HMAC for trust binding.
## Common issues
- **Wrong app**: app for different chain open instead of Bitcoin.
- **Path mismatch**: Ledger Live defaults to BIP44 even for segwit;
third-party tools must override to BIP84/86.
- **Bluetooth Nano X**: occasional connection drops, prefer USB.
- **Wallet policy registration**: required for multisig; first-time
setup confusing.
## See also
- [trezor/SKILL.md](../trezor/SKILL.md)
- [hwi/SKILL.md](../hwi/SKILL.md)
- [psbt-flows/SKILL.md](../psbt-flows/SKILL.md)
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.