-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(bdk_electrum): add use-openssl
as a feature
#1620
feat(bdk_electrum): add use-openssl
as a feature
#1620
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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-openssl
fromelectrum-client
tobdk_electrum
. It partially addresses #1598, allowing the user to useopenssl
as 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_electrum
tests using the new exposeduse-openssl
feature ?Notes to the reviewers
Changelog notice
use-openssl
as feature tobdk_electrum
, exposingelectrum-client
use-openssl
feature.Checklists
All Submissions:
cargo fmt
andcargo clippy
before committingNew Features:
Bugfixes: