[−][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
- Identifier (DID) of the transaction author as base58-encoded string. Actual request sender may differ if Endorser is used (look atappend_request_endorser
)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 forbuild_auth_rule_request
function. } ]
Returns
Request result as json.