sign method
String
sign(
{ - required List<int> messageHex,
- required String privateKey,
- dynamic hint,
})
override
Implementation
@override
String sign(
{required List<int> messageHex,
required String privateKey,
dynamic hint}) {
return handler.executeSync(SyncTask(
callFfi: () {
final serializer = SseSerializer(generalizedFrbRustBinding);
sse_encode_list_prim_u_8_loose(messageHex, serializer);
sse_encode_String(privateKey, serializer);
return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 5)!;
},
codec: SseCodec(
decodeSuccessData: sse_decode_String,
decodeErrorData: null,
),
constMeta: kSignConstMeta,
argValues: [messageHex, privateKey],
apiImpl: this,
hint: hint,
));
}