add libbitcoin to detected electrum server capabilities list
What changed, and why it matters
This commit adds 'libbitcoin' to the list of Electrum server software that Sparrow Wallet recognizes. When Sparrow connects to a server, it checks what software the server runs so it can adjust features accordingly. The change simply tells Sparrow to treat libbitcoin-based servers like other known servers, enabling full capabilities. There is no obvious security bug or fix in the code itself.
No security action required. Treat as a routine compatibility update. If libbitcoin support is new, verify that the returned capability flags (true, true, true) accurately reflect libbitcoin's protocol support through integration testing.
Security signals we found
No memory-safety, cryptographic, or authorization changes
No input validation, parsing, or sanitization changes beyond a string prefix check
No references to CVEs, security advisories, or bug bounty reports in commit or supplied references
Evidence from the diff
The patch extends server-version detection in ElectrumServer.java. It returns a ServerCapability(true, true, true) when the server version string starts with ‘/libbitcoin:’, matching the existing handling for ElectrumX/Electrs. This is a compatibility/recognition change, not a vulnerability remediation or exploit.
Changed components
src/main/java/com/sparrowwallet/sparrow/net/ElectrumServer.javaServer capability detection logicInspect captured patch +4 / −0
### src/main/java/com/sparrowwallet/sparrow/net/ElectrumServer.java
@@ -3316,6 +3316,10 @@ public static ServerCapability getServerCapability(List<String> serverVersion) {
return new ServerCapability(true, true, true);
}
+ if(server.startsWith("/libbitcoin:")) {
+ return new ServerCapability(true, true, true);
+ }
+
if(server.startsWith("cormorant")) {
return new ServerCapability(true, false, true, false, true);
}Why this scored 19/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.