Walrus 백서

Walrus

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 6쪽 중 6쪽

tors of the system, for a limited time period of about month. Walrus instead offers proofs of availability with arbitrarily long retention periods and a reduced cost of storage per node which allows the system to scale inpexpensively. 9 Conclusion We introduce W alrus, a novel approach to decentralized blob stor- age that leverages fast erasure codes and a modern blockchain technology. By utilizing the Red Stuff encoding algorithm and the Sui blockchain, W alrusachieves high resilience and low storage overhead while ensuring efficient data management and scalabil- ity. Our system operates in epochs, with all operations sharded by𝑏𝑙𝑜𝑏𝑖𝑑 , enabling it to handle large volumes of data effectively. The innovative two-dimensional BFT encoding protocol of Red Stuff allows for efficient data recovery, load balancing, and dy- namic availability of storage nodes, addressing key challenges faced by existing decentralized storage systems. Furthermore, W alrusintroduces storage proofs that ensure data availability without relying on network synchrony assumptions, and its committee reconfiguration protocol guarantees uninter- rupted data availability during network evolution. By combining these features, W alrusoffers a scalable, and resilient decentral- ized storage, providing high authenticity, integrity, auditability, and availability at a reasonable cost. Our contributions include defining the problem of Asynchronous Complete Data-Sharing, presenting the Red Stuff protocol, and proposing an asynchronous challenge protocol for efficient storage proofs, paving the way for future advancements in decentralized storage technologies. References [1] Mustafa Al-Bassam. 2019. Lazyledger: A distributed data availability ledger with client-side smart contracts. arXiv preprint arXiv:1905.09274 (2019). [2] Mustafa Al-Bassam, Alberto Sonnino, Vitalik Buterin, and Ismail Khoffi. 2021. Fraud and data availability proofs: Detecting invalid blocks in light clients. In Financial Cryptography and Data Security: 25th International Conference, FC 2021, Virtual Event, March 1–5, 2021, Revised Selected Papers, Part II 25 . Springer, 279–298. [3] Ross Anderson. 1996. The Eternity Service. In Proceedings of Pragocrypt ’96 . [4] Pablo Aragón, Andreas Kaltenbrunner, Antonio Calleja-López, Andrés Pereira, Arnau Monterde, Xabier E Barandiaran, and Vicenç Gómez. 2017. Deliberative platform design: The case study of the online discussions in Decidim Barcelona. In Social Informatics: 9th International Conference, SocInfo 2017, Oxford, UK, Sep- tember 13-15, 2017, Proceedings, Part II 9 . Springer, 277–287. [5] Juan Benet. 2014. Ipfs-content addressed, versioned, p2p file system. arXiv preprint arXiv:1407.3561 (2014). [6] Nazanin Zahed Benisi, Mehdi Aminian, and Bahman Javadi. 2020. Blockchain- based decentralized storage networks: A survey.Journal of Network and Computer Applications 162 (2020), 102656. [7] Sam Blackshear, Evan Cheng, David L Dill, Victor Gao, Ben Maurer, Todd Nowacki, Alistair Pott, Shaz Qadeer, Dario Russi Rain, Stephane Sezer, et al . 2019. Move: A language with programmable resources. Libra Assoc (2019), 1. [8] Sam Blackshear, Andrey Chursin, George Danezis, Anastasios Kichidis, Lefteris Kokoris-Kogias, Xun Li, Mark Logan, Ashok Menon, Todd Nowacki, Alberto Sonnino, et al. 2023. Sui lutris: A blockchain combining broadcast and consensus. arXiv preprint arXiv:2310.18042 (2023). [9] Bengt Carlsson and Rune Gustavsson. 2001. The rise and fall of napster-an evolutionary approach. In International Computer Science Conference on Active Media Technology. Springer, 347–354. [10] Dario Catalano and Dario Fiore. 2013. Vector commitments and their applications. In Public-Key Cryptography–PKC 2013: 16th International Conference on Practice and Theory in Public-Key Cryptography, Nara, Japan, February 26–March 1, 2013. Proceedings 16. Springer, 55–72. [11] Ian Clarke, Oskar Sandberg, Brandon Wiley, and Theodore W Hong. 2001. Freenet: A distributed anonymous information storage and retrieval system. In Designing privacy enhancing technologies: international workshop on design issues in anonymity and unobservability Berkeley, CA, USA, July 25–26, 2000 Proceedings. Springer, 46–66. [12] Bram Cohen. 2003. Incentives build robustness in BitTorrent. In Workshop on Economics of Peer-to-Peer systems , Vol. 6. Berkeley, CA, USA, 68–72. [13] Sourav Das, Zhuolun Xiang, Lefteris Kokoris-Kogias, and Ling Ren. 2023. Prac- tical asynchronous high-threshold distributed key generation and distributed polynomial sampling. In 32nd USENIX Security Symposium (USENIX Security 23) . 5359–5376. [14] Sourav Das, Thomas Yurek, Zhuolun Xiang, Andrew Miller, Lefteris Kokoris- Kogias, and Ling Ren. 2022. Practical asynchronous distributed key generation. In 2022 IEEE Symposium on Security and Privacy (SP) . IEEE, 2518–2534. [15] Roger Dingledine, Michael J Freedman, and David Molnar. 2001. The free haven project: Distributed anonymous storage service. In Designing Privacy Enhancing Technologies: International Workshop on Design Issues in Anonymity and Unob- servability Berkeley, CA, USA, July 25–26, 2000 Proceedings . Springer, 67–95. [16] John R Douceur. 2002. The sybil attack. In International workshop on peer-to-peer systems. Springer, 251–260. [17] Kobi Gurkan, Philipp Jovanovic, Mary Maller, Sarah Meiklejohn, Gilad Stern, and Alin Tomescu. 2021. Aggregatable distributed key generation. In Annual Inter- national Conference on the Theory and Applications of Cryptographic Techniques . Springer, 147–176. [18] Martin Kleppmann, Paul Frazee, Jake Gold, Jay Graber, Daniel Holmgren, Devin Ivy, Jeromy Johnson, Bryan Newbold, and Jaz Volpert. 2024. Bluesky and the AT protocol: Usable decentralized social media. arXiv preprint arXiv:2402.03239 (2024). [19] Eleftherios Kokoris Kogias, Enis Ceyhun Alp, Linus Gasser, Philipp Svetolik Jovanovic, Ewa Syta, and Bryan Alexander Ford. 2021. Calypso: Private data management for decentralized ledgers. Proceedings of the VLDB Endowment 14, 4 (2021), 586–599. [20] Eleftherios Kokoris Kogias, Dahlia Malkhi, and Alexander Spiegelman. 2020. Asynchronous Distributed Key Generation for Computationally-Secure Ran- domness, Consensus, and Threshold Signatures.. In Proceedings of the 2020 ACM SIGSAC Conference on Computer and Communications Security . 1751–1767. [21] Mysten Labs. 2025. Fastcrypto. =https://github.com/MystenLabs/fastcrypto. [22] Chris Lamb and Stefano Zacchiroli. 2021. Reproducible builds: Increasing the integrity of software supply chains. IEEE Software 39, 2 (2021), 62–70. [23] Chuanlei Li, Minghui Xu, Jiahao Zhang, Hechuan Guo, and Xiuzhen Cheng. 2024. SoK: Decentralized Storage Network. Cryptology ePrint Archive (2024). [24] malair. 2025. Reed-Solomon SIMD. =https://github.com/AndersTrier/reed- solomon-simd. [25] Ninoslav Marina, Aneta Velkoska, Natasha Paunkoska, and Ljupcho Baleski. 2015. Security in twin-code framework. In 2015 7th International Congress on Ultra Modern Telecommunications and Control Systems and Workshops (ICUMT) . IEEE, 247–252. [26] Petar Maymounkov and David Mazieres. 2002. Kademlia: A peer-to-peer infor- mation system based on the xor metric. In International workshop on peer-to-peer 17 The MystenLabs Team systems. Springer, 53–65. [27] Ralph C Merkle. 1987. A digital signature based on a conventional encryption function. In Conference on the theory and application of cryptographic techniques . Springer, 369–378. [28] Metar. 2025. Rocksdb. =https://rocksdb.org. [29] Kirill Nikitin, Eleftherios Kokoris-Kogias, Philipp Jovanovic, Nicolas Gailly, Linus Gasser, Ismail Khoffi, Justin Cappos, and Bryan Ford. 2017. {CHAINIAC}: Proactive{Software-Update} transparency via collectively signed skipchains and verified builds. In 26th USENIX Security Symposium (USENIX Security 17) . 1271–1287. [30] Yiannis Psaras and David Dias. 2020. The interplanetary file system and the filecoin network. In 2020 50th Annual IEEE-IFIP International Conference on De- pendable Systems and Networks-Supplemental Volume (DSN-S) . IEEE, 80–80. [31] KV Rashmi, Nihar B Shah, and P Vijay Kumar. 2011. Enabling node repair in any erasure code for distributed storage. In 2011 IEEE international symposium on information theory proceedings . IEEE, 1235–1239. [32] Irving S Reed and Gustave Solomon. 1960. Polynomial codes over certain finite fields. Journal of the society for industrial and applied mathematics 8, 2 (1960), 300–304. [33] Matei Ripeanu. 2001. Peer-to-peer architecture case study: Gnutella network. In Proceedings first international conference on peer-to-peer computing. IEEE, 99–100. [34] Antony Rowstron and Peter Druschel. 2001. Pastry: Scalable, decentralized object location, and routing for large-scale peer-to-peer systems. In Middleware 2001: IFIP/ACM International Conference on Distributed Systems Platforms Heidelberg, Germany, November 12–16, 2001 Proceedings 2 . Springer, 329–350. [35] The Tokio rs team. 2025. Axum. =https://github.com/tokio-rs/axum. [36] Paul A. Samuelson. 1954. The Pure Theory of Public Expenditure. The Review of Economics and Statistics 36, 4 (1954), 387–389. http://www.jstor.org/stable/19258 95 [37] Fred B Schneider. 1990. Implementing fault-tolerant services using the state machine approach: A tutorial. ACM Computing Surveys (CSUR) 22, 4 (1990), 299–319. [38] Ion Stoica, Robert Morris, David Liben-Nowell, David R Karger, M Frans Kaashoek, Frank Dabek, and Hari Balakrishnan. 2003. Chord: a scalable peer- to-peer lookup protocol for internet applications. IEEE/ACM Transactions on networking 11, 1 (2003), 17–32. [39] I Storj Labs. 2018. Storj: A decentralized cloud storage network framework. [40] Ewa Syta, Philipp Jovanovic, Eleftherios Kokoris Kogias, Nicolas Gailly, Linus Gasser, Ismail Khoffi, Michael J Fischer, and Bryan Ford. 2017. Scalable bias- resistant distributed randomness. In2017 IEEE Symposium on Security and Privacy (SP). Ieee, 444–460. [41] The Sui team. 2025. Build Beyond. =https://sui.io. [42] Juan Pablo Timpanaro, Thibault Cholez, Isabelle Chrisment, and Olivier Festor. 2011. Bittorrent’s mainline dht security assessment. In 2011 4th IFIP International Conference on New Technologies, Mobility and Security . IEEE, 1–5. [43] David Vorick and Luke Champine. 2014. Sia: Simple decentralized storage. Retrieved May 8 (2014), 2018. [44] Dan S Wallach. 2002. A survey of peer-to-peer security issues. In International symposium on software security . Springer, 42–57. [45] Karl Werder, Balasubramaniam Ramesh, and Rongen Zhang. 2022. Establishing data provenance for responsible artificial intelligence systems.ACM Transactions on Management Information Systems (TMIS) 13, 2 (2022), 1–23. [46] Sam Williams, Viktor Diordiiev, Lev Berman, and Ivan Uemlianin. 2019. Arweave: A protocol for economically sustainable information permanence.Arweave Yellow Paper (2019). [47] Ennan Zhai, Ruichuan Chen, David Isaac Wolinsky, and Bryan Ford. 2014. Heading Off Correlated Failures through{Independence-as-a-Service}. In 11th USENIX Symposium on Operating Systems Design and Implementation (OSDI 14) . 317–334. A Detailed Algorithms This section supplements Section 4 by providing detailed algo- rithms for clients (Algorithm 1) and storage nodes operations (Al- gorithm 3). In additional to the helper functions specified in Algorithm 2, these algorithms also leverages the following (intuitive) functions: ByteSize(𝐵) to compute the size of a blob𝐵 in bytes;MerkleTree(𝑣) to compute a merkle tree over a vector input𝑣; Hash(·) to compute a cryptographic hash;ErasureEncode(𝐵), ErasureReconstruct(·), and ErasureDecode(·), to respective erasure encode a blob𝐵, re- construct a blocb from enough erasure coded parts, and erasure decode a blob as described in Section 3.3; HandledShards(𝑛) to 𝐸(𝑖,𝑗) Symbol at position(𝑖,𝑗) of an encoded blob 𝑆𝑝 The set of primary slivers 𝑆𝑠 The set of secondary slivers 𝑆(𝑝,𝑛) The primary sliver held by storage node𝑛 𝑆(𝑠,𝑛) The secondary sliver held by storage node𝑛 {𝑆(𝑝,∗)}𝑓+1 Any set of𝑓+ 1 primary slivers 𝑀𝑝 Metadata associated with the primary slivers 𝑀𝑠 Metadata associated with the secondary slivers 𝐷𝑛 The set of shards handled by node𝑛 Table 2: Main notations get the shards handled by a node 𝑛; and SplitIntoMatrix(·) to reshape a matrix into the specified size. Furthermore, the client and storage nodes use the following func- tions to interact with the blockchain: ReserveBlob(·) to reserve a blob id on the blockchain; StoreCertificate(·) to store a proof of storage on the blockchain; IsRegistered(𝑖𝑑) to check if a blob id𝑖𝑑 is registered on the blockchain; and ReadCertificate(𝑖𝑑) to read a proof of storage of blob id𝑖𝑑 from the blockchain. Table 2 summarizes the main notations used in the algorithms. Subscripts of matrices and vectors denote access to a specific index. Algorithm 1 W alrusclient operations 1: nodes ⊲ the committee of storage nodes 2: shards ⊲ see Section 4 // Store a blob on the network 3: procedure StoreBlob(𝐵,𝑒𝑥𝑝𝑖𝑟𝑦 ) 4: // Step 1: Pay and register the blob id on the blockchain 5: (𝑆𝑝,𝑆 𝑠)← EncodeBlob(𝐵) 6: 𝑀← MakeMetadata(𝑆𝑝,𝑆 𝑠) 7: 𝑖𝑑← MakeBlobId(𝑀) 8: 𝑠𝑖𝑧𝑒← ByteSize(𝐵) ⊲ size in bytes 9: ReserveBlob(𝑖𝑑,𝑠𝑖𝑧𝑒,𝑒𝑥𝑝𝑖𝑟𝑦 ) ⊲ on blockchain 10: 11: // Step 2: Send the encoded slivers to the storage nodes 12: 𝑅←{} ⊲ storage requests to send to nodes 13: for𝑛∈ nodes do 14: 𝐷𝑛← HandledShards(𝑛) ⊲ shards handed by node𝑛 15: 𝑆(𝑝,𝑛)←[ 𝑆𝑝𝑖 :𝑖∈𝐷𝑛] 16: 𝑆(𝑠,𝑛)←[ 𝑆𝑠𝑖 :𝑖∈𝐷𝑛] 17: StoreRqst←( 𝑖𝑑,𝑀,𝑆 (𝑝,𝑛),𝑆(𝑠,𝑛)) 18: 𝑅←𝑅∪{( 𝑛, StoreRqst)} 19: await2𝑓+1 : {𝑐← Send(𝑛,𝑟) :(𝑛,𝑟)∈ 𝑅} ⊲ wait for 2𝑓+ 1 confirmations 20: 21: // Step 3: Record the proof of storage on the blockchain 22: StoreCertificate({𝑐},𝑖𝑑) ⊲ on blockchain // Read metadata from the network 23: procedure RetrieveMetadata(𝑖𝑑) 24: MetadataRqst←( 𝑖𝑑) 25: 𝐷←${0, shards}𝑛 ⊲ request all shards 26: 𝑁←{ 𝑛∈ nodes s.t.∃𝑠∈𝐷∩ HandledShards(𝑛)} 27: await2𝑓+1 : {𝑀← Send(𝑛, MetadataRqst) :𝑛∈ 𝑁} ⊲ wait for 2𝑓+ 1 responses 28: if∃𝑀∈{ 𝑀} s.t. MakeBlobId(𝑀) =𝑖𝑑 then return𝑀 29: return⊥ // Read a blob from the network 30: procedure ReadBlob(𝑖𝑑) 31: 𝑀← RetrieveMetadata(𝑖𝑑) 32: SliversRqst←( 𝑖𝑑) 33: await2𝑓+1 : {𝑆𝑠,𝑛) ← Send(𝑛, SliversRqsts) s.t.𝑛 ∈ nodes : VerifySliver(𝑆(𝑠,𝑛),𝑀)} 34: 𝐵← DecodeBlob({𝑆(𝑠,∗)}2𝑓+1,𝑀) 35: return𝐵 18 W alrus: An Efficient Decentralized Storage Network Algorithm 2 Helper functions 1: nodes ⊲ the committee of storage nodes 2: shards ⊲ see Section 4 3: procedure EncodeBlob(𝐵) 4: 𝐸← ErasureEncode(𝐵) ⊲ expand size:[(𝑓+ 1)×( 2𝑓+ 1)]→[ shards× shards] 5: 𝑆𝑝←[ 𝐸(𝑖,∗) :𝑖∈[ 0, shards]] ⊲ encoded primary slivers:[shards× 1] 6: 𝑆𝑠←[ 𝐸(∗,𝑖) :𝑖∈[ 0, shards]]⊤ ⊲ encoded secondary slivers: [1× shards] 7: return(𝑆𝑝,𝑆 𝑠) 8: procedure MakeMetadata(𝑆𝑝,𝑆 𝑠 ) 9: 𝑀𝑝←[ Hash(𝑠) :𝑠∈𝑆𝑝] ⊲ length: 2𝑓+ 1 10: 𝑀𝑠←[ Hash(𝑠) :𝑠∈𝑆𝑠] ⊲ length:𝑓+ 1 11: 𝑀←( 𝑀𝑝,𝑀 𝑠) 12: return𝑀 13: procedure MakeBlobId(𝑀) 14: (𝑀𝑝,𝑀 𝑠)← 𝑀 15: 𝑖𝑑←( MerkleTree(𝑀𝑝), MerkleTree(𝑀𝑠)) 16: return𝑖𝑑 17: procedure VerifySliver(𝑆(∗,𝑛),𝑀 ) 18: (𝑀𝑝,𝑀 𝑠)← 𝑀 19: return(Hash(𝑠) =𝑀𝑝𝑛 :∀𝑠∈𝑆(𝑝,𝑛))∨( Hash(𝑠) =𝑀𝑠𝑛 :∀𝑠∈𝑆(𝑠,𝑛)) 20: procedure DecodeBlob({𝑆(𝑝,∗)}𝑓+1,𝑀 ) 21: 𝑆𝑝← ErasureReconstruct({𝑆(𝑝,∗)}𝑓+1) ⊲ reconstruct encoded slivers 22: 𝐸← SplitIntoMatrix(𝑆𝑝) ⊲ size: shard× shard 23: 𝑆𝑠←[ 𝐸(∗,𝑖) :𝑖∈[ 0, shards]]⊤ 24: 𝑀′← MakeMetadata(𝑆𝑝,𝑆 𝑠) 25: if𝑀 ≠𝑀′ then return⊥ ⊲ verify encoding correctness, see Section 4.2 26: 𝐵← ErasureDecode(𝐸) ⊲ matrix:(𝑓+ 1)×( 2𝑓+ 1) 27: return𝐵 Algorithm 3 W alrusstore operations 1: n ⊲ the identifier of the storage node 2: nodes ⊲ the committee of storage nodes 3: shards ⊲ see Section 4 4: db𝑚 ⊲ perists the metadata 5: db𝑏 ⊲ perists the slivers // Store slivers 6: procedure StoreSlivers(StoreRqst) 7: (𝑖𝑑,𝑀,𝑆 (𝑝,𝑛),𝑆(𝑠,𝑛))← StoreRqst 8: 9: // Check 1: Ensure the node is responsible for the shards 10: 𝐷𝑛← HandledShards(n) 11: if∃𝑠𝑖∈𝑆𝑝∪𝑆𝑠 s.t.𝑖 ∉𝐷𝑛 then return⊥ 12: 13: // Check 2: Verify the blob id is registered on chain 14: if¬IsRegistered(𝑖𝑑) then return⊥ ⊲ read blockchain 15: 16: // Check 3: Verify the metadata is correctly formed 17: if¬VerifySliver(𝑆(𝑝,𝑛),𝑀) then return⊥ 18: if¬VerifySliver(𝑆(𝑠,𝑛),𝑀) then return⊥ 19: 𝑖𝑑′← MakeBlobId(𝑀) 20: if𝑖𝑑 ≠𝑖𝑑′ then return⊥ 21: 22: db𝑚[𝑖𝑑]← 𝑀 ⊲ persist the metadata 23: db𝑏[𝑖𝑑]←( 𝑆(𝑝,𝑛),𝑆(𝑠,𝑛)) ⊲ persist the slivers 24: Send(𝑎𝑐𝑘) ⊲ reply with an acknowledgment // Server metadata 25: procedure ServeMetadata(MetadataRqst) 26: 𝑖𝑑← MetadataRqst 27: return db𝑚[𝑖𝑑] ⊲ return the metadata or⊥ if not found 28: Reply(𝑎𝑐𝑘) // Server slivers 29: procedure ServeSlivers(SliversRqst) 30: 𝑖𝑑← SliversRqst 31: if¬ReadCertificate(𝑖𝑑) then return⊥ ⊲ proof of storage on the blockchain 32: (𝑆(𝑝,𝑛),𝑆(𝑠,𝑛))← db𝑏[𝑖𝑑] ⊲ return the slivers or⊥ if not found 33: Reply(𝑆(𝑠,𝑛)) // Recover slivers 34: procedure RecoverSlivers(𝑖𝑑) 35: 𝑐← Client(nodes, shards) ⊲ build a W alrusclient (Algorithm 1) 36: 𝐵←𝑐. ReadBlob(𝑖𝑑) 37: 𝐷n← HandledShards(n) ⊲ shards handed by node𝑛 38: 𝑆(𝑝,n)←[ 𝑆𝑝𝑖 :𝑖∈𝐷n] 39: 𝑆(𝑠,n)←[ 𝑆𝑠𝑖 :𝑖∈𝐷n] 40: db𝑚[𝑖𝑑]← 𝑀 ⊲ persist the metadata 41: db𝑏[𝑖𝑑]←( 𝑆(𝑝,n),𝑆(𝑠,n)) ⊲ persist the slivers 19
프로젝트로 돌아가기