[][src]Function indyrs::ledger::append_txn_author_agreement_acceptance_to_request

pub fn append_txn_author_agreement_acceptance_to_request(
    request_json: &str,
    text: Option<&str>,
    version: Option<&str>,
    taa_digest: Option<&str>,
    mechanism: &str,
    time: u64
) -> Box<dyn Future<Item = String, Error = IndyError>>

Append transaction author agreement acceptance data to a request. This function should be called before signing and sending a request if there is any transaction author agreement set on the Ledger.

This function may calculate digest by itself or consume it as a parameter. If all text, version and taa_digest parameters are specified, a check integrity of them will be done.

Arguments

  • request_json: original request data json.
  • text and version: (optional) raw data about TAA from ledger. These parameters should be passed together. These parameters are required if taa_digest parameter is omitted.
  • taa_digest: (optional) digest on text and version. This parameter is required if text and version parameters are omitted.
  • mechanism: mechanism how user has accepted the TAA
  • time: UTC timestamp when user has accepted the TAA

Returns

Updated request result as json.