Retrieves a list of keys that were shared with the user and the user still has access to.
Promise resolving to an array of [Principal, ByteBuf]
pairs representing accessible key identifiers.
Fetches an encrypted VetKey.
Promise resolving to the encrypted VetKey bytes, or an error if the operation fails
Checks a user's access rights.
The principal of the key owner
The name/identifier of the VetKey
The principal of the user to check rights for
Promise resolving to the user's access rights if they exist, or an error if the operation fails
Retrieves the public verification key for validating encrypted VetKeys.
Promise resolving to the verification key bytes
Revokes a user's access.
The principal of the key owner
The name/identifier of the VetKey
The principal of the user to remove
Promise resolving to the previous access rights if they existed, or an error if the operation fails
Grants or modifies access rights for a user.
The principal of the key owner
The name/identifier of the VetKey
The principal of the user to grant/modify rights for
The access rights to grant
Promise resolving to the previous access rights if they existed, or an error if the operation fails
An interface that maps
KeyManager
calls to IC canister calls that will call the respective method of the backendKeyManager
. For example,get_user_rights
will call theget_user_rights
method of the backendKeyManager
. See the [Password Manager with Metadata Example]