olalonde/proof-of-liabilities

Sum representation problem

alesl opened this issue · 0 comments

alesl commented

For very small values I believe hashes are not calculated correctly because big.js
toString formats it in scientific notation if value is less than 1e-7 or greater than 1e21.
Affected functions are combine_nodes and generate_leaf_hash. Simple solution would be to call toFixed method on big.js.