signToEc method
override
Signs the provided hash
and returns the result as a MsgSignature
.
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<MsgSignature> signToEc(Uint8List hash,
{int? index, String? id}) async {
require(id != null, "credential id expected");
final signature = await signToPasskeySignature(hash, id!);
return MsgSignature(signature.rs[0].value, signature.rs[1].value, 0);
}