Bootstrapping Trust in Distributed Systems with Blockchains