Skip to main content

The Locality of Memory Checking

Publication ,  Conference
Wang, W; Lu, Y; Papamanthou, C; Zhang, F
Published in: CCS 2023 - Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security
November 15, 2023

Motivated by the extended deployment of authenticated data structures (e.g., Merkle Patricia Tries) for verifying massive amounts of data in blockchain systems, we begin a systematic study of the I/O efficiency of such systems. We first explore the fundamental limitations of memory checking, a previously-proposed abstraction for verifiable storage, in terms of its locality-a complexity measure that we introduce for the first time and is defined as the number of non-contiguous memory regions a checker must query to verifiably answer a read or a write query. Our central result is an Ω(log n/log log n) lower bound for the locality of any memory checker. Then we turn our attention to (dense and sparse) Merkle trees, one of the most celebrated memory checkers, and provide stronger lower bounds for their locality. For example, we show that any dense Merkle tree layout will have average locality at least 1/3 log n. Furthermore, if we allow node duplication, we show that if any write operation has at most polylog complexity, then the read locality cannot be less than log n/log log n. Our lower bounds help us construct two new locality-optimized authenticated data structures (DupTree and PrefixTree) which we implement and evaluate on random operations and real workloads, and which are shown to outperform traditional Merkle trees, especially as the number of leaves increases.

Duke Scholars

Published In

CCS 2023 - Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security

DOI

Publication Date

November 15, 2023

Start / End Page

1820 / 1834
 

Citation

APA
Chicago
ICMJE
MLA
NLM
Wang, W., Lu, Y., Papamanthou, C., & Zhang, F. (2023). The Locality of Memory Checking. In CCS 2023 - Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security (pp. 1820–1834). https://doi.org/10.1145/3576915.3623195
Wang, W., Y. Lu, C. Papamanthou, and F. Zhang. “The Locality of Memory Checking.” In CCS 2023 - Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security, 1820–34, 2023. https://doi.org/10.1145/3576915.3623195.
Wang W, Lu Y, Papamanthou C, Zhang F. The Locality of Memory Checking. In: CCS 2023 - Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security. 2023. p. 1820–34.
Wang, W., et al. “The Locality of Memory Checking.” CCS 2023 - Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security, 2023, pp. 1820–34. Scopus, doi:10.1145/3576915.3623195.
Wang W, Lu Y, Papamanthou C, Zhang F. The Locality of Memory Checking. CCS 2023 - Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security. 2023. p. 1820–1834.

Published In

CCS 2023 - Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security

DOI

Publication Date

November 15, 2023

Start / End Page

1820 / 1834