move Signing into server (server/main.cpp)