detached static method

Uint8List detached(
  1. Uint8List message,
  2. Uint8List secretKey
)

Signs the message using the secret key and returns a signature.

Implementation

static Uint8List detached(Uint8List message, Uint8List secretKey) {
  Uint8List? signedMsg = sign(message, secretKey);
  Uint8List sig = Uint8List(signatureLength);
  for (int i = 0; i < sig.length; i++) sig[i] = signedMsg![i];
  return sig;
}