Science of decentralized security