Skip to content

initializing the default crypto provider for electrsd#595

Closed
ulrichard wants to merge 1 commit into
rust-bitcoin:masterfrom
AminaBank:feature/crypto_provider
Closed

initializing the default crypto provider for electrsd#595
ulrichard wants to merge 1 commit into
rust-bitcoin:masterfrom
AminaBank:feature/crypto_provider

Conversation

@ulrichard
Copy link
Copy Markdown
Contributor

When I want to use electrsd v39 in bdk-reserves (bitcoindevkit/bdk-reserves#42), I ran into errors about the rustls default crypto provider not being initialized.

Comment thread bitcoind/build.rs
let out_dir = PathBuf::from(std::env::var_os("OUT_DIR").unwrap());

// specify the default crypto provider for rustls
let _ = CryptoProvider::install_default(ring::default_provider());
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this will likely set the default for rustls workspace-wide, i.e., potentially overriding any choice any other crate makes. I don't think we should call this manually.

@ulrichard ulrichard force-pushed the feature/crypto_provider branch from a711d48 to b9f3bfe Compare May 19, 2026 12:07
@ulrichard
Copy link
Copy Markdown
Contributor Author

Strangely, after I did those changes to corepc, bdk-reserves showed some other errors. And after resolving the new errors, the changes here are no longer necessary.

@ulrichard ulrichard closed this May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants