Skip to main content

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

ConstructorModifiersDescription
(constructor)(_mtDepth)Creates an instance of MerkleTreeIndexedDBStorage.

Properties

PropertyModifiersTypeDescription
storageBindingKeyMeta

static

readonly

(not declared)
storageKeyMeta

static

readonly

(not declared)

key for the storage key metadata

Methods

MethodModifiersDescription
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