1 import { VERIFICATION_STATUS } from '@proton/srp/lib/constants';
3 import { type SignatureIssues } from '../store';
5 export const hasValidAnonymousSignature = (signatureIssues: SignatureIssues) => {
6 return Object.entries(signatureIssues).every(([key, verified]) => {
7 if (key === 'thumbnail' || key === 'blocks') {
8 if (verified === VERIFICATION_STATUS.NOT_SIGNED) {
11 console.warn(`${key} signature should not be signed in case of anonymous upload`);
15 return verified === VERIFICATION_STATUS.SIGNED_AND_VALID;