crateApiEventVerifierVerifySchnorrSignature method

  1. @override
Future<bool> crateApiEventVerifierVerifySchnorrSignature({
  1. required String pubKeyHex,
  2. required String eventIdHex,
  3. required String signatureHex,
})
override

Implementation

@override
Future<bool> crateApiEventVerifierVerifySchnorrSignature(
    {required String pubKeyHex,
    required String eventIdHex,
    required String signatureHex}) {
  return handler.executeNormal(NormalTask(
    callFfi: (port_) {
      final serializer = SseSerializer(generalizedFrbRustBinding);
      sse_encode_String(pubKeyHex, serializer);
      sse_encode_String(eventIdHex, serializer);
      sse_encode_String(signatureHex, serializer);
      pdeCallFfi(generalizedFrbRustBinding, serializer,
          funcId: 4, port: port_);
    },
    codec: SseCodec(
      decodeSuccessData: sse_decode_bool,
      decodeErrorData: null,
    ),
    constMeta: kCrateApiEventVerifierVerifySchnorrSignatureConstMeta,
    argValues: [pubKeyHex, eventIdHex, signatureHex],
    apiImpl: this,
  ));
}