Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Client end to end key management API #198

Merged
merged 6 commits into from
Jul 10, 2015

Conversation

NegativeMjark
Copy link
Contributor

Adds an API for uploading keys, querying device keys and taking one time keys. The APIs support single queries using GET requests, and bulk queries using POST requests. The one time keys are removed from the database once someone uses them.

sql = (
"DELETE FROM e2e_one_time_keys_json"
" WHERE user_id = ? AND device_id = ? AND valid_until_ms < ?"
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to move this DELETE to the add/take transactions? It would make this transaction read only.

@erikjohnston
Copy link
Member

LGTM

erikjohnston added a commit that referenced this pull request Jul 10, 2015
…management

Client end to end key management API
@erikjohnston erikjohnston merged commit b7cb37b into develop Jul 10, 2015
@erikjohnston erikjohnston deleted the markjh/client-end-to-end-key-management branch November 19, 2015 17:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants