ecdsaSign method

SignatureModel ecdsaSign(
  1. Uint8List payload
)
inherited

Implementation

SignatureModel ecdsaSign(Uint8List payload) {
  var ec = getP256();

  var sign = signature(PrivateKey.fromBytes(ec, privateKey!),
      HashExtensions.getSha256(payload));
  return SignatureModel(sign.toCompact(), sign.R);
}