Scaling, Decentralization, Security of Distributed Ledgers