blsVerifySync method

  1. @override
bool blsVerifySync(
  1. Uint8List pk,
  2. Uint8List sig,
  3. Uint8List msg
)
override

Implementation

@override
bool blsVerifySync(
  Uint8List pk,
  Uint8List sig,
  Uint8List msg,
) {
  Pointer<Utf8> result = rustBlsVerify(
      sig.toHex(include0x: false).toNativeUtf8(),
      msg.toHex(include0x: false).toNativeUtf8(),
      pk.toHex(include0x: false).toNativeUtf8());
  final ret = result.cast<Utf8>().toDartString() == "true";
  freeCString(result);
  return ret;
}