Skip to content

Commit a93b61c

Browse files
authored
Update EdDSA.php (#106)
1 parent b095f16 commit a93b61c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Algorithm/Signature/EdDSA/EdDSA.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ public function verify(string $data, Key $key, string $signature): bool
4343
throw new InvalidArgumentException('Unsupported curve');
4444
}
4545
try {
46-
sodium_crypto_sign_verify_detached($signature, $data, $key->x());
46+
return sodium_crypto_sign_verify_detached($signature, $data, $key->x());
4747
} catch (Throwable) {
4848
return false;
4949
}
50-
51-
return true;
5250
}
5351

5452
public static function identifier(): int

0 commit comments

Comments
 (0)