diff options
author | varjolintu <sami.vanttinen@gmail.com> | 2017-04-28 10:58:17 +0300 |
---|---|---|
committer | varjolintu <sami.vanttinen@gmail.com> | 2017-04-28 10:58:17 +0300 |
commit | 05c95f1b3e1ab373de43b090185d476d3c85ec8f (patch) | |
tree | cac07d3538fd85d22eec6580b6d1a29d4429ad07 /README.md | |
parent | 19901de3117c5a53d1082955d04a9dcd5176dd5d (diff) |
Key change fixes
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -35,6 +35,26 @@ Encrypted messages are built with these JSON parameters: - message - Encrypted message, base64 encoded - nonce - 24 bytes long random data, base64 encoded. This must be the same when responding to a request. +### change-public-keys +Request: +```javascript +{ + "action": "change-public-keys", + "publicKey": "<current public key>", + "nonce": "tZvLrBzkQ9GxXq9PvKJj4iAnfPT0VZ3Q" +} +``` + +Response (success): +```javascript +{ + "action": "change-public-keys", + "version": "2.1.2", + "publicKey": "<host public key>", + "success": "true" +} +``` + ### get-databasehash Request: ```javascript |