summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2017-08-06 23:14:29 -0400
committerjoe <joe@jerkface.net>2017-08-06 23:14:29 -0400
commit85a004ac92cac382a8c2824ca6b584764ab7782d (patch)
treea92d96008ec2ecc52791d8fcc9426409f5c527ed
parentad8622a7ec62eb273bd8c3480ca9686f84fd66d7 (diff)
TODO message
-rw-r--r--ToxMessage.hs10
1 files changed, 8 insertions, 2 deletions
diff --git a/ToxMessage.hs b/ToxMessage.hs
index 1d139c93..9ea57d27 100644
--- a/ToxMessage.hs
+++ b/ToxMessage.hs
@@ -55,7 +55,6 @@ instance Serialize Auth where
55newtype Aliased a = Aliased a 55newtype Aliased a = Aliased a
56 deriving (Eq,Ord,Show,Data,Functor,Foldable,Traversable) 56 deriving (Eq,Ord,Show,Data,Functor,Foldable,Traversable)
57 57
58
59newtype Nonce24 = Nonce24 ByteString 58newtype Nonce24 = Nonce24 ByteString
60 deriving (Eq, Ord, ByteArrayAccess,Data) 59 deriving (Eq, Ord, ByteArrayAccess,Data)
61 60
@@ -202,7 +201,14 @@ data Packet where
202 201
203 OnionRequest3 :: ByteString -> Symmetric -> Packet -- 0x82 202 OnionRequest3 :: ByteString -> Symmetric -> Packet -- 0x82
204 203
205 -- reverse of typical serialization, nonce and then sender key 204 -- TODO:
205 -- Announce has a return path appended to it.
206 -- We'll need a type-level natural to indicate how may bytes to
207 -- get in the ImplicitAssymetric data. (Or we could force the size
208 -- of the return path).
209 --
210 -- If the return path is non empty, we should respond with OnionResponse3
211 -- rather than AnnounceResponse directly.
206 Announce :: Aliased Assymetric -> Packet --0x83 212 Announce :: Aliased Assymetric -> Packet --0x83
207 AnnounceResponse :: Nonce8 -> UnclaimedAssymetric -> Packet -- 0x84 213 AnnounceResponse :: Nonce8 -> UnclaimedAssymetric -> Packet -- 0x84
208 214