KR102450411B1 - Method and apparatus for prcocessing transaction based on bllockchain and system tehereof - Google Patents

Method and apparatus for prcocessing transaction based on bllockchain and system tehereof Download PDF

Info

Publication number
KR102450411B1
KR102450411B1 KR1020180052977A KR20180052977A KR102450411B1 KR 102450411 B1 KR102450411 B1 KR 102450411B1 KR 1020180052977 A KR1020180052977 A KR 1020180052977A KR 20180052977 A KR20180052977 A KR 20180052977A KR 102450411 B1 KR102450411 B1 KR 102450411B1
Authority
KR
South Korea
Prior art keywords
transaction
blockchain
batch
block chain
transactions
Prior art date
Application number
KR1020180052977A
Other languages
Korean (ko)
Other versions
KR20190128814A (en
Inventor
이규상
윤창석
정현석
성기운
Original Assignee
삼성에스디에스 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성에스디에스 주식회사 filed Critical 삼성에스디에스 주식회사
Priority to KR1020180052977A priority Critical patent/KR102450411B1/en
Publication of KR20190128814A publication Critical patent/KR20190128814A/en
Application granted granted Critical
Publication of KR102450411B1 publication Critical patent/KR102450411B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Organic Low-Molecular-Weight Compounds And Preparation Thereof (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

블록체인 시스템의 트랜잭션 처리 성능을 향상시킬 수 있는 방법이 제공된다. 본 발명의 일 실시예에 따른 블록체인 기반 트랜잭션 처리 방법은, 복수의 블록체인 트랜잭션(blockchain transaction)을 획득하는 단계, 상기 복수의 블록체인 트랜잭션 중 적어도 일부를 종합하여, 배치 트랜잭션(batch transaction)을 생성하는 단계 및 블록체인 네트워크를 통해 상기 배치 트랜잭션을 처리하는 단계를 포함할 수 있다.A method for improving the transaction processing performance of a blockchain system is provided. A block chain-based transaction processing method according to an embodiment of the present invention includes the steps of obtaining a plurality of block chain transactions, synthesizing at least some of the plurality of block chain transactions, and performing a batch transaction generating and processing the batch transaction via a blockchain network.

Description

블록체인 기반 트랜잭션 처리 방법, 장치 및 그 시스템 {METHOD AND APPARATUS FOR PRCOCESSING TRANSACTION BASED ON BLLOCKCHAIN AND SYSTEM TEHEREOF}Blockchain-based transaction processing method, device, and system

본 발명은 블록체인 기반 트랜잭션 처리 방법, 장치 및 그 시스템에 관한 것이다. 보다 자세하게는, 블록체인 시스템에서 트랜잭션 처리 성능을 향상시킬 수 있는 방법, 그 방법을 수행하는 장치 및 시스템에 관한 것이다.The present invention relates to a blockchain-based transaction processing method, apparatus, and system. More specifically, it relates to a method that can improve transaction processing performance in a blockchain system, and an apparatus and system for performing the method.

블록체인(blockchain)은 지속적으로 증가하는 데이터를 특정 단위의 블록에 기록하고, P2P(peer-to-peer) 네트워크를 구성하는 각각의 블록체인 노드들이 블록을 체인 형태의 자료 구조로 관리하는 데이터 관리 기술을 의미한다. 블록체인은 네트워크에 속한 모든 블록체인 노드가 모든 트랜잭션을 기록하고 검증하는 합의(consensus) 프로세스를 통해 트랜잭션의 무결성 및 보안성을 보장한다.A blockchain records continuously increasing data in a specific unit of block, and data management in which each blockchain node constituting a peer-to-peer (P2P) network manages the block as a chain-type data structure means technology. Blockchain ensures the integrity and security of transactions through a consensus process in which all blockchain nodes in the network record and verify all transactions.

그러나, 블록체인의 합의 프로세스로 인해, 블록체인 시스템 전체의 처리 능력이 단일 노드의 처리 능력으로 제한되기 때문에, 블록체인 시스템의 트랜잭션 처리 성능 이슈는 블록체인의 활용 범위를 제한하는 주된 요인이 되고 있다. 다시 말하면, 블록체인 시스템에서는, 블록체인 노드의 개수를 증가시키더라도 시스템의 처리 성능을 향상시킬 수 없으며, 단일 블록체인 노드의 처리 효율을 넘어설 수가 없다. 따라서, 대량의 트랜잭션에 대한 신속한 처리가 요구되는 환경에 블록체인 시스템을 적용하기는 매우 어렵다.However, due to the consensus process of the blockchain, the processing power of the entire blockchain system is limited to the processing power of a single node, so the transaction processing performance issue of the blockchain system is a major factor limiting the scope of use of the blockchain. . In other words, in a blockchain system, even if the number of blockchain nodes is increased, the processing performance of the system cannot be improved, and the processing efficiency of a single blockchain node cannot be exceeded. Therefore, it is very difficult to apply the blockchain system to an environment that requires rapid processing of large amounts of transactions.

지금까지 제안된 대다수의 블록체인 시스템(e.g. 비트코인, 이더리움)의 트랜잭션 처리 성능은 1K TPS(transaction per sec)를 크게 상회하지 못하는 것으로 알려져 있다. 예를 들어, 퍼블릭 블록체인(public blockchain)의 일종인 비트코인(bitcoin)과 이더리움(ethereum)의 처리 성능은 100 TPS 미만으로 알려져 있고, 프라이빗 블록체인(private blockchain)의 일종인 하이퍼레저 패브릭(hyperledger fabric)의 처리 성능 또한 1K TPS를 크게 상회하지 못하는 것으로 알려져 있다. 이는, 일반 데이터베이스와 비교할 때 매우 낮은 성능이다. 따라서, 많은 산업 분야에서 블록체인 시스템의 도입을 검토하고 있으나, 블록체인 시스템이 레거시 시스템(legacy system)을 대체하는 것은 현실적으로 어려운 실정이다.It is known that the transaction processing performance of most of the blockchain systems proposed so far (e.g. Bitcoin, Ethereum) does not significantly exceed 1K TPS (transaction per sec). For example, the processing performance of bitcoin and ethereum, which are a kind of public blockchain, is known to be less than 100 TPS, and Hyperledger Fabric ( The processing performance of hyperledger fabric) is also known to not significantly exceed 1K TPS. This is very low performance compared to a general database. Therefore, although the introduction of the block chain system is being considered in many industrial fields, it is practically difficult for the block chain system to replace the legacy system.

결론적으로, 블록체인 기술의 실용화를 앞당기고 활용 범위를 확대시키기 위해서는, 블록체인 시스템의 성능 이슈를 해결하는 것이 무엇보다 급선무이다.In conclusion, in order to accelerate the practical use of blockchain technology and expand the scope of its application, solving the performance issues of the blockchain system is the most urgent priority.

한국공개특허 제10-2018-0014534호 (2018.02.09 공개)Korean Patent Publication No. 10-2018-0014534 (published on Feb. 09, 2018)

본 발명이 해결하고자 하는 기술적 과제는, 블록체인 시스템에서 트랜잭션 처리 성능을 향상시킬 수 있는 방법, 그 방법을 수행하는 장치 및 시스템을 제공하는 것이다.The technical problem to be solved by the present invention is to provide a method for improving transaction processing performance in a block chain system, an apparatus and a system for performing the method.

본 발명의 기술적 과제들은 이상에서 언급한 기술적 과제들로 제한되지 않으며, 언급되지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명의 기술분야에서의 통상의 기술자에게 명확하게 이해될 수 있을 것이다.The technical problems of the present invention are not limited to the technical problems mentioned above, and other technical problems not mentioned will be clearly understood by those skilled in the art from the following description.

상기 기술적 과제를 해결하기 위한, 본 발명의 일 실시예에 따른 블록체인 기반 트랜잭션 처리 방법은, 배치 서버에서 수행되는 블록체인 기반 트랜잭션 처리 방법에 있어서, 복수의 블록체인 트랜잭션(blockchain transaction)을 획득하는 단계, 상기 복수의 블록체인 트랜잭션 중 적어도 일부를 종합하여, 배치 트랜잭션(batch transaction)을 생성하는 단계 및 블록체인 네트워크를 통해 상기 배치 트랜잭션을 처리하는 단계를 포함할 수 있다.In order to solve the above technical problem, a block chain-based transaction processing method according to an embodiment of the present invention is a block chain-based transaction processing method performed in a batch server, in which a plurality of block chain transactions are obtained It may include the steps of synthesizing at least some of the plurality of block chain transactions to generate a batch transaction, and processing the batch transaction through a block chain network.

일 실시예에서, 상기 배치 트랜잭션을 생성하는 단계는, 상기 배치 트랜잭션을 생성하는 단계는, 상기 복수의 블록체인 트랜잭션을 기 설정된 기준에 따라 분류하여, 제1 트랜잭션 그룹 및 제2 트랜잭션 그룹을 형성하는 단계, 상기 제1 트랜잭션 그룹에 소속된 복수의 블록체인 트랜잭션을 종합하여, 제1 배치 트랜잭션을 생성하는 단계 및 상기 제2 트랜잭션 그룹에 소속된 복수의 블록체인 트랜잭션을 종합하여, 제2 배치 트랜잭션을 생성하는 단계를 포함할 수 있다.In one embodiment, the generating of the batch transaction includes: classifying the plurality of block chain transactions according to a preset criterion to form a first transaction group and a second transaction group Step, synthesizing a plurality of block chain transactions belonging to the first transaction group to generate a first batch transaction, and synthesizing a plurality of block chain transactions belonging to the second transaction group to generate a second batch transaction It may include the step of generating.

일 실시예에서, 상기 배치 트랜잭션을 생성하는 단계는, 상기 복수의 블록체인 트랜잭션 중 제1 블록체인 트랜잭션을 기 설정된 기준에 따라 분류하는 단계, 상기 제1 블록체인 트랜잭션을 복수의 배치 큐(batch queue) 중에서 상기 분류 결과에 대응되는 제1 배치 큐에 삽입하는 단계, 상기 제1 배치 큐가 기 설정된 조건을 만족하는지 판정하는 단계 및 상기 기 설정된 조건을 만족한다는 판정에 응답하여, 상기 제1 배치 큐에 포함된 복수의 블록체인 트랜잭션을 종합하여, 상기 배치 트랜잭션을 생성하는 단계를 포함할 수 있다.In one embodiment, the generating of the batch transaction includes: classifying a first blockchain transaction among the plurality of blockchain transactions according to a preset criterion; and placing the first blockchain transaction in a plurality of batch queues ) in the first batch queue corresponding to the classification result, determining whether the first batch queue satisfies a preset condition, and in response to determining that the preset condition is satisfied, the first batch queue It may include generating the batch transaction by synthesizing a plurality of blockchain transactions included in the .

일 실시예에서, 상기 배치 트랜잭션을 생성하는 단계는, 기 설정된 타이머(timer)가 만료됨에 응답하여, 상기 배치 트랜잭션을 생성하는 단계를 포함할 수 있다.In an embodiment, generating the batch transaction may include generating the batch transaction in response to expiration of a preset timer.

일 실시예에서, 상기 배치 트랜잭션을 생성하는 단계는, 특정 개수 이하의 블록체인 트랜잭션을 종합하여, 상기 배치 트랜잭션을 생성하는 단계를 포함할 수 있다.In one embodiment, the generating of the batch transaction may include generating the batch transaction by synthesizing block chain transactions of a specific number or less.

일 실시예에서, 상기 배치 트랜잭션을 생성하는 단계는, 블록체인 트랜잭션 크기의 합이 특정 크기 이하가 되는 블록체인 트랜잭션을 종합하여, 상기 배치 트랜잭션을 생성하는 단계를 포함할 수 있다.In one embodiment, the generating of the batch transaction may include generating the batch transaction by synthesizing block chain transactions in which the sum of block chain transaction sizes is less than or equal to a specific size.

일 실시예에서, 상기 복수의 블록체인 트랜잭션 각각은 상태(state) 데이터의 식별키를 포함하고, 상기 배치 트랜잭션을 생성하는 단계는, 상기 복수의 블록체인 트랜잭션 중에서 동일한 식별키를 포함하는 제1 블록체인 트랜잭션 및 제2 블록체인 트랜잭션을 식별하는 단계, 상기 제1 블록체인 트랜잭션을 제1 배치 트랜잭션으로 생성하는 단계 및 상기 제2 블록체인 트랜잭션을 제2 배치 트랜잭션으로 생성하는 단계를 포함할 수 있다.In one embodiment, each of the plurality of blockchain transactions includes an identification key of state data, and generating the batch transaction includes a first block including the same identification key among the plurality of blockchain transactions. It may include identifying a chain transaction and a second block chain transaction, generating the first block chain transaction as a first batch transaction, and generating the second block chain transaction as a second batch transaction.

일 실시예에서, 상기 블록체인 네트워크로부터 상기 배치 트랜잭션의 처리 결과를 획득하는 단계 및 실패를 가리키는 처리 결과에 대한 응답으로, 상기 배치 트랜잭션에 포함된 블록체인 트랜잭션의 처리를 개별적으로 재시도하는 단계를 더 포함할 수 있다.In one embodiment, obtaining the processing result of the batch transaction from the blockchain network and individually retrying the processing of the blockchain transaction included in the batch transaction in response to the processing result indicating failure may include more.

상술한 기술적 과제를 해결하기 위한 본 발명의 다른 실시예에 따른 배치 서버는, 복수의 블록체인 트랜잭션(blockchain transaction)을 저장하는 메모리, 블록체인 네트워크와 통신하는 네트워크 인터페이스 및 상기 블록체인 네트워크를 통해 상기 복수의 블록체인 트랜잭션을 처리하는 프로세서를 포함하되, 상기 프로세서는, 상기 복수의 블록체인 트랜잭션 중 적어도 일부를 종합하여, 배치 트랜잭션(batch transaction)을 생성하고, 상기 블록체인 네트워크를 통해 상기 배치 트랜잭션을 처리할 수 있다.A batch server according to another embodiment of the present invention for solving the above-described technical problem, a memory for storing a plurality of block chain transactions, a network interface for communicating with the block chain network, and the block chain network through the A processor for processing a plurality of block chain transactions, wherein the processor synthesizes at least some of the plurality of block chain transactions to generate a batch transaction, and executes the batch transaction through the block chain network. can be processed

상술한 기술적 과제를 해결하기 위한 본 발명의 또 다른 실시예에 따른 컴퓨터 프로그램은, 컴퓨팅 장치와 결합되어, 복수의 블록체인 트랜잭션(blockchain transaction)을 획득하는 단계, 상기 복수의 블록체인 트랜잭션 중 적어도 일부를 종합하여, 배치 트랜잭션(batch transaction)을 생성하는 단계 및 블록체인 네트워크를 통해 상기 배치 트랜잭션을 처리하는 단계를 실행시키기 위하여, 컴퓨터로 판독가능한 기록매체에 저장될 수 있다.A computer program according to another embodiment of the present invention for solving the above-described technical problem is combined with a computing device, obtaining a plurality of block chain transactions, at least some of the plurality of block chain transactions Collectively, in order to execute the steps of generating a batch transaction and processing the batch transaction through a block chain network, it may be stored in a computer-readable recording medium.

상술한 기술적 과제를 해결하기 위한 본 발명의 또 다른 실시예에 따른 블록체인 기반 트랜잭션 처리 시스템은, 복수의 블록체인 트랜잭션(blockchain transaction)을 획득하고, 상기 복수의 블록체인 트랜잭션 중 적어도 일부를 종합하여, 배치 트랜잭션(batch transaction)을 생성하는 배치 서버 및 블록체인 네트워크를 구성하는 복수의 블록체인 노드를 포함하되, 상기 배치 서버는 상기 블록체인 네트워크를 통해 상기 배치 트랜잭션을 처리할 수 있다.A block chain-based transaction processing system according to another embodiment of the present invention for solving the above-described technical problem obtains a plurality of block chain transactions, and synthesizes at least some of the plurality of block chain transactions. , a batch server generating a batch transaction, and a plurality of block chain nodes constituting a block chain network, wherein the batch server may process the batch transaction through the block chain network.

일 실시예에서, 상기 복수의 블록체인 노드는 제1 블록체인 노드 그룹 및 제2 블록체인 노드 그룹을 포함하고, 상기 배치 서버는 제1 배치 서버 및 제2 배치 서버를 포함하되, 상기 제1 배치 서버는 상기 제1 블록체인 노드 그룹을 통해 제1 배치 트랜잭션을 처리하고, 상기 제2 배치 서버는 상기 제2 블록체인 노드 그룹을 통해 제2 배치 트랜잭션을 처리할 수 있다.In an embodiment, the plurality of blockchain nodes includes a first blockchain node group and a second blockchain node group, and the deployment server includes a first deployment server and a second deployment server, wherein the first deployment server The server may process a first batch transaction through the first block chain node group, and the second batch server may process a second batch transaction through the second block chain node group.

상술한 기술적 과제를 해결하기 위한 본 발명의 또 다른 실시예에 따른 블록체인 기반 트랜잭션 처리 방법은, 클라이언트 단말에서 수행되는 블록체인 기반 트랜잭션 처리 방법에 있어서, 복수의 블록체인 트랜잭션(blockchain transaction)을 생성하는 단계, 상기 복수의 블록체인 트랜잭션 중 적어도 일부를 종합하여, 배치 트랜잭션(batch transaction)을 생성하는 단계 및 블록체인 네트워크를 통해 상기 배치 트랜잭션을 처리하는 단계를 포함할 수 있다.A block chain-based transaction processing method according to another embodiment of the present invention for solving the above technical problem, in the block chain-based transaction processing method performed in a client terminal, generates a plurality of block chain transactions It may include the steps of: synthesizing at least some of the plurality of block chain transactions, generating a batch transaction, and processing the batch transaction through a block chain network.

도 1은 본 발명의 일 실시예에 따른 블록체인 기반 트랜잭션 처리 시스템의 구성도이다.
도 2 및 도 3은 본 발명의 몇몇 실시예에 따른 배치 서버와 블록체인 노드 간의 연동 구조를 설명하기 위한 도면이다.
도 4는 본 발명의 일 실시예에 따른 배치 서버를 나타내는 블록도이다.
도 5 및 도 6은 본 발명의 일 실시예에 따라 쓰기 타입의 트랜잭션이 처리되는 과정을 설명하기 위한 도면이다.
도 7은 종래의 블록체인 시스템 중 하이퍼레저 패브릭에서 쓰기 타입의 트랜잭션이 처리되는 과정을 나타내는 도면이다.
도 8은 본 발명의 일 실시예에 따라 읽기 타입의 트랜잭션이 처리되는 과정을 설명하기 위한 도면이다.
도 9는 본 발명의 일 실시예에 따른 배치 서버의 하드웨어 구성도이다.
도 10은 본 발명의 일 실시예에 따른 블록체인 기반 트랜잭션 처리 방법을 나타내는 흐름도이다.
도 11은 본 발명의 일 실시예에 따른 배치 트랜잭션 생성 방법을 나타내는 흐름도이다.
도 12 내지 도 14는 본 발명의 몇몇 실시예에 따라 소정의 조건에 기초하여 배치 트랜잭션을 생성하는 방법을 설명하기 위한 흐름도이다.
도 15는 본 발명의 일 실시예에 따른 배치 트랜잭션의 처리 결과 제공 방법을 나타내는 흐름도이다.
1 is a block diagram of a blockchain-based transaction processing system according to an embodiment of the present invention.
2 and 3 are diagrams for explaining an interworking structure between a deployment server and a block chain node according to some embodiments of the present invention.
4 is a block diagram illustrating a deployment server according to an embodiment of the present invention.
5 and 6 are diagrams for explaining a process of processing a write-type transaction according to an embodiment of the present invention.
7 is a diagram illustrating a process of processing a write-type transaction in Hyperledger Fabric among conventional blockchain systems.
8 is a diagram for explaining a process of processing a read type transaction according to an embodiment of the present invention.
9 is a hardware configuration diagram of a deployment server according to an embodiment of the present invention.
10 is a flowchart illustrating a blockchain-based transaction processing method according to an embodiment of the present invention.
11 is a flowchart illustrating a method for generating a batch transaction according to an embodiment of the present invention.
12 to 14 are flowcharts illustrating a method of generating a batch transaction based on a predetermined condition according to some embodiments of the present invention.
15 is a flowchart illustrating a method for providing a processing result of a batch transaction according to an embodiment of the present invention.

이하, 첨부된 도면을 참조하여 본 발명의 바람직한 실시예들을 상세히 설명한다. 본 발명의 이점 및 특징, 그리고 그것들을 달성하는 방법은 첨부되는 도면과 함께 상세하게 후술되어 있는 실시예들을 참조하면 명확해질 것이다. 그러나 본 발명은 이하에서 개시되는 실시예들에 한정되는 것이 아니라 서로 다른 다양한 형태로 구현될 수 있으며, 단지 본 실시예들은 본 발명의 개시가 완전하도록 하고, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 발명의 범주를 완전하게 알려주기 위해 제공되는 것이며, 본 발명은 청구항의 범주에 의해 정의될 뿐이다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. Advantages and features of the present invention and methods of achieving them will become apparent with reference to the embodiments described below in detail in conjunction with the accompanying drawings. However, the present invention is not limited to the embodiments disclosed below, but may be implemented in various different forms, and only these embodiments allow the disclosure of the present invention to be complete, and common knowledge in the technical field to which the present invention pertains It is provided to fully inform those who have the scope of the invention, and the present invention is only defined by the scope of the claims.

각 도면의 구성요소들에 참조부호를 부가함에 있어서, 동일한 구성요소들에 대해서는 비록 다른 도면상에 표시되더라도 가능한 한 동일한 부호를 가지도록 하고 있음에 유의해야 한다. 또한, 본 발명을 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다.In adding reference numerals to the components of each drawing, it should be noted that the same components are given the same reference numerals as much as possible even though they are indicated on different drawings. In addition, in describing the present invention, if it is determined that a detailed description of a related known configuration or function may obscure the gist of the present invention, the detailed description thereof will be omitted.

다른 정의가 없다면, 본 명세서에서 사용되는 모든 용어(기술 및 과학적 용어를 포함)는 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 공통적으로 이해될 수 있는 의미로 사용될 수 있다. 또 일반적으로 사용되는 사전에 정의되어 있는 용어들은 명백하게 특별히 정의되어 있지 않는 한 이상적으로 또는 과도하게 해석되지 않는다. 본 명세서에서 사용된 용어는 실시예들을 설명하기 위한 것이며 본 발명을 제한하고자 하는 것은 아니다. 본 명세서에서, 단수형은 문구에서 특별히 언급하지 않는 한 복수형도 포함한다.Unless otherwise defined, all terms (including technical and scientific terms) used herein may be used with the meaning commonly understood by those of ordinary skill in the art to which the present invention belongs. In addition, terms defined in a commonly used dictionary are not to be interpreted ideally or excessively unless clearly defined in particular. The terminology used herein is for the purpose of describing the embodiments and is not intended to limit the present invention. In this specification, the singular also includes the plural, unless specifically stated otherwise in the phrase.

또한, 본 발명의 구성 요소를 설명하는 데 있어서, 제 1, 제 2, A, B, (a), (b) 등의 용어를 사용할 수 있다. 이러한 용어는 그 구성 요소를 다른 구성 요소와 구별하기 위한 것일 뿐, 그 용어에 의해 해당 구성 요소의 본질이나 차례 또는 순서 등이 한정되지 않는다. 어떤 구성 요소가 다른 구성요소에 "연결", "결합" 또는 "접속"된다고 기재된 경우, 그 구성 요소는 그 다른 구성요소에 직접적으로 연결되거나 또는 접속될 수 있지만, 각 구성 요소 사이에 또 다른 구성 요소가 "연결", "결합" 또는 "접속"될 수도 있다고 이해되어야 할 것이다.In addition, in describing the components of the present invention, terms such as first, second, A, B, (a), (b), etc. may be used. These terms are only for distinguishing the elements from other elements, and the essence, order, or order of the elements are not limited by the terms. When it is described that a component is “connected”, “coupled” or “connected” to another component, the component may be directly connected or connected to the other component, but another component is between each component. It should be understood that elements may be “connected,” “coupled,” or “connected.”

명세서에서 사용되는 "포함한다 (comprises)" 및/또는 "포함하는 (comprising)"은 언급된 구성 요소, 단계, 동작 및/또는 소자는 하나 이상의 다른 구성 요소, 단계, 동작 및/또는 소자의 존재 또는 추가를 배제하지 않는다.As used herein, "comprises" and/or "comprising" refers to the presence of one or more other components, steps, operations and/or elements mentioned. or addition is not excluded.

본 명세서에 대한 설명에 앞서, 본 명세서에서 사용되는 몇몇 용어들에 대하여 명확하게 하기로 한다.Prior to the description of the present specification, some terms used in the present specification will be clarified.

본 명세서에서, 블록체인 또는 블록체인 데이터란 블록체인 네트워크를 구성하는 각각의 블록체인 노드가 유지하는 데이터로, 적어도 하나의 블록이 체인 형태의 자료 구조로 구성되는 데이터를 가리킨다. 블록체인 시스템에서, 모든 블록체인 노드는 동일한 블록체인 데이터를 유지한다. 단, 멀티 채널(multi-channel) 기능을 지원하는 블록체인 시스템(e.g. 하이퍼레저 패브릭)에서는, 동일한 채널에 속한 블록체인 노드들끼리만 동일한 블록체인 데이터를 유지하게 된다.In this specification, the block chain or block chain data refers to data maintained by each block chain node constituting the block chain network, and data in which at least one block is composed of a chain-type data structure. In a blockchain system, all blockchain nodes maintain the same blockchain data. However, in a blockchain system that supports multi-channel functions (e.g. Hyperledger Fabric), only blockchain nodes belonging to the same channel maintain the same blockchain data.

본 명세서에서, 블록체인 네트워크란, 블록체인 알고리즘(또는 프로토콜)에 따라 동작하는 복수의 블록체인 노드로 구성된 P2P(peer-to-peer) 구조의 네트워크를 의미한다.In this specification, a blockchain network refers to a peer-to-peer (P2P) network composed of a plurality of blockchain nodes operating according to a blockchain algorithm (or protocol).

본 명세서에서, 블록체인 노드란, 블록체인 네트워크를 구성하고 블록체인 알고리즘(또는 프로토콜)에 따라 동작하는 컴퓨팅 노드를 의미한다. 상기 컴퓨팅 노드는 물리적 장치로 구현될 수 있으나, 가상 머신(virtual machine)과 같이 논리적 장치로 구현될 수도 있다. 상기 컴퓨팅 노드가 가상 머신으로 구현되는 경우, 하나의 물리적 장치에 복수의 블록체인 노드가 포함될 수도 있다.As used herein, a blockchain node refers to a computing node that constitutes a blockchain network and operates according to a blockchain algorithm (or protocol). The computing node may be implemented as a physical device, but may also be implemented as a logical device such as a virtual machine. When the computing node is implemented as a virtual machine, a plurality of blockchain nodes may be included in one physical device.

본 명세서에서, 트랜잭션(transaction) 또는 블록체인 트랜잭션(blockchain transaction)이란, 블록체인 환경에서 상태 변화(e.g. 잔고의 증감, 자산의 이전)를 일으키는 모든 행위, 블록체인에 기록된 상태(state) 데이터를 조회하는 모든 행위, 또는 그 행위들을 가리키는 데이터를 의미할 수 있다. 예를 들어, 상기 트랜잭션은 블록체인에 특정 데이터를 쓰는 행위, 블록체인에 기록된 특정 데이터를 읽는 행위 등을 모두 포괄할 수 있다. 상기 트랜잭션은 쓰기 타입의 트랜잭션(e.g. 상태 데이터를 추가, 수정, 삭제하는 등의 트랜잭션)과 읽기 타입의 트랜잭션(e.g. 상태 데이터를 조회하는 트랜잭션)으로 구분될 수 있다. 물론, 블록체인 플랫폼에 따라 읽기 및 쓰기 타입 외에도 다양한 타입(e.g. 실행)의 트랜잭션이 존재할 수 있고, 그와 같은 경우 상기 트랜잭션은 다양한 타입의 트랜잭션을 모두 포함할 수 있다. 또한, 당해 기술 분야에서, 상기 읽기 타입의 트랜잭션의 쿼리(query) 등의 용어와 혼용되어 사용될 수 있다. 상기 트랜잭션은 스마트 컨트랙트(smart contract)를 통해 실행(e.g. 스마트 컨트랙트에 정의된 함수 및 변수를 통해 블록체인에 접근)될 수 있으나, 이는 블록체인 플랫폼에 따라 얼마든지 달라질 수 있다.In this specification, a transaction or blockchain transaction refers to any action that causes a state change (e.g. increase/decrease in balance, transfer of assets) in a blockchain environment, and state data recorded in the blockchain. It may refer to all actions to be viewed or data indicating those actions. For example, the transaction may include both writing specific data to the block chain and reading specific data recorded in the block chain. The transaction may be divided into a write-type transaction (e.g. a transaction for adding, modifying, or deleting state data) and a read-type transaction (e.g. a transaction for inquiring the state data). Of course, various types of transactions (e.g. execution) may exist in addition to read and write types depending on the blockchain platform, and in such a case, the transaction may include all types of transactions. Also, in the art, it may be used interchangeably with terms such as a query of the read-type transaction. The transaction can be executed through a smart contract (e.g. access to the block chain through functions and variables defined in the smart contract), but this may vary depending on the block chain platform.

본 명세서에서, 스마트 컨트랙트(smart contract)란, 블록체인 시스템에서 트랜잭션 처리에 이용되는 스크립트 또는 소프트웨어 코드를 의미한다. 보다 구체적으로, 상기 스마트 컨트랙트는 트랜잭션 처리에 이용되는 각종 조건, 상태, 상기 조건에 따른 행위를 프로그래밍 방식으로 작성한 코드로, 예를 들어, 이더리움의 스마트 컨트랙트, 하이퍼레저 패브릭의 체인코드(chain code) 등을 포함할 수 있다. 블록체인 시스템에서, 블록체인 노드는 블록체인을 통해 스마트 컨트랙트를 공유할 수 있다.In this specification, a smart contract refers to a script or software code used for transaction processing in a block chain system. More specifically, the smart contract is a code programmatically writing various conditions, states, and actions according to the conditions used for transaction processing, for example, smart contracts of Ethereum and chain code of Hyperledger Fabric. ) and the like. In a blockchain system, blockchain nodes can share smart contracts through the blockchain.

본 명세서에서, 인스트럭션(instruction)이란, 기능을 기준으로 묶인 일련의 명령어들로서 컴퓨터 프로그램의 구성 요소이자 프로세서(processor)에 의해 실행되는 것을 가리킨다.In the present specification, an instruction refers to a series of instructions grouped based on a function, which is a component of a computer program and is executed by a processor.

이하, 본 발명의 몇몇 실시예들에 대하여 첨부된 도면에 따라 상세하게 설명한다.Hereinafter, some embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명의 일 실시예에 따른 블록체인 기반 트랜잭션 처리 시스템의 구성도이다.1 is a block diagram of a blockchain-based transaction processing system according to an embodiment of the present invention.

도 1을 참조하면, 상기 트랜잭션 처리 시스템은 배치 서버(100) 및 블록체인 네트워크(300)를 구성하는 복수의 블록체인 노드(200)를 포함하도록 구성될 수 있다. 단, 이는 본 발명의 목적을 달성하기 위한 바람직한 실시예일뿐이며, 필요에 따라 일부 구성 요소가 추가되거나 삭제될 수 있음은 물론이다. 또한, 도 1에 도시된 각각의 장치들은 기능적으로 구분되는 기능 요소들을 나타낸 것으로서, 적어도 하나의 장치들이 실제 물리적 환경에서는 서로 통합되는 형태로 구현될 수도 있음에 유의한다. 예를 들어, 배치 서버(100), 클라이언트 단말(400) 및/또는 블록체인 노드(200)는 동일한 물리적 컴퓨팅 장치 내의 서로 다른 로직(logic)으로 구현될 수도 있다. 즉, 특정 클라이언트 단말이 배치 서버(100)의 기능을 더 수행할 수도 있고, 특정 블록체인 노드가 배치 서버(100)의 기능을 더 수행할 수도 있다.Referring to FIG. 1 , the transaction processing system may be configured to include a batch server 100 and a plurality of block chain nodes 200 constituting a block chain network 300 . However, this is only a preferred embodiment for achieving the object of the present invention, and it goes without saying that some components may be added or deleted as needed. Also, it should be noted that each of the devices shown in FIG. 1 represents functional elements that are functionally separated, and that at least one device may be implemented in a form that is integrated with each other in an actual physical environment. For example, the deployment server 100 , the client terminal 400 , and/or the blockchain node 200 may be implemented with different logic within the same physical computing device. That is, a specific client terminal may further perform the function of the batch server 100 , and a specific blockchain node may further perform the function of the batch server 100 .

상기 트랜잭션 처리 시스템에서, 배치 서버(100)는 클라이언트 단말(400)로부터 요청된 복수의 트랜잭션을 종합하여(aggregating) 배치 트랜잭션을 생성하고, 블록체인 네트워크(300)와 연동하여 배치 트랜잭션에 대한 일괄 처리 서비스를 제공하는 컴퓨팅 장치이다. 여기서, 상기 컴퓨팅 장치는, 노트북, 데스크톱(desktop), 랩탑(laptop) 등이 될 수 있으나, 이에 국한되는 것은 아니며 연산 수단 및 통신 수단이 구비된 모든 종류의 장치를 포함할 수 있다. 다만, 대량의 트랜잭션 처리가 요청되는 환경이라면, 배치 서버(100)는 고성능의 서버 컴퓨팅 장치로 구현되는 것이 바람직할 수 있다. 본 명세서에서, 배치 서버(100)는 블록체인 기반 트랜잭션 처리 장치로 명명될 수도 있다.In the transaction processing system, the batch server 100 generates a batch transaction by aggregating a plurality of transactions requested from the client terminal 400 , and interworks with the blockchain network 300 for batch processing for the batch transaction. A computing device that provides a service. Here, the computing device may be a notebook, a desktop, a laptop, etc., but is not limited thereto and may include any type of device equipped with a calculation means and a communication means. However, in an environment where a large amount of transaction processing is requested, the batch server 100 may be preferably implemented as a high-performance server computing device. In this specification, the batch server 100 may be called a blockchain-based transaction processing device.

배치 서버(100)는 일종의 프록시(proxy)로 동작하여, 다수의 클라이언트 단말(400)이 요청한 복수의 트랜잭션을 처리할 수 있다. 자세하게는, 배치 서버(100)는 클라이언트 단말(400)로부터 획득된 복수의 트랜잭션을 종합하여 배치 트랜잭션을 생성하고, 블록체인 네트워크(300)와 연동하여 배치 트랜잭션에 대한 처리를 수행하며, 트랜잭션의 처리 결과를 각각의 클라이언트 단말(400)로 제공할 수 있다. 배치 서버(100)의 동작에 대한 자세한 설명은 도 4 이하의 도면을 참조하여 상세하게 설명하도록 한다.The batch server 100 may operate as a kind of proxy to process a plurality of transactions requested by a plurality of client terminals 400 . In detail, the batch server 100 generates a batch transaction by synthesizing a plurality of transactions obtained from the client terminal 400 , and interworks with the blockchain network 300 to process the batch transaction, and process the transaction. The result may be provided to each client terminal 400 . A detailed description of the operation of the deployment server 100 will be described in detail with reference to the drawings below with reference to FIG. 4 .

본 발명의 몇몇 실시예들에 따르면, 상기 시스템의 트랜잭션 처리 성능, 안정성 및 가용성 등을 더욱 향상시키기 위해, 복수의 배치 서버(e.g. 도 3의 100a, 100b)가 배치될 수 있다. 이때, 배치 서버(100)와 블록체인 노드(200) 간의 연동 구조는 다음의 실시예와 같이 다양한 형태로 구성될 수 있다.According to some embodiments of the present invention, in order to further improve the transaction processing performance, stability and availability of the system, a plurality of deployment servers (e.g. 100a and 100b in FIG. 3 ) may be deployed. At this time, the interworking structure between the batch server 100 and the block chain node 200 may be configured in various forms as in the following embodiment.

제1 실시예에서, 도 2에 도시된 바와 같이, 복수의 배치 서버(100a, 100b) 각각은 모든 블록체인 노드(200a 내지 200d)와 연동되며, (400a 내지 400c)이 요청한 트랜잭션들은 복수의 배치 서버(100a, 100b)를 통해 분산 처리될 수 있다. 본 실시예에서, 클라이언트 단말(400a 내지 400c)이 요청한 트랜잭션들은 특정 배치 서버(100a or 100b)로 분배되며, 특정 배치 서버(100a or 100b)가 전체 블록체인 노드(200a 내지 200d)와 연동하여 트랜잭션을 처리하게 된다.In the first embodiment, as shown in Fig. 2, each of the plurality of batch servers 100a, 100b is linked with all the blockchain nodes 200a to 200d, and the transactions requested by 400a to 400c are the plurality of batch servers. Distributed processing may be performed through the servers 100a and 100b. In this embodiment, the transactions requested by the client terminals 400a to 400c are distributed to a specific batch server 100a or 100b, and the specific batch server 100a or 100b interworks with the entire blockchain nodes 200a to 200d to make a transaction will process

제2 실시예에서, 도 3에 도시된 바와 같이, 복수의 배치 서버(100a, 100b) 각각은 일부 블록체인 노드(201 or 203)와 연동될 수 있다. 예를 들어, 제1 배치 서버(100a)는 제1 블록체인 노드 그룹(201)과 연동되고, 제2 배치 서버(100b)는 제2 블록체인 노드 그룹(203)과 연동될 수 있다. 본 실시예에서, 배치 서버(100a, 100b)는 자신의 전용 블록체인 노드 그룹(201, 203)과 연동하여 요청된 트랜잭션을 처리하게 된다.In the second embodiment, as shown in FIG. 3 , each of the plurality of batch servers 100a and 100b may be linked with some blockchain nodes 201 or 203 . For example, the first deployment server 100a may be linked with the first blockchain node group 201 , and the second deployment server 100b may be linked with the second blockchain node group 203 . In this embodiment, the batch servers 100a and 100b process the requested transaction in conjunction with their dedicated block chain node groups 201 and 203 .

본 발명의 실시예에 따르면, 상기 제2 실시예에서, 제1 블록체인 노드 그룹(201)은 블록체인 네트워크(300)의 제1 채널(channel)에 대응되고, 제2 블록체인 노드 그룹(203)은 블록체인 네트워크(300)의 제2 채널에 대응되도록 구성될 수 있다. 즉, 블록체인 네트워크(300)의 각 채널 별로 전용 배치 서버(e.g. 100a, 100b)가 할당되도록 시스템이 구성될 수도 있다. 물론, 실시예에 따라, 각 블록체인 노드(200) 별로 전용 배치 서버(100)가 존재할 수도 있다.According to an embodiment of the present invention, in the second embodiment, the first blockchain node group 201 corresponds to the first channel of the blockchain network 300, and the second blockchain node group 203 ) may be configured to correspond to the second channel of the blockchain network 300 . That is, the system may be configured such that a dedicated batch server (e.g. 100a, 100b) is allocated for each channel of the blockchain network 300 . Of course, depending on the embodiment, a dedicated batch server 100 may exist for each block chain node 200 .

본 발명의 실시예에 따르면, 상기 제1 및 제2 실시예에서, 소정의 장치(미도시)가 클라이언트 단말(400)로 복수의 배치 서버(e.g. 100a, 100b)에 대한 목록을 제공할 수도 있다. 이때, 상기 장치(미도시)는 각 배치 서버(e.g. 100a, 100b)의 부하(load) 정보를 함께 제공할 수 있다. 본 실시예에서, 사용자가 배치 서버의 목록과 부하 정보에 기초하여 특정 배치 서버를 선택하면, 선택된 배치 서버(e.g. 100a, 100b)를 통해 트랜잭션이 처리될 수 있다. 상기 장치(미도시)의 역할은 특정 배치 서버(e.g. 100a, 100b)가 수행할 수도 있다.According to an embodiment of the present invention, in the first and second embodiments, a predetermined device (not shown) may provide a list of a plurality of deployment servers (e.g. 100a, 100b) to the client terminal 400 . . In this case, the device (not shown) may provide load information of each batch server (e.g. 100a, 100b) together. In this embodiment, when the user selects a specific batch server based on the list of batch servers and load information, the transaction may be processed through the selected batch servers (e.g. 100a, 100b). The role of the device (not shown) may be performed by a specific batch server (e.g. 100a, 100b).

상기 트랜잭션 처리 시스템에서, 복수의 블록체인 노드(200)는 P2P 구조의 블록체인 네트워크(300)를 구성하고, 블록체인 프로토콜에 따라 동작하는 노드이다. 복수의 블록체인 노드(200)는 블록체인을 통해 각종 스마트 컨트랙트, 트랜잭션 데이터를 공유할 수 있고, 합의 프로세스를 통해 트랜잭션에 대한 무결성 및 보안성을 보장할 수 있다.In the transaction processing system, the plurality of blockchain nodes 200 constitute the blockchain network 300 of the P2P structure, and are nodes operating according to the blockchain protocol. The plurality of blockchain nodes 200 can share various smart contracts and transaction data through the blockchain, and can guarantee the integrity and security of the transaction through the consensus process.

블록체인 노드(200)는 배치 트랜잭션에 대한 합의 프로세스를 수행할 수 있다. 구체적으로, 블록체인 노드(200)는 배치 트랜잭션에 포함된 개별 트랜잭션에 대한 스마트 컨트랙트를 실행하고, 스마트 컨트랙트의 실행 결과에 대한 서명을 하며, 서명 및 실행 결과를 블록에 기록하고 전파하는 일련의 합의 프로세스를 수행할 수 있다. 다만, 상기 합의 프로세스의 구체적인 과정은 블록체인 시스템에 따라 얼마든지 달라질 수 있다.The blockchain node 200 may perform a consensus process for a batch transaction. Specifically, the blockchain node 200 executes a smart contract for individual transactions included in a batch transaction, signs the execution result of the smart contract, and records and propagates the signature and execution result in a block. process can be performed. However, the specific process of the consensus process may vary according to the blockchain system.

본 발명의 실시예에 따르면, 블록체인 노드(200)는 스마트 컨트랙트 기반의 프로세싱을 통해 배치 트랜잭션의 실행 결과를 개별 트랜잭션 별(또는 상태 데이터 별)로 구분하며, 구분된 실행 결과를 이용하여 블록체인을 갱신할 수 있다. 블록체인 노드(200)의 동작에 대한 자세한 설명은 도 5, 도 6 및 도 8을 참조하여 부연 설명하도록 한다.According to an embodiment of the present invention, the blockchain node 200 divides the execution result of the batch transaction into individual transactions (or by state data) through smart contract-based processing, and uses the divided execution results to create a blockchain can be updated. A detailed description of the operation of the block chain node 200 will be described in detail with reference to FIGS. 5, 6 and 8 .

한편, 본 발명의 몇몇 실시예에 따르면, 복수의 블록체인 노드(200)는 적어도 일부는 서로 다른 동작을 수행하는 복수의 타입의 블록체인 노드를 포함할 수 있다. 예를 들어, 제1 타입의 블록체인 노드(e.g. 하이퍼레저 패브릭의 "endorsing peer")는 스마트 컨트랙트를 실행하고, 실행 결과에 대한 서명을 수행하는 동작을 수행하고, 제2 타입의 블록체인 노드(e.g. 하이퍼레저 패브릭의 "orderer")는 스마트 컨트랙트의 실행 결과에 대한 주요 합의 프로세스를 수행하거나, 블록에 상기 실행 결과를 기록하고 전파하는 동작을 수행할 수 있다. 이하에서, 상기 제1 타입의 블록체인 노드와 상기 제2 타입의 블록체인 노드는 위와 같은 의미로 계속해서 사용하도록 하고, 상기 제2 타입의 블록체인 노드를 상기 제1 타입의 블록체인 노드와 구별하기 위해 "합의 노드"로 명명하도록 한다.On the other hand, according to some embodiments of the present invention, the plurality of blockchain nodes 200 may include a plurality of types of blockchain nodes, at least some of which perform different operations. For example, a first type of blockchain node (e.g. an “endorsing peer” of Hyperledger Fabric) executes a smart contract, performs an operation of signing the execution result, and a second type of blockchain node ( e.g. Hyperledger Fabric's "orderer") may perform the main consensus process on the execution result of a smart contract, or record and propagate the execution result in a block. Hereinafter, the first type of block chain node and the second type of block chain node will continue to be used in the same sense as above, and the second type of block chain node will be distinguished from the first type of block chain node. To do this, we call it a "consensus node".

클라이언트 단말(400)은 트랜잭션 처리 시스템을 통해 트랜잭션에 대한 처리 서비스를 제공받는 단말이다. 클라이언트 단말(400)은 소정의 트랜잭션을 생성하고, 생성된 트랜잭션을 배치 서버(100) 및/또는 블록체인 네트워크(300)로 전송하며, 배치 서버(100) 및/또는 블록체인 네트워크(300)로부터 트랜잭션에 대한 처리 결과를 제공받을 수 있다.The client terminal 400 is a terminal that receives a transaction processing service through a transaction processing system. The client terminal 400 generates a predetermined transaction, transmits the generated transaction to the batch server 100 and/or the blockchain network 300 , and from the batch server 100 and/or the blockchain network 300 . A processing result for the transaction may be provided.

클라이언트 단말(400), 배치 서버(100) 및 블록체인 노드(200)는 네트워크를 통해 통신할 수 있다. 여기서, 상기 네트워크는 근거리 통신망(Local Area Network; LAN), 광역 통신망(Wide Area Network; WAN), 이동 통신망(mobile radio communication network), Wibro(Wireless Broadband Internet) 등과 같은 모든 종류의 유/무선 네트워크로 구현될 수 있다.The client terminal 400 , the deployment server 100 , and the blockchain node 200 may communicate through a network. Here, the network includes all types of wired/wireless networks such as a local area network (LAN), a wide area network (WAN), a mobile radio communication network, and a Wibro (Wireless Broadband Internet). can be implemented.

지금까지 도 1 내지 도 3을 참조하여 본 발명의 일 실시예에 따른 블록체인 기반 트랜잭션 처리 시스템에 대하여 설명하였다. 다음으로, 본 발명의 일 실시예에 따른 배치 서버(100)의 구성 및 동작에 대하여 도 4 내지 도 9를 참조하여 상세하게 설명하도록 한다.So far, a blockchain-based transaction processing system according to an embodiment of the present invention has been described with reference to FIGS. 1 to 3 . Next, the configuration and operation of the deployment server 100 according to an embodiment of the present invention will be described in detail with reference to FIGS. 4 to 9 .

도 4는 본 발명의 일 실시예에 따른 배치 서버(100)를 나타내는 블록도이다.4 is a block diagram illustrating a deployment server 100 according to an embodiment of the present invention.

도 4를 참조하면, 배치 서버(100)는 분류 모듈(110), 배치 생성 모듈(130), 핸들러 모듈(150) 및 결과 제공 모듈(170)을 포함하도록 구성될 수 있다. 다만, 도 4에는 본 발명의 실시예와 관련 있는 구성요소들만이 도시되어 있다. 따라서, 본 발명이 속한 기술분야의 통상의 기술자라면 도 4에 도시된 구성요소들 외에 다른 범용적인 구성 요소들이 더 포함될 수 있음을 알 수 있다. 또한, 도 4에 도시된 블록체인 기반 트랜잭션 처리 장치의 각각의 구성 요소들은 기능적으로 구분되는 기능 요소들을 나타낸 것으로서, 적어도 하나의 구성 요소가 실제 물리적 환경에서는 서로 통합되는 형태로 구현될 수도 있음에 유의한다.Referring to FIG. 4 , the batch server 100 may be configured to include a classification module 110 , a batch generation module 130 , a handler module 150 , and a result providing module 170 . However, only the components related to the embodiment of the present invention are shown in FIG. 4 . Accordingly, those skilled in the art to which the present invention pertains can see that other general-purpose components other than the components shown in FIG. 4 may be further included. In addition, it should be noted that each component of the block chain-based transaction processing device shown in FIG. 4 represents functionally distinct functional elements, and at least one component may be implemented in a form that is integrated with each other in an actual physical environment. do.

각 구성 요소를 살펴보면, 분류 모듈(110)은 요청된 트랜잭션을 기 설정된 기준에 따라 분류한다. 이때, 상기 기 설정된 기준은 스마트 컨트랙트의 식별자, 채널 식별자 및/또는 트랜잭션의 타입, 트랜잭션의 중요도 등을 포함할 수 있다. 여기서, 상기 트랜잭션의 타입은 전술한 바와 같이 다양한 타입의 트랜잭션을 포함할 수 있으나, 이해의 편의를 제공하기 위해 쓰기 타입 트랜잭션과 읽기 타입 트랜잭션으로 구분된다고 가정하여 설명을 이어가도록 한다. 그러나, 본 발명의 범위가 특정 타입의 트랜잭션에 한정되는 것은 아니다.Looking at each component, the classification module 110 classifies the requested transaction according to a preset criterion. In this case, the preset criteria may include an identifier of a smart contract, a channel identifier and/or a transaction type, and the importance of a transaction. Here, the transaction type may include various types of transactions as described above, but for convenience of understanding, it is assumed that the transaction type is divided into a write type transaction and a read type transaction. However, the scope of the present invention is not limited to a particular type of transaction.

보다 자세하게는, 분류 모듈(110)은 각 트랜잭션을 채널 별, 스마트 컨트랙트 별, 트랜잭션 타입 별, 및/또는 중요도 별로 분류(e.g. 제1 채널의 제1 스마트 컨트랙트를 이용하는 쓰기 타입 트랜잭션으로 분류)하고, 분류 결과를 배치 생성 모듈(130)로 제공할 수 있다.More specifically, the classification module 110 classifies each transaction by channel, by smart contract, by transaction type, and/or by importance (e.g. classifying as a write-type transaction using the first smart contract of the first channel), The classification result may be provided to the batch generation module 130 .

본 발명의 실시예에 따르면, 중요도가 높은 일부 트랜잭션은 배치 트랜잭션으로 생성되지 않고, 개별적으로 처리될 수 있다. 예를 들어, 분류 모듈(110)이 트랜잭션의 중요도에 기초하여 복수의 블록체인 트랜잭션을 중요도가 낮은 제1 트랜잭션 그룹과 중요도가 높은 제2 트랜잭션 그룹으로 분류하면, 상기 제1 트랜잭션 그룹에 소속된 복수의 블록체인 트랜잭션은 배치 생성 모듈(130)에 의해 배치 트랜잭션으로 처리될 수 있다. 또한, 상기 제2 트랜잭션 그룹에 소속된 트랜잭션은 곧바로 핸들러 모듈(150)로 전달되어 개별적으로 처리되도록 구현될 수 있다. 본 실시예에 따르면, 중요도가 높은 트랜잭션이 보다 신속하게 처리될 수 있는 바, 트랜잭션 중요도에 따른 차등적인 처리 서비스가 제공될 수 있다.According to an embodiment of the present invention, some transactions with high importance are not generated as batch transactions, but may be processed individually. For example, if the classification module 110 classifies a plurality of blockchain transactions into a first transaction group with low importance and a second transaction group with high importance based on the importance of the transaction, the plurality of transactions belonging to the first transaction group The blockchain transaction of can be processed as a batch transaction by the batch creation module 130 . In addition, the transaction belonging to the second transaction group may be directly transferred to the handler module 150 to be individually processed. According to the present embodiment, since a transaction having a high importance can be processed more quickly, a differential processing service according to the transaction importance can be provided.

배치 생성 모듈(130)은 분류 모듈(110)에 의해 분류된 복수의 트랜잭션을 종합하여 배치 트랜잭션을 생성한다. 구체적으로, 배치 생성 모듈(130)은 상기 분류된 트랜잭션 각각을 분류 결과에 대응되는 배치 큐(batch queue)에 삽입한다. 예를 들어, 배치 생성 모듈(130)은 제1 분류 결과로 분류된 제1 트랜잭션을 제1 배치 큐에 삽입하고, 제2 분류 결과로 분류된 제2 트랜잭션을 제2 배치 큐에 삽입할 수 있다. 또한, 배치 생성 모듈(130)은 특정 배치 큐가 소정의 조건을 만족한다는 판정에 응답하여 상기 특정 배치 큐에 포함된 트랜잭션을 종합하여 배치 트랜잭션을 생성할 수 있다.The batch generation module 130 generates a batch transaction by synthesizing a plurality of transactions classified by the classification module 110 . Specifically, the batch generation module 130 inserts each of the classified transactions into a batch queue corresponding to the classification result. For example, the batch generation module 130 may insert the first transaction classified as the first classification result into the first batch queue, and insert the second transaction classified as the second classification result into the second batch queue. . Also, the batch generation module 130 may generate a batch transaction by synthesizing the transactions included in the specific batch queue in response to determining that the specific batch queue satisfies a predetermined condition.

상기 배치 큐는 배치 트랜잭션을 생성하기 전까지 트랜잭션을 보관하는 장소를 의미하며, 일종의 트랜잭션 버퍼(buffer) 또는 트랜잭션 풀(pool)의 개념으로 이해될 수 있다. 버퍼 큐의 명칭에서 알 수 있듯이, 상기 배치 큐는 큐 기반의 자료구조로 구현될 수 있을 것이나, 본 발명의 범위가 이에 한정되는 것은 아니며, 얼마든지 다양한 형태의 자료구조로 구현될 수 있다.The batch queue refers to a place for storing transactions until a batch transaction is created, and may be understood as a concept of a kind of transaction buffer or transaction pool. As can be seen from the name of the buffer queue, the batch queue may be implemented as a queue-based data structure, but the scope of the present invention is not limited thereto, and may be implemented with various types of data structures.

본 발명의 실시예에 따르면, 상기 소정의 조건은 타이머 만료 여부, 배치 큐에 포함된 전체 트랜잭션의 개수, 전체 트랜잭션의 크기, 트랜잭션 간의 연관성 존재 유무 등에 기초한 조건을 포함할 수 있다. 배치 생성 모듈(130)이 상기 조건에 따라 배치 트랜잭션을 생성하는 방법에 대한 자세한 설명은 도 12 내지 도 14를 참조하여 후술하도록 한다.According to an embodiment of the present invention, the predetermined condition may include conditions based on whether a timer expires, the total number of transactions included in the batch queue, the size of all transactions, and whether or not there is a correlation between transactions. A detailed description of how the batch generation module 130 generates a batch transaction according to the above conditions will be described later with reference to FIGS. 12 to 14 .

또한, 본 발명의 실시예에 따르면, 배치 생성 모듈(130)은 연관성이 존재하는 트랜잭션을 식별하고, 식별된 트랜잭션을 서로 다른 배치 트랜잭션으로 처리하거나, 곧바로 핸들러 모듈(150)로 전달함으로써 개별적으로 처리되도록 동작할 수 있다. 본 실시예에 대한 설명은 도 14의 설명 부분에서 부연 설명하도록 한다.In addition, according to an embodiment of the present invention, the batch creation module 130 identifies a transaction with an association, and processes the identified transaction as different batch transactions, or individually processes the identified transaction by directly passing it to the handler module 150 . can work as much as possible. The description of the present embodiment will be described in more detail in the description part of FIG. 14 .

핸들러 모듈(150)은 블록체인 네트워크(300)와 연동하여 배치 트랜잭션을 일괄 처리한다. 이를 위해, 핸들러 모듈(150)은 송신 핸들러(151) 및 수신 핸들러(153)를 포함하도록 구성될 수 있다.The handler module 150 interworks with the blockchain network 300 to batch-process a batch transaction. To this end, the handler module 150 may be configured to include a transmit handler 151 and a receive handler 153 .

송신 핸들러(151)는 배치 트랜잭션 등 데이터에 대한 전반적인 송신 처리를 수행한다. 구체적으로, 송신 핸들러(151)는 배치 트랜잭션의 생성에 응답하여, 생성된 배치 트랜잭션을 블록체인 네트워크(300)로 전달할 수 있다. 또한, 송신 핸들러(151)는 블록체인 노드에 의해 서명된 배치 트랜잭션의 실행 결과(e.g. endorsement)를 합의 노드로 전송하거나, 처리 실패된 배치 트랜잭션에 대한 재전송 등의 동작을 더 수행할 수 있다.The transmission handler 151 performs overall transmission processing for data, such as a batch transaction. Specifically, the transmission handler 151 may transmit the generated batch transaction to the blockchain network 300 in response to the generation of the batch transaction. In addition, the transmission handler 151 may transmit the execution result (e.g. endorsement) of the batch transaction signed by the blockchain node to the consensus node, or may further perform operations such as retransmission of the batch transaction that has failed processing.

수신 핸들러(153)는 배치 트랜잭션의 처리 결과 등 데이터에 대한 전반적인 수신 처리를 수행한다. 구체적으로, 수신 핸들러(153)는 블록체인 네트워크(300)로부터 배치 트랜잭션에 대한 처리 결과를 수신하고, 상기 수신에 응답하여 상기 처리 결과를 결과 제공 모듈(170)로 제공한다. 또한, 수신 핸들러(153)는 블록체인 네트워크(300)로부터 서명된 배치 트랜잭션의 처리 결과를 수신하고, 이를 송신 핸들러(151)로 전달하는 등의 동작을 더 수행할 수 있다.The reception handler 153 performs overall reception processing on data, such as a processing result of a batch transaction. Specifically, the reception handler 153 receives the processing result for the batch transaction from the blockchain network 300 , and provides the processing result to the result providing module 170 in response to the reception. In addition, the reception handler 153 may further perform operations such as receiving the processing result of the signed batch transaction from the block chain network 300 and transferring it to the transmission handler 151 .

핸들러 모듈(150)에 대한 더 자세한 설명은 도 5, 도 6 및 도 8 등에 대한 설명 부분을 더 참조하도록 한다.For a more detailed description of the handler module 150, refer to the description of FIGS. 5, 6, and 8, and the like.

결과 제공 모듈(170)은 수신 핸들러(153)로부터 배치 트랜잭션에 대한 처리 결과를 수신하고, 상기 처리 결과를 클라이언트 단말(400)로 제공한다. 보다 자세하게는, 결과 제공 모듈(170)은 배치 트랜잭션에 대한 처리 결과를 개별 트랜잭션에 대한 처리 결과로 구분하고, 개별 트랜잭션의 처리 결과를 각각의 클라이언트 단말(400)로 제공할 수 있다. 예를 들어, 결과 제공 모듈(170)은 각 클라이언트 단말(400)의 식별자, 트랜잭션 식별자, 각 클라이언트 단말(400)의 주소에 대한 참조 테이블을 생성하고, 상기 참조 테이블을 참조하여 개별 트랜잭션의 처리 결과를 해당 클라이언트 단말(400)로 제공할 수 있다. 다만, 본 발명의 범위가 상기 예시에 한정되는 것은 아니며, 어떠한 방식으로 구현되더라도 무방하다.The result providing module 170 receives the processing result for the batch transaction from the reception handler 153 , and provides the processing result to the client terminal 400 . In more detail, the result providing module 170 may classify the processing result for the batch transaction into the processing result for the individual transaction, and provide the processing result of the individual transaction to each client terminal 400 . For example, the result providing module 170 generates a reference table for the identifier of each client terminal 400 , the transaction identifier, and the address of each client terminal 400 , and refers to the reference table for processing results of individual transactions may be provided to the corresponding client terminal 400 . However, the scope of the present invention is not limited to the above examples, and may be implemented in any manner.

한편, 본 발명의 실시예에 따르면, 배치 서버(100)의 배치 생성 기능은 기 설정된 조건에 따라 활성화 또는 비활성화될 수 있다. 예를 들어, 배치 서버(100)는 기 설정된 조건이 만족됨에 응답하여 복수의 트랜잭션에 대한 배치 트랜잭션을 생성하지 않고, 복수의 트랜잭션 각각을 개별적으로 처리하도록 동작할 수 있다.Meanwhile, according to an embodiment of the present invention, the batch creation function of the batch server 100 may be activated or deactivated according to a preset condition. For example, the batch server 100 may operate to individually process each of a plurality of transactions without generating a batch transaction for a plurality of transactions in response to a preset condition being satisfied.

상기 기 설정된 조건은 배치 서버(100)의 부하(load), 네트워크 상태, 통신 딜레이, 실패한 트랜잭션의 개수, 트랜잭션의 실패 확률 등에 기초한 조건일 수 있다.The preset condition may be a condition based on a load of the batch server 100 , a network state, a communication delay, the number of failed transactions, a probability of failure of a transaction, and the like.

일 예를 들어, 배치 서버(100)는 부하(e.g. CPU 점유율)가 제1 임계치 이상인 조건이 만족됨에 응답하여, 배치 생성 기능을 비활성화할 수 있고, 부하가 상기 제1 임계치보다 작은 제2 임계치 이하인 조건이 만족됨에 응답하여, 배치 생성 기능을 다시 활성화할 수 있다.For example, the batch server 100 may deactivate the batch generation function in response to a condition that the load (e.g. CPU occupancy) is equal to or greater than the first threshold is satisfied, and the load is less than or equal to a second threshold that is less than the first threshold. In response to the condition being satisfied, the batch creation function may be re-enabled.

다른 일 예를 들어, 배치 서버(100)는 블록체인 네트워크(300)와의 통신 딜레이가 임계치 이상이 되는 등 네트워크 상태가 불안정함을 나타내는 조건이 만족됨에 응답하여, 배치 생성 기능을 비활성화할 수 있다. 물론, 네트워크 상태가 다시 안정화된 경우, 배치 서버(100)는 배치 생성 기능이 다시 활성화할 수 있다.As another example, the batch server 100 may deactivate the batch creation function in response to a condition indicating that the network state is unstable, such as a communication delay with the block chain network 300 being greater than or equal to a threshold is satisfied. Of course, when the network state is stabilized again, the batch server 100 may activate the batch creation function again.

또 다른 일 예를 들어, 배치 서버(100)는 일정 기간 내에 실패한 배치 트랜잭션(또는 개별 트랜잭션)의 개수가 임계치 이상이 되는 조건에 응답하여, 배치 생성 기능을 비활성화할 수 있다. 실패한 배치 트랜잭션의 처리 요청을 배치 형태로 재시도하더라도 다시 실패할 가능성이 높기 때문이다.As another example, the batch server 100 may deactivate the batch creation function in response to a condition in which the number of batch transactions (or individual transactions) that have failed within a certain period becomes greater than or equal to a threshold. This is because, even if the request for processing a failed batch transaction is retried in the form of a batch, it is highly likely to fail again.

또 다른 일 예를 들어, 배치 서버(100)는 다양한 요인(e.g. 배치 서버의 부하, 네트워크 상태, 통신 딜레이, 실패한 트랜잭션의 개수 등)에 기초하여 트랜잭션의 처리가 실패할 실패 확률을 산출하고, 산출된 실패 확률이 임계치 이상인 조건이 만족됨에 응답하여, 배치 생성 기능을 비활성화할 수 있다.For another example, the batch server 100 calculates a failure probability that the transaction processing will fail based on various factors (e.g. load of the batch server, network state, communication delay, the number of failed transactions, etc.) In response to the condition that the failure probability is equal to or greater than the threshold is satisfied, the batch generation function may be deactivated.

도 4에 도시된 각 구성 요소는 소프트웨어(Software) 또는, FPGA(Field Programmable Gate Array)나 ASIC(Application-Specific Integrated Circuit)과 같은 하드웨어(Hardware)를 의미할 수 있다. 그렇지만, 상기 구성 요소들은 소프트웨어 또는 하드웨어에 한정되는 의미는 아니며, 어드레싱(Addressing)할 수 있는 저장 매체에 있도록 구성될 수도 있고, 하나 또는 그 이상의 프로세서들을 실행시키도록 구성될 수도 있다. 상기 구성 요소들 안에서 제공되는 기능은 더 세분화된 구성 요소에 의하여 구현될 수 있으며, 복수의 구성 요소들을 합하여 특정한 기능을 수행하는 하나의 구성 요소로 구현될 수도 있다.Each component shown in FIG. 4 may mean software or hardware such as a field programmable gate array (FPGA) or an application-specific integrated circuit (ASIC). However, the above components are not meant to be limited to software or hardware, and may be configured to be in an addressable storage medium or configured to execute one or more processors. The functions provided in the components may be implemented by more subdivided components, or may be implemented as one component that performs a specific function by combining a plurality of components.

한편, 본 발명의 실시예에 따르면, 전술한 배치 서버(100)의 기능은 클라이언트 단말(400) 측에 구현될 수도 있다. 예를 들어, 특정 클라이언트 단말(400)이 복수의 블록체인 트랜잭션을 생성한 경우, 특정 클라이언트 단말(400)이 직접 상기 복수의 블록체인 트랜잭션 중 적어도 일부를 종합하여 배치 트랜잭션을 생성하며, 블록체인 네트워크(300)를 통해 상기 배치 트랜잭션을 처리하도록 구현될 수도 있다. 클라이언트 단말(400)이 배치 트랜잭션을 생성하고 처리하는 상세한 과정은 배치 서버(100)와 유사한 바 이에 대한 상세한 설명은 생략하도록 한다.Meanwhile, according to an embodiment of the present invention, the above-described function of the deployment server 100 may be implemented on the client terminal 400 side. For example, when a specific client terminal 400 generates a plurality of block chain transactions, the specific client terminal 400 directly synthesizes at least some of the plurality of block chain transactions to generate a batch transaction, and the block chain network It may be implemented to process the batch transaction via 300 . A detailed process of generating and processing a batch transaction by the client terminal 400 is similar to that of the batch server 100 , so a detailed description thereof will be omitted.

이하에서는, 보다 이해의 편의를 제공하기 위해, 배치 서버(100)를 통해 쓰기 타입 트랜잭션과 읽기 타입 트랜잭션이 처리되는 과정을 도 5 내지 도 8을 참조하여 설명하도록 한다.Hereinafter, in order to provide more convenience of understanding, a process of processing a write-type transaction and a read-type transaction through the batch server 100 will be described with reference to FIGS. 5 to 8 .

도 5는 본 발명의 일 실시예에 따라 쓰기 타입 트랜잭션이 처리되는 과정을 도시한다. 도 5, 도 6 및 도 8은, 3개의 트랜잭션을 종합하여 하나의 배치 트랜잭션을 생성하는 것을 예로써 도시하고 있다.5 illustrates a process of processing a write-type transaction according to an embodiment of the present invention. 5, 6, and 8 illustrate, as an example, generating one batch transaction by synthesizing three transactions.

도 5를 참조하면, 배치 서버(100)는 복수의 쓰기 타입 트랜잭션(Txw1, Txw2, Txw3)을 종합하여 배치 트랜잭션(10)을 생성한다. 자세하게는, 분류 모듈(110)의 분류 결과에 기초하여 배치 생성 모듈(130)이 쓰기 타입 트랜잭션(Txw1, Txw2, Txw3)을 동일한 배치 큐에 삽입하고, 상기 배치 큐에 삽입된 쓰기 타입 트랜잭션(Txw1, Txw2, Txw3)을 종합하여 배치 트랜잭션(10)을 생성할 수 있다.Referring to FIG. 5 , the batch server 100 generates a batch transaction 10 by synthesizing a plurality of write-type transactions Tx w1 , Tx w2 , and Tx w3 . In detail, based on the classification result of the classification module 110 , the batch generation module 130 inserts the write type transactions (Tx w1 , Tx w2 , Tx w3 ) into the same batch queue, and the write type inserted into the batch queue The batch transaction 10 may be generated by synthesizing the transactions Tx w1 , Tx w2 , and Tx w3 .

다음으로, 배치 서버(100)는 블록체인 네트워크(300)로 배치 트랜잭션(10)의 처리를 요청한다. 그러면, 블록체인 네트워크(300)를 구성하는 블록체인 노드(200a, 200b)는 배치 트랜잭션(10)에 대한 합의 프로세스를 수행하고, 배치 트랜잭션(10)의 실행 결과를 블록체인(230a, 230b) 상에 기록한다.Next, the batch server 100 requests processing of the batch transaction 10 to the blockchain network 300 . Then, the block chain nodes 200a and 200b constituting the block chain network 300 perform a consensus process for the batch transaction 10, and display the execution result of the batch transaction 10 on the block chain 230a, 230b. record in

도 5에 도시된 바와 같이, 각 블록체인 노드(230a, 230b)는 배치 트랜잭션(10)을 처리하기 위한 처리 모듈(210a, 210b)를 포함할 수 있다. 처리 모듈(210a, 210b)은 스마트 컨트랙트를 이용하여 배치 트랜잭션(10)의 실행 결과를 트랜잭션 별(또는 상태 데이터 별)로 구분하고, 구분된 실행 결과를 기초하여 블록체인을 갱신하는 동작을 수행한다. 이때, 배치 트랜잭션(10)의 실행 결과는 블록체인 노드의 서명(signature), 개별 트랜잭션의 식별자, 상태 데이터의 식별키(A, B, C)와 값(1, 2, 3) 등을 포함할 수 있다. 따라서, 처리 모듈(210a, 210b)은 식별키(A, B, C) 및/또는 트랜잭션의 식별자를 이용하여 배치 트랜잭션(10)의 실행 결과를 트랜잭션 별(또는 상태 별)로 구분할 수 있다. 이외에도, 처리 모듈(210a, 210b)은 읽기 타입의 트랜잭션을 기초로 생성된 배치 트랜잭션에 대한 처리를 더 수행할 수 있는데, 이에 대한 설명은 도 8을 참조하여 후술하도록 한다.As shown in FIG. 5 , each of the blockchain nodes 230a and 230b may include processing modules 210a and 210b for processing the batch transaction 10 . The processing modules 210a and 210b classify the execution result of the batch transaction 10 by transaction (or by state data) using a smart contract, and update the block chain based on the divided execution result. . At this time, the execution result of the batch transaction 10 may include the signature of the blockchain node, the identifier of the individual transaction, the identification key (A, B, C) and value (1, 2, 3) of the state data, etc. can Accordingly, the processing modules 210a and 210b may classify the execution result of the batch transaction 10 by transaction (or by state) by using the identification keys A, B, and C and/or the identifier of the transaction. In addition, the processing modules 210a and 210b may further process a batch transaction generated based on a read-type transaction, which will be described later with reference to FIG. 8 .

다음으로, 배치 서버(100)는 블록체인 네트워크(300)로부터 배치 트랜잭션(10)에 대한 처리 결과를 수신하고, 수신된 처리 결과를 해당 클라이언트 단말(400)로 제공한다.Next, the batch server 100 receives the processing result for the batch transaction 10 from the blockchain network 300 , and provides the received processing result to the corresponding client terminal 400 .

이때, 상기 처리 결과가 실패를 가리키는 경우, 배치 서버(100)의 핸들러 모듈(150)은 배치 트랜잭션(10)의 처리 요청을 재시도할 수 있는데, 이에 대한 설명은 도 15를 참조하여 상세하게 설명하도록 한다.At this time, if the processing result indicates failure, the handler module 150 of the batch server 100 may retry the processing request of the batch transaction 10, which will be described in detail with reference to FIG. 15 . let it do

도 6은 하이퍼레저 패브릭과 같이 별도의 합의 노드가 존재하는 환경에서 쓰기 타입의 배치 트랜잭션이 처리되는 과정을 도시하고 있다.6 illustrates a process of processing a write-type batch transaction in an environment in which a separate consensus node exists, such as Hyperledger Fabric.

합의 노드(e.g. orderer)가 별도로 존재하는 경우 도 6에 도시된 바와 같이 배치 트랜잭션(20)이 처리될 수 있다. 먼저, 배치 서버(100)는 배치 트랜잭션(20)를 블록체인 노드(201)로 전송하고, 배치 트랜잭션(20)에 대한 실행 결과를 수신한다. 상기 실행 결과는, 전술한 바와 같이, 배치 트랜잭션(20)에 대한 블록체인 노드의 서명, 상태 데이터의 식별키(A, B, C)와 값(1, 2, 3) 등을 포함할 수 있다.When a consensus node (e.g. orderer) exists separately, the batch transaction 20 may be processed as shown in FIG. 6 . First, the batch server 100 transmits the batch transaction 20 to the blockchain node 201 and receives the execution result for the batch transaction 20 . The execution result, as described above, may include the signature of the blockchain node for the batch transaction 20, the identification key (A, B, C) and value (1, 2, 3) of the state data, etc. .

다음으로, 배치 서버(100)는 블록체인 노드(201)로부터 수신한 실행 결과를 별도의 합의 노드(205)에게 제출한다. 그러면, 합의 노드(205)는 블록체인 노드(201)의 실행 결과를 토대로 배치 트랜잭션(20)에 대한 검증을 수행하고, 상기 실행 결과를 신규 블록에 기록하며, 신규 블록을 블록체인 네트워크(300) 상에 전파한다. 마지막으로, 신규 블록을 수신한 각 블록체인 노드(201, 203)는 처리 모듈(211)를 통해 배치 트랜잭션(20)의 실행 결과를 트랜잭션 별(또는 상태 데이터 별)로 구분하고, 구분된 실행 결과를 바탕으로 블록체인을 갱신한다.Next, the batch server 100 submits the execution result received from the blockchain node 201 to a separate consensus node 205 . Then, the consensus node 205 performs verification on the batch transaction 20 based on the execution result of the blockchain node 201, records the execution result in a new block, and stores the new block in the blockchain network 300 spread over the Finally, each blockchain node 201, 203 that has received the new block classifies the execution result of the batch transaction 20 by transaction (or by state data) through the processing module 211, and the divided execution result update the blockchain based on

도 5 및 도 6을 참조하여 설명한 바와 같이, 본 발명의 실시예에 따르면, 개별 트랜잭션 단위로 트랜잭션이 처리되는 것이 아니라, 배치 트랜잭션 단위로 복수의 트랜잭션이 일괄 처리될 수 있다. 따라서, 시스템의 트랜잭션 처리 성능이 크게 향상될 수 있다.As described with reference to FIGS. 5 and 6 , according to an embodiment of the present invention, a plurality of transactions may be batch-processed in units of batch transactions, rather than in units of individual transactions. Accordingly, the transaction processing performance of the system can be greatly improved.

이하에서는, 종래 대비 쓰기 타입의 트랜잭션 처리 성능이 급격하게 향상되는 이유를 보다 명확하게 전달하기 위해, 하이퍼레저 패브릭에서 트랜잭션이 처리되는 과정을 간략하게 설명하도록 한다.Hereinafter, in order to more clearly convey the reason why the write-type transaction processing performance is rapidly improved compared to the prior art, a process of processing a transaction in Hyperledger Fabric will be briefly described.

도 7에 도시된 바와 같이, 하이퍼레저 패브릭은 개별 쓰기 타입 트랜잭션에 대하여 최소 4번의 메시지 전달 과정(① 내지 ④)을 수행한다. 가령, 100개의 쓰기 타입 트랜잭션을 처리하기 위해서는 최소 400번의 메시지 전달이 요구된다. 반면에, 본 발명의 실시예에 따른 배치 서버(100)를 통해 100개의 쓰기 트랜잭션이 1개의 배치 트랜잭션으로 일괄 처리되면, 100개의 쓰기 트랜잭션에 대한 전달 과정(② 내지 ④)이 3번의 메시지 전달로 완료될 수 있다. 즉, 본 발명의 실시예에 따르면, 다수의 쓰기 타입 트랜잭션에 대한 합의 프로세스가 병렬적으로 수행되는 것이기 때문에 블록체인 시스템의 트랜잭션 처리 성능이 크게 향상될 수 있다. 아울러, 본 발명의 실시예들은 종래 블록체인 시스템의 내부 로직(e.g. 합의 프로세스)의 수정을 요구하지 않기 때문에, 다양한 블록체인 시스템에 폭넓게 적용될 수 있다.As shown in FIG. 7 , Hyperledger Fabric performs at least four message delivery processes (① to ④) for each write type transaction. For example, to process 100 write-type transactions, at least 400 message delivery is required. On the other hand, when 100 write transactions are batch processed as one batch transaction through the batch server 100 according to the embodiment of the present invention, the delivery process (② to ④) for 100 write transactions is performed with three message delivery. can be completed That is, according to an embodiment of the present invention, since the consensus process for a plurality of write-type transactions is performed in parallel, the transaction processing performance of the blockchain system can be greatly improved. In addition, since the embodiments of the present invention do not require modification of the internal logic (e.g. consensus process) of the conventional blockchain system, they can be widely applied to various blockchain systems.

이하에서는, 본 발명의 실시예에 따라 읽기 타입 트랜잭션이 처리되는 과정을 도 8을 참조하여 설명하도록 한다.Hereinafter, a process of processing a read type transaction according to an embodiment of the present invention will be described with reference to FIG. 8 .

도 8을 참조하면, 배치 서버(100)는 읽기 타입 트랜잭션(TxR1, TxR2, TxR3)을 종합하여 배치 트랜잭션(30)을 생성하고, 블록체인 네트워크(300)로 배치 트랜잭션(30)의 처리를 요청한다.Referring to FIG. 8 , the batch server 100 generates a batch transaction 30 by synthesizing read type transactions (Tx R1 , Tx R2 , Tx R3 ), and the batch transaction 30 to the blockchain network 300 . request processing.

상기 요청을 수신한 블록체인 노드(200a)는 처리 모듈(210a)을 통해 배치 트랜잭션(20)을 트랜잭션 별(또는 상태 데이터 별)로 구분하고, 블록체인에 기록된 상태 데이터(A, B, C)를 조회한다. 상기 구분 과정은 트랜잭션 식별자 및/또는 상태 데이터의 식별키(A, B, C)에 기초하여 스마트 컨트랙트를 통해 수행될 수 있다.The blockchain node 200a that has received the request divides the batch transaction 20 into transactions (or by state data) through the processing module 210a, and state data (A, B, C) recorded in the blockchain ) is searched. The classification process may be performed through a smart contract based on the transaction identifier and/or the identification key (A, B, C) of the state data.

다음으로, 배치 서버(100)는 블록체인 노드(200a)로부터 배치 트랜잭션(30)의 처리 결과(즉, 조회된 상태 데이터의 값)를 수신하고, 처리 결과를 해당 클라이언트 단말(400)로 제공할 수 있다.Next, the batch server 100 receives the processing result (ie, the value of the inquired state data) of the batch transaction 30 from the block chain node 200a, and provides the processing result to the corresponding client terminal 400. can

이때, 상기 처리 결과가 실패를 가리키는 경우, 배치 서버(100)의 핸들러 모듈(150)은 배치 트랜잭션(30)의 처리 요청을 재시도할 수 있는데, 이에 대한 설명은 도 15를 참조하여 상세하게 설명하도록 한다.At this time, if the processing result indicates failure, the handler module 150 of the batch server 100 may retry the processing request of the batch transaction 30 , which will be described in detail with reference to FIG. 15 . do it

지금까지, 도 8을 참조하여 배치 서버(100)를 통해 읽기 타입의 트랜잭션이 처리되는 과정에 대하여 설명하였다. 상술한 방법에 따르면, 복수의 읽기 타입의 트랜잭션이 배치 형태로 일괄 처리될 수 있는 바, 시스템의 전반적인 트랜잭션 처리 성능이 크게 향상될 수 있다.So far, a process of processing a read-type transaction through the batch server 100 has been described with reference to FIG. 8 . According to the above-described method, since a plurality of read-type transactions can be batch-processed in a batch form, overall transaction processing performance of the system can be greatly improved.

이하에서는, 본 발명의 일 실시예에 따른 배치 서버(100)의 하드웨어 구성에 대하여 도 9를 참조하여 설명하도록 한다.Hereinafter, a hardware configuration of the deployment server 100 according to an embodiment of the present invention will be described with reference to FIG. 9 .

도 9를 참조하면, 배치 서버(100)는 하나 이상의 프로세서(101), 버스(105), 네트워크 인터페이스(107), 프로세서(101)에 의하여 수행되는 컴퓨터 프로그램을 로드(load)하는 메모리(103)와, 블록체인 기반 트랜잭션 처리 소프트웨어(109a)를 저장하는 스토리지(109)를 포함할 수 있다. 다만, 도 9에는 본 발명의 실시예와 관련 있는 구성요소들만이 도시되어 있다. 따라서, 본 발명이 속한 기술분야의 통상의 기술자라면 도 9에 도시된 구성요소들 외에 다른 범용적인 구성 요소들이 더 포함될 수 있음을 알 수 있다.Referring to FIG. 9 , the batch server 100 includes one or more processors 101 , a bus 105 , a network interface 107 , and a memory 103 for loading a computer program executed by the processor 101 . and a storage 109 for storing the blockchain-based transaction processing software 109a. However, only the components related to the embodiment of the present invention are illustrated in FIG. 9 . Accordingly, those skilled in the art to which the present invention pertains can see that other general-purpose components other than the components shown in FIG. 9 may be further included.

프로세서(101)는 배치 서버(100)의 각 구성의 전반적인 동작을 제어한다. 프로세서(101)는 CPU(Central Processing Unit), MPU(Micro Processor Unit), MCU(Micro Controller Unit), GPU(Graphic Processing Unit) 또는 본 발명의 기술 분야에 잘 알려진 임의의 형태의 프로세서를 포함하여 구성될 수 있다. 또한, 프로세서(101)는 본 발명의 실시예들에 따른 방법을 실행하기 위한 적어도 하나의 애플리케이션 또는 프로그램에 대한 연산을 수행할 수 있다. 배치 서버(100)는 하나 이상의 프로세서를 구비할 수 있다.The processor 101 controls the overall operation of each component of the batch server 100 . The processor 101 includes a central processing unit (CPU), a micro processor unit (MPU), a micro controller unit (MCU), a graphic processing unit (GPU), or any type of processor well known in the art. can be In addition, the processor 101 may perform an operation on at least one application or program for executing the method according to the embodiments of the present invention. The deployment server 100 may include one or more processors.

메모리(103)는 각종 데이터, 명령 및/또는 정보를 저장한다. 메모리(103)는 본 발명의 실시예들에 따른 블록체인 기반 트랜잭션 처리 방법을 실행하기 위하여 스토리지(109)로부터 하나 이상의 프로그램(109a)을 로드할 수 있다. 도 9에서 메모리(103)의 예시로 RAM이 도시되었다.The memory 103 stores various data, commands and/or information. The memory 103 may load one or more programs 109a from the storage 109 to execute the blockchain-based transaction processing method according to embodiments of the present invention. A RAM is shown as an example of the memory 103 in FIG. 9 .

예를 들어, 프로그램(109a)이 메모리(103)에 로드되면, 도 5에 도시된 바와 같은 로직(또는 모듈)이 메모리(103)에 구현될 수 있다.For example, when the program 109a is loaded into the memory 103 , logic (or a module) as shown in FIG. 5 may be implemented in the memory 103 .

버스(105)는 배치 서버(100)의 구성 요소 간 통신 기능을 제공한다. 버스(105)는 주소 버스(Address Bus), 데이터 버스(Data Bus) 및 제어 버스(Control Bus) 등 다양한 형태의 버스로 구현될 수 있다.The bus 105 provides communication functions between the components of the deployment server 100 . The bus 105 may be implemented as various types of buses, such as an address bus, a data bus, and a control bus.

네트워크 인터페이스(107)는 배치 서버(100)의 유무선 인터넷 통신을 지원한다. 배치 서버(100)는 네트워크 인터페이스(107)를 통해 블록체인 네트워크(300) 및/또는 클라이언트 단말(400)과 통신할 수 있다.The network interface 107 supports wired/wireless Internet communication of the deployment server 100 . The batch server 100 may communicate with the blockchain network 300 and/or the client terminal 400 via the network interface 107 .

네트워크 인터페이스(107)는 인터넷 통신 외의 다양한 통신 방식을 지원할 수도 있다. 이를 위해, 네트워크 인터페이스(107)는 본 발명의 기술 분야에 잘 알려진 통신 모듈을 포함하여 구성될 수 있다.The network interface 107 may support various communication methods other than Internet communication. To this end, the network interface 107 may be configured to include a communication module well known in the art.

스토리지(109)는 상기 하나 이상의 프로그램(109a)을 비임시적으로 저장할 수 있다. 도 9에서 상기 하나 이상의 프로그램(109a)의 예시로 블록체인 기반 트랜잭션 처리 소프트웨어(109a)가 도시되었다.The storage 109 may non-temporarily store the one or more programs 109a. A blockchain-based transaction processing software 109a is shown as an example of the one or more programs 109a in FIG. 9 .

스토리지(109)는 ROM(Read Only Memory), EPROM(Erasable Programmable ROM), EEPROM(Electrically Erasable Programmable ROM), 플래시 메모리 등과 같은 비휘발성 메모리, 하드 디스크, 착탈형 디스크, 또는 본 발명이 속하는 기술 분야에서 잘 알려진 임의의 형태의 컴퓨터로 읽을 수 있는 기록 매체를 포함하여 구성될 수 있다.The storage 109 is a non-volatile memory such as a read only memory (ROM), an erasable programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, a hard disk, a removable disk, or well in the art to which the present invention pertains. It may be configured to include any known computer-readable recording medium.

트랜잭션 처리 소프트웨어(109a)는 메모리(103)에 로드되어, 프로세서(101)로 하여금 본 발명의 실시예에 따른 블록체인 기반 트랜잭션 처리 방법을 수행하도록 하는 인스트럭션들을 포함할 수 있다.The transaction processing software 109a may include instructions that are loaded into the memory 103 and cause the processor 101 to perform a blockchain-based transaction processing method according to an embodiment of the present invention.

예를 들어, 트랜잭션 처리 소프트웨어(109a)는 메모리(103)에 로드될 때, 프로세서(101)로 하여금 복수의 블록체인 트랜잭션(blockchain transaction)을 획득하는 동작, 상기 복수의 블록체인 트랜잭션 중 적어도 일부를 종합하여, 배치 트랜잭션(batch transaction)을 생성하는 동작 및 블록체인 네트워크를 통해 상기 배치 트랜잭션을 처리하는 동작을 수행하도록 하는 인스트럭션들을 포함할 수 있다.For example, when the transaction processing software 109a is loaded into the memory 103, the processor 101 performs an operation of obtaining a plurality of blockchain transactions, at least some of the plurality of blockchain transactions. Collectively, it may include instructions for performing an operation for generating a batch transaction and an operation for processing the batch transaction through a blockchain network.

지금까지, 도 5 내지 도 9를 참조하여 본 발명의 실시예에 따른 배치 서버(100)의 구성 및 동작에 대하여 설명하였다. 이하에서는, 도 10 내지 도 15를 참조하여 본 발명의 실시예에 따른 블록체인 기반 트랜잭션 처리 방법에 대하여 상세하게 설명한다.So far, the configuration and operation of the deployment server 100 according to the embodiment of the present invention has been described with reference to FIGS. 5 to 9 . Hereinafter, a block chain-based transaction processing method according to an embodiment of the present invention will be described in detail with reference to FIGS. 10 to 15 .

이하, 본 발명의 실시예에 따른 블록체인 기반 트랜잭션 처리 방법의 각 단계는, 컴퓨팅 장치에 의해 수행될 수 있다. 예를 들어, 상기 컴퓨팅 장치는 배치 서버(100) 또는 도 1에 도시된 블록체인 기반 트랜잭션 처리 시스템을 구성하는 다른 장치일 수 있다. 다만, 설명의 편의를 위해, 상기 블록체인 기반 트랜잭션 처리 방법에 포함되는 각 단계의 동작 주체는 그 기재가 생략될 수도 있다. 또한, 블록체인 기반 트랜잭션 처리 방법의 각 단계는 메모리에 로드될 때, 프로세서로 하여금 각 단계에 대응되는 동작을 수행하도록 하는 인스트럭션들로 구현될 수 있다.Hereinafter, each step of the blockchain-based transaction processing method according to an embodiment of the present invention may be performed by a computing device. For example, the computing device may be the batch server 100 or another device constituting the blockchain-based transaction processing system shown in FIG. 1 . However, for convenience of description, the description of the operating subject of each step included in the block chain-based transaction processing method may be omitted. In addition, each step of the blockchain-based transaction processing method may be implemented with instructions that cause the processor to perform an operation corresponding to each step when loaded into memory.

도 10은 본 발명의 일 실시예에 따른 블록체인 기반 트랜잭션 처리 방법의 흐름도이다. 단, 이는 본 발명의 목적을 달성하기 위한 바람직한 실시예일뿐이며, 필요에 따라 일부 단계가 추가되거나 삭제될 수 있음은 물론이다.10 is a flowchart of a blockchain-based transaction processing method according to an embodiment of the present invention. However, this is only a preferred embodiment for achieving the object of the present invention, and it goes without saying that some steps may be added or deleted as necessary.

도 10을 참조하면, 본 발명의 일 실시예에 따른 트랜잭션 처리 방법은 복수의 클라이언트 단말(400)이 복수의 트랜잭션을 생성하고, 상기 복수의 트랜잭션의 처리를 요청하는 단계(S10, S20)에서 시작된다.Referring to FIG. 10 , the transaction processing method according to an embodiment of the present invention starts at steps S10 and S20 in which a plurality of client terminals 400 generate a plurality of transactions and request processing of the plurality of transactions. do.

단계(S30)에서, 배치 서버(100)는 복수의 트랜잭션을 종합하여 배치 트랜잭션을 생성한다. 본 단계(S30)에 대한 자세한 설명은 도 11 내지 도 14를 참조하여 후술하도록 한다.In step S30, the batch server 100 generates a batch transaction by synthesizing a plurality of transactions. A detailed description of this step S30 will be described later with reference to FIGS. 11 to 14 .

단계(S40)에서, 배치 서버(100)는 생성된 배치 트랜잭션을 블록체인 네트워크(300)로 전달한다.In step S40 , the batch server 100 transmits the generated batch transaction to the blockchain network 300 .

단계(S50)에서, 블록체인 네트워크(300)를 구성하는 복수의 블록체인 노드(200)는 배치 트랜잭션을 일괄 처리한다. 예를 들어, 상기 복수의 블록체인 노드(200)는 상기 배치 트랜잭션에 대한 합의 프로세스를 수행하고, 각각의 블록체인 노드(200)는 상기 배치 트랜잭션의 실행 결과를 블록체인 상에 기록한다. 전술한 바와 같이, 각각의 블록체인 노드(200)는 스마트 컨트랙트 기반의 처리 모듈을 이용하여 상기 실행 결과를 구분하고, 블록체인을 갱신할 수 있다.In step S50, a plurality of blockchain nodes 200 constituting the blockchain network 300 batch-process the batch transaction. For example, the plurality of block chain nodes 200 perform a consensus process for the batch transaction, and each block chain node 200 records the execution result of the batch transaction on the block chain. As described above, each block chain node 200 can use a smart contract-based processing module to classify the execution result and update the block chain.

단계(S60)에서, 블록체인 네트워크(300)는 배치 트랜잭션에 대한 처리 결과를 배치 서버(100)로 전달한다. 이때, 상기 처리 결과는 성공 또는 실패를 가리키는 정보를 포함할 수 있다.In step S60 , the blockchain network 300 transmits the processing result for the batch transaction to the batch server 100 . In this case, the processing result may include information indicating success or failure.

단계(S70)에서, 배치 서버(100)는 배치 트랜잭션의 처리 결과를 개별 트랜잭션의 처리 결과로 구분하고, 개별 트랜잭션의 처리 결과를 각각의 클라이언트 단말(400)로 제공한다.In step S70 , the batch server 100 classifies the processing result of the batch transaction into the processing result of the individual transaction, and provides the processing result of the individual transaction to each client terminal 400 .

다만, 실패를 가리키는 처리 결과가 수신된 경우, 배치 서버(100)는 배치 트랜잭션에 대한 처리 요청 다시 시도할 수 있는데, 이에 대한 설명은 도 15를 참조하여 후술하도록 한다.However, when a processing result indicating failure is received, the batch server 100 may retry the processing request for the batch transaction, which will be described later with reference to FIG. 15 .

지금까지, 도 10을 참조하여 본 발명의 일 실시예에 따른 블록체인 기반 트랜잭션 처리 방법에 대하여 설명하였다. 상술한 방법에 따르면, 개별 트랜잭션을 배치 형태로 일괄 처리함으로써, 블록체인 시스템의 트랜잭션 처리 성능이 크게 향상될 수 있다. 특히, 상술한 방법은 별도의 배치 서버(100)에 의해 수행되기 때문에, 블록체인 시스템의 내부 로직이 수정될 필요가 없다. 따라서, 뛰어난 이식성(portability)을 제공하며, 다양한 블록체인 시스템에 폭넓게 활용될 수 있다.So far, a block chain-based transaction processing method according to an embodiment of the present invention has been described with reference to FIG. 10 . According to the above-described method, by batch processing individual transactions in a batch form, the transaction processing performance of the blockchain system can be greatly improved. In particular, since the above-described method is performed by a separate batch server 100, the internal logic of the blockchain system does not need to be modified. Therefore, it provides excellent portability and can be widely used in various blockchain systems.

이하에서는, 도 11 내지 도 14를 참조하여 단계(S30)에서 수행되는 배치 트랜잭션 생성 방법에 대하여 상세하게 설명하도록 한다.Hereinafter, the batch transaction generation method performed in step S30 will be described in detail with reference to FIGS. 11 to 14 .

도 11은 본 발명의 일 실시예에 따른 배치 트랜잭션 생성 방법을 나타내는 흐름도이다. 이는 본 발명의 목적을 달성하기 위한 바람직한 실시예일뿐이며, 필요에 따라 일부 단계가 추가되거나 삭제될 수 있음은 물론이다.11 is a flowchart illustrating a method for generating a batch transaction according to an embodiment of the present invention. This is only a preferred embodiment for achieving the object of the present invention, and it goes without saying that some steps may be added or deleted as necessary.

도 11을 참조하면, 상기 배치 트랜잭션 생성 방법은 배치 서버(100)가 트랜잭션을 획득하는 단계(S110)에서 시작된다. 예를 들어, 배치 서버(100)는 클라이언트 단말(400)로부터 트랜잭션을 수신할 수 있다.Referring to FIG. 11 , the batch transaction generation method starts at step S110 in which the batch server 100 acquires a transaction. For example, the batch server 100 may receive a transaction from the client terminal 400 .

단계(S130)에서, 배치 서버(100)는 기 설정된 기준에 따라 트랜잭션을 분류한다. 상기 기 설정된 기준은 예를 들어 채널 식별자, 스마트 컨트랙트 식별자, 트랜잭션의 타입, 트랜잭션의 중요도 등을 포함할 수 있다. 단, 이는 본 발명의 일부 실시예를 설명하기 위한 것일 뿐, 본 발명의 범위가 상기 열거된 예시에 한정되는 것은 아니다.In step S130, the batch server 100 classifies the transaction according to a preset criterion. The preset criteria may include, for example, a channel identifier, a smart contract identifier, a transaction type, a transaction importance, and the like. However, this is only for describing some embodiments of the present invention, and the scope of the present invention is not limited to the above-listed examples.

단계(S150)에서, 배치 서버(100)는 각 트랜잭션을 분류 결과에 기초하여 배치 큐에 삽입한다. 예를 들어, 배치 서버(100)는 제1 채널의 제1 스마트 컨트랙트에 대한 쓰기 타입 트랜잭션을 제1 배치 큐에 삽입하고, 제1 채널의 제1 스마트 컨트랙트에 대한 읽기 타입 트랜잭션을 제2 배치 큐에 삽입할 수 있다. 다른 예를 들어, 배치 서버(100)는 제1 중요도를 갖는 제1 트랜잭션을 우선순위가 높은 제1 배치 큐에 삽입하고, 제2 중요도를 갖는 제2 트랜잭션을 우선순위가 낮은 제2 배치 큐에 삽입할 수 있다.In step S150, the batch server 100 inserts each transaction into the batch queue based on the classification result. For example, the batch server 100 inserts a write type transaction for the first smart contract of the first channel into the first batch queue, and inserts a read type transaction for the first smart contract of the first channel into the second batch queue can be inserted into For another example, the batch server 100 inserts a first transaction having a first priority into a first batch queue having a high priority, and inserts a second transaction having a second importance into a second batch queue having a lower priority. can be inserted.

그러나, 전술한 바와 같이, 배치 서버(100)는 중요도가 높은 일부 트랜잭션은 배치 큐에 삽입하지 않고, 개별적으로 처리할 수도 있다. 또한, 후술할 바와 같이, 배치 서버(100)는 배치 큐에 삽입된 트랜잭션 중에서 연관성이 존재하는 트랜잭션을 배치 큐에서 제외하여 개별적으로 처리하도록 동작할 수도 있다.However, as described above, the batch server 100 may process some high-importance transactions individually without inserting them into the batch queue. Also, as will be described later, the batch server 100 may operate to separately process transactions that have a correlation among transactions inserted into the batch queue by excluding them from the batch queue.

단계(S170)에서, 배치 서버(100)는 소정의 조건을 만족하는 배치 큐의 트랜잭션을 종합하여 배치 트랜잭션을 생성한다.In step S170 , the batch server 100 generates a batch transaction by synthesizing the batch queue transactions that satisfy a predetermined condition.

본 발명의 몇몇 실시예에 따르면, 상기 소정의 조건은 타이머 만료에 기초한 제1 조건, 트랜잭션의 크기에 기초한 제2 조건, 트랜잭션의 개수에 기초한 제3 조건, 트랜잭션 간의 연관성 존재 여부에 기초한 제4 조건 등을 포함할 수 있다. 또한, 상기 소정의 조건은 상기 제1 조건 내지 상기 제4 조건의 조합에 기초하여 정의될 수 있는 조건을 더 포함할 수도 있다. 이하에서는, 도 12 내지 도 14를 참조하여 단계(S170)에서 소정의 조건에 따라 배치 트랜잭션을 생성하는 방법에 대하여 부연 설명하도록 한다. 먼저, 상기 타이머 만료 여부에 기초한 제1 조건에 따라 배치 트랜잭션을 생성하는 방법에 대하여 도 12을 참조하여 설명하도록 한다.According to some embodiments of the present invention, the predetermined condition includes a first condition based on expiration of a timer, a second condition based on the size of a transaction, a third condition based on the number of transactions, and a fourth condition based on whether there is an association between transactions. and the like. In addition, the predetermined condition may further include a condition that may be defined based on a combination of the first condition to the fourth condition. Hereinafter, a method of generating a batch transaction according to a predetermined condition in step S170 will be described in detail with reference to FIGS. 12 to 14 . First, a method of generating a batch transaction according to the first condition based on whether the timer expires will be described with reference to FIG. 12 .

도 12를 참조하면, 단계(S210)에서, 배치 서버(100)는 타이머(timer)를 설정한다. 예를 들어, 배치 서버(100)는 주기적으로 만료 이벤트가 발생되도록 상기 타이머를 설정할 수 있고, 각 배치 큐 별로 타이머를 설정할 수 있다.Referring to FIG. 12 , in step S210 , the batch server 100 sets a timer. For example, the batch server 100 may set the timer to periodically generate an expiration event, and may set a timer for each batch queue.

본 발명의 실시예에 따르면, 배치 서버(100)는 각 배치 큐의 타이머를 서로 다르게 설정할 수 있다. 예를 들어, 배치 서버(100)는 우선순위가 높은 배치 큐의 타이머 주기는 작은 값으로 설정하고, 우선순위가 낮은 배치 큐의 타이머 주기는 큰 값으로 설정할 수 있다. 다른 예를 들어, 배치 서버(100)는 우선순위가 높은 배치 큐에 대해서만 타이머를 설정하고, 우선순위가 낮은 배치 큐에는 타이머를 설정하지 않을 수 있다. 본 실시예에 따르면, 트랜잭션의 중요도에 따라 트랜잭션이 차등적으로 처리되는 효과를 얻을 수 있다.According to an embodiment of the present invention, the batch server 100 may set timers of each batch queue differently. For example, the batch server 100 may set a timer period of a batch queue having a high priority to a small value, and set the timer period of a batch queue having a low priority to a large value. For another example, the batch server 100 may set a timer only for a batch queue having a high priority, and may not set a timer for a batch queue having a low priority. According to the present embodiment, it is possible to obtain the effect that the transactions are differentially processed according to the importance of the transaction.

단계(S230)에서, 배치 서버(100)는 설정된 타이머가 만료되었는지 판정한다.In step S230, the batch server 100 determines whether the set timer has expired.

단계(S250)에서, 타이머가 만료됨에 응답하여, 배치 서버(100)는 해당 배치 큐에 트랜잭션이 존재하는 판정한다.In step S250, in response to the timer expiring, the batch server 100 determines that a transaction exists in the corresponding batch queue.

단계(S270)에서, 트랜잭션이 존재한다는 판정에 응답하여, 배치 서버(100)는 해당 배치 큐의 트랜잭션을 종합하여 배치 트랜잭션을 생성한다.In step S270 , in response to determining that a transaction exists, the batch server 100 aggregates the transactions in the batch queue to generate a batch transaction.

지금까지, 도 12를 참조하여 타이머 만료 여부에 기초한 제1 조건에 따라 배치 트랜잭션을 생성하는 방법에 대하여 설명하였다. 상술한 방법에 따르면, 트랜잭션의 처리 대기 시간이 일정 시간으로 제한될 수 있다. 따라서, 특정 트랜잭션의 처리가 지연되는 문제가 완화될 수 있다.So far, a method of generating a batch transaction according to the first condition based on whether the timer expires has been described with reference to FIG. 12 . According to the above-described method, the waiting time for processing a transaction may be limited to a predetermined time. Accordingly, the problem of delay in processing a specific transaction can be alleviated.

다음으로, 트랜잭션의 크기에 기초한 제2 조건 및 트랜잭션의 개수에 기초한 제3 조건에 따라 배치 트랜잭션을 생성하는 방법에 대하여 도 13을 참조하여 설명하도록 한다.Next, a method of generating a batch transaction according to the second condition based on the size of the transaction and the third condition based on the number of transactions will be described with reference to FIG. 13 .

단계(S310)에서, 배치 서버(100)는 트랜잭션의 분류 결과에 기초하여 해당 트랜잭션을 기존 배치 큐에 삽입한다.In step S310, the batch server 100 inserts the transaction into the existing batch queue based on the classification result of the transaction.

단계(S330)에서, 배치 서버(100)는 상기 기존 배치 큐에 포함된 전체 트랜잭션의 크기가 제1 임계 값 이상인지 여부를 판정한다. 이때, 전체 트랜잭션의 크기는 개별 트랜잭션의 크기의 합으로 연산될 수 있고, 개별 트랜잭션의 크기는 예를 들어 블록체인에 기록되는 트랜잭션 데이터의 크기를 의미하는 것일 수 있다. 단, 본 발명의 범위가 이에 한정되는 것은 아니다.In step S330, the batch server 100 determines whether the size of all transactions included in the existing batch queue is equal to or greater than a first threshold. In this case, the size of the entire transaction may be calculated as the sum of the sizes of individual transactions, and the size of each transaction may mean, for example, the size of transaction data recorded in the block chain. However, the scope of the present invention is not limited thereto.

상기 제1 임계 값은 기 설정된 고정 값 또는 상황에 따라 변동되는 변동 값일 수 있다. 예를 들어, 상기 제1 임계 값은 블록의 최대 크기에 기초하여 설정된 고정 값일 수 있다. 다른 예를 들어, 상기 제1 임계 값은 해당 배치 큐의 우선순위에 기초하여 설정된 고정 값 또는 변동 값일 수 있다. 또 다른 예를 들어, 상기 제1 임계 값은 배치 서버(100)의 부하가 클수록 더 큰 값으로 결정되는 변동 값 또는 평균 트랜잭션 처리 시간이 길어질수록 더 큰 값으로 결정되는 변동 값일 수 있다.The first threshold value may be a preset fixed value or a variable value that varies according to circumstances. For example, the first threshold value may be a fixed value set based on the maximum size of the block. As another example, the first threshold value may be a fixed value or a variable value set based on the priority of the corresponding batch queue. As another example, the first threshold value may be a variation value determined to be a larger value as the load of the batch server 100 increases, or a variation value determined to be a larger value as the average transaction processing time increases.

단계(S350)에서, 상기 제1 임계 값 이상이라는 판정에 응답하여, 배치 서버(100)는 단계(S310)에서 삽입된 트랜잭션을 기존 배치 큐에서 제거하고 신규 배치 큐에 삽입한다. 단, 실시예에 따라, 기존 배치 큐에 포함된 트랜잭션의 전체 크기가 블록의 최대 크기 미만이라면, 상기 삽입된 트랜잭션을 포함하여 배치 트랜잭션이 생성될 수도 있다.In step S350, in response to the determination that the first threshold or more is greater, the batch server 100 removes the transaction inserted in step S310 from the existing batch queue and inserts it into a new batch queue. However, according to an embodiment, if the total size of the transactions included in the existing batch queue is less than the maximum size of the block, a batch transaction including the inserted transaction may be generated.

단계(S370)에서, 배치 서버(100)는 상기 기존 배치 큐에 포함된 트랜잭션을 종합하여 배치 트랜잭션을 생성한다.In step S370, the batch server 100 generates a batch transaction by synthesizing the transactions included in the existing batch queue.

한편, 단계(S330)에서 상기 제1 임계 값 미만이라는 판정이 내려진 경우, 단계(S390)가 수행될 수 있다. 단계(S390)에서, 배치 서버(100)는 상기 기존 배치 큐에 포함된 트랜잭션의 전체 개수가 제2 임계 값 이상인지 여부를 판정한다. 또한, 상기 제2 임계 값 이상이라는 판정에 응답하여, 배치 서버(100)는 전술한 단계(S350, S370)를 수행할 수 있다.On the other hand, when it is determined in step S330 that it is less than the first threshold value, step S390 may be performed. In step S390, the batch server 100 determines whether the total number of transactions included in the existing batch queue is equal to or greater than a second threshold value. In addition, in response to the determination that the second threshold or more, the deployment server 100 may perform the above-described steps (S350, S370).

상기 제2 임계 값은 기 설정된 고정 값 또는 상황에 따라 변동되는 변동 값일 수 있다. 예를 들어, 상기 제2 임계 값은 해당 배치 큐의 우선순위에 기초하여 설정된 고정 값 또는 변동 값일 수 있다. 다른 예를 들어, 상기 제2 임계 값은 배치 서버(100)의 부하가 클수록 더 큰 값으로 결정되는 변동 값 또는 평균 트랜잭션 처리 시간이 길수록 더 큰 값으로 결정되는 변동 값일 수 있다.The second threshold value may be a preset fixed value or a variable value that varies according to circumstances. For example, the second threshold value may be a fixed value or a variable value set based on the priority of the corresponding batch queue. As another example, the second threshold value may be a variation value determined as a larger value as the load of the batch server 100 increases, or a variation value determined as a larger value as the average transaction processing time increases.

지금까지, 도 13을 참조하여 트랜잭션의 크기에 기초한 제2 조건 및 트랜잭션의 개수에 기초한 제3 조건에 따라 배치 트랜잭션을 생성하는 방법에 대하여 설명하였다. 이하에서는, 트랜잭션 간의 연관성 존재 여부에 기초한 상기 제4 조건에 따라 배치 트랜잭션을 생성하는 방법에 대하여 도 14를 참조하여 설명하도록 한다.So far, a method of generating a batch transaction according to the second condition based on the size of the transaction and the third condition based on the number of transactions has been described with reference to FIG. 13 . Hereinafter, a method of generating a batch transaction according to the fourth condition based on whether or not there is an association between transactions will be described with reference to FIG. 14 .

단계(S410)에서, 배치 서버(100)는 특정 트랜잭션과 연관된 연관 트랜잭션이 존재하는지 여부를 판정한다. 이때, 특정 트랜잭션은 최근에 분류되어 배치 큐에 삽입을 대기 중인 트랜잭션을 의미하는 것일 수 있다.In step S410, the batch server 100 determines whether there is an associated transaction associated with a specific transaction. In this case, a specific transaction may mean a transaction that has been recently classified and is waiting to be inserted into the batch queue.

상기 연관 트랜잭션은 상기 특정 트랜잭션과 연관성이 존재하는 트랜잭션을 의미하는 것으로, 예를 들어, 상기 특정 트랜잭션과 동일한 상태 데이터에 대한 식별키를 포함하는 트랜잭션일 수 있다. 즉, 상기 특정 트랜잭션과 동일한 상태 데이터에 접근하는 트랜잭션들은 상기 특정 트랜잭션과 연관성이 존재하는 연관 트랜잭션으로 판정될 수 있다.The related transaction refers to a transaction that is related to the specific transaction, and may be, for example, a transaction including an identification key for the same state data as the specific transaction. That is, transactions accessing the same state data as the specific transaction may be determined as an associated transaction having a relationship with the specific transaction.

단계(S430)에서, 기존 배치 큐에 연관 트랜잭션이 존재한다는 판정에 응답하여, 배치 서버(100)는 상기 특정 트랜잭션을 신규 배치 큐에 삽입한다.In step S430, in response to determining that the associated transaction exists in the existing batch queue, the batch server 100 inserts the specific transaction into the new batch queue.

단계(S450)에서, 배치 서버(100)는 기존 배치 큐의 트랜잭션을 종합하여 배치 트랜잭션을 생성한다. 즉, 연관성이 있는 두 트랜잭션이 동일한 배치 트랜잭션에 포함되지 않도록 하기 위해, 배치 서버(100)는 곧바로 기존 배치 큐의 트랜잭션을 종합하여 배치 트랜잭션을 생성한다.In step S450, the batch server 100 generates a batch transaction by synthesizing the existing batch queue transactions. That is, in order to prevent two related transactions from being included in the same batch transaction, the batch server 100 directly synthesizes the transactions in the existing batch queue to generate a batch transaction.

한편, 연관 트랜잭션이 존재하지 않는 경우, 단계(S470)가 수행될 수 있다. 단계(S470)에서, 배치 서버(100)는 기존 배치 큐에 상기 특정 트랜잭션을 삽입한다.Meanwhile, when the associated transaction does not exist, step S470 may be performed. In step S470, the batch server 100 inserts the specific transaction into the existing batch queue.

지금까지, 도 14를 참조하여 트랜잭션 간의 연관성 존재 여부에 기초한 제4 조건에 따라 배치 트랜잭션을 생성하는 방법에 대하여 설명하였다. 상술한 방법에 따르면, 연관성이 없는 복수의 트랜잭션만을 종합하여 배치 트랜잭션이 생성될 수 있다. 따라서, 상호 연관된 트랜잭션을 일괄 처리함으로써, 트랜잭션 처리의 안정성이 떨어지는 문제가 완화될 수 있다.So far, a method of generating a batch transaction according to the fourth condition based on whether or not there is an association between transactions has been described with reference to FIG. 14 . According to the above-described method, a batch transaction may be generated by synthesizing only a plurality of unrelated transactions. Accordingly, by batch processing the interrelated transactions, the problem of poor stability of transaction processing can be alleviated.

한편, 도 14를 참조하여 설명한 방법에 따르면, 연관성이 존재하는 제1 트랜잭션과 제2 트랜잭션은 각각 서로 다른 배치 트랜잭션에 포함되어 배치 형태로 처리된다. 그러나, 본 발명의 몇몇 실시예에 따르면, 연관성이 존재하는 트랜잭션은 다른 방식으로 처리될 수도 있다.Meanwhile, according to the method described with reference to FIG. 14 , the first transaction and the second transaction in which the association exists are respectively included in different batch transactions and processed in a batch form. However, according to some embodiments of the present invention, a transaction for which an association exists may be processed in other ways.

일 실시예에서, 배치 서버(100)는 연관성이 존재하는 제1 트랜잭션 및 제2 트랜잭션을 제외한 나머지 트랜잭션을 기초로 배치 트랜잭션을 생성하고, 상기 제1 트랜잭션 및 상기 제2 트랜잭션을 개별적으로 처리할 수 있다. 본 실시예에 따르면, 연관성이 존재하는 모든 트랜잭션은 개별적으로 처리되므로, 트랜잭션 처리의 안정성은 더욱 향상될 수 있다.In one embodiment, the batch server 100 may generate a batch transaction based on the remaining transactions except for the first transaction and the second transaction in which the association exists, and process the first transaction and the second transaction separately. have. According to the present embodiment, since all transactions for which association exists are individually processed, the stability of transaction processing can be further improved.

일 실시예에서, 제1 트랜잭션 및 제2 트랜잭션이 연관성이 존재하는 트랜잭션으로 식별된 경우, 배치 서버(100)는 상기 제1 트랜잭션을 기초로 배치 트랜잭션을 생성하고, 상기 제2 트랜잭션은 개별적으로 처리되도록 할 수 있다. 즉, 배치 서버(100)는 트랜잭션의 충돌이 일어나지 않는 범위 내에서 연관성이 존재하는 복수의 트랜잭션 중 일부 트랜잭션을 배치 형태로 처리할 수 있다. 이때, 개별적으로 처리되는 상기 제2 트랜잭션은 배치 서버(100)가 가장 처음으로 수신한 트랜잭션일 수 있고, 가장 마지막에 수신한 트랜잭션이 될 수도 있으며, 이는 구현 방식에 따라 얼마든지 변형될 수 있다. 본 실시예에 따르면, 트랜잭션 처리의 안정성과 성능 향상을 모두 꾀할 수 있다.In one embodiment, when the first transaction and the second transaction are identified as a transaction with an association, the batch server 100 generates a batch transaction based on the first transaction, and the second transaction is processed separately can make it happen That is, the batch server 100 may process some transactions in a batch form among a plurality of transactions in which correlation exists within a range in which transaction conflicts do not occur. In this case, the second transaction processed individually may be the first transaction received by the batch server 100 or the last received transaction, which may be modified according to the implementation method. According to the present embodiment, both stability and performance of transaction processing can be improved.

일 실시예에서, 배치 서버(100)는 연관성이 존재하는 제1 트랜잭션과 제2 트랜잭션이 결합 가능한지 여부를 판정하고, 결합 가능하다는 판정에 응답하여 상기 제1 트랜잭션과 상기 제2 트랜잭션이 결합된 제3 트랜잭션을 생성할 수 있다. 여기서, 상기 제3 트랜잭션의 실행 결과가 상기 제1 트랜잭션 및 상기 제2 트랜잭션을 실행한 결과와 동일하다면, 상기 제3 트랜잭션을 생성하는 방법은 어떠한 방식으로 수행되더라도 무방하다. 본 실시예에서, 배치 서버(100)는 상기 제3 트랜잭션을 배치 형태 또는 개별적으로 처리할 수 있다.In one embodiment, the batch server 100 determines whether a first transaction and a second transaction for which an association exists are combinable, and in response to determining that the first transaction and the second transaction are combinable, the first transaction and the second transaction are combined. 3 You can create a transaction. Here, if the execution result of the third transaction is the same as the result of executing the first transaction and the second transaction, the method of generating the third transaction may be performed in any manner. In this embodiment, the batch server 100 may process the third transaction in a batch form or individually.

일 실시예에서, 배치 서버(100)는 연관성이 존재하는 제1 트랜잭션과 제2 트랜잭션을 식별한 경우, 상기 제1 트랜잭션과 상기 제2 트랜잭션 중에서 어느 하나의 트랜잭션을 선택하고, 선택된 트랜잭션이 블록체인 네트워크를 통해 처리되도록 할 수 있다. 예를 들어, 상기 제1 트랜잭션과 상기 제2 트랜잭션이 모두 특정 상태 데이터에 특정 값을 쓰는 트랜잭션인 경우, 배치 서버(100)는 가장 마지막 트랜잭션을 선택할 수 있다. 상기 제1 및 제2 트랜잭션을 모두 실행한 결과와 가장 마지막 트랜잭션을 실행한 결과가 동일할 것이기 때문이다. 또한, 선택되지 않은 나머지 트랜잭션은 에러 처리되거나, 독립적으로 처리될 수도 있으며, 이는 구현 방식에 따라 달라질 수 있다.In one embodiment, when the batch server 100 identifies the first transaction and the second transaction in which the association exists, selects any one of the first transaction and the second transaction, and the selected transaction is a block chain It can be processed over the network. For example, when both the first transaction and the second transaction are transactions that write a specific value to specific state data, the batch server 100 may select the last transaction. This is because the result of executing both the first and second transactions will be the same as the result of executing the last transaction. In addition, the remaining unselected transactions may be error-processed or may be processed independently, which may vary according to an implementation method.

이상의 실시예에서, 이해의 편의를 위해, 2개의 트랜잭션 간에 연관성이 존재하는 경우를 가정하여 설명하였으나, 당해 기술 분야의 통상의 기술자라면 3개 이상 다수의 트랜잭션 사이에 연관성이 존재하는 경우에도 동일 또는 유사한 방식으로 처리될 수 있음을 자명하게 이해할 수 있다.In the above embodiment, for convenience of understanding, it has been described assuming that there is a correlation between two transactions, but those skilled in the art may use the same or It will be appreciated that it may be treated in a similar manner.

지금까지, 도 12 내지 도 14를 참조하여 본 발명의 실시예에 따라 배치 트랜잭션을 생성하는 방법에 대하여 설명하였다. 이하에서는, 도 15를 참조하여 배치 트랜잭션의 처리 결과 제공 방법에 대하여 설명하도록 한다.So far, a method for generating a batch transaction according to an embodiment of the present invention has been described with reference to FIGS. 12 to 14 . Hereinafter, a method of providing a processing result of a batch transaction will be described with reference to FIG. 15 .

도 15를 참조하면, 본 발명의 실시예에 따른 배치 트랜잭션의 처리 결과 제공 방법은 블록체인 네트워크(300)로 배치 트랜잭션의 처리를 요청하고, 블록체인 네트워크(300)로부터 상기 배치 트랜잭션의 처리 결과를 수신하는 단계(S510, S520)에서 시작된다.Referring to FIG. 15 , the method for providing the processing result of a batch transaction according to an embodiment of the present invention requests the processing of the batch transaction to the blockchain network 300 , and receives the processing result of the batch transaction from the blockchain network 300 . It starts in the receiving step (S510, S520).

단계(S530)에서, 배치 서버(100)는 처리 결과가 성공인지 여부를 판정한다.In step S530, the batch server 100 determines whether the processing result is successful.

단계(S540)에서, 성공을 가리키는 처리 결과에 대한 응답으로, 배치 서버(100)는 배치 트랜잭션의 처리 결과를 개별 트랜잭션에 대한 처리 결과로 구분한다.In step S540, in response to the processing result indicating success, the batch server 100 classifies the processing result of the batch transaction into the processing result for the individual transaction.

단계(S550)에서, 배치 서버(100)는 개별 트랜잭션에 대한 처리 결과를 각각의 클라이언트 단말(400)로 전달한다.In step S550 , the batch server 100 transmits the processing result for the individual transaction to each client terminal 400 .

단계(S560)에서, 배치 서버(100)는 상기 배치 트랜잭션과 대응되는 배치 큐를 클리어(clear)하여, 해당 배치 큐에 보관되어 있던 트랜잭션을 제거한다.In step S560, the batch server 100 clears the batch queue corresponding to the batch transaction, thereby removing the transaction stored in the batch queue.

한편, 단계(S530)의 판정 결과, 실패 가리키는 처리 결과에 대한 응답으로, 단계(S570)가 수행될 수 있다. 단계(S570)에서, 배치 서버(100)는 배치 트랜잭션에 포함된 각각의 트랜잭션에 대한 처리 요청을 재시도할 수 있다. 즉, 배치 서버(100)는 블록체인 네트워크(300)로 트랜잭션에 대한 처리를 개별적으로 다시 요청할 수 있다. 이때, 배치 서버(100)는 처리 실패된 트랜잭션에 대해서만 재시도할 수 있고, 배치 트랜잭션에 포함된 전체 트랜잭션에 대해서 재시도할 수도 있다. 물론, 배치 서버(100)는 개별 트랜잭션 단위로 재시도하지 않고, 배치 트랜잭션에 대하여 재시도할 수도 있으며, 이는 실시예에 따라, 얼마든지 변형될 수 있다.Meanwhile, as a result of the determination of step S530 , in response to the processing result indicating failure, step S570 may be performed. In step S570, the batch server 100 may retry the processing request for each transaction included in the batch transaction. That is, the batch server 100 may individually request processing for the transaction back to the blockchain network 300 . In this case, the batch server 100 may retry only for a transaction that has failed processing, and may retry for all transactions included in the batch transaction. Of course, the batch server 100 may retry for a batch transaction without retrying in units of individual transactions, which may be modified according to embodiments.

예를 들어, 배치 서버(100)는 배치 트랜잭션에 포함된 복수의 트랜잭션 중에서 실패한 트랜잭션에 대한 처리만 재시도할 수 있는데, 이때 상기 재시도는 개별적으로 수행될 수 있고, 배치 형태로 수행될 수도 있다.For example, the batch server 100 may retry processing only the failed transaction among a plurality of transactions included in the batch transaction. In this case, the retry may be performed individually or in a batch form. .

다른 예를 들어, 배치 서버(100)는 배치 트랜잭션에 포함된 복수의 트랜잭션 중에서 실패의 원인이 된 트랜잭션을 제외한 나머지 블록체인 트랜잭션에 대한 처리를 개별적 또는 배치 형태로 재시도할 수 있다. 또한, 배치 서버(100)는 실패의 원인이 된 트랜잭션에 대해서는 처리 결과(즉, 실패)를 클라이언트 단말(400)로 제공할 수 있다. 실패의 원인이 된 트랜잭션은 재시도 되더라도 여전히 실패될 가능성이 높기 때문이다.For another example, the batch server 100 may retry the processing of the remaining blockchain transactions except for the transaction that caused the failure among a plurality of transactions included in the batch transaction, individually or in batch form. In addition, the batch server 100 may provide a processing result (ie, failure) to the client terminal 400 for the transaction causing the failure. This is because there is a high probability that the transaction that caused the failure will still fail even if it is retried.

지금까지, 도 15를 참조하여 배치 트랜잭션의 처리 결과를 제공하는 방법에 대하여 설명하였다. 상술한 방법에 따르면, 처리 실패된 배치 트랜잭션에 대하여 개별 트랜잭션 단위의 재시도가 수행되는 바, 배치 트랜잭션 처리 과정의 신뢰도가 향상될 수 있다.So far, a method of providing a processing result of a batch transaction has been described with reference to FIG. 15 . According to the above-described method, since the retry of each transaction unit is performed for the batch transaction in which the processing has failed, the reliability of the batch transaction processing process can be improved.

지금까지 도 1 내지 도 15를 참조하여 본 발명의 몇몇 실시예들 및 상기 실시예들에 따른 효과를 언급하였다. 본 발명의 효과들은 이상에서 언급한 효과들로 제한되지 않으며, 언급되지 않은 또 다른 효과들은 아래의 기재로부터 통상의 기술자에게 명확하게 이해될 수 있을 것이다.So far, some embodiments of the present invention and effects according to the embodiments have been described with reference to FIGS. 1 to 15 . Effects of the present invention are not limited to the effects mentioned above, and other effects not mentioned will be clearly understood by those skilled in the art from the following description.

지금까지 도 1 내지 도 15를 참조하여 설명된 본 발명의 개념은 컴퓨터가 읽을 수 있는 매체 상에 컴퓨터가 읽을 수 있는 코드로 구현될 수 있다. 상기 컴퓨터로 읽을 수 있는 기록 매체는, 예를 들어 이동형 기록 매체(CD, DVD, 블루레이 디스크, USB 저장 장치, 이동식 하드 디스크)이거나, 고정식 기록 매체(ROM, RAM, 컴퓨터 구비 형 하드 디스크)일 수 있다. 상기 컴퓨터로 읽을 수 있는 기록 매체에 기록된 상기 컴퓨터 프로그램은 인터넷 등의 네트워크를 통하여 다른 컴퓨팅 장치에 전송되어 상기 다른 컴퓨팅 장치에 설치될 수 있고, 이로써 상기 다른 컴퓨팅 장치에서 사용될 수 있다.The concepts of the present invention described with reference to FIGS. 1 to 15 may be implemented as computer-readable codes on a computer-readable medium. The computer-readable recording medium may be, for example, a removable recording medium (CD, DVD, Blu-ray disk, USB storage device, removable hard disk) or a fixed recording medium (ROM, RAM, computer-equipped hard disk). can The computer program recorded in the computer-readable recording medium may be transmitted to another computing device through a network such as the Internet and installed in the other computing device, thereby being used in the other computing device.

이상에서, 본 발명의 실시예를 구성하는 모든 구성 요소들이 하나로 결합되거나 결합되어 동작하는 것으로 설명되었다고 해서, 본 발명이 반드시 이러한 실시예에 한정되는 것은 아니다. 즉, 본 발명의 목적 범위 안에서라면, 그 모든 구성요소들이 하나 이상으로 선택적으로 결합하여 동작할 수도 있다.In the above, even though all the components constituting the embodiment of the present invention are described as being combined or operating in combination, the present invention is not necessarily limited to this embodiment. That is, within the scope of the object of the present invention, all of the components may operate by selectively combining one or more.

도면에서 동작들이 특정한 순서로 도시되어 있지만, 반드시 동작들이 도시된 특정한 순서로 또는 순차적 순서로 실행되어야만 하거나 또는 모든 도시 된 동작들이 실행되어야만 원하는 결과를 얻을 수 있는 것으로 이해되어서는 안 된다. 특정 상황에서는, 멀티태스킹 및 병렬 처리가 유리할 수도 있다. 더욱이, 위에 설명한 실시예들에서 다양한 구성들의 분리는 그러한 분리가 반드시 필요한 것으로 이해되어서는 안 되고, 설명된 프로그램 컴포넌트들 및 시스템들은 일반적으로 단일 소프트웨어 제품으로 함께 통합되거나 다수의 소프트웨어 제품으로 패키지 될 수 있음을 이해하여야 한다.Although acts are shown in a particular order in the drawings, it should not be understood that the acts must be performed in the specific order or sequential order shown, or that all depicted acts must be performed to obtain a desired result. In certain circumstances, multitasking and parallel processing may be advantageous. Moreover, the separation of the various components in the embodiments described above should not be construed as necessarily requiring such separation, and the program components and systems described may generally be integrated together into a single software product or packaged into multiple software products. It should be understood that there is

이상 첨부된 도면을 참조하여 본 발명의 실시예들을 설명하였지만, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자는 본 발명이 그 기술적 사상이나 필수적인 특징을 변경하지 않고서 다른 구체적인 형태로 실시될 수 있다는 것을 이해할 수 있다. 그러므로 이상에서 기술한 실시예들은 모든 면에서 예시적인 것이며 한정적인 것이 아닌 것으로 이해해야만 한다. 본 발명의 보호 범위는 아래의 청구범위에 의하여 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 발명의 권리범위에 포함되는 것으로 해석되어야 할 것이다.Although embodiments of the present invention have been described above with reference to the accompanying drawings, those of ordinary skill in the art to which the present invention pertains can realize that the present invention can be embodied in other specific forms without changing the technical spirit or essential features. can understand Therefore, it should be understood that the embodiments described above are illustrative in all respects and not restrictive. The protection scope of the present invention should be construed by the following claims, and all technical ideas within the equivalent range should be construed as being included in the scope of the present invention.

Claims (28)

배치 서버에서 수행되는 블록체인 기반 트랜잭션 처리 방법에 있어서,
복수의 블록체인 트랜잭션(blockchain transaction)을 획득하는 단계;
상기 복수의 블록체인 트랜잭션 중 적어도 일부를 종합하여, 배치 트랜잭션(batch transaction)을 생성하는 단계; 및
블록체인 네트워크를 통해 상기 배치 트랜잭션을 처리하는 단계를 포함하되,
상기 배치 트랜잭션을 처리하는 단계는,
상기 블록체인 네트워크에 포함되는 블록체인 노드에서 실행되는 스마트 컨트랙트를 통해 상기 배치 트랜잭션의 실행 결과가 블록체인 트랜잭션 별로 구분되고, 구분된 실행 결과에 기초하여 블록체인이 갱신되는 단계를 포함하는,
블록체인 기반 트랜잭션 처리 방법.
In a blockchain-based transaction processing method performed in a batch server,
acquiring a plurality of blockchain transactions;
generating a batch transaction by synthesizing at least some of the plurality of block chain transactions; and
processing the batch transaction via a blockchain network;
Processing the batch transaction comprises:
A step of classifying the execution result of the batch transaction for each block chain transaction through a smart contract executed on a block chain node included in the block chain network, and updating the block chain based on the divided execution result,
Blockchain-based transaction processing method.
제1 항에 있어서,
상기 배치 트랜잭션을 생성하는 단계는,
상기 복수의 블록체인 트랜잭션을 기 설정된 기준에 따라 분류하여, 제1 트랜잭션 그룹 및 제2 트랜잭션 그룹을 형성하는 단계;
상기 제1 트랜잭션 그룹에 소속된 복수의 블록체인 트랜잭션을 종합하여, 제1 배치 트랜잭션을 생성하는 단계; 및
상기 제2 트랜잭션 그룹에 소속된 복수의 블록체인 트랜잭션을 종합하여, 제2 배치 트랜잭션을 생성하는 단계를 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 1,
The step of creating the batch transaction comprises:
classifying the plurality of block chain transactions according to preset criteria to form a first transaction group and a second transaction group;
generating a first batch transaction by synthesizing a plurality of blockchain transactions belonging to the first transaction group; and
Synthesizing a plurality of block chain transactions belonging to the second transaction group, characterized in that it comprises the step of generating a second batch transaction,
Blockchain-based transaction processing method.
제2 항에 있어서,
상기 기 설정된 기준은 각 블록체인 트랜잭션과 연관된 스마트 컨트랙트(smart contract)의 식별자를 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
3. The method of claim 2,
The preset criterion is characterized in that it includes an identifier of a smart contract associated with each blockchain transaction,
Blockchain-based transaction processing method.
제2 항에 있어서,
상기 블록체인 네트워크는 멀티 채널(multi-channel) 기반의 블록체인 네트워크이되,
상기 기 설정된 기준은 각 블록체인 트랜잭션과 연관된 채널 식별자를 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
3. The method of claim 2,
The blockchain network is a multi-channel based blockchain network,
The preset criterion is characterized in that it includes a channel identifier associated with each blockchain transaction,
Blockchain-based transaction processing method.
제2 항에 있어서,
상기 기 설정된 기준은 각 블록체인 트랜잭션의 타입을 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
3. The method of claim 2,
The preset criterion is characterized in that it includes the type of each blockchain transaction,
Blockchain-based transaction processing method.
제1 항에 있어서,
상기 배치 트랜잭션을 생성하는 단계는,
상기 복수의 블록체인 트랜잭션 중 제1 블록체인 트랜잭션을 기 설정된 기준에 따라 분류하는 단계;
상기 제1 블록체인 트랜잭션을 복수의 배치 큐(batch queue) 중에서 상기 분류 결과에 대응되는 제1 배치 큐에 삽입하는 단계;
상기 제1 배치 큐가 기 설정된 조건을 만족하는지 판정하는 단계; 및
상기 기 설정된 조건을 만족한다는 판정에 응답하여, 상기 제1 배치 큐에 포함된 복수의 블록체인 트랜잭션을 종합하여, 상기 배치 트랜잭션을 생성하는 단계를 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 1,
The step of creating the batch transaction comprises:
classifying a first blockchain transaction among the plurality of blockchain transactions according to a preset criterion;
inserting the first block chain transaction into a first batch queue corresponding to the classification result from among a plurality of batch queues;
determining whether the first batch queue satisfies a preset condition; and
In response to determining that the preset condition is satisfied, a plurality of blockchain transactions included in the first batch queue are synthesized to generate the batch transaction,
Blockchain-based transaction processing method.
제1 항에 있어서,
상기 배치 트랜잭션을 생성하는 단계는,
기 설정된 타이머(timer)가 만료됨에 응답하여, 상기 배치 트랜잭션을 생성하는 단계를 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 1,
The step of creating the batch transaction comprises:
In response to expiration of a preset timer, characterized in that it comprises the step of generating the batch transaction,
Blockchain-based transaction processing method.
제1 항에 있어서,
상기 배치 트랜잭션을 생성하는 단계는,
특정 개수 이하의 블록체인 트랜잭션을 종합하여, 상기 배치 트랜잭션을 생성하는 단계를 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 1,
The step of creating the batch transaction comprises:
Combining block chain transactions less than or equal to a specific number, characterized in comprising the step of generating the batch transaction,
Blockchain-based transaction processing method.
제1 항에 있어서,
상기 배치 트랜잭션을 생성하는 단계는,
블록체인 트랜잭션 크기의 합이 특정 크기 이하가 되는 블록체인 트랜잭션을 종합하여, 상기 배치 트랜잭션을 생성하는 단계를 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 1,
The step of creating the batch transaction comprises:
Comprising the step of generating the batch transaction by synthesizing the block chain transactions in which the sum of block chain transaction sizes is less than or equal to a specific size,
Blockchain-based transaction processing method.
제1 항에 있어서,
상기 복수의 블록체인 트랜잭션 각각은 상태(state) 데이터의 식별키를 포함하고,
상기 배치 트랜잭션을 생성하는 단계는,
상기 복수의 블록체인 트랜잭션 중에서 동일한 식별키를 포함하는 제1 블록체인 트랜잭션 및 제2 블록체인 트랜잭션을 식별하는 단계;
상기 제1 블록체인 트랜잭션을 제1 배치 트랜잭션으로 생성하는 단계; 및
상기 제2 블록체인 트랜잭션을 제2 배치 트랜잭션으로 생성하는 단계를 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 1,
Each of the plurality of blockchain transactions includes an identification key of state data,
The step of creating the batch transaction comprises:
identifying a first block chain transaction and a second block chain transaction including the same identification key from among the plurality of block chain transactions;
generating the first blockchain transaction as a first batch transaction; and
and generating the second blockchain transaction as a second batch transaction.
Blockchain-based transaction processing method.
제1 항에 있어서,
상기 복수의 블록체인 트랜잭션 각각은 상태(state) 데이터의 식별키를 포함하고,
상기 배치 트랜잭션을 생성하는 단계는,
상기 복수의 블록체인 트랜잭션 중에서 동일한 식별키를 포함하는 제1 블록체인 트랜잭션 및 제2 블록체인 트랜잭션을 식별하는 단계; 및
상기 제1 블록체인 트랜잭션 및 상기 제2 블록체인 트랜잭션을 제외한 나머지 블록체인 트랜잭션을 기초로 상기 배치 트랜잭션을 생성하는 단계를 포함하며,
상기 제1 블록체인 트랜잭션 및 상기 제2 블록체인 트랜잭션을 개별적으로 처리하는 단계를 더 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 1,
Each of the plurality of blockchain transactions includes an identification key of state data,
The step of creating the batch transaction comprises:
identifying a first block chain transaction and a second block chain transaction including the same identification key from among the plurality of block chain transactions; and
generating the batch transaction based on the remaining block chain transactions except for the first block chain transaction and the second block chain transaction,
Further comprising the step of separately processing the first blockchain transaction and the second blockchain transaction,
Blockchain-based transaction processing method.
제1 항에 있어서,
상기 복수의 블록체인 트랜잭션 각각은 상태(state) 데이터의 식별키를 포함하고,
상기 배치 트랜잭션을 생성하는 단계는,
상기 복수의 블록체인 트랜잭션 중에서 동일한 식별키를 포함하는 제1 블록체인 트랜잭션 및 제2 블록체인 트랜잭션을 식별하는 단계; 및
상기 제1 블록체인 트랜잭션을 포함하는 배치 트랜잭션을 생성하는 단계를 포함하며,
상기 제2 블록체인 트랜잭션을 개별적으로 처리하는 단계를 더 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 1,
Each of the plurality of blockchain transactions includes an identification key of state data,
The step of creating the batch transaction comprises:
identifying a first block chain transaction and a second block chain transaction including the same identification key from among the plurality of block chain transactions; and
generating a batch transaction including the first blockchain transaction;
Further comprising the step of individually processing the second blockchain transaction,
Blockchain-based transaction processing method.
제1 항에 있어서,
상기 복수의 블록체인 트랜잭션 각각은 상태(state) 데이터의 식별키를 포함하고,
상기 복수의 블록체인 트랜잭션을 획득하는 단계는,
상기 복수의 블록체인 트랜잭션 중에서 동일한 식별키를 포함하는 제1 블록체인 트랜잭션 및 제2 블록체인 트랜잭션을 식별하는 단계; 및
상기 제1 블록체인 트랜잭션 및 상기 제2 블록체인 트랜잭션을 기초로 제3 블록체인 트랜잭션을 생성하는 단계를 포함하는 것을 특징으로 하는
블록체인 기반 트랜잭션 처리 방법.
The method of claim 1,
Each of the plurality of blockchain transactions includes an identification key of state data,
The step of acquiring the plurality of blockchain transactions includes:
identifying a first block chain transaction and a second block chain transaction including the same identification key from among the plurality of block chain transactions; and
and generating a third blockchain transaction based on the first blockchain transaction and the second blockchain transaction.
Blockchain-based transaction processing method.
제1 항에 있어서,
상기 복수의 블록체인 트랜잭션 각각은 상태(state) 데이터의 식별키를 포함하고,
상기 복수의 블록체인 트랜잭션 중에서 동일한 식별키를 포함하는 제1 블록체인 트랜잭션 및 제2 블록체인 트랜잭션을 식별하는 단계; 및
상기 제1 블록체인 트랜잭션 및 상기 제2 블록체인 트랜잭션 중에서 어느 하나의 블록체인 트랜잭션을 선택하는 단계를 더 포함하되,
상기 선택된 블록체인 트랜잭션은 상기 블록체인 네트워크를 통해 처리되는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 1,
Each of the plurality of blockchain transactions includes an identification key of state data,
identifying a first block chain transaction and a second block chain transaction including the same identification key from among the plurality of block chain transactions; and
The method further comprising the step of selecting any one blockchain transaction from among the first blockchain transaction and the second blockchain transaction,
The selected blockchain transaction is characterized in that it is processed through the blockchain network,
Blockchain-based transaction processing method.
제1 항에 있어서,
상기 블록체인 네트워크로부터 상기 배치 트랜잭션의 처리 결과를 획득하는 단계; 및
실패를 가리키는 처리 결과에 대한 응답으로, 상기 배치 트랜잭션에 포함된 블록체인 트랜잭션의 처리를 개별적으로 재시도하는 단계를 더 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 1,
obtaining a processing result of the batch transaction from the blockchain network; and
In response to a processing result indicating failure, the method further comprising: individually retrying processing of a blockchain transaction included in the batch transaction;
Blockchain-based transaction processing method.
제1 항에 있어서,
상기 블록체인 네트워크로부터 상기 배치 트랜잭션의 처리 결과를 획득하는 단계; 및
실패를 가리키는 처리 결과에 대한 응답으로, 상기 배치 트랜잭션에 포함된 복수의 블록체인 트랜잭션 중에서 실패의 원인이 된 블록체인 트랜잭션을 제외한 나머지 블록체인 트랜잭션에 대한 처리를 재시도하는 단계를 더 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 1,
obtaining a processing result of the batch transaction from the blockchain network; and
In response to the processing result indicating failure, the method further comprises retrying processing of the remaining blockchain transactions except for the blockchain transaction that caused the failure among the plurality of blockchain transactions included in the batch transaction. to do,
Blockchain-based transaction processing method.
제1 항에 있어서,
상기 복수의 블록체인 트랜잭션은, 복수의 클라이언트 단말로부터 획득된 것이고,
상기 블록체인 네트워크로부터 상기 배치 트랜잭션의 처리 결과를 획득하는 단계; 및
성공을 가리키는 처리 결과에 대한 응답으로, 각 클라이언트 단말이 요청한 블록체인 트랜잭션의 처리 결과를 상기 각 클라이언트 단말로 제공하는 단계를 더 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 1,
The plurality of blockchain transactions are obtained from a plurality of client terminals,
obtaining a processing result of the batch transaction from the blockchain network; and
In response to the processing result indicating success, the method further comprising the step of providing the processing result of the blockchain transaction requested by each client terminal to each client terminal,
Blockchain-based transaction processing method.
제1 항에 있어서,
상기 배치 트랜잭션을 생성하는 단계는,
트랜잭션의 중요도에 기초하여 상기 복수의 블록체인 트랜잭션을 제1 트랜잭션 그룹 및 제2 트랜잭션 그룹으로 분류하는 단계; 및
상기 제1 트랜잭션 그룹에 소속된 복수의 블록체인 트랜잭션을 종합하여, 상기 배치 트랜잭션을 생성하는 단계를 포함하되,
상기 제2 트랜잭션 그룹에 소속된 트랜잭션의 중요도는 상기 제1 트랜잭션 그룹에 소속된 트랜잭션보다 높고,
상기 제2 트랜잭션 그룹에 소속된 트랜잭션은 상기 블록체인 네트워크를 통해 개별적으로 처리되는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 1,
The step of creating the batch transaction comprises:
classifying the plurality of blockchain transactions into a first transaction group and a second transaction group based on the importance of the transaction; and
synthesizing a plurality of blockchain transactions belonging to the first transaction group, and generating the batch transaction,
The importance of the transaction belonging to the second transaction group is higher than that of the transaction belonging to the first transaction group,
Transactions belonging to the second transaction group are individually processed through the blockchain network,
Blockchain-based transaction processing method.
복수의 블록체인 트랜잭션(blockchain transaction)을 저장하는 메모리;
블록체인 네트워크와 통신하는 네트워크 인터페이스; 및
상기 블록체인 네트워크를 통해 상기 복수의 블록체인 트랜잭션을 처리하는 프로세서를 포함하되,
상기 프로세서는,
상기 복수의 블록체인 트랜잭션 중 적어도 일부를 종합하여, 배치 트랜잭션(batch transaction)을 생성하고,
상기 블록체인 네트워크를 통해 상기 배치 트랜잭션을 처리하는 것을 특징으로 하되,
상기 블록체인 네트워크는 스마트 컨트랙트를 실행하고, 상기 스마트 컨트랙트를 통해 상기 배치 트랜잭션의 실행 결과가 블록체인 트랜잭션 별로 구분되고, 구분된 실행 결과에 기초하여 블록체인이 갱신되도록 하는 블록체인 노드들을 포함하는,
배치 서버.
a memory for storing a plurality of blockchain transactions;
a network interface to communicate with the blockchain network; and
A processor for processing the plurality of blockchain transactions through the blockchain network,
The processor is
By synthesizing at least some of the plurality of blockchain transactions, a batch transaction is generated,
characterized in that the batch transaction is processed through the blockchain network,
The block chain network executes a smart contract, and through the smart contract, the execution result of the batch transaction is divided for each block chain transaction, and the block chain is updated based on the divided execution result.
deployment server.
복수의 블록체인 트랜잭션(blockchain transaction)을 획득하고, 상기 복수의 블록체인 트랜잭션 중 적어도 일부를 종합하여, 배치 트랜잭션(batch transaction)을 생성하는 배치 서버; 및
블록체인 네트워크를 구성하는 복수의 블록체인 노드를 포함하되,
상기 배치 서버는,
상기 블록체인 네트워크를 통해 상기 배치 트랜잭션을 처리하되,
상기 복수의 블록체인 노드에 포함되는 각각의 블록체인 노드는, 스마트 컨트랙트를 통해 상기 배치 트랜잭션의 실행 결과가 블록체인 트랜잭션 별로 구분되고, 구분된 실행 결과에 기초하여 블록체인이 갱신되도록 하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 시스템.
a batch server for acquiring a plurality of blockchain transactions and synthesizing at least some of the plurality of blockchain transactions to generate a batch transaction; and
including a plurality of blockchain nodes constituting the blockchain network,
The batch server,
Process the batch transaction through the blockchain network,
Each block chain node included in the plurality of block chain nodes is characterized in that the execution result of the batch transaction is classified for each block chain transaction through a smart contract, and the block chain is updated based on the divided execution result. doing,
Blockchain-based transaction processing system.
제20 항에 있어서,
상기 복수의 블록체인 노드는 제1 블록체인 노드 그룹 및 제2 블록체인 노드 그룹을 포함하고,
상기 배치 서버는 제1 배치 서버 및 제2 배치 서버를 포함하되,
상기 제1 배치 서버는 상기 제1 블록체인 노드 그룹을 통해 제1 배치 트랜잭션을 처리하고,
상기 제2 배치 서버는 상기 제2 블록체인 노드 그룹을 통해 제2 배치 트랜잭션을 처리하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 시스템.
21. The method of claim 20,
The plurality of blockchain nodes includes a first blockchain node group and a second blockchain node group,
The batch server includes a first batch server and a second batch server,
The first batch server processes the first batch transaction through the first block chain node group,
The second batch server processes a second batch transaction through the second block chain node group,
Blockchain-based transaction processing system.
제21 항에 있어서,
상기 블록체인 네트워크는 멀티 채널 기반의 블록체인 네트워크이되,
상기 제1 블록체인 노드 그룹은 제1 채널에 대응되고,
상기 제2 블록체인 노드 그룹은 제2 채널에 대응되는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 시스템.
22. The method of claim 21,
The blockchain network is a multi-channel-based blockchain network,
The first block chain node group corresponds to the first channel,
The second block chain node group is characterized in that it corresponds to the second channel,
Blockchain-based transaction processing system.
제20 항에 있어서,
상기 복수의 블록체인 트랜잭션 각각은 접근하는 상태 데이터의 식별키를 포함하고,
상기 복수의 블록체인 노드 중 제1 블록체인 노드는,
상기 배치 트랜잭션에 포함된 제1 복수의 식별키를 식별하고, 상기 제1 복수의 식별키 각각을 이용하여 블록체인에 접근하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 시스템.
21. The method of claim 20,
Each of the plurality of blockchain transactions includes an identification key of accessing state data,
The first blockchain node among the plurality of blockchain nodes,
Identifying a plurality of first identification keys included in the batch transaction, characterized in that the access to the block chain using each of the first plurality of identification keys,
Blockchain-based transaction processing system.
제23 항에 있어서,
상기 제1 블록체인 노드는,
스마트 컨트랙트(smart contract)를 이용하여 상기 식별 과정을 수행하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 시스템.
24. The method of claim 23,
The first blockchain node is
Characterized in performing the identification process using a smart contract (smart contract),
Blockchain-based transaction processing system.
제20 항에 있어서,
상기 복수의 블록체인 노드는,
블록체인 트랜잭션에 대한 스마트 컨트랙트를 실행하는 제1 블록체인 노드와 스마트 컨트랙트의 실행 결과를 블록에 기록하고 전파하는 제2 블록체인 노드를 포함하되,
상기 배치 서버는,
상기 제1 블록체인 노드로부터 상기 배치 트랜잭션과 연관된 스마트 컨트랙트의 제1 실행 결과를 제공받고,
상기 제1 실행 결과를 상기 제2 블록체인 노드에게 제공하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 시스템.
21. The method of claim 20,
The plurality of blockchain nodes,
A first blockchain node that executes a smart contract for a blockchain transaction and a second blockchain node that records and propagates the execution result of the smart contract in a block,
The batch server,
receiving the first execution result of the smart contract associated with the batch transaction from the first blockchain node;
characterized in that the first execution result is provided to the second blockchain node,
Blockchain-based transaction processing system.
제25 항에 있어서,
상기 복수의 블록체인 노드 중 제3 블록체인 노드는,
상기 제2 블록체인 노드로부터 상기 제1 실행 결과가 기록된 블록을 제공받고,
스마트 컨트랙트를 이용하여 상기 제1 실행 결과로 블록체인을 갱신하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 시스템.
26. The method of claim 25,
The third blockchain node among the plurality of blockchain nodes,
receiving a block in which the first execution result is recorded from the second blockchain node,
characterized in that the block chain is updated with the first execution result using a smart contract,
Blockchain-based transaction processing system.
제20 항에 있어서,
상기 배치 서버는,
기 설정된 조건이 만족됨에 응답하여, 상기 복수의 블록체인 트랜잭션에 대한 배치 트랜잭션을 생성하지 않고, 상기 복수의 블록체인 트랜잭션을 개별적으로 처리하도록 동작하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 시스템.
21. The method of claim 20,
The batch server,
In response to a preset condition being satisfied, it is characterized in that it operates to individually process the plurality of blockchain transactions without generating a batch transaction for the plurality of blockchain transactions,
Blockchain-based transaction processing system.
클라이언트 단말에서 수행되는 블록체인 기반 트랜잭션 처리 방법에 있어서,
복수의 블록체인 트랜잭션(blockchain transaction)을 생성하는 단계;
상기 복수의 블록체인 트랜잭션 중 적어도 일부를 종합하여, 배치 트랜잭션(batch transaction)을 생성하는 단계; 및
블록체인 네트워크를 통해 상기 배치 트랜잭션을 처리하는 단계를 포함하되,
상기 블록체인 네트워크에 포함되는 각각의 블록체인 노드는, 스마트 컨트랙트를 통해 상기 배치 트랜잭션의 실행 결과가 블록체인 트랜잭션 별로 구분되고, 구분된 실행 결과에 기초하여 블록체인이 갱신되도록 하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
In a blockchain-based transaction processing method performed in a client terminal,
generating a plurality of blockchain transactions;
generating a batch transaction by synthesizing at least some of the plurality of block chain transactions; and
processing the batch transaction via a blockchain network;
Each block chain node included in the block chain network divides the execution result of the batch transaction for each block chain transaction through a smart contract, characterized in that the block chain is updated based on the divided execution result,
Blockchain-based transaction processing method.
KR1020180052977A 2018-05-09 2018-05-09 Method and apparatus for prcocessing transaction based on bllockchain and system tehereof KR102450411B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020180052977A KR102450411B1 (en) 2018-05-09 2018-05-09 Method and apparatus for prcocessing transaction based on bllockchain and system tehereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020180052977A KR102450411B1 (en) 2018-05-09 2018-05-09 Method and apparatus for prcocessing transaction based on bllockchain and system tehereof

Publications (2)

Publication Number Publication Date
KR20190128814A KR20190128814A (en) 2019-11-19
KR102450411B1 true KR102450411B1 (en) 2022-09-30

Family

ID=68771088

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180052977A KR102450411B1 (en) 2018-05-09 2018-05-09 Method and apparatus for prcocessing transaction based on bllockchain and system tehereof

Country Status (1)

Country Link
KR (1) KR102450411B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102683214B1 (en) * 2022-12-02 2024-07-09 디엑스웍스 주식회사 Method and apparatus for avoiding read conflict in multi-version concurrency control(MVCC) using multi-queue

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102258987B1 (en) * 2019-11-20 2021-05-31 주식회사피플카 Method for processing transaction of blockchain network
KR102209852B1 (en) * 2020-02-12 2021-01-29 현수영 Transaction transfer realy method between compatible blockchain networks
CN111984733A (en) * 2020-09-03 2020-11-24 深圳壹账通智能科技有限公司 Data transmission method and device based on block chain and storage medium
KR102506286B1 (en) * 2020-11-25 2023-03-06 주식회사 디지캡 Multi-channel blockchain transaction batch processing device
KR102557196B1 (en) * 2021-11-23 2023-07-19 주식회사 디지캡 Blockchain system for using a proxy server to transfer transactions between nodes
KR102560613B1 (en) * 2022-11-29 2023-07-27 부산대학교 산학협력단 Blockchain-based platform system for interworking with onem2m and lwm2m, and method for implementing a blockchain-based platform
US11949802B1 (en) 2022-11-29 2024-04-02 Pusan National University Industry-University Cooperation Foundation Blockchain-based platform system for interworking with one machine-to-machine(oneM2M) and lightweight machine-to-machine (LWM2M), and method of implementing blockchain-based platform
KR102544009B1 (en) * 2022-11-30 2023-06-15 주식회사 엔터프라이즈블록체인 Eletronic device for generating and managing data having integrity

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150199482A1 (en) * 2014-01-14 2015-07-16 PokitDok, Inc. System and method for dynamic transactional data streaming
US20170278186A1 (en) * 2016-03-23 2017-09-28 Domus Tower, Inc. Distributing work load of high-volume per second transactions recorded to append-only ledgers
KR101816653B1 (en) * 2017-02-14 2018-02-21 주식회사 코인플러그 Method for providing login flow via authentication based on public key infrastructure in response to user’s login request for using service provided by service provider server in use of smart contract with blockchain database and server using the same

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7757127B2 (en) * 2006-06-08 2010-07-13 Qualcomm Incorporated Device retry mechanisms for content distribution
KR101385608B1 (en) * 2012-05-24 2014-04-16 주식회사 엑셈 Transaction pursuit system and control method thereof
WO2016101165A1 (en) * 2014-12-24 2016-06-30 华为技术有限公司 Transaction processing method, device and computer system
KR101950912B1 (en) 2016-08-01 2019-02-21 서강대학교산학협력단 Verification system and method for transaction based block chain

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150199482A1 (en) * 2014-01-14 2015-07-16 PokitDok, Inc. System and method for dynamic transactional data streaming
US20170278186A1 (en) * 2016-03-23 2017-09-28 Domus Tower, Inc. Distributing work load of high-volume per second transactions recorded to append-only ledgers
KR101816653B1 (en) * 2017-02-14 2018-02-21 주식회사 코인플러그 Method for providing login flow via authentication based on public key infrastructure in response to user’s login request for using service provided by service provider server in use of smart contract with blockchain database and server using the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102683214B1 (en) * 2022-12-02 2024-07-09 디엑스웍스 주식회사 Method and apparatus for avoiding read conflict in multi-version concurrency control(MVCC) using multi-queue

Also Published As

Publication number Publication date
KR20190128814A (en) 2019-11-19

Similar Documents

Publication Publication Date Title
KR102450411B1 (en) Method and apparatus for prcocessing transaction based on bllockchain and system tehereof
KR102444425B1 (en) Apparatus for performing batch processing for blockchain transactions and method thereof
KR102448787B1 (en) System for providing retrieval service based on blockchain and method of the same
US11526494B2 (en) Blockchain-based computing system and method for managing transaction thereof
JP7422856B2 (en) Node data synchronization method and device, system, electronic equipment, storage medium and computer program
US8849776B2 (en) Method and system for resolving data inconsistency
US20190188086A1 (en) Redundancy reduction in blockchains
US6633954B1 (en) Method for enhancing host application performance with a DASD using task priorities
EP3742675B1 (en) Accelerated processing apparatus for transaction considering transaction failure probability and method thereof
EP3255553A1 (en) Transmission control method and device for direct memory access
US20170214759A1 (en) Optimizer module in high load client/server systems
KR20200132518A (en) System for supporting transaction interoperation between blockchain networks and method thereof
US11681466B2 (en) Proactive storage operation management
US20200379981A1 (en) Accelerated processing apparatus for transaction and method thereof
US11314813B2 (en) Apparatus for guaranteeing integrity of state database in blockchain-based environment and method thereof
CN103500108A (en) System memory access method, node processor and multi-processor system
US8938420B1 (en) Systems and methods for natural batching of I/O operations on a replication log
US20200110632A1 (en) Method and system for routing and executing transactions
US20150189013A1 (en) Adaptive and prioritized replication scheduling in storage clusters
KR20190126992A (en) Method for generating non-deterministic data using a specific selection node in blockchain-based system
CN112764897B (en) Task request processing method, device and system and computer readable storage medium
US8458268B1 (en) Systems and methods for distributing spam signatures
US20220122141A1 (en) Train any buddy real-time online matching service
US20210117476A1 (en) Method and apparatus for selecting key information for each group in graph data
US9832104B2 (en) Reliable broadcast in a federation of nodes

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant