personalSign method
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
Implementation
@override
Future<Uint8List> personalSign(Uint8List hash,
{int? index, String? id}) async {
final privKey = await _getPrivateKey(index ?? 0);
return privKey.signPersonalMessageToUint8List(hash);
}