getKeys

abstract suspend fun getKeys(targetAccount: UUID): HubPayload<AccountKeyBundle>

Retrieves a key-bundle which contains all the target's devices keys to initiate a signal-session. The Hub-server deletes the retrieved 'oneTimeKeys' as are meant to be one-time use.

Returns a HubPayload which encapsulates the outcome. In case it is successful the value is the retrieved AccountKeyBundle or the error if it is failure.


abstract suspend fun getKeys(targetAccount: UUID, deviceId: Int): HubPayload<AccountKeyBundle>

Retrieves a key-bundle to initiate a signal-session. The Hub-server deletes the retrieved 'oneTimeKey' as it meant to be one-time use.

Returns a HubPayload which encapsulates the outcome. In case it is successful the value is the retrieved AccountKeyBundle or the error if it is failure.