[][src]Function indyrs::payments::prepare_extra_with_acceptance_data

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

Append payment extra JSON with TAA acceptance data

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

  • extra_json: original extra 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. Digest is sha256 hash calculated on concatenated strings: version || text. 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 extra result as json.