Skip to main content

handle_hello

Function handle_hello 

Source
async fn handle_hello(
    __arg0: State<AppState>,
    headers: HeaderMap,
    body: Bytes,
) -> Response
Expand description

POST /auth/hello {nonce}: srv proves to open that it holds the key and which address it is bound to, before open sends anything else. It asks for no secret, so anyone may call it; what it returns proves only what srv holds, and is made for this caller’s nonce alone.