code: def verify(self, data, signature):
          
          try:
              return self.verifying_key.verify(signature, data)
          except ed25519.BadSignatureError:
              raise BadSignatureError("Signature verification failed.")
docs: Verify the signature of a sequence of bytes.
  
          Verify the signature of a sequence of bytes using the verifying
          (public) key and the data that was originally signed, otherwise throws
          an exception.
  
          :param bytes data: A sequence of bytes that were previously signed by
              the private key associated with this verifying key.
          :param bytes signature: A sequence of bytes that comprised the
              signature for the corresponding data.