personalSign method

  1. @override
Future<Uint8List> personalSign(
  1. Uint8List hash,
  2. {int? index,
  3. String? id}
)
override

Signs a message hash using the credential.

The index and id parameters are ignored in this implementation.

Returns a Uint8List representing the signature of the provided hash.

Implementation

@override
Future<Uint8List> personalSign(Uint8List hash,
    {int? index, String? id}) async {
  return Future.value(
      _credential.privateKey.signPersonalMessageToUint8List(hash));
}