Module request_response::message
source · Expand description
The message type. Is the base type for all messages in the request-response protocol
Structs§
- A request message, which includes the requester’s public key, the request’s signature, a timestamp, and the request itself
- A response message, which includes the hash of the request we’re responding to and the response itself.
Enums§
- The outer message type for the request-response protocol. Can either be a request or a response
Functions§
- A helper function to read a length-prefixed value from a reader
- A helper function to read to the end of the reader
- A helper function to write a length-prefixed value to a writer