POST /challenge
Request body:
{"pubkey": [0, 0](Serialized as byte array)
Response:
{
"challenge": [1, 2, 3],
"state": [4, 5, 6],
"nonce": [7, 8, 9]
}Keep state and nonce, you need to send them in the response. Decrypt
challenge with your private key, this will give you a plaintext (the
challenge response).
POST /response
Response body:
{
"response": [1, 2, 3],
"state": [4, 5, 6],
"nonce": [7, 8, 9],
"name": "guido"
}response is the decrypted challenge, state and nonce should be
transmitted verbatim as they were received, name is a freely choosable
identifier (must be unique, case sensitive).
GET /keys/:identifier
Response body:
{"pubkey": [1, 2, 3]}