Drop recursion, reduce memory usage to be logarithmic in size of tree rather than linear, and put it all in one function rather than three. Also make the method an trait method on MerkleNode which makes it a easier on type inference, by writing e.g. TxMerkleNode::calculate_root. |
||
---|---|---|
.. | ||
contrib | ||
embedded | ||
examples | ||
src | ||
tests | ||
CHANGELOG.md | ||
Cargo.toml | ||
build.rs |