crateApiFbblApiFbblEncryptId method

  1. @override
Future<Uint8List> crateApiFbblApiFbblEncryptId({
  1. required BigInt id,
  2. required List<int> nonce,
})
override

Implementation

@override
Future<Uint8List> crateApiFbblApiFbblEncryptId(
    {required BigInt id, required List<int> nonce}) {
  return handler.executeNormal(NormalTask(
    callFfi: (port_) {
      final serializer = SseSerializer(generalizedFrbRustBinding);
      sse_encode_u_64(id, serializer);
      sse_encode_list_prim_u_8_loose(nonce, serializer);
      pdeCallFfi(generalizedFrbRustBinding, serializer,
          funcId: 3, port: port_);
    },
    codec: SseCodec(
      decodeSuccessData: sse_decode_list_prim_u_8_strict,
      decodeErrorData: sse_decode_String,
    ),
    constMeta: kCrateApiFbblApiFbblEncryptIdConstMeta,
    argValues: [id, nonce],
    apiImpl: this,
  ));
}