A theory of transaction parallelism in blockchains (Logical Methods in Computer Science, 2021)