An implementation of Secure Aggregation algorithm based on "Practical Secure Aggregation for Privacy-Preserving Machine Learning (Bonawitz et. al)" in Python.
Dependencies: Flask, socketio and socketIO_client
pip install Flask
pip install socketio
pip install socketIO-client
c = secaggclient(host,port)
c.set_weights(nd_numpyarray,dimensions_of_array)
c.configure(common_base, common_mod)
c.start()
s = secaggserver(host,port,n,k)
where n is number of selected clients for the round and k is number of client responses required before aggregation process begins
s.start()