Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/codex32_gui/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ def _blank(flow: Gtk.FlowBox) -> None:
def _rows(title: str, values: Sequence[tuple[str, str]]) -> Adw.PreferencesGroup:
group = Adw.PreferencesGroup(title=title)
for label, value in values:
group.add(Adw.ActionRow(title=label, subtitle=value, subtitle_selectable=True, use_markup=False))
row = Adw.ActionRow(title=label, subtitle=value, subtitle_selectable=True, use_markup=False)
row.add_css_class("property") # libadwaita's style for a value: subtitle at full strength.
group.add(row)
return group


Expand Down
2 changes: 1 addition & 1 deletion src/codex32_gui/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
font-size: 1.1rem;
letter-spacing: 0.06em;
}
.card-group {
.card-group, .property .subtitle {
font-family: monospace;
font-size: 1.35rem;
font-weight: bold;
Expand Down
4 changes: 2 additions & 2 deletions src/codex32_gui/wallet_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ def network(core: BitcoinCore) -> str:

def fingerprint(core: BitcoinCore, secret: MasterSeed) -> str:
"""Return the BIP32 master fingerprint, derived by Bitcoin Core out of process."""
return core.fingerprint(secret).hex()
return core.fingerprint(secret).hex().upper()


def identity(core: BitcoinCore, secret: MasterSeed) -> tuple[str, str]:
"""Return the recovered fingerprint and what the backup identifier says about the seed."""
fingerprint = core.fingerprint(secret)
return fingerprint.hex(), identifier_note(identifier_origin(secret, fingerprint))
return fingerprint.hex().upper(), identifier_note(identifier_origin(secret, fingerprint))


def verify(core: BitcoinCore, secret: MasterSeed, expected: bytes | None, start: Timestamp) -> None:
Expand Down
Loading