mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-02-03 05:03:11 +00:00
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)
|