Module merkle

Module merkle 

Source
Expand description

Host functions for merkle tree functions

Functionsยง

merkle_add ๐Ÿ”’
Adds data to 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 darkfi_sdk::error::ContractError (defined in the SDK). See also the method merkle_add in sdk/src/merkle.rs.