{"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}
引用次数: 0
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.