From a939b19479cc99205f847b98cb37e10fdabc3b47 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 23 May 2023 10:00:34 -0400 Subject: [PATCH] rpc: update rpc-meta-draft with new behavior. --- doc/dev/notes/rpc-meta-draft.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/dev/notes/rpc-meta-draft.md b/doc/dev/notes/rpc-meta-draft.md index d359ae33e..7d909dc8e 100644 --- a/doc/dev/notes/rpc-meta-draft.md +++ b/doc/dev/notes/rpc-meta-draft.md @@ -507,7 +507,7 @@ in order to receive any other object IDs. The pre-authentication methods available on a connection are: -auth:get_proto +auth:get_rpc_protocol : Ask Arti which version of the protocol is in use. auth:query @@ -776,9 +776,13 @@ The echo command will only work post-authentication. Here is an example session: ``` +>>> {"id": "abc", "obj": "connection", "method": "auth:get_rpc_protocol", "params": {}} +<<< {"id":"abc","result":{"version":"alpha"}} +>>> {"id": "abc", "obj": "connection", "method": "auth:query", "params": {}} +<<< {"id":"abc","result":{"schemes":["inherent:unix_path"]}} >>> {"id": 3, "obj": "connection", "method": "auth:authenticate", "params": {"scheme": "inherent:unix_path"}} -<<< {"id":3,"result":{"client":"dTewFIaZKQV1N7AUhpkpBIrIT-t5Ztb8"}} ->>> {"id": 4, "obj": "dTewFIaZKQV1N7AUhpkpBIrIT-t5Ztb8", "method": "arti:x-echo", "params": {"msg": "Hello World"}} +<<< {"id":3,"result":{"session":"2yFi5qrMD9LbIWLmqswP0iTenRlVM_Au"}} +>>> {"id": 4, "obj": "2yFi5qrMD9LbIWLmqswP0iTenRlVM_Au", "method": "arti:x-echo", "params": {"msg": "Hello World"}} <<< {"id":4,"result":{"msg":"Hello World"}} ```