signHashBytes static method
Sigsn the hash bytes with the private key
Implementation
static String signHashBytes({
required Uint8List hash,
required String privateKey,
}) {
final SigningKey signingKey = SigningKey.fromSeed(
HEX.decode(privateKey).toUint8List(),
);
var sign = signingKey.sign(hash);
return HEX.encode(sign.signature);
}