Add Blacklist class

This commit is contained in:
pxgamer
2018-09-06 12:00:08 +01:00
parent 0b73adb3d8
commit 024042abab

25
include/Blacklist.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
namespace Arionum;
/**
* Class Blacklist
*/
final class Blacklist
{
/**
* The official list of blacklisted public keys
*/
public const PUBLIC_KEYS = [];
/**
* Check if a public key is blacklisted
*
* @param string $publicKey
* @return bool
*/
public static function checkPublicKey(string $publicKey): bool
{
return key_exists($publicKey, static::PUBLIC_KEYS);
}
}