Closed odeke-em closed 2 months ago
@rootulp how come the code was copied and pasted in here without the appropriate attributions/licenses or without just plain imports or submodules?
I think this is relevant:
I suppose we could also copy + paste this license into that directory.
Closing this because for now we've decided to keep the merkle library in our cometbft fork. Thanks for opening the PR in any case. Sorry that we didn't merge it. We may look to apply this to our cometbft fork in the future
This change optimizes SHA256 hashing for leafHash & innerHash by pooling and reusing hashes, which massively reduces on RAM consumption and even CPU time (benchmarking on my noisy machine is skewed but the results can be verified individually) producing results below:
Fixes #43
Overview
Checklist