ecdsaSign method
Implementation
SignatureModel ecdsaSign(Uint8List payload) {
var ec = getP256();
var sign = signature(PrivateKey.fromBytes(ec, privateKey!),
HashExtensions.getSha256(payload));
return SignatureModel(sign.toCompact(), sign.R);
}