There are a few instances where this library manipulates the input by calling toUpperCase() before inserting the leaf. This causes subsequent derived hashes to be incorrect preventing the proper verification of different leaves in the tree by another party.
I'd suggest removing all instances of toUpperCase() on input, or am I missing something here?