Skip to main content

Module rpc_request

Module rpc_request 

Source
Expand description

§RPC request packet encode / decode

The wire format of every outgoing and incoming RPC request. Split into a strict Tx / Rx pair so the compiler enforces the asymmetry between “I’m building a request” and “I’m parsing one”:

The PoW sits in the header and binds to the server’s identity, so a request valid for server A can’t be forwarded to server B and still authenticate.

Structs§

RpcRequestPacketRx
The server-side view of an inbound RPC request after header parsing and PoW verification.
RpcRequestPacketTx
An outbound RPC request, freshly encoded and ready to be sent over a [crate::transport::TransportFactory].
RpcRequestPacketTxFlags