async function verifyModulus(modulusParsed) {
        try {
            const publicKeys = await openpgp.key.readArmored(SRP_MODULUS_KEY);
            const { verified = NOT_SIGNED } = await verifyMessage({
                message: modulusParsed,
                publicKeys: publicKeys.keys
            });

            if (verified !== SIGNED_AND_VALID) {
                throw new Error();
            }
        } catch (e) {
            return Promise.reject({
                error_description: 'Unable to verify server identity'
            });
        }
    }
/**
     * Verify the modulus signature with the SRP public key
     * @param {Object} modulusParsed
     * @return {Promise}
     */
Verify the modulus signature with the SRP public key
@param {Object} modulusParsed
@return {Promise}
Verify the modulus signature with the SRP public key @param { Object } modulusParsed @return { Promise }
async function verifyModulus(modulusParsed) {
        try {
            const publicKeys = await openpgp.key.readArmored(SRP_MODULUS_KEY);
            const { verified = NOT_SIGNED } = await verifyMessage({
                message: modulusParsed,
                publicKeys: publicKeys.keys
            });
            if (verified !== SIGNED_AND_VALID) {
                throw new Error();
            }
        } catch (e) {
            return Promise.reject({
                error_description: 'Unable to verify server identity'
            });
        }
    }
async function verifyModulus ( modulusParsed ) { try { const publicKeys = await openpgp . key . readArmored ( SRP_MODULUS_KEY ) ; const { verified = NOT_SIGNED } = await verifyMessage ( { message : modulusParsed , publicKeys : publicKeys . keys } ) ; if ( verified !== SIGNED_AND_VALID ) { throw new Error ( ) ; } } catch ( e ) { return Promise . reject ( { error_description : 'Unable to verify server identity' } ) ; } }
Verify the modulus signature with the SRP public key
 @param {Object} modulusParsed
 @return {Promise}
Verify the modulus signature with the SRP public key @param { Object } modulusParsed @return { Promise }