MerkleTreeIndexedDBStorage class
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Merkle tree storage that uses browser indexed db storage
MerkleTreeIndexedDBStorage implements IMerkleTreeStorage interface
Signature:
export declare class MerkleTreeIndexedDBStorage implements IMerkleTreeStorage
Implements: IMerkleTreeStorage
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(_mtDepth) | Creates an instance of MerkleTreeIndexedDBStorage. |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
storageBindingKeyMeta |
| (not declared) | |
storageKeyMeta |
| (not declared) | key for the storage key metadata |
Methods
Method | Modifiers | Description |
---|---|---|
addToMerkleTree(identifier, mtType, hindex, hvalue) | adds to merkle tree in the indexed db storage | |
bindMerkleTreeToNewIdentifier(oldIdentifier, newIdentifier) | binds merkle tree in the indexed db storage to the new identifiers | |
createIdentityMerkleTrees(identifier) | creates a tree in the indexed db storage | |
getIdentityMerkleTreesInfo(identifier) | getIdentityMerkleTreesInfo from the indexed db storage | |
getMerkleTreeByIdentifierAndType(identifier, mtType) | get merkle tree from the indexed db storage |