Feature/client binary api update (#306)

* Split text and binary client apis

* Very initial attempt at new serialization

* Defined ser+de for Recipient and ReplySURB

* Response errors

* builds with changes

* Working WS API + moved to separate crate

* updated python examples

* Fixed parsing bug

* Updated go examples

* Updated rust examples

* formatting

* Removed unused imports

* Removed accidentally left panic call
This commit is contained in:
Jędrzej Stuczyński
2020-08-17 10:44:40 +01:00
committed by GitHub
parent eec6034684
commit 7d2d512405
31 changed files with 1900 additions and 987 deletions
@@ -55,13 +55,13 @@ async def send_text_with_reply():
print("received '{}' from the mix network".format(received_message))
# use the received surb to send an anonymous reply!
reply_surb = received_message["replySurb"]
reply_surb = received_message["replySURB"]
reply_message = "hello from reply SURB!"
reply = json.dumps({
"type": "reply",
"message": reply_message,
"replySurb": reply_surb
"replySURB": reply_surb
})
print("sending '{}' (using reply SURB!) over the mix network...".format(reply_message))