signHash static method

String signHash({
  1. required String hash,
  2. required String privateKey,
})

Decodes the base64 url encoded hash string and signs it with the private key.

Implementation

static String signHash({
  required String hash,
  required String privateKey,
}) {
  return signHashBytes(
    hash: base64Url.decode(base64Url.normalize(hash)),
    privateKey: privateKey,
  );
}