personalSign method

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

Signs the provided hash using a multi-signature process.

  • Uint8List: The data type of signature expected.

Optional parameters:

  • index: The index or position of the signer. Used for multi-signature scenarios.
  • id: An optional identifier associated with the signing process.

Returns a Future representing the signed data.

Implementation

@override
Future<Uint8List> personalSign(Uint8List hash,
    {int? index, String? id}) async {
  require(id != null, "credential id expected");
  final signature = await signToPasskeySignature(hash, id!);
  return signature.toList();
}