A libP2P Implementation of the Bitcoin Block Exchange Protocol

Barbara Guidi, Andrea Michienzi, L. Ricci
{"title":"A libP2P Implementation of the Bitcoin Block Exchange Protocol","authors":"Barbara Guidi, Andrea Michienzi, L. Ricci","doi":"10.1145/3493426.3493822","DOIUrl":null,"url":null,"abstract":"The progressive decentralization of web services brought a need for new instruments to support the development of P2P protocols and applications. The only tools available are network or event simulators, which help the development in artificial or extremely controlled environments. They usually provide low-level support with completely unstructured networks. LibP2P is a library that tries to solve all such problems, letting the users easily deploy nodes on the Internet. It also comes with a set of functionalities, to solve the most important problems of P2P networks, such as NAT traversal, peer and content discovery and routing, and much more. In this paper, we employ LibP2P to implement min-bitcoin, a minimal version of the protocol used by the Bitcoin network to exchange the blocks. We evaluate our implementation to assess the applicability of LibP2P in a real-life blockchain scenario. The evaluation uncovers that setting up communication channels is time-consuming, but data transfers are fast. Additionally, LibP2P efficiently manages cases in which nodes are behind a NAT, under VPN, or in geographically distant places.","PeriodicalId":166891,"journal":{"name":"Proceedings of the 2nd International Workshop on Distributed Infrastructure for Common Good","volume":"9 1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-12-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"4","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 2nd International Workshop on Distributed Infrastructure for Common Good","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3493426.3493822","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 4

Abstract

The progressive decentralization of web services brought a need for new instruments to support the development of P2P protocols and applications. The only tools available are network or event simulators, which help the development in artificial or extremely controlled environments. They usually provide low-level support with completely unstructured networks. LibP2P is a library that tries to solve all such problems, letting the users easily deploy nodes on the Internet. It also comes with a set of functionalities, to solve the most important problems of P2P networks, such as NAT traversal, peer and content discovery and routing, and much more. In this paper, we employ LibP2P to implement min-bitcoin, a minimal version of the protocol used by the Bitcoin network to exchange the blocks. We evaluate our implementation to assess the applicability of LibP2P in a real-life blockchain scenario. The evaluation uncovers that setting up communication channels is time-consuming, but data transfers are fast. Additionally, LibP2P efficiently manages cases in which nodes are behind a NAT, under VPN, or in geographically distant places.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
比特币块交换协议的libP2P实现
web服务的逐步去中心化带来了对支持P2P协议和应用程序开发的新工具的需求。唯一可用的工具是网络或事件模拟器,它们有助于在人工或极端受控的环境中进行开发。它们通常通过完全非结构化的网络提供低级支持。LibP2P是一个试图解决所有这些问题的库,使用户可以轻松地在Internet上部署节点。它还提供了一组功能,以解决P2P网络中最重要的问题,如NAT遍历、对等点和内容发现以及路由等等。在本文中,我们使用LibP2P来实现最小比特币,这是比特币网络用于交换区块的协议的最小版本。我们评估了我们的实现,以评估LibP2P在现实生活中的区块链场景中的适用性。评估发现,建立通信通道耗时长,但数据传输速度快。此外,LibP2P可以有效地管理节点位于NAT后面、VPN下或地理位置较远的情况。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Decentralized Collaborative Version Control A libP2P Implementation of the Bitcoin Block Exchange Protocol UniCon
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1