Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alrevuelta/rs-merkle-tree
/ functions
Functions
66 in github.com/alrevuelta/rs-merkle-tree
⨍
Functions
66
◇
Types & classes
13
↓ 12 callers
Method
add_leaves
(&mut self, leaves: &[Node])
src/tree.rs:87
↓ 8 callers
Method
as_ref
(&self)
src/node.rs:42
↓ 7 callers
Function
node
(byte: u8)
src/stores/memory_store.rs:78
↓ 6 callers
Method
hash
(&self, left: &Node, right: &Node)
src/hasher.rs:15
↓ 6 callers
Method
put
(&mut self, items: &[(u32, u64, Node)])
src/stores/sled_store.rs:103
↓ 5 callers
Method
get
(&self, levels: &[u32], indices: &[u64])
src/stores/sled_store.rs:79
↓ 5 callers
Method
proof
(&self, leaf_idx: u64)
src/tree.rs:185
↓ 3 callers
Method
get_num_leaves
(&self)
src/stores/sled_store.rs:123
↓ 2 callers
Function
_run
(cmd: str | list[str])
benchmarks.py:147
↓ 1 callers
Function
_bench_table
(rows: List[BenchRow])
benchmarks.py:73
↓ 1 callers
Function
_best_unit
Return value and unit chosen to keep number in readable range.
benchmarks.py:128
↓ 1 callers
Function
_disk_table
(rows: List[DiskRow])
benchmarks.py:29
↓ 1 callers
Function
_parse_bench
(lines: Iterable[str])
benchmarks.py:50
↓ 1 callers
Function
_parse_disk_space
(lines: Iterable[str])
benchmarks.py:10
↓ 1 callers
Function
_parse_proof
(lines: Iterable[str])
benchmarks.py:95
↓ 1 callers
Function
_proof_table
(rows: List[ProofRow])
benchmarks.py:127
↓ 1 callers
Function
dir_size
(path: &Path)
tests/tree.rs:19
↓ 1 callers
Method
get
(&self, levels: &[u32], indices: &[u64])
src/stores/rocksdb_store.rs:63
↓ 1 callers
Function
main
()
benchmarks.py:159
↓ 1 callers
Function
print_size
(name: &str, file: &str, num_leaves: u64)
tests/tree.rs:126
↓ 1 callers
Method
put
(&mut self, items: &[(u32, u64, Node)])
src/stores/memory_store.rs:42
↓ 1 callers
Method
root
(&self)
src/tree.rs:175
Function
bench_get_proof
(c: &mut Criterion)
benches/benchmarks.rs:132
Function
bench_insertions
(c: &mut Criterion)
benches/benchmarks.rs:12
Function
bench_store
Helper that creates the tree with a given store and inserts `NUM_BATCHES * BATCH_SIZE` leaves.
tests/tree.rs:102
Function
build_values_helper_smoke
()
src/stores/sqlite_store.rs:202
Method
build_values_sql_and_binds
Simple tool to help generating the sql query. If the input is levels=[33, 34], indices=[10, 20], the output will be: sql="(?, ?, ?),(?, ?, ?)" binds=[
src/stores/sqlite_store.rs:40
Method
db_error
(err: E)
src/stores/rocksdb_store.rs:18
Method
db_error
(err: E)
src/stores/sled_store.rs:22
Method
db_error
(err: E)
src/stores/sqlite_store.rs:24
Method
decode_node
(bytes: &[u8])
src/stores/rocksdb_store.rs:29
Method
decode_node
(bytes: &[u8])
src/stores/sled_store.rs:35
Method
decode_node
(bytes: &[u8])
src/stores/sqlite_store.rs:28
Method
default
()
src/tree.rs:37
Method
encode_key
(level: u32, index: u64)
src/stores/rocksdb_store.rs:22
Method
encode_key
(level: u32, index: u64)
src/stores/sled_store.rs:26
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/node.rs:48
Method
from
(bytes: [u8; Node::LEN])
src/node.rs:13
Method
get
(&self, levels: &[u32], indices: &[u64])
src/stores/memory_store.rs:22
Method
get
(&self, levels: &[u32], indices: &[u64])
src/stores/sqlite_store.rs:112
Method
get_num_leaves
(&self)
src/stores/rocksdb_store.rs:111
Method
get_num_leaves
(&self)
src/stores/memory_store.rs:69
Method
get_num_leaves
(&self)
src/stores/sqlite_store.rs:192
Method
index
(&self, index: usize)
src/tree.rs:51
Method
new
(hasher: H, store: S)
src/tree.rs:69
Method
new
(path: &str)
src/stores/rocksdb_store.rs:36
Method
new
()
src/stores/memory_store.rs:16
Method
new
TODO: Maybe return result
src/stores/sled_store.rs:47
Method
new
Use ":memory:" for in-memory database.
src/stores/sqlite_store.rs:59
Method
num_leaves
(&self)
src/tree.rs:257
Method
put
(&mut self, items: &[(u32, u64, Node)])
src/stores/rocksdb_store.rs:93
Method
put
(&mut self, items: &[(u32, u64, Node)])
src/stores/sqlite_store.rs:159
Function
put_get_roundtrip
()
src/stores/memory_store.rs:83
Method
random
()
src/node.rs:61
Function
test_disk_space
()
tests/tree.rs:84
Function
test_keccak256_hash
()
src/hasher.rs:48
Function
test_merkle_tree_keccak_32_memory
()
tests/tree.rs:34
Function
test_node
()
src/node.rs:80
Function
test_poseidon_hash
()
src/hasher.rs:61
Function
test_stores_multiple
()
tests/store.rs:90
Function
test_stores_single
()
tests/store.rs:18
Function
test_tree_full_error
()
src/tree.rs:377
Function
test_zero_keccak_32
()
src/tree.rs:271
Function
test_zero_poseidon_32
()
src/tree.rs:323
Method
try_from
(hex: &str)
src/node.rs:21
Method
verify_proof
(&self, proof: &MerkleProof<DEPTH>)
src/tree.rs:244