toAddress method

  1. @override
String toAddress({
  1. required String privateKey,
  2. dynamic hint,
})
override

Implementation

@override
String toAddress({required String privateKey, dynamic hint}) {
  return handler.executeSync(SyncTask(
    callFfi: () {
      final serializer = SseSerializer(generalizedFrbRustBinding);
      sse_encode_String(privateKey, serializer);
      return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 3)!;
    },
    codec: SseCodec(
      decodeSuccessData: sse_decode_String,
      decodeErrorData: null,
    ),
    constMeta: kToAddressConstMeta,
    argValues: [privateKey],
    apiImpl: this,
    hint: hint,
  ));
}