mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-22 23:10:38 +00:00
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:
1 parent
858010cee0
commit
dd1e04ab53
1 file changed
+1
-2
+1
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user