def getData(self, username, signature, key): """ Get a block of data from user Requires signature of key Returns data if success, False otherwise """ if not checkSignature(username, signature, key): return False return Isis.getKey("data/%s/%s" % (username, key))
def poll(self, username): """ Get file list of user Returns filelist (encrypted) if success, False otherwise """ return Isis.getKey("files/%s" % username)
def getKey(self, username): """ Get the (encrypted) private key of the user Returns privatekey """ return Isis.getKey("keys/%s" % username)