- Added
SimpleMerkleTree
class that supportsbytes32
leaves with no extra hashing. - Support custom hashing function for computing internal nodes. Available in the core and in
SimpleMerkleTree
. - Add
length
andat()
(leaf getter) toStandardMerkleTree
andSimpleMerkleTree
.
- Added an option to disable leaf sorting.
- Make
processMultiProof
more robust by validating invariants.
- Added
StandardMerkleTree.verifyMultiProof
static method.
- Added
StandardMerkleTree.verify
static method for verification of a proof for given root, leaf, and leaf encoding.
- Added
StandardMerkleTree
methodsverify
andverifyMultiProof
.