Henry de Valence
0196c2c4cd
Place header encoding prior to body encoding.
2019-09-25 14:59:47 -07:00
Henry de Valence
94a07b05cc
Move HEADER_LEN constant to top of file.
2019-09-25 14:59:47 -07:00
Henry de Valence
28904e01c7
Trace the decoded message in the decoder.
2019-09-25 14:59:47 -07:00
Henry de Valence
ea1b60d8e3
Make message body reader fns part of Codec.
2019-09-25 14:59:47 -07:00
Henry de Valence
4e1285b568
Refactor message serialization as a tokio codec.
...
This provides a significantly cleaner API to consumers, because it
allows using adaptors that convert a TCP stream to a stream of messages,
and potentially allows more efficient message handling.
2019-09-25 14:59:47 -07:00
Henry de Valence
0b1acc50c3
Make a new protocol module with message submodule.
...
This allows us to organize all of the Bitcoin-Zcash specific parts of
the protocol into a subtree.
2019-09-25 14:59:47 -07:00