sign static method

List<int> sign(
  1. List<int> key,
  2. String message
)

Implementation

static List<int> sign(List<int> key, String message) {
  Hmac hmac = Hmac(sha256, key);
  Digest dig = hmac.convert(utf8.encode(message));
  return dig.bytes;
}