bip21: add comment listing URI scheme handler registrations

It is sufficiently rare that we have to touch this stuff that I always have to re-discover where/how it is done. And it is impractical to grep for "bitcoin:" or "lightning:".

Putting this "master list" comment very close to the BITCOIN_BIP21_URI_SCHEME variable seems like a good spot - at least this is where I would look for it first.
This commit is contained in:
SomberNight
2026-04-11 02:55:54 +00:00
parent 1235b4a6b9
commit 016c8b5f4c
+6
View File
@@ -13,6 +13,12 @@ from .lnaddr import lndecode, LnDecodeException
BITCOIN_BIP21_URI_SCHEME = 'bitcoin'
LIGHTNING_URI_SCHEME = 'lightning'
# note: URI scheme handler registrations are duplicated all over the codebase:
# - for Android: contrib/android/bitcoin_intent.xml
# - for Linux Desktop: electrum.desktop
# - for Windows (setup.exe): contrib/build-wine/electrum.nsi
# - for macOS: contrib/osx/pyinstaller.spec
class InvalidBitcoinURI(Exception):
pass