fix: return Ed25519 verify result from Identity::validate

Implementing Fix provided by SAY-5 (https://github.com/SAY-5) for the official microReticulum lib
This commit is contained in:
hardened_malloc authored and GitHub committed 2026-06-08 16:44:15 +02:00
1 parent 858010cee0
commit dd1e04ab53
1 file changed
+1 -2
+1 -2
View File
@@ -823,8 +823,7 @@ bool Identity::validate(const Bytes& signature, const Bytes& message) const {
if (_object->_pub) {
try {
TRACEF("Identity::validate: Attempting to verify signature: %s and message: %s", signature.toHex().c_str(), message.toHex().c_str());
_object->_sig_pub->verify(signature, message);
return true;
return _object->_sig_pub->verify(signature, message);
}
catch (std::exception& e) {
return false;