pub fn parse_get_nym_response(
    get_nym_response: &str
) -> Box<dyn Future<Item = String, Error = IndyError>>
Expand description

Parse a GET_NYM response to get NYM data.

Arguments

  • get_nym_response: response on GET_NYM request.

Returns

NYM data { did: DID as base58-encoded string for 16 or 32 bit DID value. verkey: verification key as base58-encoded string. role: Role associated number null (common USER) 0 - TRUSTEE 2 - STEWARD 101 - TRUST_ANCHOR 101 - ENDORSER - equal to TRUST_ANCHOR that will be removed soon 201 - NETWORK_MONITOR }