def update(self, key, value): assert len(key) == 20 self.root = _update(self.db, self.root, encode_bin(key), value)
def get(self, key): assert len(key) == 20 return _get(self.db, self.root, encode_bin(key))
def get_branch(self, key): o = _get_branch(self.db, self.root, encode_bin(key)) assert _verify_branch(o, self.root, encode_bin(key), self.get(key)) return o
def get_prefix_witness(self, key): return _get_prefix_witness(self.db, self.root, encode_bin(key))