sui_proxy::middleware

Function expect_valid_public_key

Source
pub async fn expect_valid_public_key(
    __arg0: Extension<Arc<SuiNodeProvider>>,
    __arg1: Extension<TlsConnectionInfo>,
    request: Request<Body>,
    next: Next,
) -> Result<Response, (StatusCode, &'static str)>
Expand description

we expect that calling sui-nodes are known on the blockchain and we enforce their pub key tls creds here