Crate sbd_client

source ·
Expand description

Sbd client library.

Modules§

  • feature = "raw_client" Raw websocket interaction types.

Structs§

  • Default signer. Use a fresh one for every new connection.
  • A message received from a remote. This is just a single buffer. The first 32 bytes are the public key of the sender, or 28 0s followed by a 4 byte command. Any remaining bytes are the message. The buffer contained in this type is guaranteed to be at least 32 bytes long.
  • Handle to receive data from the sbd connection.
  • Public key.
  • SbdClient represents a single connection to a single sbd server through which we can communicate with any number of peers on that server.
  • Configuration for connecting an SbdClient.

Traits§

  • Crypto to use. Note, the pair should be fresh for each new connection.