Skip to main content
Version: 1.3

Interface: KeyIdStorage

identity_wasm.KeyIdStorage

Key value Storage for key ids under MethodDigest.

Table of contents

Properties

Properties

insertKeyId

insertKeyId: (methodDigest: MethodDigest, keyId: string) => Promise\<void>

Type declaration

▸ (methodDigest, keyId): Promise\<void>

Insert a key id into the KeyIdStorage under the given MethodDigest.

If an entry for key already exists in the storage an error must be returned immediately without altering the state of the storage.

Parameters
NameType
methodDigestMethodDigest
keyIdstring
Returns

Promise\<void>


getKeyId

getKeyId: (methodDigest: MethodDigest) => Promise\<string>

Type declaration

▸ (methodDigest): Promise\<string>

Obtain the key id associated with the given MethodDigest.

Parameters
NameType
methodDigestMethodDigest
Returns

Promise\<string>


deleteKeyId

deleteKeyId: (methodDigest: MethodDigest) => Promise\<void>

Type declaration

▸ (methodDigest): Promise\<void>

Delete the KeyId associated with the given MethodDigest from the KeyIdStorage.

If key is not found in storage, an Error must be returned.

Parameters
NameType
methodDigestMethodDigest
Returns

Promise\<void>