auth keys
Global Context

A common workflow in Async360 is illustrated by the project diagram below.

Sample Project Explore


Async360 ServiceWebSocket
[Endpoint] wss://app.async360.com
{
"dqcommand": "trNDsob9yUnztWgw3txXFFuO3M",
"result": {
"FromPublicKey": "0346c8b24281713439f2b4b0fc22d2dbb28f36aea75a3316d1151fe2bce0b82c92",
"ProtectedMessage": "aGVsbG8=",
"MQContext": "839fbd44-c549-4375-9b27-142e2ff2c031"
    }
}

From Public-Key

The public key which was informed when sender created the channel with ApeAPI method add_application. Any application sending requests is expected to have the corresponding private key.

Protected Message

Where serialization properties and encription methods are established by receiving application channel.


API Methods

method add_application

Create an application channel to start your protected Application Sphere.

Request
"Params":{
"channel_name":"MY BTC NODE",
"public_key":"0346c8b24281713439f2b4b0fc22d2dbb28f36aea75a3316d1151fe2bce0b82c92"
}
Response
{
  "id": "2",
  "jsonrpc": "2.0",
  "error": null,
  "result": {
    "queue_id": "839fbd44-c549-4375-9b27-142e2ff2c031",
    "connection_string": "trNDsob9yUnztWgw3txXFFuO3M....."
  }
}
public_key

Supply a compressed public-key for which you have the corresponding private-key, needed to establish a shared secret with other channels using ECDH. Note, this method will return an error if the supplied public-key has already been used.


method invoke_applicaton

Invoke a socket initiated by an application channel.

Request
"Params":{
"protected_message":"aGVsbG8=",
"to_public_key":"COMPRESSED_PUBLIC_KEY",
"from_public_key":"COMPRESSED_PUBLIC_KEY",
"mq_context":"MY DATA REF"
}
Response
{
  "id": "2",
  "jsonrpc": "2.0",
  "error": null,
  "result": {
    "status":"success"
  }
}
protected_message

Your base64 encoded data, encrypted after calculating your shared secret with the destination public-key.

to_public_key

The public-key of any application channel, including those pertaining to other user accounts.

mq_context

The data you would like returned by the destination channel if expecting a response, typically a unique random value.

from_public_key

A public-key previously used when adding a new Application Sphere channel, and pertaining user account initiating the request.