verify method
Implementation
bool verify(String messageHash, Signature signature) {
CircomLib circomLib = CircomLib();
List<int> pointList = [];
pointList.add(p[0].toInt());
pointList.add(p[1].toInt());
List<int> sigList = [];
sigList.add(signature.r8[0].toInt());
sigList.add(signature.r8[1].toInt());
sigList.add(signature.s.toInt());
return circomLib.verifyPoseidon(
Uint8ArrayUtils.uint8ListToString(Uint8List.fromList(pointList)),
Uint8ArrayUtils.uint8ListToString(Uint8List.fromList(sigList)),
messageHash);
}