Module smt

Module smt 

Source
Expand description

Host functions for sparse merkle tree functions

Structs§

SledStorage
An SMT adapter for sled overlay storage. Compatible with the WasmDb SMT adapter

Functions§

sparse_merkle_insert_batch 🔒
Adds data to sparse merkle tree. The tree, database connection, and new data to add is read from ptr at offset specified by len. Returns 0 on success; otherwise, returns an error-code corresponding to a ContractError (defined in the SDK). See also the method merkle_add in sdk/src/merkle.rs.