Skip to content

Commit

Permalink
adds Changelog and exports HostFunctionsManager
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege committed Jun 20, 2022
1 parent c42fb73 commit 86e970a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

# 0.8.0
The following functions have been made generic over a new trait `HostFunctionProvider`:

- [x] `calculate_existence_root`
- [x] `verify_batch_membership`
- [x] `verify_batch_non_membership`
- [x] `verify_membership`
- [x] `verify_non_membership`

For `wasm32-unknown-unknown` environments this trait allows you to delegate hashing functions to a native implementation through host functions. For `std` you can simply use `ics23::HostFunctionManager` as this provides a default implementation of this trait.

# v0.7.0

This handles non-existence tests for empty branches properly. This
Expand Down
3 changes: 3 additions & 0 deletions rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ pub use compress::{compress, decompress, is_compressed};
pub use helpers::{Hash, Result};
pub use verify::calculate_existence_root;
pub use host_functions::HostFunctionsProvider;

#[cfg(feature ="std")]
pub use host_functions::host_functions_impl::HostFunctionsManager;

0 comments on commit 86e970a

Please sign in to comment.