mirror of
https://github.com/logos-storage/nim-merkletree.git
synced 2026-03-04 14:13:10 +00:00
This commit does not compile. There is a circular dependency importing the MerkleTree type. The interface needs to be defined in such a way that we can avoid this circular dependency.
12 lines
340 B
Nim
12 lines
340 B
Nim
import pkg/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)
|