

def Verify(self, env):
    "Verifies magic envelope data.\n\n    Checks that its signature matches the contents and that the\n    author's public key generated the signature.\n\n    Args:\n      env: The magic envelope data in dict form (section 3.1 of spec)\n    Returns:\n      True iff the signature is verified.\n    "
    assert (env['alg'] == 'RSA-SHA256')
    assert (env['encoding'] == self.ENCODING)
    text = base64.urlsafe_b64decode(env['data'].encode('utf-8'))
    signer_uri = self.GetSignerURI(text)
    verifier = magicsigalg.SignatureAlgRsaSha256(self.GetKeypair(text))
    return verifier.Verify(env['data'], env['sig'])

dataset/ETHPy150Open mimecuvalo/helloworld/packages/magicsig/__init__.py MagicEnvelopeProtocol.Verify/VarMisuse@72/213 `signer_uri`->`text`