Skip to main content

node_call

Function node_call 

Source
pub async fn node_call(
    c2_enroll: SocketAddr,
    identity: &NodeIdentity,
    node_id: &str,
    op: &str,
    payload: &Value,
) -> Result<Value, EnrollClientError>
Expand description

Make a signed mail/task call through C2 (op like mail.send, task.list). The node proves who it is with its identity key; no server credential is involved. Returns the reply JSON.