Skip to content

feat: add KeepKey CLI examples suite#3

Open
BitHighlander wants to merge 1 commit into
masterfrom
feature/keepkey-cli-examples
Open

feat: add KeepKey CLI examples suite#3
BitHighlander wants to merge 1 commit into
masterfrom
feature/keepkey-cli-examples

Conversation

@BitHighlander
Copy link
Copy Markdown
Owner

Summary

  • 13 standalone example scripts in examples/ for testing and debugging KeepKey devices via HWI
  • Shared helper module (keepkey_helpers.py) with device discovery, client management, and common argparse setup
  • Each script exercises a specific HWI command with --passphrase, --chain, and --expert flags

Scripts

Script Purpose
keepkey_helpers.py Shared helpers: find_keepkey(), keepkey_session() context manager
01_enumerate_devices.py Device discovery
02_get_master_xpub.py Master xpub for all address types
03_get_xpub_at_path.py Xpub at custom derivation path
04_display_address.py On-device address display
05_sign_message.py Message signing
06_get_descriptors.py Output descriptors for Bitcoin Core
07_get_keypool.py Keypool for importdescriptors
08_sign_transaction.py PSBT signing
09_device_info.py Detailed device info (expert mode)
10_toggle_passphrase.py Toggle passphrase protection
11_pin_workflow.py Interactive PIN entry
12_multi_account_explorer.py Multi-account exploration

Test plan

  • All 13 files pass Python syntax check
  • 01_enumerate_devices.py lists connected KeepKey
  • 02_get_master_xpub.py returns xpubs for all address types
  • 03_get_xpub_at_path.py returns xpubs at BIP44/49/84 paths
  • 06_get_descriptors.py returns receive and change descriptors
  • 09_device_info.py shows full device info

13 standalone scripts exercising every HWI command against a KeepKey:
enumerate, xpub, display address, sign message, descriptors, keypool,
sign PSBT, device info, toggle passphrase, PIN workflow, and
multi-account explorer. Shared helper module for device discovery and
session management.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant