Skip to content
Open
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
3 changes: 2 additions & 1 deletion electrum/plugins/coldcard/coldcard.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ def xfp_int_from_xfp_bytes(fp_bytes: bytes) -> int:
def xfp2str(xfp: int) -> str:
# Standardized way to show an xpub's fingerprint... it's a 4-byte string
# and not really an integer. Used to show as '0x%08x' but that's wrong endian.
return struct.pack('<I', xfp).hex().lower()
# Optimization: avoid .lower() call by formatting hex directly to lowercase.
return struct.pack('<I', xfp).hex()

# EOF