public function check(array $auth, array $signature, $prefix)
{
if (!isset($auth[$prefix . 'key'])) {
throw new SignatureKeyException('The authentication key has not been set');
}
if ($auth[$prefix . 'key'] !== $signature[$prefix . 'key']) {
throw new SignatureKeyException('The authentication key is not valid');
}
return true;
}