mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-28 18:23:17 +00:00
Signed-off-by: Chrysostomos Nanakos <chris@include.gr> Co-authored-by: Chrysostomos Nanakos <chris@include.gr> Co-authored-by: gmega <giuliano.mega@gmail.com>
12 lines
344 B
Nim
12 lines
344 B
Nim
import pkg/codex/merkletree
|
|
import ../helpers
|
|
|
|
export merkletree, helpers
|
|
|
|
proc `==`*(a, b: CodexTree): bool =
|
|
(a.mcodec == b.mcodec) and (a.leavesCount == b.leavesCount) and (a.levels == b.levels)
|
|
|
|
proc `==`*(a, b: CodexProof): bool =
|
|
(a.mcodec == b.mcodec) and (a.nleaves == b.nleaves) and (a.path == b.path) and
|
|
(a.index == b.index)
|