Skip to content

Commit def1ee7

Browse files
committed
chore: add missing functions to ClarityBackingStore trait
1 parent f7c2ca7 commit def1ee7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

clarity/src/vm/database/clarity_store.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,15 @@ pub trait ClarityBackingStore {
6464
fn put_all_data(&mut self, items: Vec<(String, String)>) -> Result<()>;
6565
/// fetch K-V out of the committed datastore
6666
fn get_data(&mut self, key: &str) -> Result<Option<String>>;
67+
/// fetch Hash(K)-V out of the commmitted datastore
68+
fn get_data_from_path(&mut self, hash: &TrieHash) -> Result<Option<String>>;
6769
/// fetch K-V out of the committed datastore, along with the byte representation
6870
/// of the Merkle proof for that key-value pair
6971
fn get_data_with_proof(&mut self, key: &str) -> Result<Option<(String, Vec<u8>)>>;
72+
fn get_data_with_proof_from_path(
73+
&mut self,
74+
hash: &TrieHash,
75+
) -> Result<Option<(String, Vec<u8>)>>;
7076
fn has_entry(&mut self, key: &str) -> Result<bool> {
7177
Ok(self.get_data(key)?.is_some())
7278
}

0 commit comments

Comments
 (0)