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