Skip to content

Enable trezor and keepkey change detection for standard single key ouputs - #211

Merged
achow101 merged 1 commit into
bitcoin-core:masterfrom
achow101:trezor-change
Aug 20, 2019
Merged

achow101 merged 1 commit into
bitcoin-core:masterfrom
achow101:trezor-change

Conversation

@achow101

Copy link
Copy Markdown
Member

Enable change detection for p2pkh, p2sh-p2wpk, and p2wpkh on the Trezor and Keepkey

Fixes #170

@instagibbs

Copy link
Copy Markdown
Collaborator

Is there a way of scraping the simulator screen output to test the change detection? Would be nice to automatically test the change address doesn't appear on the screen.

@achow101

Copy link
Copy Markdown
Member Author

Is there a way of scraping the simulator screen output to test the change detection? Would be nice to automatically test the change address doesn't appear on the screen.

It is possible to get the entire raw buffer of the display, but I don't think that is particularly useful.

Comment thread hwilib/devices/trezor.py

# Add the derivation path for change, but only if there is exactly one derivation path
psbt_out = tx.outputs[i]
if len(psbt_out.hd_keypaths) == 1:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

just noting the ledger detection is more eager, trying any number of hd keypaths that appear to match. We could tighten that logic up in a follow-on PR.

Comment thread hwilib/devices/trezor.py Resolved
…tputs

Enable change detection for p2pkh, p2sh-p2wpk, and p2wpkh on the Trezor
and Keepkey
@instagibbs

Copy link
Copy Markdown
Collaborator

utACK 3dd66bd

achow101 added a commit that referenced this pull request Aug 20, 2019
…ingle key ouputs

3dd66bd Enable trezor and keepkey change detection for standard single key outputs (Andrew Chow)

Pull request description:

  Enable change detection for p2pkh, p2sh-p2wpk, and p2wpkh on the Trezor and Keepkey

  Fixes #170

ACKs for top commit:
  instagibbs:
    utACK 3dd66bd

Tree-SHA512: 0a706be08e32de03a58be052ba5af1fa1e00577f733f01616f31e5c2b0a8a6e634d5c02145d60802a4bff1a9b82d20473a18a59ad3f78497773d99edc0c14f93
@achow101
achow101 merged commit 3dd66bd into bitcoin-core:master Aug 20, 2019
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.

Trezor displays change address for confirmation

2 participants