Skip to main content
Version: 1.4

Class: Storage

identity_wasm.Storage

A type wrapping a JwkStorage and KeyIdStorage that should always be used together when working with storage backed DID documents.

Table of contents

Constructors

Methods

Constructors

constructor

new Storage(jwkStorage, keyIdStorage)

Constructs a new Storage.

Parameters

NameType
jwkStorageJwkStorage
keyIdStorageKeyIdStorage

Methods

keyIdStorage

keyIdStorage(): KeyIdStorage

Obtain the wrapped KeyIdStorage.

Returns

KeyIdStorage


keyStorage

keyStorage(): JwkStorage

Obtain the wrapped JwkStorage.

Returns

JwkStorage