sign static method
Implementation
static String sign(
{required Uint8List message,
String? privateKey,
Uint8List? privateKeyInBytes}) {
if (privateKey == null && privateKeyInBytes == null)
throw ArgumentError('Missing private key to sign');
final sig =
signToSignature(message, privateKeyInBytes ?? hexToBytes(privateKey!));
return concatSig(toBuffer(sig.r), toBuffer(sig.s), toBuffer(sig.v));
}