buildTimestampRequestForData method
Convenience for the common case: hash data, ask the TSA and return the
request to post.
Implementation
TimestampRequest buildTimestampRequestForData(
Uint8List data, {
String hashAlgorithm = 'SHA256',
String? policyOid,
bool requestCertificate = true,
}) =>
buildTimestampRequest(
hash: _digest(data, hashAlgorithm),
hashAlgorithm: hashAlgorithm,
policyOid: policyOid,
requestCertificate: requestCertificate,
);