Function libindy_sys::indy_build_node_request[][src]

pub unsafe extern "C" fn indy_build_node_request(
    command_handle: indy_handle_t,
    submitter_did: *const c_char,
    target_did: *const c_char,
    data: *const c_char,
    str: indy_str_cb
) -> indy_error_t

Builds a NODE request. Request to add a new node to the pool, or updates existing in the pool.

#Params command_handle: command handle to map callback to caller context. submitter_did: DID of the submitter stored in secured Wallet. target_did: Target Node's DID. It differs from submitter_did field. data: Data associated with the Node: { alias: string - Node's alias blskey: string - (Optional) BLS multi-signature key as base58-encoded string. blskey_pop: string - (Optional) BLS key proof of possession as base58-encoded string. client_ip: string - (Optional) Node's client listener IP address. client_port: string - (Optional) Node's client listener port. node_ip: string - (Optional) The IP address other Nodes use to communicate with this Node. node_port: string - (Optional) The port other Nodes use to communicate with this Node. services: array - (Optional) The service of the Node. VALIDATOR is the only supported one now. } cb: Callback that takes command result as parameter.

#Returns Request result as json.

#Errors Common*