Updated Project Source code (I don't remember what i did.)

This commit is contained in:
netkas 2024-09-24 14:20:49 -04:00
parent fc2e4d5a73
commit 4879fdf36d
10 changed files with 289 additions and 10 deletions

View file

@ -32,12 +32,12 @@
{
if($publicKey === '')
{
throw new InvalidArgumentException('The public key cannot be empty', StandardError::RPC_INVALID_ARGUMENTS);
throw new InvalidArgumentException('The public key cannot be empty', 400);
}
if(!Cryptography::validatePublicKey($publicKey))
{
throw new InvalidArgumentException('The given public key is invalid', StandardError::INVALID_PUBLIC_KEY);
throw new InvalidArgumentException('The given public key is invalid', 400);
}
$publicKey = Utilities::base64decode($publicKey);