#middleware #tari #add #messages #module #base #tari-comms

nightly tari_comms_middleware

Tari comms middleware modules used to add functionality to the base tari_comms library

1 unstable release

0.0.7 Jan 15, 2020

#71 in #tari

BSD-3-Clause

2MB
33K SLoC

Tari Comms Middleware


lib.rs:

Comms Middleware

Comms Middleware contains the middleware layers that can be composed when processing inbound and outbound comms messages.

For example, should you want your messages to be encrypted, you'll add the EncryptionLayer to the outbound middleware stack and the DecryptionLayer to the inbound stack.

Middlewares use tower_layer and tower_service. A Middleware is simply any service which is Service<InboundMessage, Response = (), Error = MiddlewareError>. This service will usually be composed of other services by using the tower_util::ServiceBuilder.

Dependencies

~23MB
~401K SLoC