ExistingOneTimeKeys returns a map of keyIDWithAlgorithm to key JSON for the given parameters. If no keys exist with this combination of user/device/key/algorithm 4-uple then it is omitted from the map. Returns an error when failing to communicate with the database.
(ctx context.Context, userID, deviceID string, keyIDsWithAlgorithms []string)
| 27 | // ExistingOneTimeKeys returns a map of keyIDWithAlgorithm to key JSON for the given parameters. If no keys exist with this combination |
| 28 | // of user/device/key/algorithm 4-uple then it is omitted from the map. Returns an error when failing to communicate with the database. |
| 29 | ExistingOneTimeKeys(ctx context.Context, userID, deviceID string, keyIDsWithAlgorithms []string) (map[string]json.RawMessage, error) |
| 30 | |
| 31 | // StoreOneTimeKeys persists the given one-time keys. |
| 32 | StoreOneTimeKeys(ctx context.Context, keys api.OneTimeKeys) (*api.OneTimeKeysCount, error) |