Open bartekryba opened 1 year ago
In ffi/ecdsa.h the interface of Verify method is as follows:
ffi/ecdsa.h
int Verify(const char* stark_key, const char* msg_hash, const char* r_bytes, const char* w_bytes);
but in ffi/ecdsa.cc it had a bool type.
ffi/ecdsa.cc
The problem it caused: I compiled crypto-cpp for Release (with -O3 flag), for ios and macos targets. On x86 macos target, calling Verify function would return very big numbers instead of 0 or 1.
In
ffi/ecdsa.h
the interface of Verify method is as follows:but in
ffi/ecdsa.cc
it had a bool type.The problem it caused: I compiled crypto-cpp for Release (with -O3 flag), for ios and macos targets. On x86 macos target, calling Verify function would return very big numbers instead of 0 or 1.