code: def verify(self, data):
          r
          digest = _do_digest(data, self.func)
          return digest[:len(self.digest)] == self.digest
docs: r"""Does the given `data` hash to the digest in this `Multihash`?
  
          >>> import hashlib
          >>> data = b'foo'
          >>> hash = hashlib.sha1(data)
          >>> mh = Multihash.from_hash(hash)
          >>> mh.verify(data)
          True
          >>> mh.verify(b'foobar')
          False
  
          Application-specific hash functions are also supported (see
          `FuncReg`).