@idpass/data-collect-core / MerkleTreeStorage
Interface: MerkleTreeStorage
Defined in: interfaces/types.ts:605
Merkle tree storage interface for data integrity verification.
Methods
initialize()
initialize():
Promise<void>
Defined in: interfaces/types.ts:607
Initialize the Merkle tree storage
Returns
Promise<void>
saveRootHash()
saveRootHash(
hash):Promise<void>
Defined in: interfaces/types.ts:609
Save the root hash of the Merkle tree
Parameters
hash
string
Returns
Promise<void>
getRootHash()
getRootHash():
Promise<string>
Defined in: interfaces/types.ts:611
Get the current root hash
Returns
Promise<string>
clearStore()
clearStore():
Promise<void>
Defined in: interfaces/types.ts:613
Clear the Merkle tree storage
Returns
Promise<void>
closeConnection()
closeConnection():
Promise<void>
Defined in: interfaces/types.ts:615
Close storage connections
Returns
Promise<void>