def verify(self, envelope):
        
        sigInfo = self._getSignatureInfo(envelope)
        
        if sigInfo != None:

            verified = self.gpg.verify(sigInfo["signature"])
            if verified.valid == True:
                verifiedHash = self._extractHashFromSignature(sigInfo["signature"])
                
                if self.get_message(envelope) == verifiedHash:
                    return True
                else:
                    return False
            elif verified.valid == False and verified.status == 'no public key':
                raise MissingPublicKey(message=verified.data, keyid=verified.key_id)
            else:
                return False
        return None
Verify integrity of the provided envelope.
dataset/ETHPy150Open jimklo/LRSignature/src/LRSignature/verify/Verify.py/Verify_0_21.verify