import securexgboost as xgb import os HOME_DIR = os.path.dirname(os.path.realpath(__file__)) + "/../../../../" with open("../hosts.config") as f: nodes = f.readlines() nodes = [x.strip().split(":")[0] for x in nodes] print("Waiting for client...") xgb.serve(all_users=["user1", "user2"], nodes=nodes, port=50052)
import securexgboost as xgb import os HOME_DIR = os.path.dirname(os.path.realpath(__file__)) + "/../../../../" enclave = xgb.Enclave(HOME_DIR + "build/enclave/xgboost_enclave.signed", log_verbosity=0) print("Waiting for clients...") xgb.serve(enclave, all_users=["user1", "user2"])
import securexgboost as xgb import os HOME_DIR = os.path.dirname(os.path.realpath(__file__)) + "/../../../../" xgb.init_server(enclave_image=HOME_DIR + "build/enclave/xgboost_enclave.signed", client_list=["user1"], log_verbosity=0) print("Waiting for clients...") xgb.serve(all_users=["user1"], port=50051)
import securexgboost as xgb # Start orchestrator xgb.serve(all_users=["user1"], nodes=["127.0.0.1"], port=50052)