diff --git a/Cargo.lock b/Cargo.lock
index 171b6d22e5..329a5e3c08 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1233,12 +1233,6 @@ dependencies = [
"syn 2.0.76",
]
-[[package]]
-name = "binout"
-version = "0.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b60b1af88a588fca5fe424ae7d735bc52814f80ff57614f57043cc4e2024f2ea"
-
[[package]]
name = "bit-set"
version = "0.5.3"
@@ -1270,15 +1264,6 @@ dependencies = [
"serde",
]
-[[package]]
-name = "bitm"
-version = "0.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b06e8e5bec3490b9f6f3adbb78aa4f53e8396fd9994e8a62a346b44ea7c15f35"
-dependencies = [
- "dyn_size_of",
-]
-
[[package]]
name = "bitvec"
version = "1.0.1"
@@ -2542,12 +2527,6 @@ version = "1.0.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0d6ef0072f8a535281e4876be788938b528e9a1d43900b82c2569af7da799125"
-[[package]]
-name = "dyn_size_of"
-version = "0.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "33d4f78a40b1ec35bf8cafdaaf607ba2f773c366b0b3bda48937cacd7a8d5134"
-
[[package]]
name = "ecdsa"
version = "0.16.9"
@@ -5293,19 +5272,6 @@ dependencies = [
"ucd-trie",
]
-[[package]]
-name = "ph"
-version = "0.8.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "86b7b74d575d7c11fb653fae69688be5206cafc1ead33c01ce61ac7f36eae45b"
-dependencies = [
- "binout",
- "bitm",
- "dyn_size_of",
- "rayon",
- "wyhash",
-]
-
[[package]]
name = "pharos"
version = "0.5.3"
@@ -7502,7 +7468,6 @@ dependencies = [
"derive_more 1.0.0",
"lz4_flex",
"memmap2",
- "ph",
"rand 0.8.5",
"reth-fs-util",
"serde",
@@ -11185,15 +11150,6 @@ dependencies = [
"web-sys",
]
-[[package]]
-name = "wyhash"
-version = "0.5.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "baf6e163c25e3fac820b4b453185ea2dea3b6a3e0a721d4d23d75bd33734c295"
-dependencies = [
- "rand_core 0.6.4",
-]
-
[[package]]
name = "wyz"
version = "0.5.1"
diff --git a/crates/storage/db/src/static_file/cursor.rs b/crates/storage/db/src/static_file/cursor.rs
index 4a052c6abf..f22006c462 100644
--- a/crates/storage/db/src/static_file/cursor.rs
+++ b/crates/storage/db/src/static_file/cursor.rs
@@ -1,7 +1,7 @@
use super::mask::{ColumnSelectorOne, ColumnSelectorThree, ColumnSelectorTwo};
use derive_more::{Deref, DerefMut};
use reth_db_api::table::Decompress;
-use reth_nippy_jar::{DataReader, NippyJar, NippyJarCursor};
+use reth_nippy_jar::{DataReader, NippyJar, NippyJarCursor, NippyJarError};
use reth_primitives::{static_file::SegmentHeader, B256};
use reth_storage_errors::provider::{ProviderError, ProviderResult};
use std::sync::Arc;
@@ -39,7 +39,7 @@ impl<'a> StaticFileCursor<'a> {
}
let row = match key_or_num {
- KeyOrNumber::Key(k) => self.row_by_key_with_cols(k, mask),
+ KeyOrNumber::Key(_) => Err(NippyJarError::UnsupportedFilterQuery),
KeyOrNumber::Number(n) => match self.jar().user_header().start() {
Some(offset) => {
if offset > n {
diff --git a/crates/storage/nippy-jar/Cargo.toml b/crates/storage/nippy-jar/Cargo.toml
index 0bc3e40dc2..ba5846bdc4 100644
--- a/crates/storage/nippy-jar/Cargo.toml
+++ b/crates/storage/nippy-jar/Cargo.toml
@@ -19,7 +19,6 @@ name = "reth_nippy_jar"
reth-fs-util.workspace = true
# filter
-ph = "0.8.0"
cuckoofilter = { version = "0.5.0", features = [
"serde_support",
"serde_bytes",
diff --git a/crates/storage/nippy-jar/src/cursor.rs b/crates/storage/nippy-jar/src/cursor.rs
index d42b0d364b..7af55fd436 100644
--- a/crates/storage/nippy-jar/src/cursor.rs
+++ b/crates/storage/nippy-jar/src/cursor.rs
@@ -1,10 +1,8 @@
use crate::{
compression::{Compression, Compressors, Zstd},
- DataReader, InclusionFilter, NippyJar, NippyJarError, NippyJarHeader, PerfectHashingFunction,
- RefRow,
+ DataReader, NippyJar, NippyJarError, NippyJarHeader, RefRow,
};
use std::{ops::Range, sync::Arc};
-use sucds::int_vectors::Access;
use zstd::bulk::Decompressor;
/// Simple cursor implementation to retrieve data from [`NippyJar`].
@@ -67,35 +65,6 @@ impl<'a, H: NippyJarHeader> NippyJarCursor<'a, H> {
self.row = 0;
}
- /// Returns a row, searching it by a key.
- ///
- /// **May return false positives.**
- ///
- /// Example usage would be querying a transactions file with a transaction hash which is **NOT**
- /// stored in file.
- pub fn row_by_key(&mut self, key: &[u8]) -> Result