mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-22 23:10:38 +00:00
Merge pull request #1 from 0x00001312/master
[Security Patch] Fixing Ed25519 signature verification bypass
This commit is contained in:
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