signData method

  1. @override
Uint8List signData(
  1. Uint8List data
)
override

Return the signature for the data

Implementation

@override
Uint8List signData(Uint8List data) {
  final msgHash = sha256(data);
  final signatureData = secp256r1.sign(msgHash, _keypair.secretKey);
  return signatureData.toBytes();
}