Onion
Endpoint for submitting an encrypted onion request
The data is an onion-encrypted request for another endpoint, wrapped in an encrypted layer for this open group server.
post/oxen/v4/lsrpc
Response
Onion request completed. The subrequest response will be encoded in a two-string bencoded list (see the request details for the encoding specifics) where the first string contains the response metadata as json with keys:
- code -- the HTTP response code of the subrequest, e.g. 200, 404 - headers -- a dict of HTTP response headers; the header name keys are always lower-cased.
The second part is the response body bytes; as in HTTP, interpreting this depends on the content-type header in the headers metadata, and the details of the invoked endpoint.
These two byte strings are bencoded, and then the bencoded data is encrypted using the same ephemeral key and encryption type as was used in the request.