Closed rymnc closed 1 year ago
Currently, we have implemented OptimalMerkleTree(https://github.com/vacp2p/zerokit/blob/1f983bb23226e90b395ff58214f47ae3dca0d634/utils/src/merkle_tree/merkle_tree.rs#L69-L291), and FullMerkleTree(https://github.com/vacp2p/zerokit/blob/1f983bb23226e90b395ff58214f47ae3dca0d634/utils/src/merkle_tree/merkle_tree.rs#L297-L564). We need to do the following to ensure compatibility with the implementation of Pmtree similarly
OptimalMerkleTree
FullMerkleTree
Pmtree
ZerokitMerkleTree
This will allow downstream users to use pmtree for atomicity of insertions/deletions.
Currently, we have implemented
OptimalMerkleTree
(https://github.com/vacp2p/zerokit/blob/1f983bb23226e90b395ff58214f47ae3dca0d634/utils/src/merkle_tree/merkle_tree.rs#L69-L291), andFullMerkleTree
(https://github.com/vacp2p/zerokit/blob/1f983bb23226e90b395ff58214f47ae3dca0d634/utils/src/merkle_tree/merkle_tree.rs#L297-L564). We need to do the following to ensure compatibility with the implementation ofPmtree
similarlyZerokitMerkleTree
or equivalent, declare the appropriate fns from FullMerkleTree and OptimalMerkleTreeThis will allow downstream users to use pmtree for atomicity of insertions/deletions.