diff --git a/Cargo.lock b/Cargo.lock index f71c74a9d..700215217 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1000,8 +1000,9 @@ dependencies = [ [[package]] name = "negentropy" -version = "0.3.0" -source = "git+https://github.com/yukibtc/rust-negentropy?rev=547592168356f423dd10773384b798e7c7139893#547592168356f423dd10773384b798e7c7139893" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e664971378a3987224f7a0e10059782035e89899ae403718ee07de85bec42afe" [[package]] name = "nom" diff --git a/crates/nostr-sdk/src/relay/mod.rs b/crates/nostr-sdk/src/relay/mod.rs index ea4dab3ae..24ea9cdf9 100644 --- a/crates/nostr-sdk/src/relay/mod.rs +++ b/crates/nostr-sdk/src/relay/mod.rs @@ -20,7 +20,6 @@ use async_utility::futures_util::stream::AbortHandle; use async_utility::{futures_util, thread, time}; use nostr::message::relay::NegentropyErrorCode; use nostr::message::MessageHandleError; -use nostr::negentropy::hex; use nostr::negentropy::{self, Bytes, Negentropy}; #[cfg(feature = "nip11")] use nostr::nips::nip11::RelayInformationDocument; @@ -47,9 +46,6 @@ pub enum Error { /// Negentropy error #[error(transparent)] Negentropy(#[from] negentropy::Error), - /// Hex error - #[error(transparent)] - Hex(#[from] hex::Error), /// Channel timeout #[error("channel timeout")] ChannelTimeout, diff --git a/crates/nostr/Cargo.toml b/crates/nostr/Cargo.toml index baeb5a282..658b533d4 100644 --- a/crates/nostr/Cargo.toml +++ b/crates/nostr/Cargo.toml @@ -56,7 +56,7 @@ bip39 = { version = "2.0", default-features = false, optional = true } bitcoin = { version = "0.30", default-features = false, features = ["rand", "serde"] } cbc = { version = "0.1", optional = true } chacha20 = { version = "0.9", optional = true } -negentropy = { git = "https://github.com/yukibtc/rust-negentropy", rev = "547592168356f423dd10773384b798e7c7139893", default-features = false } +negentropy = { version = "0.3", default-features = false } nostr-ots = { version = "0.2", optional = true } once_cell = { workspace = true, optional = true } reqwest = { version = "0.11", default-features = false, features = ["json", "rustls-tls-webpki-roots", "socks"], optional = true }