code: def hashprefs(self):
          
          if 'PreferredHashAlgorithms' in self._signature.subpackets:
              return next(iter(self._signature.subpackets['h_PreferredHashAlgorithms'])).flags
          return []
docs: A ``list`` of preferred hash algorithms specified in this signature, if any. Otherwise, an empty ``list``.