crateApiEventVerifierHashEventData method

  1. @override
Future<String> crateApiEventVerifierHashEventData({
  1. required String pubkey,
  2. required BigInt createdAt,
  3. required int kind,
  4. required List<List<String>> tags,
  5. required String content,
})
override

Implementation

@override
Future<String> crateApiEventVerifierHashEventData(
    {required String pubkey,
    required BigInt createdAt,
    required int kind,
    required List<List<String>> tags,
    required String content}) {
  return handler.executeNormal(NormalTask(
    callFfi: (port_) {
      final serializer = SseSerializer(generalizedFrbRustBinding);
      sse_encode_String(pubkey, serializer);
      sse_encode_u_64(createdAt, serializer);
      sse_encode_u_16(kind, serializer);
      sse_encode_list_list_String(tags, serializer);
      sse_encode_String(content, serializer);
      pdeCallFfi(generalizedFrbRustBinding, serializer,
          funcId: 1, port: port_);
    },
    codec: SseCodec(
      decodeSuccessData: sse_decode_String,
      decodeErrorData: null,
    ),
    constMeta: kCrateApiEventVerifierHashEventDataConstMeta,
    argValues: [pubkey, createdAt, kind, tags, content],
    apiImpl: this,
  ));
}