Skip to content

Print Paper Wallets for cryptocurrencies without a logo - #31

Open
fdegros wants to merge 1 commit into
pjkundert:masterfrom
fdegros:logo-optional
Open

fdegros wants to merge 1 commit into
pjkundert:masterfrom
fdegros:logo-optional

Conversation

@fdegros

@fdegros fdegros commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

A Paper Wallet shows the cryptocurrency's logo in its center, loaded from slip39/layout/<SYMBOL>.png. Only a few cryptocurrencies (BNB, BTC, CRO, DOGE, ETH, LTC, XRP) have one, so, for example, slip39 -c DASH -w password fails with FileNotFoundError: .../DASH.png, after the PDF is already partly written.

This leaves the center of the wallet blank when there is no logo.

  • Change: slip39/layout/pdf.py, an os.path.exists check.
  • Test: test_wallet_without_logo in slip39/output_test.py (skipped when scrypt isn't installed, as BIP-38 wallets need it); it fails with the FileNotFoundError on current master and passes with this change.
  • pytest (without the invoice/communications tests): 42 passed, 4 skipped; recovery_test.py::test_dft_smoke fails on Python 3.14 when numpy isn't installed (the pure-Python idft fallback), with or without this change.

A Paper Wallet displays the cryptocurrency's logo in its center, loaded from
slip39/layout/<SYMBOL>.png.  Only a few cryptocurrencies (BNB, BTC, CRO, DOGE, ETH,
LTC, XRP) have one, so eg. `slip39 -c DASH -w password` failed with
FileNotFoundError: .../DASH.png, after the PDF was already partly written.

Leave the center of the wallet blank when there is no logo.

This branch has not been deployed

No deployments
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