code: def get_names_owned_by_sender( self, sender_pubkey, lastblock=None ):
          
          cur = self.db.cursor()
          if lastblock is None:
              lastblock = self.lastblock 
  
          names = namedb_get_names_by_sender( cur, sender_pubkey, lastblock )
          return names
docs: Get the set of names owned by a particular script-pubkey.