What changed, and why it matters
This commit simply adds two new named constants for an existing Lightning network feature (route blinding/blinded paths) to Electrum's internal feature-flag list. It does not change any active code paths, parsing logic, or security behavior. It is a preparatory or compatibility-only change.
No security action needed. Review as normal feature-flag registration if auditing BOLT feature support.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch adds OPTION_ROUTE_BLINDING_REQ (bit 24) and OPTION_ROUTE_BLINDING_OPT (bit 25) to the LnFeatures IntFlag in electrum/lnutil.py, along with their required context masks (INIT, NODE_ANN, BOLT11_INVOICE) and a dependency declaring that the optional variant requires VAR_ONION_OPT. No logic consuming these flags is added or modified.
Changed components
electrum/lnutil.pyInspect captured patch +6 / −0
diff --git a/electrum/lnutil.py b/electrum/lnutil.py
index 9134fed..e79074a 100644
--- a/electrum/lnutil.py
+++ b/electrum/lnutil.py
@@ -1492,6 +1492,12 @@ class LnFeatures(IntFlag):
_ln_feature_contexts[OPTION_TRAMPOLINE_ROUTING_REQ_ELECTRUM] = (LNFC.INIT | LNFC.NODE_ANN | LNFC.BOLT11_INVOICE | LNFC.BOLT12_INVOICE)
_ln_feature_contexts[OPTION_TRAMPOLINE_ROUTING_OPT_ELECTRUM] = (LNFC.INIT | LNFC.NODE_ANN | LNFC.BOLT11_INVOICE | LNFC.BOLT12_INVOICE)
+ OPTION_ROUTE_BLINDING_REQ = 1 << 24
+ OPTION_ROUTE_BLINDING_OPT = 1 << 25
+ _ln_feature_direct_dependencies[OPTION_ROUTE_BLINDING_OPT] = {VAR_ONION_OPT}
+ _ln_feature_contexts[OPTION_ROUTE_BLINDING_REQ] = (LNFC.INIT | LNFC.NODE_ANN | LNFC.BOLT11_INVOICE)
+ _ln_feature_contexts[OPTION_ROUTE_BLINDING_OPT] = (LNFC.INIT | LNFC.NODE_ANN | LNFC.BOLT11_INVOICE)
+
OPTION_SHUTDOWN_ANYSEGWIT_REQ = 1 << 26
OPTION_SHUTDOWN_ANYSEGWIT_OPT = 1 << 27
_ln_feature_contexts[OPTION_SHUTDOWN_ANYSEGWIT_REQ] = (LNFC.INIT | LNFC.NODE_ANN)
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.