verifyPoseidon method

bool verifyPoseidon(
  1. String publicKey,
  2. String compressedSignature,
  3. String msg
)

Implementation

bool verifyPoseidon(
    String publicKey, String compressedSignature, String msg) {
  final pubKeyPtr = publicKey.toNativeUtf8();
  final sigPtr = compressedSignature.toNativeUtf8();
  final msgPtr = msg.toNativeUtf8();
  final resultPtr = _verifyPoseidon(pubKeyPtr, sigPtr, msgPtr);
  final String resultString = resultPtr.toDartString();
  final bool result = resultString.compareTo("1") == 0;
  return result;
}