E M 204ee9e27f
Rename codex merkletree types
- Rename CodexTree > StorageMerkleTree
- Rename CodexProofs > StorageMerkleProof
2026-02-02 15:20:42 +11:00

12 lines
360 B
Nim

import pkg/codex/merkletree
import ../helpers
export merkletree, helpers
proc `==`*(a, b: StorageMerkleTree): bool =
(a.mcodec == b.mcodec) and (a.leavesCount == b.leavesCount) and (a.levels == b.levels)
proc `==`*(a, b: StorageMerkleProof): bool =
(a.mcodec == b.mcodec) and (a.nleaves == b.nleaves) and (a.path == b.path) and
(a.index == b.index)