Closed tonesnotes closed 5 months ago
Thanks gents taking a close look now.
Something seems not quite right. I think when you feed it a BUMP with only the bottom level defined it doesn't realize there are supposed to be levels above it. The tree height is not set by the number of path elements on the bottom, but the number of arrays or something like that.
Added trim() method to MerklePath which removes all computable leaves.
Added call to the new trim() method at the end of combine() so MerklePath size is minimized.