feat(bdk_electrum): add use-openssl as a feature#1620
Conversation
notmandatory
left a comment
There was a problem hiding this comment.
tACK 19849bd
I tested with example_electrum and confirmed that if I use the default bdk_electrum features ("use-rustls") then I'm unable to sync to "ssl://electrum.blockstream.info:60002". But if I disable default features and enable the new "use-openssl" feature then I am able to sync to "ssl://electrum.blockstream.info:60002".
|
I just have one question, should we make |
I'm fine with it, but I'm not sure about other impacts. Do bindings and other users rely on the default feature being |
I can only speak to this part, and the answer is: no, unfortunately it doesn't work on mobile as nobody has figured out a way to have it link in the right libraries when cross-compiling for Android. It would be great if we could (which would allow dropping a bunch of dependencies and would be more secure), but so far we seem to be stuck on |
|
Yes I second what tnull said: open-ssl is not currently a solution for the Android libraries as we built them. It's not impossible to get it to work and would be great to figure it out one day, but as is @oleonardolima to answer your question "Do bindings and other users rely on the default feature being rustls?" I think the answer is no (at least for bdk-ffi). We currently disable the default features and simply enable |
19849bd to
fb6dd98
Compare
|
I had to rebase this one due to a small merge conflict. |
fb6dd98 to
f602d1b
Compare
|
I had to rebase it again to solve the CI issue (although I think a re-run would've solved it 😅 ). |
|
Thanks for the comment @tnull and @thunderbiscuit, I wasn't aware of it. |
partially addresses #1598
Description
It's a simple PR to expose the
use-opensslfromelectrum-clienttobdk_electrum. It partially addresses #1598, allowing the user to useopensslas an alternative torustls, as there are some problems with it when handling some types of TLS certificates.Do we need to add some sort of
bdk_electrumtests using the new exposeduse-opensslfeature ?Notes to the reviewers
Changelog notice
use-opensslas feature tobdk_electrum, exposingelectrum-clientuse-opensslfeature.Checklists
All Submissions:
cargo fmtandcargo clippybefore committingNew Features:
Bugfixes: