[][src]Function indyrs::ledger::build_auth_rules_request

pub fn build_auth_rules_request(
    submitter_did: &str,
    data: &str
) -> Box<dyn Future<Item = String, Error = IndyError>>

Builds a AUTH_RULES request. Request to change multiple authentication rules for a ledger transaction.

Arguments

  • submitter_did: DID of the request sender.
  • data: a list of auth rules: [ { "auth_type": ledger transaction alias or associated value, "auth_action": type of an action, "field": transaction field, "old_value": (Optional) old value of a field, which can be changed to a new_value (mandatory for EDIT action), "new_value": (Optional) new value that can be used to fill the field, "constraint": set of constraints required for execution of an action in the format described above for build_auth_rule_request function. } ]

Returns

Request result as json.