Skip to content

docs: Reorganize keycard unpairing#28

Merged
bitgamma merged 1 commit intokeycard-tech:developfrom
willianpaixao:unpair
Sep 3, 2025
Merged

docs: Reorganize keycard unpairing#28
bitgamma merged 1 commit intokeycard-tech:developfrom
willianpaixao:unpair

Conversation

@willianpaixao
Copy link
Copy Markdown
Contributor

  • Reorder keycard commands in examples so that keycard-unpair runs before keycard-generate-key.
  • Ensure all shell‑command example scripts reflect the correct pairing workflow.

- Reorder keycard commands in examples so that `keycard-unpair` runs before `keycard-generate-key`.
- Ensure all shell‑command example scripts reflect the correct pairing workflow.
Copilot AI review requested due to automatic review settings September 3, 2025 10:13
@bitgamma bitgamma merged commit a2e1c4f into keycard-tech:develop Sep 3, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reorganizes the keycard unpairing workflow in documentation examples to ensure proper command ordering. The change moves keycard-unpair commands to execute before key operations rather than after them.

  • Moves keycard-unpair to execute immediately after PIN verification in most examples
  • Updates one example to place unpairing before message signing for clarity
  • Standardizes the pairing workflow across all shell command examples

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
_shell-commands-examples/13-export-key.sh Moves unpair command before key export operations
_shell-commands-examples/12-full-test.sh Moves unpair command before derive and sign operations
_shell-commands-examples/10-remove-key.sh Moves unpair command before key removal
_shell-commands-examples/07-sign-message.sh Moves unpair command before message signing with updated comments
_shell-commands-examples/06-sign.sh Moves unpair command before derive and sign operations
_shell-commands-examples/05-generate-key.sh Moves unpair command before key generation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines 9 to +13
# we unpair the current device so that we don't use one of the 5 available slots.
keycard-unpair {{ session_pairing_index }}

# sign a message
keycard-sign-message hello
Copy link

Copilot AI Sep 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment on line 9 explains unpairing to avoid using slots, but this rationale conflicts with the workflow where unpairing occurs before the actual operation. The comment should be updated to reflect the correct purpose of unpairing in this new sequence.

Copilot uses AI. Check for mistakes.
@willianpaixao willianpaixao deleted the unpair branch September 3, 2025 13:25
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.

3 participants