KR20190128814A - 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
KR20190128814A
KR20190128814A KR1020180052977A KR20180052977A KR20190128814A KR 20190128814 A KR20190128814 A KR 20190128814A KR 1020180052977 A KR1020180052977 A KR 1020180052977A KR 20180052977 A KR20180052977 A KR 20180052977A KR 20190128814 A KR20190128814 A KR 20190128814A
Authority
KR
South Korea
Prior art keywords
blockchain
transaction
batch
transactions
processing
Prior art date
Application number
KR1020180052977A
Other languages
Korean (ko)
Other versions
KR102450411B1 (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 

Abstract

Provided is a method for improving transaction processing performance of a blockchain system. According to an embodiment of the present invention, a method for processing transaction based on blockchain may comprise the steps of: obtaining a plurality of blockchain transactions; generating a batch transaction by integrating at least some of the plurality of blockchain transactions; 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, apparatus and system thereof {METHOD AND APPARATUS FOR PRCOCESSING TRANSACTION BASED ON BLLOCKCHAIN AND SYSTEM TEHEREOF}

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

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

그러나, 블록체인의 합의 프로세스로 인해, 블록체인 시스템 전체의 처리 능력이 단일 노드의 처리 능력으로 제한되기 때문에, 블록체인 시스템의 트랜잭션 처리 성능 이슈는 블록체인의 활용 범위를 제한하는 주된 요인이 되고 있다. 다시 말하면, 블록체인 시스템에서는, 블록체인 노드의 개수를 증가시키더라도 시스템의 처리 성능을 향상시킬 수 없으며, 단일 블록체인 노드의 처리 효율을 넘어설 수가 없다. 따라서, 대량의 트랜잭션에 대한 신속한 처리가 요구되는 환경에 블록체인 시스템을 적용하기는 매우 어렵다.However, due to the blockchain consensus process, 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 has become a major factor limiting the scope of the blockchain utilization. . 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 a blockchain system to an environment that requires rapid processing of a large amount of transactions.

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

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

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

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

본 발명의 기술적 과제들은 이상에서 언급한 기술적 과제들로 제한되지 않으며, 언급되지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명의 기술분야에서의 통상의 기술자에게 명확하게 이해될 수 있을 것이다.The technical problems of the present invention are not limited to the above-mentioned technical problems, 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, the blockchain-based transaction processing method according to an embodiment of the present invention, in the blockchain-based transaction processing method performed in a batch server, obtaining a plurality of blockchain transactions (blockchain transaction) The method may include generating a batch transaction by integrating at least some of the plurality of blockchain transactions, and processing the batch transaction through a blockchain network.

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

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

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

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

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

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

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

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

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

일 실시예에서, 상기 복수의 블록체인 노드는 제1 블록체인 노드 그룹 및 제2 블록체인 노드 그룹을 포함하고, 상기 배치 서버는 제1 배치 서버 및 제2 배치 서버를 포함하되, 상기 제1 배치 서버는 상기 제1 블록체인 노드 그룹을 통해 제1 배치 트랜잭션을 처리하고, 상기 제2 배치 서버는 상기 제2 블록체인 노드 그룹을 통해 제2 배치 트랜잭션을 처리할 수 있다.In one 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 The server may process a first batch transaction through the first blockchain node group, and the second batch server may process a second batch transaction through the second blockchain node group.

상술한 기술적 과제를 해결하기 위한 본 발명의 또 다른 실시예에 따른 블록체인 기반 트랜잭션 처리 방법은, 클라이언트 단말에서 수행되는 블록체인 기반 트랜잭션 처리 방법에 있어서, 복수의 블록체인 트랜잭션(blockchain transaction)을 생성하는 단계, 상기 복수의 블록체인 트랜잭션 중 적어도 일부를 종합하여, 배치 트랜잭션(batch transaction)을 생성하는 단계 및 블록체인 네트워크를 통해 상기 배치 트랜잭션을 처리하는 단계를 포함할 수 있다.The blockchain-based transaction processing method according to another embodiment of the present invention for solving the above technical problem, in the blockchain-based transaction processing method performed in the client terminal, generates a plurality of blockchain transactions (blockchain transaction) And generating at least some of the plurality of blockchain transactions, generating a batch transaction, and processing the batch transaction through a blockchain 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 batch server and a blockchain node according to some embodiments of the present invention.
4 is a block diagram illustrating a batch server according to an exemplary embodiment of the present invention.
5 and 6 are diagrams for describing 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 a hyperledger fabric in a conventional blockchain system.
8 is a diagram illustrating a process of processing a read type transaction according to an embodiment of the present invention.
9 is a hardware configuration diagram of a batch 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 batch transaction generation method according to an embodiment of the present invention.
12 through 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 of providing a processing result of a batch transaction according to an embodiment of the present invention.

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

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

다른 정의가 없다면, 본 명세서에서 사용되는 모든 용어(기술 및 과학적 용어를 포함)는 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 공통적으로 이해될 수 있는 의미로 사용될 수 있다. 또 일반적으로 사용되는 사전에 정의되어 있는 용어들은 명백하게 특별히 정의되어 있지 않는 한 이상적으로 또는 과도하게 해석되지 않는다. 본 명세서에서 사용된 용어는 실시예들을 설명하기 위한 것이며 본 발명을 제한하고자 하는 것은 아니다. 본 명세서에서, 단수형은 문구에서 특별히 언급하지 않는 한 복수형도 포함한다.Unless otherwise defined, all terms used in the present specification (including technical and scientific terms) may be used in a sense that can be commonly understood by those skilled in the art. In addition, the terms defined in the commonly used dictionaries are not ideally or excessively interpreted unless they are specifically defined clearly. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the 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 component of this invention, terms, such as 1st, 2nd, A, B, (a), (b), can be used. These terms are only for distinguishing the components from other components, and the nature, order or order of the components are not limited by the terms. If a component is described as being "connected", "coupled" or "connected" to another component, that component may be directly connected to or connected to that other component, but there may be another configuration between each component. It is to be understood that the elements may be "connected", "coupled" or "connected".

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

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

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

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

본 명세서에서, 블록체인 노드란, 블록체인 네트워크를 구성하고 블록체인 알고리즘(또는 프로토콜)에 따라 동작하는 컴퓨팅 노드를 의미한다. 상기 컴퓨팅 노드는 물리적 장치로 구현될 수 있으나, 가상 머신(virtual machine)과 같이 논리적 장치로 구현될 수도 있다. 상기 컴퓨팅 노드가 가상 머신으로 구현되는 경우, 하나의 물리적 장치에 복수의 블록체인 노드가 포함될 수도 있다.In the present specification, a blockchain node refers to a computing node constituting a blockchain network and operating 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 the present specification, a transaction or blockchain transaction refers to any action that causes a change of state (eg increase or decrease of balance, transfer of assets) in the blockchain environment, and state data recorded in the blockchain. It can refer to all the actions to be queried or data indicating the actions. For example, the transaction may include writing specific data on the blockchain, reading specific data recorded on the blockchain, and the like. The transaction may be classified into a write type transaction (e.g. a transaction such as adding, modifying, or deleting state data) and a read type transaction (e.g. transaction inquiring state data). Of course, depending on the blockchain platform, there may be various types of transactions (e.g. execution) in addition to the read and write types, in which case the transaction may include all the various types of transactions. In addition, in the art, it may be used interchangeably with terms such as query of the read-type transaction. The transaction may be executed through a smart contract (accessed to the blockchain through the functions and variables defined in the smart contract, for example), but this may vary depending on the blockchain platform.

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

본 명세서에서, 인스트럭션(instruction)이란, 기능을 기준으로 묶인 일련의 명령어들로서 컴퓨터 프로그램의 구성 요소이자 프로세서(processor)에 의해 실행되는 것을 가리킨다.In the present specification, an instruction is a series of instructions grouped by function, and refers to a component of a computer program and 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 blockchain nodes 200 constituting the blockchain network 300. However, this is only a preferred embodiment for achieving the object of the present invention, of course, some components may be added or deleted as necessary. In addition, it is noted that each device illustrated in FIG. 1 represents functionally distinct functional elements, and at least one device may be implemented in a form in which they are integrated with each other in an actual physical environment. For example, placement server 100, client terminal 400, and / or blockchain node 200 may be implemented in different logic within the same physical computing device. That is, the specific client terminal may further perform the function of the batch server 100, or the 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 processes the batch transaction in cooperation with the blockchain network 300. A computing device that provides a service. Here, the computing device may be a laptop, a desktop, a laptop, and the like, but is not limited thereto and may include any kind of device provided with a computing means and a communication means. However, in an environment where a large amount of transaction processing is required, the batch server 100 may be implemented as a high performance server computing device. In this specification, the batch server 100 may be referred to as 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 the 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, performs a batch transaction process in association with the blockchain network 300, and processes a transaction. Results may be provided to each client terminal 400. A detailed description of the operation of the batch server 100 will be described in detail with reference to the drawings of FIG. 4.

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

제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 and 100b is linked with all blockchain nodes 200a to 200d, and the transactions requested by 400a to 400c are arranged in a plurality of batches. It may be distributed through the servers 100a and 100b. In this embodiment, the transactions requested by the client terminals 400a to 400c are distributed to the specific batch server 100a or 100b, and the specific batch server 100a or 100b is linked to the entire blockchain nodes 200a to 200d. Will be processed.

제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 batch server 100a may be linked with the first blockchain node group 201, and the second batch server 100b may be linked with the second blockchain node group 203. In this embodiment, the batch server 100a, 100b interoperates with its own dedicated blockchain node group 201, 203 to process the requested transaction.

본 발명의 실시예에 따르면, 상기 제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 dedicated batch servers e.g. 100a and 100b are allocated to each channel of the blockchain network 300. Of course, according to an embodiment, a dedicated batch server 100 may exist for each blockchain 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 device (not shown) may provide a list of a plurality of batch servers (eg 100a and 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 the present embodiment, if a 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 server (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 a blockchain network 300 having a P2P structure, and are nodes that operate according to a blockchain protocol. The plurality of blockchain nodes 200 may share various smart contract and transaction data through the blockchain, and may guarantee the integrity and security of the transaction through a consensus process.

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

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

한편, 본 발명의 몇몇 실시예에 따르면, 복수의 블록체인 노드(200)는 적어도 일부는 서로 다른 동작을 수행하는 복수의 타입의 블록체인 노드를 포함할 수 있다. 예를 들어, 제1 타입의 블록체인 노드(e.g. 하이퍼레저 패브릭의 "endorsing peer")는 스마트 컨트랙트를 실행하고, 실행 결과에 대한 서명을 수행하는 동작을 수행하고, 제2 타입의 블록체인 노드(e.g. 하이퍼레저 패브릭의 "orderer")는 스마트 컨트랙트의 실행 결과에 대한 주요 합의 프로세스를 수행하거나, 블록에 상기 실행 결과를 기록하고 전파하는 동작을 수행할 수 있다. 이하에서, 상기 제1 타입의 블록체인 노드와 상기 제2 타입의 블록체인 노드는 위와 같은 의미로 계속해서 사용하도록 하고, 상기 제2 타입의 블록체인 노드를 상기 제1 타입의 블록체인 노드와 구별하기 위해 "합의 노드"로 명명하도록 한다.Meanwhile, according to some embodiments of the present disclosure, the plurality of blockchain nodes 200 may include a plurality of types of blockchain nodes that at least partially perform different operations. For example, a blockchain node of a first type (eg, an "endorsing peer" of a hyperleisure fabric) executes a smart contract, performs an operation of signing an execution result, and a blockchain node of a second type ( eg, the "orderer" of the hyperresist fabric may perform the main consensus process on the execution result of the smart contract, or perform the operation of recording and propagating the execution result in a block. Hereinafter, the blockchain node of the first type and the blockchain node of the second type are continuously used as described above, and the blockchain node of the second type is distinguished from the blockchain node of the first type. We call it "node".

클라이언트 단말(400)은 트랜잭션 처리 시스템을 통해 트랜잭션에 대한 처리 서비스를 제공받는 단말이다. 클라이언트 단말(400)은 소정의 트랜잭션을 생성하고, 생성된 트랜잭션을 배치 서버(100) 및/또는 블록체인 네트워크(300)로 전송하며, 배치 서버(100) 및/또는 블록체인 네트워크(300)로부터 트랜잭션에 대한 처리 결과를 제공받을 수 있다.The client terminal 400 is a terminal that receives a processing service for a transaction 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. You can be provided with the processing result for a transaction

클라이언트 단말(400), 배치 서버(100) 및 블록체인 노드(200)는 네트워크를 통해 통신할 수 있다. 여기서, 상기 네트워크는 근거리 통신망(Local Area Network; LAN), 광역 통신망(Wide Area Network; WAN), 이동 통신망(mobile radio communication network), Wibro(Wireless Broadband Internet) 등과 같은 모든 종류의 유/무선 네트워크로 구현될 수 있다.The client terminal 400, the batch server 100, and the blockchain node 200 may communicate through a network. The network may be any type of wired / wireless network such as a local area network (LAN), a wide area network (WAN), a mobile radio communication network, a wireless broadband Internet (Wibro), or the like. 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 batch 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 batch 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, FIG. 4 shows only the components related to the embodiment of the present invention. Therefore, it will be appreciated by those skilled in the art that the present invention may further include other general purpose components in addition to the components illustrated in FIG. 4. In addition, each component of the blockchain-based transaction processing apparatus illustrated in FIG. 4 represents functionally distinct functional elements, and may be implemented in a form in which at least one component 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 predetermined criterion. In this case, the preset criterion may include an identifier of a smart contract, a channel identifier and / or a type of a transaction, a importance of a transaction, and the like. Here, the transaction type may include various types of transactions as described above, but for convenience of understanding, it is assumed that the transaction 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)로 제공할 수 있다.In more detail, the classification module 110 classifies each transaction by channel, by smart contract, by transaction type, and / or by importance (eg, by classifying as a write type transaction using a first smart contract of a 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 high priority transactions are not created as batch transactions, but can be processed separately. For example, when 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 blockchain transaction of may be processed by the batch creation module 130 as a batch transaction. In addition, a transaction belonging to the second transaction group may be immediately delivered to the handler module 150 and processed separately. According to the present embodiment, a transaction with high importance can be processed more quickly, and a differential processing service according to 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 combining a plurality of transactions classified by the classification module 110. In detail, 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 to the first batch queue, and insert the second transaction classified as the second classification result to the second batch queue. . In addition, 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 a transaction until a batch transaction is generated, and may be understood as a kind of transaction buffer or a 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 in various types of data structures.

본 발명의 실시예에 따르면, 상기 소정의 조건은 타이머 만료 여부, 배치 큐에 포함된 전체 트랜잭션의 개수, 전체 트랜잭션의 크기, 트랜잭션 간의 연관성 존재 유무 등에 기초한 조건을 포함할 수 있다. 배치 생성 모듈(130)이 상기 조건에 따라 배치 트랜잭션을 생성하는 방법에 대한 자세한 설명은 도 12 내지 도 14를 참조하여 후술하도록 한다.According to an embodiment of the present invention, the predetermined condition may include a condition based on whether the timer expires, the total number of transactions included in the batch queue, the size of the total transaction, the presence or absence of association between the transactions, and the like. A detailed description of how the batch generation module 130 generates a batch transaction according to the above condition 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 generation module 130 separately processes transactions by which associations exist and processes the identified transactions as different batch transactions, or directly by passing them to the handler module 150 separately. Can be operated. A description of the present embodiment will be described further in the description of FIG. 14.

핸들러 모듈(150)은 블록체인 네트워크(300)와 연동하여 배치 트랜잭션을 일괄 처리한다. 이를 위해, 핸들러 모듈(150)은 송신 핸들러(151) 및 수신 핸들러(153)를 포함하도록 구성될 수 있다.The handler module 150 processes the batch transaction in cooperation with the blockchain network 300. 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 on data such as a batch transaction. In detail, 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 an execution result (e.g. endorsement) of the batch transaction signed by the blockchain node to the consensus node, or may further perform an operation such as retransmission for the batch transaction that has failed to process.

수신 핸들러(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. In detail, the reception handler 153 receives a processing result of a batch transaction from the blockchain network 300, and provides the processing result to the result providing module 170 in response to the receiving. In addition, the reception handler 153 may further perform an operation such as receiving a processing result of a signed batch transaction from the blockchain 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.

결과 제공 모듈(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 divide 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, the transaction identifier, and the address of each client terminal 400 of each client terminal 400, and the processing result of the individual transaction by referring to the reference table. It may be provided to the 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 generation 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 process each of the plurality of transactions individually without generating a batch transaction for the plurality of transactions in response to the predetermined 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 a transaction failure, 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 (eg CPU occupancy) is greater than or equal to the first threshold is satisfied, and the load is less than or equal to the second threshold less than the first threshold. In response to the condition being satisfied, the batch creation function can be reactivated.

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

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

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

도 4에 도시된 각 구성 요소는 소프트웨어(Software) 또는, FPGA(Field Programmable Gate Array)나 ASIC(Application-Specific Integrated Circuit)과 같은 하드웨어(Hardware)를 의미할 수 있다. 그렇지만, 상기 구성 요소들은 소프트웨어 또는 하드웨어에 한정되는 의미는 아니며, 어드레싱(Addressing)할 수 있는 저장 매체에 있도록 구성될 수도 있고, 하나 또는 그 이상의 프로세서들을 실행시키도록 구성될 수도 있다. 상기 구성 요소들 안에서 제공되는 기능은 더 세분화된 구성 요소에 의하여 구현될 수 있으며, 복수의 구성 요소들을 합하여 특정한 기능을 수행하는 하나의 구성 요소로 구현될 수도 있다.Each component illustrated in FIG. 4 may refer to software or hardware such as a field programmable gate array (FPGA) or an application-specific integrated circuit (ASIC). However, the components are not limited to software or hardware, and may be configured to be in an addressable storage medium, or may be configured to execute one or more processors. The functions provided in the above components may be implemented by more detailed 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)와 유사한 바 이에 대한 상세한 설명은 생략하도록 한다.On the other hand, according to an embodiment of the present invention, the above-described function of the batch server 100 may be implemented on the client terminal 400 side. For example, when a specific client terminal 400 generates a plurality of blockchain transactions, the specific client terminal 400 directly generates at least some of the plurality of blockchain transactions to generate a batch transaction, and the blockchain network It may be implemented to process the batch transaction via 300. The detailed process of generating and processing a batch transaction by the client terminal 400 is similar to that of the batch server 100, and thus a detailed description thereof will be omitted.

이하에서는, 보다 이해의 편의를 제공하기 위해, 배치 서버(100)를 통해 쓰기 타입 트랜잭션과 읽기 타입 트랜잭션이 처리되는 과정을 도 5 내지 도 8을 참조하여 설명하도록 한다.Hereinafter, for 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 in which a write type transaction is processed according to an embodiment of the present invention. 5, 6, and 8 illustrate by way of example, generating one batch transaction by combining 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 combining 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 , and Tx w3 into the same batch queue, and the write type inserted into the batch queue. The batch transaction 10 may be generated by combining 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 the blockchain network 300 to process the batch transaction 10. Then, the blockchain nodes 200a and 200b constituting the blockchain network 300 perform a consensus process for the batch transaction 10 and display the execution result of the batch transaction 10 on the blockchains 230a and 230b. To record.

도 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 blockchain node 230a, 230b may include a processing module 210a, 210b for processing a batch transaction 10. The processing module 210a or 210b divides the execution result of the batch transaction 10 into transactions (or status data) by using a smart contract, and updates the blockchain based on the separated execution results. . At this time, the execution result of the batch transaction 10 may include a signature of the blockchain node, an identifier of an individual transaction, identification keys (A, B, C) and values (1, 2, 3) of state data, and the like. Can be. Accordingly, the processing module 210a or 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 module 210a or 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 a processing result for the batch transaction 10 from the blockchain network 300, and provides the received processing result to the client terminal 400.

이때, 상기 처리 결과가 실패를 가리키는 경우, 배치 서버(100)의 핸들러 모듈(150)은 배치 트랜잭션(10)의 처리 요청을 재시도할 수 있는데, 이에 대한 설명은 도 15를 참조하여 상세하게 설명하도록 한다.In this case, when the processing result indicates a 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. Do it.

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

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

다음으로, 배치 서버(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 writes the new block to the blockchain network 300. Propagates to the phase. Finally, each blockchain node 201, 203 receiving the new block divides the execution result of the batch transaction 20 by transaction (or by status data) through the processing module 211, and separates the execution result. Update 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 processed in batch transactions instead of being processed in individual transactions. Thus, the transaction processing performance of the system can be greatly improved.

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

도 7에 도시된 바와 같이, 하이퍼레저 패브릭은 개별 쓰기 타입 트랜잭션에 대하여 최소 4번의 메시지 전달 과정(① 내지 ④)을 수행한다. 가령, 100개의 쓰기 타입 트랜잭션을 처리하기 위해서는 최소 400번의 메시지 전달이 요구된다. 반면에, 본 발명의 실시예에 따른 배치 서버(100)를 통해 100개의 쓰기 트랜잭션이 1개의 배치 트랜잭션으로 일괄 처리되면, 100개의 쓰기 트랜잭션에 대한 전달 과정(② 내지 ④)이 3번의 메시지 전달로 완료될 수 있다. 즉, 본 발명의 실시예에 따르면, 다수의 쓰기 타입 트랜잭션에 대한 합의 프로세스가 병렬적으로 수행되는 것이기 때문에 블록체인 시스템의 트랜잭션 처리 성능이 크게 향상될 수 있다. 아울러, 본 발명의 실시예들은 종래 블록체인 시스템의 내부 로직(e.g. 합의 프로세스)의 수정을 요구하지 않기 때문에, 다양한 블록체인 시스템에 폭넓게 적용될 수 있다.As shown in FIG. 7, the hyperledger fabric performs at least four message delivery processes ① to ④ for individual write type transactions. For example, at least 400 message transfers are required to process 100 write-type transactions. On the other hand, if 100 write transactions are batch-processed into one batch transaction through the batch server 100 according to an embodiment of the present invention, the transfer process (② to ④) for 100 write transactions is carried out three times. Can be completed. That is, according to the 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, it 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 , and Tx R3 , and uses the blockchain network 300 to generate the batch transaction 30. Request processing.

상기 요청을 수신한 블록체인 노드(200a)는 처리 모듈(210a)을 통해 배치 트랜잭션(20)을 트랜잭션 별(또는 상태 데이터 별)로 구분하고, 블록체인에 기록된 상태 데이터(A, B, C)를 조회한다. 상기 구분 과정은 트랜잭션 식별자 및/또는 상태 데이터의 식별키(A, B, C)에 기초하여 스마트 컨트랙트를 통해 수행될 수 있다.The blockchain node 200a receiving the request divides the batch transaction 20 into transactions by transactions (or by status data) through the processing module 210a, and records state data A, B, and C recorded in the blockchain. ). The classification process may be performed through the 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 (that is, the value of the inquired state data) of the batch transaction 30 from the blockchain node 200a and provides the processing result to the corresponding client terminal 400. Can be.

이때, 상기 처리 결과가 실패를 가리키는 경우, 배치 서버(100)의 핸들러 모듈(150)은 배치 트랜잭션(30)의 처리 요청을 재시도할 수 있는데, 이에 대한 설명은 도 15를 참조하여 상세하게 설명하도록 한다.In this case, when the processing result indicates a 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)를 통해 읽기 타입의 트랜잭션이 처리되는 과정에 대하여 설명하였다. 상술한 방법에 따르면, 복수의 읽기 타입의 트랜잭션이 배치 형태로 일괄 처리될 수 있는 바, 시스템의 전반적인 트랜잭션 처리 성능이 크게 향상될 수 있다.Up to now, the 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 batch form, the overall transaction processing performance of the system can be greatly improved.

이하에서는, 본 발명의 일 실시예에 따른 배치 서버(100)의 하드웨어 구성에 대하여 도 9를 참조하여 설명하도록 한다.Hereinafter, a hardware configuration of the batch 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 may include a memory 103 that loads one or more processors 101, a bus 105, a network interface 107, and a computer program executed by the processor 101. And storage 109 for storing blockchain based transaction processing software 109a. However, FIG. 9 shows only the components related to the embodiment of the present invention. Accordingly, it will be appreciated by those skilled in the art that other general purpose components may be further included in addition to the components illustrated in FIG. 9.

프로세서(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 graphics 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 a method according to embodiments of the present invention. The batch server 100 may have 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 a blockchain based transaction processing method according to embodiments of the present invention. In FIG. 9, RAM is illustrated as an example of the memory 103.

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

버스(105)는 배치 서버(100)의 구성 요소 간 통신 기능을 제공한다. 버스(105)는 주소 버스(Address Bus), 데이터 버스(Data Bus) 및 제어 버스(Control Bus) 등 다양한 형태의 버스로 구현될 수 있다.The bus 105 provides communication between 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 and wireless Internet communication of the batch 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. In FIG. 9, blockchain based transaction processing software 109a is shown as an example of the one or more programs 109a.

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

트랜잭션 처리 소프트웨어(109a)는 메모리(103)에 로드되어, 프로세서(101)로 하여금 본 발명의 실시예에 따른 블록체인 기반 트랜잭션 처리 방법을 수행하도록 하는 인스트럭션들을 포함할 수 있다.The transaction processing software 109a may be loaded into the memory 103 and include instructions to 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, the transaction processing software 109a may cause the processor 101 to acquire a plurality of blockchain transactions when loaded into the memory 103, and perform at least some of the plurality of blockchain transactions. Collectively, instructions may be included to generate a batch transaction and to perform an operation of processing the batch transaction through a blockchain network.

지금까지, 도 5 내지 도 9를 참조하여 본 발명의 실시예에 따른 배치 서버(100)의 구성 및 동작에 대하여 설명하였다. 이하에서는, 도 10 내지 도 15를 참조하여 본 발명의 실시예에 따른 블록체인 기반 트랜잭션 처리 방법에 대하여 상세하게 설명한다.So far, the configuration and operation of the batch server 100 according to the embodiment of the present invention have been described with reference to FIGS. 5 to 9. Hereinafter, a blockchain 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 a 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 operation subject of each step included in the blockchain-based transaction processing method may be omitted. In addition, each step of the blockchain based transaction processing method may be implemented with instructions that, when loaded into memory, cause the processor to perform an operation corresponding to each step.

도 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, of course, some steps may be added or deleted as necessary.

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

단계(S30)에서, 배치 서버(100)는 복수의 트랜잭션을 종합하여 배치 트랜잭션을 생성한다. 본 단계(S30)에 대한 자세한 설명은 도 11 내지 도 14를 참조하여 후술하도록 한다.In step S30, the batch server 100 generates a batch transaction by combining 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 transfers the generated batch transaction to the blockchain network 300.

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

단계(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 divides 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)을 제공하며, 다양한 블록체인 시스템에 폭넓게 활용될 수 있다.Up to now, the blockchain based transaction processing method according to an embodiment of the present invention has been described with reference to FIG. 10. According to the above method, by processing individual transactions in batch form, the transaction processing performance of the blockchain system can be greatly improved. In particular, since the method described above 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 batch transaction generation method according to an embodiment of the present invention. This is only a preferred embodiment for achieving the object of the present invention, of course, 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 predetermined criterion. The preset criterion may include, for example, a channel identifier, a smart contract identifier, a type of transaction, a importance of a transaction, and the like. However, this is only for explaining some embodiments of the present invention, but the scope of the present invention is not limited to the examples listed above.

단계(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 As another example, the batch server 100 inserts a first transaction having a first importance into a first priority queue having a high priority, and inserts a second transaction having a second importance into a second priority queue having a lower priority. Can be inserted.

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

단계(S170)에서, 배치 서버(100)는 소정의 조건을 만족하는 배치 큐의 트랜잭션을 종합하여 배치 트랜잭션을 생성한다.In step S170, the batch server 100 generates a batch transaction by combining the transactions of the batch queue that satisfies 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 is a first condition based on a timer expiration, a second condition based on a size of a transaction, a third condition based on a number of transactions, and a fourth condition based on whether an association exists between transactions. And the like. In addition, the predetermined condition may further include a condition that can be defined based on a combination of the first to fourth conditions. Hereinafter, a method of generating a batch transaction according to a predetermined condition in step S170 will be described with reference to FIGS. 12 through 14. First, a method of generating a batch transaction according to a 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 so that an expiration event occurs periodically, and set a timer for each batch queue.

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

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

지금까지, 도 12를 참조하여 타이머 만료 여부에 기초한 제1 조건에 따라 배치 트랜잭션을 생성하는 방법에 대하여 설명하였다. 상술한 방법에 따르면, 트랜잭션의 처리 대기 시간이 일정 시간으로 제한될 수 있다. 따라서, 특정 트랜잭션의 처리가 지연되는 문제가 완화될 수 있다.Up to now, the 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 processing wait time of the transaction can be limited to a certain time. Thus, the problem of delaying the processing of 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 greater than or equal to a first threshold value. In this case, the size of the entire transaction may be calculated as the sum of the sizes of the individual transactions, and the size of the individual transactions may mean, for example, the size of transaction data recorded in the blockchain. However, the scope of the present invention is not limited thereto.

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

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

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

한편, 단계(S330)에서 상기 제1 임계 값 미만이라는 판정이 내려진 경우, 단계(S390)가 수행될 수 있다. 단계(S390)에서, 배치 서버(100)는 상기 기존 배치 큐에 포함된 트랜잭션의 전체 개수가 제2 임계 값 이상인지 여부를 판정한다. 또한, 상기 제2 임계 값 이상이라는 판정에 응답하여, 배치 서버(100)는 전술한 단계(S350, S370)를 수행할 수 있다.On the other hand, if it is determined in step S330 that the value 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 greater than or equal to a second threshold value. In addition, in response to determining that the second threshold value or more, the batch server 100 may perform the above-described step (S350, S370).

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

지금까지, 도 13을 참조하여 트랜잭션의 크기에 기초한 제2 조건 및 트랜잭션의 개수에 기초한 제3 조건에 따라 배치 트랜잭션을 생성하는 방법에 대하여 설명하였다. 이하에서는, 트랜잭션 간의 연관성 존재 여부에 기초한 상기 제4 조건에 따라 배치 트랜잭션을 생성하는 방법에 대하여 도 14를 참조하여 설명하도록 한다.Up to now, the 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 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 the particular transaction. In this case, the specific transaction may mean a transaction recently classified and waiting for insertion into a batch queue.

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

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

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

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

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

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

일 실시예에서, 제1 트랜잭션 및 제2 트랜잭션이 연관성이 존재하는 트랜잭션으로 식별된 경우, 배치 서버(100)는 상기 제1 트랜잭션을 기초로 배치 트랜잭션을 생성하고, 상기 제2 트랜잭션은 개별적으로 처리되도록 할 수 있다. 즉, 배치 서버(100)는 트랜잭션의 충돌이 일어나지 않는 범위 내에서 연관성이 존재하는 복수의 트랜잭션 중 일부 트랜잭션을 배치 형태로 처리할 수 있다. 이때, 개별적으로 처리되는 상기 제2 트랜잭션은 배치 서버(100)가 가장 처음으로 수신한 트랜잭션일 수 있고, 가장 마지막에 수신한 트랜잭션이 될 수도 있으며, 이는 구현 방식에 따라 얼마든지 변형될 수 있다. 본 실시예에 따르면, 트랜잭션 처리의 안정성과 성능 향상을 모두 꾀할 수 있다.In one embodiment, when a first transaction and a second transaction are identified as a transaction in which an association exists, batch server 100 generates a batch transaction based on the first transaction, and the second transaction is processed separately. You can do that. That is, the batch server 100 may process some of the plurality of transactions in which there is an association within a range in which a transaction conflict does not occur in a batch form. In this case, the second transaction that is processed separately may be the transaction received first by the batch server 100, or may be the transaction received last, which may be modified according to the implementation manner. According to this embodiment, both the stability and the performance of the 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 the first transaction and the second transaction that are associated with each other can be combined, and in response to determining that the association is possible, 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 the present embodiment, the batch server 100 may process the third transaction in 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 an association exists, the batch server 100 selects one of the first transaction and the second transaction, and the selected transaction is a blockchain. Can be processed over the network. For example, when both the first transaction and the second transaction 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 and the result of executing the last transaction will be the same. In addition, the remaining unselected transactions may be error-handled or processed independently, which may vary depending on implementation.

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

지금까지, 도 12 내지 도 14를 참조하여 본 발명의 실시예에 따라 배치 트랜잭션을 생성하는 방법에 대하여 설명하였다. 이하에서는, 도 15를 참조하여 배치 트랜잭션의 처리 결과 제공 방법에 대하여 설명하도록 한다.So far, a method of 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, in the method of providing a batch transaction processing result according to an exemplary embodiment of the present invention, the blockchain network 300 requests the batch transaction to be processed, and the blockchain network 300 processes the batch transaction result. In the receiving step (S510, S520) begins.

단계(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 divides 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 transfers 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, and removes the transaction stored in the batch queue.

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

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

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

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

지금까지 도 1 내지 도 15를 참조하여 본 발명의 몇몇 실시예들 및 상기 실시예들에 따른 효과를 언급하였다. 본 발명의 효과들은 이상에서 언급한 효과들로 제한되지 않으며, 언급되지 않은 또 다른 효과들은 아래의 기재로부터 통상의 기술자에게 명확하게 이해될 수 있을 것이다.So far, reference has been made to some embodiments of the invention and effects in accordance with the embodiments with reference to FIGS. 1 to 15. Effects of the present invention are not limited to the above-mentioned effects, 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 above with reference to FIGS. 1 through 15 may be implemented in computer readable code on a computer readable medium. The computer-readable recording medium may be, for example, a removable recording medium (CD, DVD, Blu-ray disc, USB storage device, removable hard disk) or a fixed recording medium (ROM, RAM, computer equipped hard disk). Can be. The computer program recorded on the computer-readable recording medium may be transmitted to another computing device and installed in the other computing device through a network such as the Internet, thereby being used in the other computing device.

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

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

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

Claims (28)

배치 서버에서 수행되는 블록체인 기반 트랜잭션 처리 방법에 있어서,
복수의 블록체인 트랜잭션(blockchain transaction)을 획득하는 단계;
상기 복수의 블록체인 트랜잭션 중 적어도 일부를 종합하여, 배치 트랜잭션(batch transaction)을 생성하는 단계; 및
블록체인 네트워크를 통해 상기 배치 트랜잭션을 처리하는 단계를 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
In the blockchain-based transaction processing method performed in the batch server,
Obtaining a plurality of blockchain transactions;
Generating a batch transaction by integrating at least some of the plurality of blockchain transactions; And
Characterized in that it comprises the step of processing the batch transaction via a blockchain network,
Blockchain based transaction processing method.
제1 항에 있어서,
상기 배치 트랜잭션을 생성하는 단계는,
상기 복수의 블록체인 트랜잭션을 기 설정된 기준에 따라 분류하여, 제1 트랜잭션 그룹 및 제2 트랜잭션 그룹을 형성하는 단계;
상기 제1 트랜잭션 그룹에 소속된 복수의 블록체인 트랜잭션을 종합하여, 제1 배치 트랜잭션을 생성하는 단계; 및
상기 제2 트랜잭션 그룹에 소속된 복수의 블록체인 트랜잭션을 종합하여, 제2 배치 트랜잭션을 생성하는 단계를 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 1,
Generating the batch transaction,
Classifying the plurality of blockchain transactions according to preset criteria to form a first transaction group and a second transaction group;
Generating a first batch transaction by aggregating a plurality of blockchain transactions belonging to the first transaction group; And
Generating a second batch transaction by synthesizing a plurality of blockchain transactions belonging to the second transaction group,
Blockchain based transaction processing method.
제2 항에 있어서,
상기 기 설정된 기준은 각 블록체인 트랜잭션과 연관된 스마트 컨트랙트(smart contract)의 식별자를 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 2,
The predetermined criterion may include an identifier of a smart contract associated with each blockchain transaction.
Blockchain based transaction processing method.
제2 항에 있어서,
상기 블록체인 네트워크는 멀티 채널(multi-channel) 기반의 블록체인 네트워크이되,
상기 기 설정된 기준은 각 블록체인 트랜잭션과 연관된 채널 식별자를 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 2,
The blockchain network is a multi-channel based blockchain network,
The predetermined criterion may include a channel identifier associated with each blockchain transaction.
Blockchain based transaction processing method.
제2 항에 있어서,
상기 기 설정된 기준은 각 블록체인 트랜잭션의 타입을 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 2,
The predetermined criterion is characterized in that it comprises a type of each blockchain transaction,
Blockchain based transaction processing method.
제1 항에 있어서,
상기 배치 트랜잭션을 생성하는 단계는,
상기 복수의 블록체인 트랜잭션 중 제1 블록체인 트랜잭션을 기 설정된 기준에 따라 분류하는 단계;
상기 제1 블록체인 트랜잭션을 복수의 배치 큐(batch queue) 중에서 상기 분류 결과에 대응되는 제1 배치 큐에 삽입하는 단계;
상기 제1 배치 큐가 기 설정된 조건을 만족하는지 판정하는 단계; 및
상기 기 설정된 조건을 만족한다는 판정에 응답하여, 상기 제1 배치 큐에 포함된 복수의 블록체인 트랜잭션을 종합하여, 상기 배치 트랜잭션을 생성하는 단계를 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 1,
Generating the batch transaction,
Classifying a first blockchain transaction among the plurality of blockchain transactions according to preset criteria;
Inserting the first blockchain transaction into a first batch queue corresponding to the classification result among a plurality of batch queues;
Determining whether the first batch queue satisfies a preset condition; And
And in response to determining that the preset condition is satisfied, synthesizing a plurality of blockchain transactions included in the first batch queue, and generating the batch transaction.
Blockchain based transaction processing method.
제1 항에 있어서,
상기 배치 트랜잭션을 생성하는 단계는,
기 설정된 타이머(timer)가 만료됨에 응답하여, 상기 배치 트랜잭션을 생성하는 단계를 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 1,
Generating the batch transaction,
Generating a batch transaction in response to the expiration of a preset timer;
Blockchain based transaction processing method.
제1 항에 있어서,
상기 배치 트랜잭션을 생성하는 단계는,
특정 개수 이하의 블록체인 트랜잭션을 종합하여, 상기 배치 트랜잭션을 생성하는 단계를 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 1,
Generating the batch transaction,
Generating a batch transaction by synthesizing a blockchain transaction of a predetermined number or less,
Blockchain based transaction processing method.
제1 항에 있어서,
상기 배치 트랜잭션을 생성하는 단계는,
블록체인 트랜잭션 크기의 합이 특정 크기 이하가 되는 블록체인 트랜잭션을 종합하여, 상기 배치 트랜잭션을 생성하는 단계를 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 1,
Generating the batch transaction,
And generating a batch transaction by synthesizing a blockchain transaction in which the sum of the blockchain transaction sizes is equal to or less than 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,
Generating the batch transaction,
Identifying a first blockchain transaction and a second blockchain transaction including the same identification key among the plurality of blockchain transactions;
Creating the first blockchain transaction as a first batch transaction; 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,
Generating the batch transaction,
Identifying a first blockchain transaction and a second blockchain transaction including the same identification key among the plurality of blockchain transactions; And
Generating the batch transaction based on the remaining blockchain transactions except for the first blockchain transaction and the second blockchain transaction,
And processing the first blockchain transaction and the second blockchain transaction separately.
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,
Generating the batch transaction,
Identifying a first blockchain transaction and a second blockchain transaction including the same identification key among the plurality of blockchain transactions; And
Generating a batch transaction comprising the first blockchain transaction,
Characterized in that it further comprises 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,
Acquiring the plurality of blockchain transactions,
Identifying a first blockchain transaction and a second blockchain transaction including the same identification key among the plurality of blockchain transactions; 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 blockchain transaction and a second blockchain transaction including the same identification key among the plurality of blockchain transactions; And
The method may further include selecting any one of the first blockchain transaction and the second blockchain transaction.
Wherein the selected blockchain transaction 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 a failure, further comprising individually retrying the processing of the 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 a processing result indicating a failure, further comprising retrying processing on the remaining blockchain transactions except for the blockchain transaction that caused the failure among the plurality of blockchain transactions included in the batch transaction. Made,
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
And in response to the processing result indicating success, providing the processing result of the blockchain transaction requested by each client terminal to the respective client terminals.
Blockchain based transaction processing method.
제1 항에 있어서,
상기 배치 트랜잭션을 생성하는 단계는,
트랜잭션의 중요도에 기초하여 상기 복수의 블록체인 트랜잭션을 제1 트랜잭션 그룹 및 제2 트랜잭션 그룹으로 분류하는 단계; 및
상기 제1 트랜잭션 그룹에 소속된 복수의 블록체인 트랜잭션을 종합하여, 상기 배치 트랜잭션을 생성하는 단계를 포함하되,
상기 제2 트랜잭션 그룹에 소속된 트랜잭션의 중요도는 상기 제1 트랜잭션 그룹에 소속된 트랜잭션보다 높고,
상기 제2 트랜잭션 그룹에 소속된 트랜잭션은 상기 블록체인 네트워크를 통해 개별적으로 처리되는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
The method of claim 1,
Generating the batch transaction,
Classifying the plurality of blockchain transactions into a first transaction group and a second transaction group based on the importance of the transaction; And
Comprising a plurality of blockchain transactions belonging to the first transaction group, generating the batch transaction,
The importance of a transaction belonging to the second transaction group is higher than a transaction belonging to the first transaction group,
Characterized in that the transactions belonging to the second transaction group are processed separately 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 in communication with the blockchain network; And
A processor for processing the plurality of blockchain transactions through the blockchain network,
The processor,
Generating a batch transaction by combining at least some of the plurality of blockchain transactions,
Characterized in that for processing the batch transaction through the blockchain network,
Deployment server.
복수의 블록체인 트랜잭션(blockchain transaction)을 획득하고, 상기 복수의 블록체인 트랜잭션 중 적어도 일부를 종합하여, 배치 트랜잭션(batch transaction)을 생성하는 배치 서버; 및
블록체인 네트워크를 구성하는 복수의 블록체인 노드를 포함하되,
상기 배치 서버는,
상기 블록체인 네트워크를 통해 상기 배치 트랜잭션을 처리하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 시스템.
A batch server that acquires a plurality of blockchain transactions, aggregates at least some of the plurality of blockchain transactions, and generates a batch transaction; And
Including a plurality of blockchain nodes constituting a blockchain network,
The batch server,
Characterized in that for processing the batch transaction through the blockchain network,
Blockchain based transaction processing system.
제20 항에 있어서,
상기 복수의 블록체인 노드는 제1 블록체인 노드 그룹 및 제2 블록체인 노드 그룹을 포함하고,
상기 배치 서버는 제1 배치 서버 및 제2 배치 서버를 포함하되,
상기 제1 배치 서버는 상기 제1 블록체인 노드 그룹을 통해 제1 배치 트랜잭션을 처리하고,
상기 제2 배치 서버는 상기 제2 블록체인 노드 그룹을 통해 제2 배치 트랜잭션을 처리하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 시스템.
The method of claim 20,
The plurality of blockchain nodes includes a first blockchain node group and a second blockchain node group,
The deployment server includes a first deployment server and a second deployment server,
The first batch server processes a first batch transaction through the first blockchain node group,
The second batch server processes a second batch transaction through the second blockchain node group,
Blockchain based transaction processing system.
제21 항에 있어서,
상기 블록체인 네트워크는 멀티 채널 기반의 블록체인 네트워크이되,
상기 제1 블록체인 노드 그룹은 제1 채널에 대응되고,
상기 제2 블록체인 노드 그룹은 제2 채널에 대응되는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 시스템.
The method of claim 21,
The blockchain network is a multi-channel based blockchain network,
The first blockchain node group corresponds to a first channel,
The second blockchain node group corresponds to a second channel.
Blockchain based transaction processing system.
제20 항에 있어서,
상기 복수의 블록체인 트랜잭션 각각은 접근하는 상태 데이터의 식별키를 포함하고,
상기 복수의 블록체인 노드 중 제1 블록체인 노드는,
상기 배치 트랜잭션에 포함된 제1 복수의 식별키를 식별하고, 상기 제1 복수의 식별키 각각을 이용하여 블록체인에 접근하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 시스템.
The method of claim 20,
Each of the plurality of blockchain transactions includes an identification key of accessing state data,
The first blockchain node of the plurality of blockchain nodes,
Identifying a first plurality of identification keys included in the batch transaction, and accessing the blockchain using each of the first plurality of identification keys;
Blockchain based transaction processing system.
제23 항에 있어서,
상기 제1 블록체인 노드는,
스마트 컨트랙트(smart contract)를 이용하여 상기 식별 과정을 수행하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 시스템.
The method of claim 23, wherein
The first blockchain node,
Characterized in that performing the identification process using a smart contract (smart contract),
Blockchain based transaction processing system.
제20 항에 있어서,
상기 복수의 블록체인 노드는,
블록체인 트랜잭션에 대한 스마트 컨트랙트를 실행하는 제1 블록체인 노드와 스마트 컨트랙트의 실행 결과를 블록에 기록하고 전파하는 제2 블록체인 노드를 포함하되,
상기 배치 서버는,
상기 제1 블록체인 노드로부터 상기 배치 트랜잭션과 연관된 스마트 컨트랙트의 제1 실행 결과를 제공받고,
상기 제1 실행 결과를 상기 제2 블록체인 노드에게 제공하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 시스템.
The method of claim 20,
The plurality of blockchain nodes,
A first blockchain node that executes the smart contract for the 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,
Providing the first execution result to the second blockchain node,
Blockchain based transaction processing system.
제25 항에 있어서,
상기 복수의 블록체인 노드 중 제3 블록체인 노드는,
상기 제2 블록체인 노드로부터 상기 제1 실행 결과가 기록된 블록을 제공받고,
스마트 컨트랙트를 이용하여 상기 제1 실행 결과로 블록체인을 갱신하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 시스템.
The method of claim 25,
A third blockchain node of the plurality of blockchain nodes,
Receiving a block in which the first execution result is recorded from the second blockchain node,
The blockchain is updated with the first execution result using a smart contract.
Blockchain based transaction processing system.
제20 항에 있어서,
상기 배치 서버는,
기 설정된 조건이 만족됨에 응답하여, 상기 복수의 블록체인 트랜잭션에 대한 배치 트랜잭션을 생성하지 않고, 상기 복수의 블록체인 트랜잭션을 개별적으로 처리하도록 동작하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 시스템.
The method of claim 20,
The batch server,
In response to a predetermined condition being satisfied, operating the plurality of blockchain transactions separately without generating a batch transaction for the plurality of blockchain transactions.
Blockchain based transaction processing system.
클라이언트 단말에서 수행되는 블록체인 기반 트랜잭션 처리 방법에 있어서,
복수의 블록체인 트랜잭션(blockchain transaction)을 생성하는 단계;
상기 복수의 블록체인 트랜잭션 중 적어도 일부를 종합하여, 배치 트랜잭션(batch transaction)을 생성하는 단계; 및
블록체인 네트워크를 통해 상기 배치 트랜잭션을 처리하는 단계를 포함하는 것을 특징으로 하는,
블록체인 기반 트랜잭션 처리 방법.
In the blockchain-based transaction processing method performed in the client terminal,
Creating a plurality of blockchain transactions;
Generating a batch transaction by integrating at least some of the plurality of blockchain transactions; And
Characterized in that it comprises the step of processing the batch transaction via a blockchain network,
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 true KR20190128814A (en) 2019-11-19
KR102450411B1 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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984733A (en) * 2020-09-03 2020-11-24 深圳壹账通智能科技有限公司 Data transmission method and device based on block chain and storage medium
KR102209852B1 (en) * 2020-02-12 2021-01-29 현수영 Transaction transfer realy method between compatible blockchain networks
WO2021101312A1 (en) * 2019-11-20 2021-05-27 주식회사 피플카 Method for processing transactions of blockchain network
KR20220072277A (en) * 2020-11-25 2022-06-02 주식회사 디지캡 Multi-channel blockchain transaction batch processing device
KR20230075759A (en) * 2021-11-23 2023-05-31 주식회사 디지캡 Blockchain system for using a proxy server to transfer transactions between nodes
KR102544009B1 (en) * 2022-11-30 2023-06-15 주식회사 엔터프라이즈블록체인 Eletronic device for generating and managing data having integrity
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

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090021377A (en) * 2006-06-08 2009-03-03 콸콤 인코포레이티드 Device retry mechanisms for content distribution
KR20130131615A (en) * 2012-05-24 2013-12-04 주식회사 엑셈 Transaction pursuit system and control method thereof
US20150199482A1 (en) * 2014-01-14 2015-07-16 PokitDok, Inc. System and method for dynamic transactional data streaming
KR20170098900A (en) * 2014-12-24 2017-08-30 후아웨이 테크놀러지 컴퍼니 리미티드 Transaction processing method, apparatus and computer system
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
KR20180014534A (en) 2016-08-01 2018-02-09 서강대학교산학협력단 Verification system and method for transaction based block chain
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090021377A (en) * 2006-06-08 2009-03-03 콸콤 인코포레이티드 Device retry mechanisms for content distribution
KR20130131615A (en) * 2012-05-24 2013-12-04 주식회사 엑셈 Transaction pursuit system and control method thereof
US20150199482A1 (en) * 2014-01-14 2015-07-16 PokitDok, Inc. System and method for dynamic transactional data streaming
KR20170098900A (en) * 2014-12-24 2017-08-30 후아웨이 테크놀러지 컴퍼니 리미티드 Transaction processing method, apparatus and computer system
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
KR20180014534A (en) 2016-08-01 2018-02-09 서강대학교산학협력단 Verification system and method for transaction based block chain
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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021101312A1 (en) * 2019-11-20 2021-05-27 주식회사 피플카 Method for processing transactions 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
KR20220072277A (en) * 2020-11-25 2022-06-02 주식회사 디지캡 Multi-channel blockchain transaction batch processing device
KR20230075759A (en) * 2021-11-23 2023-05-31 주식회사 디지캡 Blockchain system for using a proxy server to transfer transactions between nodes
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

Also Published As

Publication number Publication date
KR102450411B1 (en) 2022-09-30

Similar Documents

Publication Publication Date Title
KR102450411B1 (en) Method and apparatus for prcocessing transaction based on bllockchain and system tehereof
US11544102B2 (en) Apparatus and method for batch processing for blockchain transactions
KR102519646B1 (en) Method for sharing information based on anchoring and anchoring apparatus supporting the same
US6633954B1 (en) Method for enhancing host application performance with a DASD using task priorities
KR102448787B1 (en) System for providing retrieval service based on blockchain and method of the same
US20160179565A1 (en) Device Remote Access Method, Thin Client, and Virtual Machine
EP3742675B1 (en) Accelerated processing apparatus for transaction considering transaction failure probability and method thereof
KR20200132518A (en) System for supporting transaction interoperation between blockchain networks and method thereof
US11507565B2 (en) Accelerated processing apparatus for transaction and method thereof
KR20200139034A (en) Blockchain based computing system and method for managing transaction thereof
JP6172649B2 (en) Information processing apparatus, program, and information processing method
US10063425B1 (en) Event-based in-band host registration
US11314813B2 (en) Apparatus for guaranteeing integrity of state database in blockchain-based environment and method thereof
CN113177179B (en) Data request connection management method, device, equipment and storage medium
CN106354435A (en) Method and device for initializing RAID
KR102424197B1 (en) Method for managing data based on blockchain, apparatus and system for the same
KR20190126992A (en) Method for generating non-deterministic data using a specific selection node in blockchain-based system
WO2019145799A1 (en) System and method for decentralized validation of data exchange in a computer network
CN112764897B (en) Task request processing method, device and system and computer readable storage medium
US11579781B2 (en) Pooling distributed storage nodes that have specialized hardware
CN111431951B (en) Data processing method, node equipment, system and storage medium
US11627085B2 (en) Non-transitory computer-readable recording medium, service management device, and service management method
US20180046380A1 (en) Storage System and Method for Scanning For Devices
KR20190113047A (en) Method for generating non-deterministic data in blockchain-based system
WO2023116438A1 (en) Data access method and apparatus, and device

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