key-derivation
BSV Key Derivation
Two primary approaches for deriving keys on BSV, plus mnemonic support.
Quick Reference
| Method | Package | Use Case |
|---|---|---|
| Type42 (BRC-42) | @bsv/sdk |
Modern: privacy-preserving, counterparty derivation |
| BIP32 (BRC-32) | @bsv/sdk |
Legacy: HD wallets, sequential paths |
| Mnemonic | @bsv/sdk |
Seed phrase to master key conversion |
1. Type42 Key Derivation (Recommended)
Modern approach using ECDH shared secrets. Provides enhanced privacy and unlimited key derivation.
Basic Usage
More from b-open-io/bsv-skills
stratum-v1
This skill should be used when the user asks to "implement Stratum v1", "mining pool protocol", "JSON-RPC mining", "pool-miner communication", "mining.subscribe", or needs to build Stratum v1 mining infrastructure.
22wallet-encrypt-decrypt
This skill should be used when the user asks to "encrypt message with BSV key", "decrypt with private key", "ECDH encryption", "AES-256-GCM BSV", "EncryptedMessage", "BRC-2 encryption", or needs to encrypt/decrypt data using BSV keys and @bsv/sdk.
22check-bsv-price
This skill should be used when the user asks "what is BSV price", "BSV to USD", "current BSV rate", "BSV market cap", or needs to fetch current BSV price and exchange rate information.
22encrypt-decrypt-backup
This skill should be used when the user asks to "encrypt backup", "decrypt .bep file", "bitcoin-backup CLI", "backup wallet", "Touch ID password cache", "upgrade backup iterations", or needs to encrypt/decrypt BSV backup files using the bbackup CLI.
22lookup-bsv-address
This skill should be used when the user asks to "lookup address", "check address balance", "address UTXOs", "address history", or needs to retrieve BSV address information from WhatsOnChain API.
21calculate-mining-difficulty
This skill should be used when the user asks to "calculate mining difficulty", "convert target to difficulty", "analyze block difficulty", "BSV difficulty calculation", or needs to compute difficulty from block headers.
20