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
Name | Type |
---|---|
methodDigest | MethodDigest |
keyId | string |
Returns
Promise
\<void
>
getKeyId
• getKeyId: (methodDigest
: MethodDigest
) => Promise
\<string
>
Type declaration
▸ (methodDigest
): Promise
\<string
>
Obtain the key id associated with the given MethodDigest.
Parameters
Name | Type |
---|---|
methodDigest | MethodDigest |
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
Name | Type |
---|---|
methodDigest | MethodDigest |
Returns
Promise
\<void
>