A Dual-functional Blockchain Framework for Solving Distributed Optimization | Synapse