code: def pubkey(self, identity, ecdh=False):
          
          with self.device:
              pubkey = self.device.pubkey(ecdh=ecdh, identity=identity)
          return formats.decompress_pubkey(
              pubkey=pubkey, curve_name=identity.curve_name)
docs: Return public key as VerifyingKey object.