Public, Private, and Permissioned Blockchains Compared