Structure of blockchains