Expand description
Sbd client library.
Modules§
- raw_
client feature = "raw_client"
Raw websocket interaction types.
Structs§
- Default
Crypto - Default signer. Use a fresh one for every new connection.
- Msg
- 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
0
s 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. - MsgRecv
- Handle to receive data from the sbd connection.
- PubKey
- Public key.
- SbdClient
- SbdClient represents a single connection to a single sbd server through which we can communicate with any number of peers on that server.
- SbdClient
Config - Configuration for connecting an SbdClient.
Traits§
- Crypto
- Crypto to use. Note, the pair should be fresh for each new connection.