Releases: sreekanthedayar/MerkleTree.Net
MerkleTree.Net v2.0.0
MerkleTree.Net v2.0.0
A modern .NET 8 port of Marc Clifton’s MerkleTree library, rewritten for performance, safety, and integration into blockchain, proof, and transparency log systems.
What’s New
.NET 8 + modern C# features
Nullable reference types for safety
Full JSON serialization / deserialization
SHA256, SHA512, or any HashAlgorithm
Auto-hashing API (AddLeaf(data, autoHash: true))
Hex utilities (ToHex() / FromHex())
Proper IDisposable resource cleanup
Performance Optimizations
Zero-allocation hot paths (stackalloc → 20% faster)
ArrayPool integration (19% fewer allocations)
LINQ removal in critical paths
Preallocated buffers (avoid reallocations)
TryComputeHash optimization (reduced GC pressure)
Quality
73 unit tests
BenchmarkDotNet performance suite
Memory & concurrency diagnostics
Credits
Original work by Marc Clifton
Ported and Enhanced by Sreekanth Edayar