generateSecretDate method

Digest generateSecretDate(
  1. DateTime date
)

Generate the secret date for the request. SecretDate = HMAC_SHA256("TC3" + SecretKey, Date)

Implementation

crypto.Digest generateSecretDate(DateTime date) {
  final key = convert.utf8.encode('TC3$secretKey');
  final data = convert.utf8.encode(generateDate(date));

  return _hmacSha256(key, data);
}