Academic Research

In our research we have found the same concurrency problems in the context of high-performance computing and blockchain networks.

Concurrency ProblemHigh-Performance Concurrent Programming SolutionEthereum Blockchain Solution
Data organizationConcurrent data structures (hashmap, vector, skiplist)Blockchain, comprising blocks of transactions
Consensus problemAtomic variables combined with semantics defined by memory model (relaxed, sequentially consistent)Proof-of-stake, active validators stake 32 ETH and are pseudo-randomly selected as block proposer for a slot
Race conditionsMutexes, semaphores, compare-and-swapA single beacon block is proposed per slot, and the beacon block is executed sequentially
CorrectnessCorrectness conditions (linearizability, sequential consistency)Beacon block re-executed by validators assigned to attest to the beacon block
Unresponsive threadsLock-free, wait-free progress algorithmic guaranteeRequirement of 2/3 attestation for proposed block, penalty when validator misses attestation
Malicious threadsConcurrency bug finding toolsRequirement of 32 staked ETH, slashing
Resource allocationI/O, CPU resources, cache lines, databaseCommunication overhead, gas fees, blockspace

Zachary Painter and Damian Dechev, Lock-Free Concurrent Smart Contracts, In Proceedings of the 6th IEEE International Conference on Blockchain and Cryptocurrency (ICBC 2024), Dublin, Ireland, May 27-31, 2024.

Victor Cook, Christina Peterson, Zachary Painter, Damian Dechev, Quantifiability: a concurrent correctness condition modeled in vector space, Computing 105: 955–978, 2023. Funding: NSF grants OAC 1740095 and CCF 1717515. Read Paper

Victor Cook, Christina Peterson, Zachary Painter, and Damian Dechev, Design and Implementation of Highly Scalable Quantifiable Data Structures, In Proceedings of the 16th International Conference on Parallel Computing Technologies (PaCT 2021), Kaliningrad, Russia, September 13-18, 2021. Read Paper

Zachary Painter, Victor Cook, Christina Peterson, and Damian Dechev, Descriptor Based Consensus for Blockchain Transactions, In Proceedings of the 15th ACM International Conference On Distributed And Event-Based Systems (DEBS 2021), Online, June 28 – July 2, 2021. Read Paper