From 15b48049688a1a0be3c0e6bfa0bbaf1b225b6e70 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Sat, 8 Jun 2019 12:40:38 +0100 Subject: [PATCH] update wire protocol with originator and oobHashlist fields --- doc/wire-protocol.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/wire-protocol.md b/doc/wire-protocol.md index 9015bdd5..a66b1a59 100644 --- a/doc/wire-protocol.md +++ b/doc/wire-protocol.md @@ -131,12 +131,18 @@ Sent by a leaf or ultrapeer when performing a search. Contains the reply-to per firstHop: false, keywords : ["keyword1","keyword2"...] infohash: "asdfasdf...", - replyTo : "asdfasf...b64" + replyTo : "asdfasf...b64", + originator : "asfasdf...", + "oobHashlist" : true } ``` A search can contain either the query entered by the user in the UI or the infohash if the user is looking for a specific file. If both are present, the infohash takes precedence and the keyword query is ignored. +The "originator" field contains the Base64-encoded persona of the originator of the query. It is used for display purposes only. The I2P destination in that persona must match the one in the "replyTo" field. + +The oobHashlist flag indicates support for out-of-band hashlist delivery, which is not yet implemented. Nevertheless, this flag gets propagated through the network for future-proofing. + ### Ultrapeer to leaf The "Search" message is also sent from an ultrapeer to a leaf.