code: def public_key(self, s):
          
          s = parseable_str(s)
          for f in [self.public_pair, self.sec]:
              v = f(s)
              if v:
                  return v
docs: Parse text as either a public pair or an sec.
          Return a subclass of :class:`Key <pycoin.key.Key>`, or None.