区块链创建的线程编程

Sabam Parjuangan, Suhardi, I. B. Nugraha
{"title":"区块链创建的线程编程","authors":"Sabam Parjuangan, Suhardi, I. B. Nugraha","doi":"10.1109/ICITSI56531.2022.9971125","DOIUrl":null,"url":null,"abstract":"The process of finding a block hash is a complex problem. One of the problems is making the hash from a generator algorithm that uses the existing string and the transaction data in the block. So far, the idea that has been used is to make it one step at a time using high-powered machines (supercomputing). Developing blockchain applications is hard because supercomputing is expensive. To solve this problem, developers need to use a different method, called parallel programming. This article talks about a parallel way to make block hashes, which are used to make new blocks. We use the SHA256 algorithm to process the hash. When creating a unique character string to be used as a block hash from a set of characters, thread division is done as part of the algorithmic skeleton process. Our experiments show that using threads to split work in parallel has speeded up the build process by 1.56 seconds compared to when blocks are hashed sequentially. In addition, it was also found that the threads that contributed the most to increasing speedup were 3 threads with an average processing time of 111,638 seconds. On average, the parallel hash generation process takes 707,853 seconds, while the sequential one takes 1756,56 seconds. We conclude the solution to building blockchain using the thread programming method with the number of threads is 3 for the computer specifications used to be the same or smaller than the computer specifications we use.","PeriodicalId":439918,"journal":{"name":"2022 International Conference on Information Technology Systems and Innovation (ICITSI)","volume":"80 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-11-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Thread Programming for Blockchain Creation\",\"authors\":\"Sabam Parjuangan, Suhardi, I. B. Nugraha\",\"doi\":\"10.1109/ICITSI56531.2022.9971125\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"The process of finding a block hash is a complex problem. One of the problems is making the hash from a generator algorithm that uses the existing string and the transaction data in the block. So far, the idea that has been used is to make it one step at a time using high-powered machines (supercomputing). Developing blockchain applications is hard because supercomputing is expensive. To solve this problem, developers need to use a different method, called parallel programming. This article talks about a parallel way to make block hashes, which are used to make new blocks. We use the SHA256 algorithm to process the hash. When creating a unique character string to be used as a block hash from a set of characters, thread division is done as part of the algorithmic skeleton process. Our experiments show that using threads to split work in parallel has speeded up the build process by 1.56 seconds compared to when blocks are hashed sequentially. In addition, it was also found that the threads that contributed the most to increasing speedup were 3 threads with an average processing time of 111,638 seconds. On average, the parallel hash generation process takes 707,853 seconds, while the sequential one takes 1756,56 seconds. We conclude the solution to building blockchain using the thread programming method with the number of threads is 3 for the computer specifications used to be the same or smaller than the computer specifications we use.\",\"PeriodicalId\":439918,\"journal\":{\"name\":\"2022 International Conference on Information Technology Systems and Innovation (ICITSI)\",\"volume\":\"80 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2022-11-08\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2022 International Conference on Information Technology Systems and Innovation (ICITSI)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/ICITSI56531.2022.9971125\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 International Conference on Information Technology Systems and Innovation (ICITSI)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICITSI56531.2022.9971125","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

查找块哈希值的过程是一个复杂的问题。其中一个问题是从使用区块中现有字符串和事务数据的生成器算法生成哈希。到目前为止,已经使用的想法是使用高性能机器(超级计算)一步一步地实现它。开发区块链应用程序非常困难,因为超级计算非常昂贵。为了解决这个问题,开发人员需要使用一种不同的方法,称为并行编程。本文讨论了创建用于创建新块的块哈希的并行方法。我们使用SHA256算法来处理哈希。当从一组字符中创建一个唯一的字符串用作块散列时,线程划分是作为算法框架过程的一部分完成的。我们的实验表明,与按顺序散列块相比,使用线程并行拆分工作可以使构建过程加快1.56秒。此外,还发现对提高速度贡献最大的线程是3个线程,平均处理时间为111,638秒。平均而言,并行哈希生成过程需要707,853秒,而顺序哈希生成过程需要1756,56秒。我们总结了使用线程编程方法构建区块链的解决方案,对于使用的计算机规格与我们使用的计算机规格相同或更小,线程数为3。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Thread Programming for Blockchain Creation
The process of finding a block hash is a complex problem. One of the problems is making the hash from a generator algorithm that uses the existing string and the transaction data in the block. So far, the idea that has been used is to make it one step at a time using high-powered machines (supercomputing). Developing blockchain applications is hard because supercomputing is expensive. To solve this problem, developers need to use a different method, called parallel programming. This article talks about a parallel way to make block hashes, which are used to make new blocks. We use the SHA256 algorithm to process the hash. When creating a unique character string to be used as a block hash from a set of characters, thread division is done as part of the algorithmic skeleton process. Our experiments show that using threads to split work in parallel has speeded up the build process by 1.56 seconds compared to when blocks are hashed sequentially. In addition, it was also found that the threads that contributed the most to increasing speedup were 3 threads with an average processing time of 111,638 seconds. On average, the parallel hash generation process takes 707,853 seconds, while the sequential one takes 1756,56 seconds. We conclude the solution to building blockchain using the thread programming method with the number of threads is 3 for the computer specifications used to be the same or smaller than the computer specifications we use.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信