Design of a sharded blockchain