You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
buzz-pair: panics on wss:// relays — rustls CryptoProvider never installed #7927
buzz-pair panics on any wss:// relay because no rustls CryptoProvider is installed. Since the subcommand defaults to wss://relay.damus.io, the documented quick-start fails out of the box.
Waiting for target to scan QR code...
thread 'main' panicked at rustls-0.23.42/src/crypto/mod.rs:249:14:
Could not automatically determine the process-level CryptoProvider from Rustls crate features.
Call CryptoProvider::install_default() before this point to select a provider manually, or make
sure exactly one of the 'aws-lc-rs' and 'ring' features is enabled.
ws:// URLs are unaffected, so it reproduces only against TLS relays — i.e. every real one.
Cause
The sibling binaries install the provider explicitly; buzz-pairing-cli does not. Compare crates/buzz-cli/src/lib.rs:
let _ = rustls::crypto::ring::default_provider().install_default();
and the comment on buzz-cli's own rustls dependency explaining why a direct dep with the ring feature is needed (feature unification across the workspace otherwise leaves rustls unable to pick a provider).
Fix
Same two changes as the sibling crates — add to crates/buzz-pairing-cli/Cargo.toml:
rustls = { version = "0.23", default-features = false, features = ["ring", "std"] }
and at the top of main():
let _ = rustls::crypto::ring::default_provider().install_default();
Verified locally: after this, source/target complete a full handshake over wss://.
Activity
fix(buzz-pair): install rustls ring CryptoProvider before WSS
fix(buzz-pair): install rustls ring CryptoProvider before WSS
fix(buzz-pair): install rustls ring CryptoProvider before WSS
fix(buzz-pair): install rustls ring CryptoProvider before WSS
fix(buzz-pair): install rustls ring CryptoProvider before WSS (block#…
fix(buzz-pair): install rustls ring CryptoProvider before WSS (block#…