MCPcopy Create free account

hub / github.com/alrevuelta/rs-merkle-tree / functions

Functions66 in github.com/alrevuelta/rs-merkle-tree

↓ 12 callersMethodadd_leaves
(&mut self, leaves: &[Node])
src/tree.rs:87
↓ 8 callersMethodas_ref
(&self)
src/node.rs:42
↓ 7 callersFunctionnode
(byte: u8)
src/stores/memory_store.rs:78
↓ 6 callersMethodhash
(&self, left: &Node, right: &Node)
src/hasher.rs:15
↓ 6 callersMethodput
(&mut self, items: &[(u32, u64, Node)])
src/stores/sled_store.rs:103
↓ 5 callersMethodget
(&self, levels: &[u32], indices: &[u64])
src/stores/sled_store.rs:79
↓ 5 callersMethodproof
(&self, leaf_idx: u64)
src/tree.rs:185
↓ 3 callersMethodget_num_leaves
(&self)
src/stores/sled_store.rs:123
↓ 2 callersFunction_run
(cmd: str | list[str])
benchmarks.py:147
↓ 1 callersFunction_bench_table
(rows: List[BenchRow])
benchmarks.py:73
↓ 1 callersFunction_best_unit
Return value and unit chosen to keep number in readable range.
benchmarks.py:128
↓ 1 callersFunction_disk_table
(rows: List[DiskRow])
benchmarks.py:29
↓ 1 callersFunction_parse_bench
(lines: Iterable[str])
benchmarks.py:50
↓ 1 callersFunction_parse_disk_space
(lines: Iterable[str])
benchmarks.py:10
↓ 1 callersFunction_parse_proof
(lines: Iterable[str])
benchmarks.py:95
↓ 1 callersFunction_proof_table
(rows: List[ProofRow])
benchmarks.py:127
↓ 1 callersFunctiondir_size
(path: &Path)
tests/tree.rs:19
↓ 1 callersMethodget
(&self, levels: &[u32], indices: &[u64])
src/stores/rocksdb_store.rs:63
↓ 1 callersFunctionmain
()
benchmarks.py:159
↓ 1 callersFunctionprint_size
(name: &str, file: &str, num_leaves: u64)
tests/tree.rs:126
↓ 1 callersMethodput
(&mut self, items: &[(u32, u64, Node)])
src/stores/memory_store.rs:42
↓ 1 callersMethodroot
(&self)
src/tree.rs:175
Functionbench_get_proof
(c: &mut Criterion)
benches/benchmarks.rs:132
Functionbench_insertions
(c: &mut Criterion)
benches/benchmarks.rs:12
Functionbench_store
Helper that creates the tree with a given store and inserts `NUM_BATCHES * BATCH_SIZE` leaves.
tests/tree.rs:102
Functionbuild_values_helper_smoke
()
src/stores/sqlite_store.rs:202
Methodbuild_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
Methoddb_error
(err: E)
src/stores/rocksdb_store.rs:18
Methoddb_error
(err: E)
src/stores/sled_store.rs:22
Methoddb_error
(err: E)
src/stores/sqlite_store.rs:24
Methoddecode_node
(bytes: &[u8])
src/stores/rocksdb_store.rs:29
Methoddecode_node
(bytes: &[u8])
src/stores/sled_store.rs:35
Methoddecode_node
(bytes: &[u8])
src/stores/sqlite_store.rs:28
Methoddefault
()
src/tree.rs:37
Methodencode_key
(level: u32, index: u64)
src/stores/rocksdb_store.rs:22
Methodencode_key
(level: u32, index: u64)
src/stores/sled_store.rs:26
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/node.rs:48
Methodfrom
(bytes: [u8; Node::LEN])
src/node.rs:13
Methodget
(&self, levels: &[u32], indices: &[u64])
src/stores/memory_store.rs:22
Methodget
(&self, levels: &[u32], indices: &[u64])
src/stores/sqlite_store.rs:112
Methodget_num_leaves
(&self)
src/stores/rocksdb_store.rs:111
Methodget_num_leaves
(&self)
src/stores/memory_store.rs:69
Methodget_num_leaves
(&self)
src/stores/sqlite_store.rs:192
Methodindex
(&self, index: usize)
src/tree.rs:51
Methodnew
(hasher: H, store: S)
src/tree.rs:69
Methodnew
(path: &str)
src/stores/rocksdb_store.rs:36
Methodnew
()
src/stores/memory_store.rs:16
Methodnew
TODO: Maybe return result
src/stores/sled_store.rs:47
Methodnew
Use ":memory:" for in-memory database.
src/stores/sqlite_store.rs:59
Methodnum_leaves
(&self)
src/tree.rs:257
Methodput
(&mut self, items: &[(u32, u64, Node)])
src/stores/rocksdb_store.rs:93
Methodput
(&mut self, items: &[(u32, u64, Node)])
src/stores/sqlite_store.rs:159
Functionput_get_roundtrip
()
src/stores/memory_store.rs:83
Methodrandom
()
src/node.rs:61
Functiontest_disk_space
()
tests/tree.rs:84
Functiontest_keccak256_hash
()
src/hasher.rs:48
Functiontest_merkle_tree_keccak_32_memory
()
tests/tree.rs:34
Functiontest_node
()
src/node.rs:80
Functiontest_poseidon_hash
()
src/hasher.rs:61
Functiontest_stores_multiple
()
tests/store.rs:90
Functiontest_stores_single
()
tests/store.rs:18
Functiontest_tree_full_error
()
src/tree.rs:377
Functiontest_zero_keccak_32
()
src/tree.rs:271
Functiontest_zero_poseidon_32
()
src/tree.rs:323
Methodtry_from
(hex: &str)
src/node.rs:21
Methodverify_proof
(&self, proof: &MerkleProof<DEPTH>)
src/tree.rs:244