crateApiEventVerifierVerifySchnorrSignature method
Future<bool>
crateApiEventVerifierVerifySchnorrSignature(
{ - required String pubKeyHex,
- required String eventIdHex,
- 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,
));
}