pub async fn enroll(
enroll_addr: SocketAddr,
node_id: &str,
kind: NodeKind,
code: Option<&str>,
state_dir: &Path,
) -> Result<EnrolledState, EnrollClientError>Expand description
Generate (or load) the keys, send the signed request, store the public answer.