Skip to content

Add getDisplayPublicKeys to UTXO currency tools - #465

Open
j0ntz wants to merge 1 commit into
masterfrom
jon/xpub-copy-cards
Open

j0ntz wants to merge 1 commit into
masterfrom
jon/xpub-copy-cards

Conversation

@j0ntz

@j0ntz j0ntz commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

  • EdgeApp/edge-core-js#744 calls this method (not a build dependency: the tools type already exists in the published core)

Description

Asana task

Implements getDisplayPublicKeys on the UTXO currency tools. It returns each xpub keyed by its address format, newest format first: bip84, bip49, bip44, bip32. Formats the wallet lacks are left out.

A modern BTC wallet returns its zpub (bip84) and ypub (bip49) as two entries. The GUI labels them SegWit and Wrapped SegWit on separate copy rows, replacing the single newline-joined paragraph from getDisplayPublicSeed, which stays unchanged.

Spec tests run per fixture wallet type: each derived xpub appears under its format, and entries come out in the newest-first order.


Note

Low Risk
Read-only display helper over existing public wallet keys; no changes to signing, sync, or key derivation.

Overview
Adds getDisplayPublicKeys to UTXO makeCurrencyTools, so the GUI can show each extended public key on its own row instead of one combined string from getDisplayPublicSeed.

The method reads publicKeys from wallet info via asPublicKey, builds a format → xpub map, and only includes formats the wallet actually has. Iteration order is fixed (bip84 → bip49 → bip44 → bip32) so newer address types appear first. The unreleased CHANGELOG notes the new tools API.

Spec coverage runs across fixture wallet types: derived xpubs match under the right format key, and a dedicated case asserts newest-first ordering.

Reviewed by Cursor Bugbot for commit 348e37f. Bugbot is set up for automated code reviews on this repo. Configure here.

Returns each of a wallet's xpubs keyed by its address format
(bip84, bip49, bip44, bip32, newest first). The GUI uses this to show
and copy each key separately instead of as one newline-joined block.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-17T02:35:47.579204Z 348e37f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

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