KR102553877B1 - A method and system for efficiently processing the high transaction throughput required by DApps in the blockchain - Google Patents
A method and system for efficiently processing the high transaction throughput required by DApps in the blockchain Download PDFInfo
- Publication number
- KR102553877B1 KR102553877B1 KR1020217008151A KR20217008151A KR102553877B1 KR 102553877 B1 KR102553877 B1 KR 102553877B1 KR 1020217008151 A KR1020217008151 A KR 1020217008151A KR 20217008151 A KR20217008151 A KR 20217008151A KR 102553877 B1 KR102553877 B1 KR 102553877B1
- Authority
- KR
- South Korea
- Prior art keywords
- transaction
- blockchain
- server
- queue
- dapp
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000012545 processing Methods 0.000 title claims abstract description 19
- 238000003672 processing method Methods 0.000 claims abstract description 19
- 230000004044 response Effects 0.000 claims abstract description 13
- 238000004590 computer program Methods 0.000 claims description 10
- 238000004891 communication Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 4
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1042—Peer-to-peer [P2P] networks using topology management mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/06—Network architectures or network communication protocols for network security for supporting key management in a packet data network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Multimedia (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
디앱에서 요구하는 높은 트랜잭션 처리량을 효율적으로 블록체인에서 처리하기 위한 방법 및 시스템을 제공한다. 본 발명의 실시예들에 따른 트랜잭션 처리 방법은, 디앱(Decentralized Application)에서 요청한 트랜잭션을 수신하는 단계, 상기 트랜잭션을 위한 트랜잭션 식별자를 생성하는 단계, 상기 생성된 트랜잭션 식별자를 포함하는 응답을 상기 디앱으로 전송하는 단계 및 상기 생성된 트랜잭션 식별자가 부여된 트랜잭션이 큐(queue) 서버가 포함하는 큐에 저장된 후, 컨슈머(consumer) 서버에 의해 순차적으로 블록체인에 기록되도록, 상기 생성된 트랜잭션 식별자가 부여된 트랜잭션을 상기 큐 서버로 전송하는 단계를 포함할 수 있다.It provides a method and system for efficiently processing the high transaction throughput required by DApps in the blockchain. A transaction processing method according to embodiments of the present invention includes receiving a transaction requested by a decentralized application, generating a transaction identifier for the transaction, and sending a response including the generated transaction identifier to the dapp. Transmitting and after the transaction to which the generated transaction identifier is assigned is stored in a queue including a queue server, the generated transaction identifier is assigned so that it is sequentially recorded in the blockchain by a consumer server and sending the transaction to the queue server.
Description
아래의 설명은 디앱(Decentralized Application, DApp)에서 요구하는 높은 트랜잭션 처리량을 효율적으로 블록체인에서 처리하기 위한 트랜잭션 처리 방법 및 시스템에 관한 것이다.The following description relates to a transaction processing method and system for efficiently processing high transaction throughput required by DApp (Decentralized Application, DApp) in a blockchain.
블록체인(block-chain)은 전자 대장(electronic ledger)으로서, 트랜잭션들을 위한 블록들로 구성된 컴퓨터 기반의 분산형, P2P(peer-to-peer)의 시스템으로 구현된다. 각 트랜잭션(Transaction, Tx)은 블록체인 시스템 내의 참가자들 간에 디지털 자산의 제어 전송을 인코딩하는 데이터 구조이며, 적어도 하나의 입력과 적어도 하나의 출력을 포함한다. 각 블록은 이전 블록의 해시를 포함하여 해당 블록이 함께 연결되어 처음부터 블록체인에 기록된 모든 트랜잭션의 영구적인, 바꿀 수 없는(unalterable) 기록을 생성한다. 예를 들어, 한국공개특허 제10-2018-0113143호는 블록체인 기반의 사용자 정의 화폐 거래 시스템 및 그 동작 방법을 개시하고 있다.A block-chain is an electronic ledger, implemented as a computer-based distributed, peer-to-peer (P2P) system composed of blocks for transactions. Each Transaction (Tx) is a data structure that encodes the transfer of control of a digital asset between participants in a blockchain system, and includes at least one input and at least one output. Each block contains a hash of the previous block, so that those blocks are chained together to create a permanent, unalterable record of all transactions recorded on the blockchain from the beginning. For example, Korea Patent Publication No. 10-2018-0113143 discloses a blockchain-based user-defined currency trading system and its operation method.
한편, 디앱(Decentralized Application, DApp)은 백엔드 코드가 탈중앙화된 피어-투-피어 네트워크 상에서 돌아가고 (혹은 데이터 호출 및 등록을 블록체인 데이터베이스에 하고) 이를 프론트엔드에서 인터페이스로 제공해주는 어플리케이션을 말한다. 이때, 블록체인에서 트랜잭션의 쓰기(write)는 블록체인 네트워크상의 노드들간의 합의를 통해 블록을 생성하여 체인에 연결하는 과정이 요구되기 때문에 너무 느리며, 블록체인 자체가 스케일 아웃(scale out)이 되지 않는다. 예를 들어, 블록체인 네트워크에서 블록을 생성하기 위한 노드를 추가하더라도 블록 생성을 위한 합의의 비용이 증가할 뿐, 트랜잭션에 대한 블록 생성 속도가 증가하지는 않는다. 따라서, 블록체인에서 디앱이 요구하는 높은 트랜잭션 처리량을 감당하기 어렵다는 문제점이 있다.On the other hand, a decentralized application (DApp) refers to an application in which the backend code runs on a decentralized peer-to-peer network (or calls and registers data to a blockchain database) and provides it as an interface on the frontend. At this time, the writing of transactions in the blockchain is too slow because it requires the process of generating blocks through agreement between nodes on the blockchain network and connecting them to the chain, and the blockchain itself does not scale out. don't For example, adding a node to generate a block in a blockchain network only increases the cost of consensus for generating a block, but does not increase the speed of generating a block for a transaction. Therefore, there is a problem that it is difficult to handle the high transaction throughput required by DApps in blockchain.
디앱(Decentralized Application, DApp)에서 요구하는 높은 트랜잭션 처리량을 효율적으로 블록체인에서 처리하기 위한 트랜잭션 처리 방법 및 시스템을 제공한다.It provides a transaction processing method and system to efficiently process the high transaction throughput required by DApp (Decentralized Application, DApp) in the blockchain.
디앱에서 요청한 트랜잭션에 수신 서버에서 고유한 트랜잭션 식별자를 부여하여 큐(queue) 서버로 전송하여 큐잉하고, 별도의 컨슈머 서버에서 큐잉된 트랜잭션을 순차적으로 블록체인에 기록함으로써, 스케일 아웃(scale out)이 불가능한 블록체인에 대해서도 디앱이 요구하는 높은 트랜잭션 처리량을 감당할 수 있는 트랜잭션 처리 방법 및 시스템을 제공한다.The receiving server assigns a unique transaction identifier to the transaction requested by the DApp, transmits it to the queue server for queuing, and sequentially records the queued transaction in a separate consumer server on the blockchain, so that scale out is possible. It provides a transaction processing method and system that can handle the high transaction throughput required by DApp even for an impossible blockchain.
트랜잭션 식별자를 디앱으로 리턴함으로써, 디앱에서 해당 트랜잭션에 대해 블록체인에서 블록에 최종 커밋(commit)이 이루어졌는지 여부를 조회할 수 있는 트랜잭션 처리 방법 및 시스템을 제공한다.By returning the transaction identifier to the DApp, we provide a transaction processing method and system that allows the DApp to inquire whether or not a final commit has been made to a block in the blockchain for that transaction.
디앱(Decentralized Application)에서 요청한 트랜잭션을 수신하는 단계; 상기 트랜잭션을 위한 트랜잭션 식별자를 생성하는 단계; 상기 생성된 트랜잭션 식별자를 포함하는 응답을 상기 디앱으로 전송하는 단계; 및 상기 생성된 트랜잭션 식별자가 부여된 트랜잭션이 큐(queue) 서버가 포함하는 큐에 저장된 후, 컨슈머(consumer) 서버에 의해 순차적으로 블록체인에 기록되도록, 상기 생성된 트랜잭션 식별자가 부여된 트랜잭션을 상기 큐 서버로 전송하는 단계를 포함하는 트랜잭션 처리 방법을 제공한다.Receiving a transaction requested by a decentralized application (DApp); generating a transaction identifier for the transaction; Transmitting a response including the generated transaction identifier to the DApp; and the transaction to which the generated transaction identifier is assigned so that the transaction to which the generated transaction identifier is assigned is stored in a queue including a queue server and then sequentially recorded in the blockchain by a consumer server. It provides a transaction processing method including transmitting to a queue server.
컴퓨터 장치와 결합되어 트랜잭션 처리 방법을 컴퓨터 장치에 실행시키기 위해 컴퓨터 판독 가능한 기록매체에 저장된 컴퓨터 프로그램을 제공한다.Provides a computer program stored in a computer readable recording medium in order to be combined with a computer device to execute a transaction processing method on the computer device.
트랜잭션 처리 방법을 컴퓨터 장치에 실행시키기 위한 컴퓨터 프로그램이 기록되어 있는 것을 특징으로 하는 컴퓨터 판독 가능한 기록매체를 제공한다.It provides a computer readable recording medium characterized in that a computer program for executing a transaction processing method in a computer device is recorded.
컴퓨터 장치에 있어서, 컴퓨터에서 판독 가능한 명령을 실행하도록 구현되는 적어도 하나의 프로세서를 포함하고, 상기 적어도 하나의 프로세서에 의해, 디앱(Decentralized Application)에서 요청한 트랜잭션을 수신하고, 상기 트랜잭션을 위한 트랜잭션 식별자를 생성하고, 상기 생성된 트랜잭션 식별자를 포함하는 응답을 상기 디앱으로 전송하고, 상기 생성된 트랜잭션 식별자가 부여된 트랜잭션이 큐(queue) 서버가 포함하는 큐에 저장된 후, 컨슈머(consumer) 서버에 의해 순차적으로 블록체인에 기록되도록, 상기 생성된 트랜잭션 식별자가 부여된 트랜잭션을 상기 큐 서버로 전송하는 것을 특징으로 하는 컴퓨터 장치를 제공한다.A computer device comprising at least one processor implemented to execute computer-readable instructions, receiving a transaction requested by a decentralized application (DApp) by the at least one processor, and generating a transaction identifier for the transaction. After generating, sending a response including the generated transaction identifier to the DApp, and storing the transaction assigned with the generated transaction identifier in a queue including a queue server, sequentially by a consumer server It provides a computer device characterized in that for transmitting the transaction to which the generated transaction identifier is assigned to the queue server so that it is recorded in the block chain.
디앱(Decentralized Application)에서 요청한 트랜잭션을 수신하여 상기 트랜잭션을 위한 트랜잭션 식별자를 생성하고, 상기 생성된 트랜잭션 식별자를 포함하는 응답을 상기 디앱으로 전송하고, 상기 생성된 트랜잭션 식별자가 부여된 트랜잭션을 전송하는 수신 서버; 상기 생성된 트랜잭션 식별자가 부여된 트랜잭션을 수신하여 큐에 저장하는 큐(queue) 서버로; 및 상기 큐 서버의 큐에 저장된 트랜잭션을 순차적으로 블록체인에 기록하는 컨슈머(consumer) 서버를 포함하는 트랜잭션 처리 시스템을 제공한다.Receives a transaction requested by a decentralized application (DApp), generates a transaction identifier for the transaction, transmits a response including the generated transaction identifier to the DApp, and transmits a transaction to which the generated transaction identifier is assigned. server; a queue server for receiving and storing the transaction to which the generated transaction identifier is assigned; and a consumer server sequentially recording transactions stored in the queue of the queue server in a blockchain.
디앱(Decentralized Application, DApp)에서 요구하는 높은 트랜잭션 처리량을 효율적으로 블록체인에서 처리할 수 있다.The high transaction throughput required by decentralized applications (DApps) can be efficiently processed on the blockchain.
디앱에서 요청한 트랜잭션에 수신 서버에서 고유한 트랜잭션 식별자를 부여하여 큐(queue) 서버로 전송하여 큐잉하고, 별도의 컨슈머(consumer) 서버에서 큐잉된 트랜잭션을 순차적으로 블록체인에 기록함으로써, 스케일 아웃(scale out)이 불가능한 블록체인에 대해서도 디앱이 요구하는 높은 트랜잭션 처리량을 감당할 수 있다.The receiving server assigns a unique transaction identifier to the transaction requested by the DApp, transmits it to the queue server for queuing, and sequentially records the queued transaction in a separate consumer server on the blockchain, thereby enabling scale-out. out) can handle the high transaction throughput required by DApps.
트랜잭션 식별자를 디앱으로 리턴함으로써, 디앱에서 해당 트랜잭션에 대해 블록체인에서 블록에 최종 커밋(commit)이 이루어졌는지 여부를 조회할 수 있다.By returning the transaction identifier to the dapp, the dapp can inquire whether a final commit has been made to the block in the blockchain for that transaction.
도 1은 본 발명의 일실시예에 따른 네트워크 환경의 예를 도시한 도면이다.
도 2는 본 발명의 일실시예에 따른 컴퓨터 장치의 예를 도시한 블록도이다.
도 3은 본 발명의 일실시예에 따른 트랜잭션 처리 시스템의 개략적인 예를 도시한 도면이다.
도 4는 본 발명의 일실시예에 있어서, 트랜잭션 처리 방법의 예를 도시한 흐름도이다.1 is a diagram illustrating an example of a network environment according to an embodiment of the present invention.
2 is a block diagram illustrating an example of a computer device according to one embodiment of the present invention.
3 is a diagram showing a schematic example of a transaction processing system according to an embodiment of the present invention.
4 is a flowchart illustrating an example of a transaction processing method according to an embodiment of the present invention.
발명의 실시를 위한 최선의 형태BEST MODE FOR CARRYING OUT THE INVENTION
이하, 실시예를 첨부한 도면을 참조하여 상세히 설명한다.Hereinafter, an embodiment will be described in detail with reference to the accompanying drawings.
본 발명의 실시예들에 따른 트랜잭션 처리 시스템은 이후 설명될 적어도 하나의 컴퓨터 장치에 의해 구현될 수 있다. 컴퓨터 장치에는 본 발명의 일실시예에 따른 컴퓨터 프로그램이 설치 및 구동될 수 있고, 컴퓨터 장치는 구동된 컴퓨터 프로그램의 제어에 따라 본 발명의 일실시예에 따른 트랜잭션 처리 방법을 수행할 수 있다. 상술한 컴퓨터 프로그램은 컴퓨터 장치와 결합되어 트랜잭션 처리 방법을 컴퓨터 장치에 실행시키기 위해 컴퓨터 판독 가능한 기록매체에 저장될 수 있다.A transaction processing system according to embodiments of the present invention may be implemented by at least one computer device to be described later. A computer program according to an embodiment of the present invention may be installed and driven in a computer device, and the computer device may perform a transaction processing method according to an embodiment of the present invention under the control of the driven computer program. The above-described computer program may be combined with a computer device and stored in a computer readable recording medium to execute a transaction processing method in the computer device.
도 1은 본 발명의 일실시예에 따른 네트워크 환경의 예를 도시한 도면이다. 도 1의 네트워크 환경은 복수의 전자 기기들(110, 120, 130, 140), 복수의 서버들(150, 160) 및 네트워크(170)를 포함하는 예를 나타내고 있다. 이러한 도 1은 발명의 설명을 위한 일례로 전자 기기의 수나 서버의 수가 도 1과 같이 한정되는 것은 아니다. 또한, 도 1의 네트워크 환경은 본 실시예들에 적용 가능한 환경들 중 하나의 예를 설명하는 것일 뿐, 본 실시예들에 적용 가능한 환경이 도 1의 네트워크 환경으로 한정되는 것은 아니다.1 is a diagram illustrating an example of a network environment according to an embodiment of the present invention. The network environment of FIG. 1 shows an example including a plurality of
복수의 전자 기기들(110, 120, 130, 140)은 컴퓨터 장치로 구현되는 고정형 단말이거나 이동형 단말일 수 있다. 복수의 전자 기기들(110, 120, 130, 140)의 예를 들면, 스마트폰(smart phone), 휴대폰, 네비게이션, 컴퓨터, 노트북, 디지털방송용 단말, PDA(Personal Digital Assistants), PMP(Portable Multimedia Player), 태블릿 PC 등이 있다. 일례로 도 1에서는 전자 기기 1(110)의 예로 스마트폰의 형상을 나타내고 있으나, 본 발명의 실시예들에서 전자 기기 1(110)은 실질적으로 무선 또는 유선 통신 방식을 이용하여 네트워크(170)를 통해 다른 전자 기기들(120, 130, 140) 및/또는 서버(150, 160)와 통신할 수 있는 다양한 물리적인 컴퓨터 장치들 중 하나를 의미할 수 있다.The plurality of
통신 방식은 제한되지 않으며, 네트워크(170)가 포함할 수 있는 통신망(일례로, 이동통신망, 유선 인터넷, 무선 인터넷, 방송망)을 활용하는 통신 방식뿐만 아니라 기기들간의 근거리 무선 통신 역시 포함될 수 있다. 예를 들어, 네트워크(170)는, PAN(personal area network), LAN(local area network), CAN(campus area network), MAN(metropolitan area network), WAN(wide area network), BBN(broadband network), 인터넷 등의 네트워크 중 하나 이상의 임의의 네트워크를 포함할 수 있다. 또한, 네트워크(170)는 버스 네트워크, 스타 네트워크, 링 네트워크, 메쉬 네트워크, 스타-버스 네트워크, 트리 또는 계층적(hierarchical) 네트워크 등을 포함하는 네트워크 토폴로지 중 임의의 하나 이상을 포함할 수 있으나, 이에 제한되지 않는다.The communication method is not limited, and short-distance wireless communication between devices as well as a communication method utilizing a communication network (eg, a mobile communication network, a wired Internet, a wireless Internet, and a broadcasting network) that the
서버(150, 160) 각각은 복수의 전자 기기들(110, 120, 130, 140)과 네트워크(170)를 통해 통신하여 명령, 코드, 파일, 컨텐츠, 서비스 등을 제공하는 컴퓨터 장치 또는 복수의 컴퓨터 장치들로 구현될 수 있다. 예를 들어, 서버(150)는 네트워크(170)를 통해 접속한 복수의 전자 기기들(110, 120, 130, 140)로 서비스(일례로, 영상통화 서비스, 금융 서비스, 결제 서비스, 소셜 네트워크 서비스, 메시징 서비스, 검색 서비스, 메일 서비스, 컨텐츠 제공 서비스, 질문 및 답변 서비스 등)를 제공하는 시스템일 수 있다.Each of the
도 2는 본 발명의 일실시예에 따른 컴퓨터 장치의 예를 도시한 블록도이다. 앞서 설명한 복수의 전자 기기들(110, 120, 130, 140) 각각이나 서버들(150, 160) 각각은 도 2를 통해 도시된 컴퓨터 장치(200)에 의해 구현될 수 있으며, 본 발명의 실시예들에 따른 방법은 이러한 컴퓨터 장치(200)에 의해 수행될 수 있다.2 is a block diagram illustrating an example of a computer device according to one embodiment of the present invention. Each of the plurality of
이때, 도 2에 도시된 바와 같이 컴퓨터 장치(200)는, 메모리(210), 프로세서(220), 통신 인터페이스(230) 그리고 입출력 인터페이스(240)를 포함할 수 있다. 메모리(210)는 컴퓨터에서 판독 가능한 기록매체로서, RAM(random access memory), ROM(read only memory) 및 디스크 드라이브와 같은 비소멸성 대용량 기록장치(permanent mass storage device)를 포함할 수 있다. 여기서 ROM과 디스크 드라이브와 같은 비소멸성 대용량 기록장치는 메모리(210)와는 구분되는 별도의 영구 저장 장치로서 컴퓨터 장치(200)에 포함될 수도 있다. 또한, 메모리(210)에는 운영체제와 적어도 하나의 프로그램 코드가 저장될 수 있다. 이러한 소프트웨어 구성요소들은 메모리(210)와는 별도의 컴퓨터에서 판독 가능한 기록매체로부터 메모리(210)로 로딩될 수 있다. 이러한 별도의 컴퓨터에서 판독 가능한 기록매체는 플로피 드라이브, 디스크, 테이프, DVD/CD-ROM 드라이브, 메모리 카드 등의 컴퓨터에서 판독 가능한 기록매체를 포함할 수 있다. 다른 실시예에서 소프트웨어 구성요소들은 컴퓨터에서 판독 가능한 기록매체가 아닌 통신 인터페이스(230)를 통해 메모리(210)에 로딩될 수도 있다. 예를 들어, 소프트웨어 구성요소들은 네트워크(170)를 통해 수신되는 파일들에 의해 설치되는 컴퓨터 프로그램에 기반하여 컴퓨터 장치(200)의 메모리(210)에 로딩될 수 있다.At this time, as shown in FIG. 2 , the
프로세서(220)는 기본적인 산술, 로직 및 입출력 연산을 수행함으로써, 컴퓨터 프로그램의 명령을 처리하도록 구성될 수 있다. 명령은 메모리(210) 또는 통신 인터페이스(230)에 의해 프로세서(220)로 제공될 수 있다. 예를 들어 프로세서(220)는 메모리(210)와 같은 기록 장치에 저장된 프로그램 코드에 따라 수신되는 명령을 실행하도록 구성될 수 있다.The
통신 인터페이스(230)은 네트워크(170)를 통해 컴퓨터 장치(200)가 다른 장치(일례로, 앞서 설명한 저장 장치들)와 서로 통신하기 위한 기능을 제공할 수 있다. 일례로, 컴퓨터 장치(200)의 프로세서(220)가 메모리(210)와 같은 기록 장치에 저장된 프로그램 코드에 따라 생성한 요청이나 명령, 데이터, 파일 등이 통신 인터페이스(230)의 제어에 따라 네트워크(170)를 통해 다른 장치들로 전달될 수 있다. 역으로, 다른 장치로부터의 신호나 명령, 데이터, 파일 등이 네트워크(170)를 거쳐 컴퓨터 장치(200)의 통신 인터페이스(230)를 통해 컴퓨터 장치(200)로 수신될 수 있다. 통신 인터페이스(230)를 통해 수신된 신호나 명령, 데이터 등은 프로세서(220)나 메모리(210)로 전달될 수 있고, 파일 등은 컴퓨터 장치(200)가 더 포함할 수 있는 저장 매체(상술한 영구 저장 장치)로 저장될 수 있다.The
입출력 인터페이스(240)는 입출력 장치(250)와의 인터페이스를 위한 수단일 수 있다. 예를 들어, 입력 장치는 마이크, 키보드, 카메라 또는 마우스 등의 장치를, 그리고 출력 장치는 디스플레이, 스피커와 같은 장치를 포함할 수 있다. 다른 예로 입출력 인터페이스(240)는 터치스크린과 같이 입력과 출력을 위한 기능이 하나로 통합된 장치와의 인터페이스를 위한 수단일 수도 있다. 입출력 장치(250)는 컴퓨터 장치(200)와 하나의 장치로 구성될 수도 있다.The input/
또한, 다른 실시예들에서 컴퓨터 장치(200)는 도 2의 구성요소들보다 더 적은 혹은 더 많은 구성요소들을 포함할 수도 있다. 그러나, 대부분의 종래기술적 구성요소들을 명확하게 도시할 필요성은 없다. 예를 들어, 컴퓨터 장치(200)는 상술한 입출력 장치(250) 중 적어도 일부를 포함하도록 구현되거나 또는 트랜시버(transceiver), 데이터베이스 등과 같은 다른 구성요소들을 더 포함할 수도 있다.Also, in other embodiments,
도 3은 본 발명의 일실시예에 따른 트랜잭션 처리 시스템의 개략적인 예를 도시한 도면이다. 도 3은 디앱(Decentralized Application, DApp)(310), 수신 서버(320), 노드(330), 큐(queue) 서버(340) 및 컨슈머(consumer) 서버(350)를 나타내고 있다. 이때, 수신 서버(320), 노드(330) 큐 서버(340) 및 컨슈머 서버(350)는 각각 앞서 설명한 컴퓨터 장치(200)에 의해 구현될 수 있다. 실시예에 따라 수신 서버(320), 노드(330) 큐 서버(340) 및 컨슈머 서버(350) 중 적어도 둘 이상이 하나의 컴퓨터 장치(200)에 포함되도록 구현될 수도 있다.3 is a diagram showing a schematic example of a transaction processing system according to an embodiment of the present invention. 3 shows a decentralized application (DApp) 310, a
디앱(310)은 탈중앙화된 어플리케이션으로 일례로, 블록체인을 기반으로 플랫폼에서 스마트 컨트랙트(smart contract)로 작동하는 어플리케이션 서비스일 수 있다. 이러한 디앱(310)은 블록체인상에 데이터를 등록(또는 기록)하고 호출할 수 있다. 예를 들어, 디앱(310)은 트랜잭션(transaction, Tx)을 수신 서버(320)로 전달하여 블록체인상에 트랜잭션 데이터를 등록하고자 할 수 있다.The
수신 서버(320)는 디앱(310)으로부터 트랜잭션을 수신하여 블록체인에 등록을 시도할 수 있다. 이때, 디앱(310)은 처리해야 할 데이터(트랜잭션들)을 일정 기간 또는 일정량 정리하여 한꺼번에 처리할 수 있다. 다시 말해, 수신 서버(320)는 디앱(310)으로부터 일정 기간 동안의 또는 일정량의 트랜잭션들을 한꺼번에 수신하여 처리해야 하는 상황이 발생할 수 있다. 그러나, 블록체인의 일정 기간(일례로, 분 또는 초) 당 처리량은 한정되어 있으며, 이러한 처리량을 늘리기 위한 스케일 아웃(scale out)이 불가능한 특징을 갖고 있기 때문에, 수신 서버(320)에서 블록체인의 처리량을 넘어서는 트랜잭션들을 한꺼번에 등록하고자 하는 경우, 블록체인의 처리량을 넘어서는 순간부터 모든 트랜잭션의 등록이 실패하게 되는 문제점이 있다.The
이러한 문제점을 해결하기 위해, 수신 서버(320)는 트랜잭션들을 직접 블록체인의 노드(350)로 전송하는 대신, 큐 서버(340)로 전송할 수 있다. 이를 위해, 수신 서버(320)는 디앱(310)에 의해 요청된 트랜잭션 각각을 위한 트랜잭션 식별자(TxID)를 생성할 수 있다. 예를 들어, 수신 서버(310)는 트랜잭션에 대한 해시값을 해당 트랜잭션을 위한 트랜잭션 식별자로서 생성할 수 있다. 이때, 수신 서버(320)는 트랜잭션 식별자를 포함하는 응답을 디앱(310)으로 전송하여 디앱(310)의 요청에 응답할 수 있으며, 트랜잭션 식별자가 부여된 트랜잭션을 큐 서버(340)로 전송할 수 있다.To solve this problem, the receiving
이때, 수신 서버(320)는 트랜잭션 식별자를 해당 트랜잭션의 사용자의 개인 키(private key)로 서명하여 개인 키로 서명된 트랜잭션 식별자(sign(TxID))를 생성할 수 있으며, 이러한 서명된 트랜잭션 식별자가 부여된 트랜잭션을 큐 서버(340)로 전송할 수도 있다. 예를 들어, 수신 서버(320)는 적어도 하나의 사용자를 위한 전자 지갑을 포함할 수 있다. 이러한 전자 지갑은 사용자의 디앱(310)에서의 사용자 식별자, 사용자의 개인 키 및 블록체인을 위한 퍼블릭 주소 등의 정보를 포함할 수 있다. 이때, 수신 서버(320)는 특정 사용자의 트랜잭션 식별자를 해당 사용자의 개인 키를 이용하여 서명할 수 있다.At this time, the
큐 서버(340)는 수신 서버(320)에서 전송되는 트랜잭션을 큐(341)에 저장할 수 있다. 이때, 컨슈머 서버(350)는 큐 서버(340)의 큐(341)에 저장된 트랜잭션들(각각 고유한 트랜잭션 식별자(또는 서명된 트랜잭션 식별자)가 부여된 트랜잭션들)을 순차적으로 블록체인에 기록하기 위해, 트랜잭션들을 블록체인의 노드(350)로 전송할 수 있다. 이처럼, 디앱(310)이 한꺼번에 전달하는 일정 기간 동안의 또는 일정량의 트랜잭션들이 큐 서버(340)의 큐(341)에 저장되고, 컨슈머 서버(350)를 통해 순차적으로 블록체인에 등록되기 때문에, 본 실시예에 따른 트랜잭션 처리 시스템은 디앱(310)에서 요구하는 높은 트랜잭션 처리량을 효율적으로 블록체인에서 처리할 수 있도록 도울 수 있게 된다.The
노드(350)는 블록체인 네트워크에 참여한 노드들 중 하나일 수 있다. 이때, 노드(350)는 트랜잭션을 수신하는 경우, 노드들간의 합의를 통해 수신된 트랜잭션에 대한 블록을 생성하여 블록체인에 추가하도록 구현될 수 있다. 예를 들어, 블록체인 네트워크에서 합의를 위한 노드들 중 전부(또는 기설정된 비율 이상의 노드들)이 합의한 경우, 노드(350)는 트랜잭션을 위한 블록을 생성하고, 합의를 위한 노드들에게도 블록을 생성할 것을 지시할 수 있다. 이 경우, 각각의 노드들에서 블록이 생성되어 해당 노드들이 저장하고 있는 블록체인에 추가될 수 있다. 합의를 위한 노드들은 블록체인 네트워크의 모든 노드들일 수도 있으나, 실시예에 따라 블록체인 네트워크의 모든 노드들 중에서 선정된 일부의 노드들일 수도 있다.
도 4는 본 발명의 일실시예에 있어서, 트랜잭션 처리 방법의 예를 도시한 흐름도이다. 본 실시예에 따른 트랜잭션 처리 방법은 앞서 설명한 컴퓨터 장치(200)에 의해 수행될 수 있다. 예를 들어, 컴퓨터 장치(200)의 프로세서(220)는 메모리(210)가 포함하는 운영체제의 코드나 적어도 하나의 프로그램의 코드에 따른 제어 명령(instruction)을 실행하도록 구현될 수 있다. 여기서, 프로세서(220)는 컴퓨터 장치(200)에 저장된 코드가 제공하는 제어 명령에 따라 컴퓨터 장치(200)가 도 4의 방법이 포함하는 단계들(410 내지 440)을 수행하도록 컴퓨터 장치(200)를 제어할 수 있다.4 is a flowchart illustrating an example of a transaction processing method according to an embodiment of the present invention. The transaction processing method according to the present embodiment may be performed by the
단계(410)에서 컴퓨터 장치(200)는 디앱에서 요청한 트랜잭션을 수신할 수 있다. 이미 설명한 바와 같이, 디앱은 처리해야 할 데이터(트랜잭션들)을 일정 기간 또는 일정량 정리하여 한꺼번에 전송할 수 있으며, 컴퓨터 장치(200)는 디앱으로부터 일정 기간 동안의 또는 일정량의 트랜잭션들을 한꺼번에 수신할 수 있다. 이때, 블록체인의 일정 기간 동안의 처리량은 한정되어 있으며 스케일 아웃이 불가능하기 때문에, 컴퓨터 장치(200)는 블록체인이 디앱이 요구하는 높은 트랜잭션 처리량을 효율적으로 블록체인에서 처리할 수 있도록 이후의 단계들(420 내지 440)을 수행할 수 있다.In
단계(420)에서 컴퓨터 장치(200)는 트랜잭션을 위한 트랜잭션 식별자를 생성할 수 있다. 이때, 컴퓨터 장치(200)는 트랜잭션에 대한 해시값을 트랜잭션 식별자로서 생성할 수 있다. 예를 들어, 트랜잭션의 내용은 기설정된 해시함수의 입력 파라미터가 될 수 있으며, 해시함수의 출력값인 해시값이 트랜잭션 식별자로서 이용될 수 있다.At
단계(430)에서 컴퓨터 장치(200)는 생성된 트랜잭션 식별자를 포함하는 응답을 디앱으로 전송할 수 있다. 이때, 디앱으로 전송된 응답이 포함하는 트랜잭션 식별자는 이후 블록체인에서 디앱이 요청한 트랜잭션에 대해 블록에 최종 커밋(commit)이 이루어졌는지 여부를 조회하는데 활용될 수 있다.In
단계(440)에서 컴퓨터 장치(200)는 생성된 트랜잭션 식별자가 부여된 트랜잭션이 큐 서버가 포함하는 큐에 저장된 후, 컨슈머 서버에 의해 순차적으로 블록체인에 기록되도록, 생성된 트랜잭션 식별자가 부여된 트랜잭션을 큐 서버로 전송할 수 있다. 실시예에 따라, 컴퓨터 장치(200)는 사용자의 사용자 식별자 및 사용자의 개인 키를 미리 저장하고 있을 수 있으며, 생성된 트랜잭션 식별자를 사용자의 개인 키로 서명하여 서명된 트랜잭션 식별자를 생성할 수 있다. 이 경우, 컴퓨터 장치(200)는 단계(440)에서 사용자의 개인 키로 서명된 트랜잭션 식별자를 트랜잭션과 함께 큐 서버로 전송할 수 있다.In
이때, 큐 서버는 수신되는 트랜잭션을 순차적으로 큐에 저장하도록 구현될 수 있으며, 컨슈머 서버는 큐에 저장된 트랜잭션이 순차적으로 블록체인에 기록되도록 트랜잭션을 블록체인 네트워크의 제1 노드들 중 하나로 전송하도록 구현될 수 있다. 이때, 블록체인 네트워크의 제1 노드들 각각은 제1 노드들간의 합의를 통해 컨슈머 서버로부터 수신되는 트랜잭션에 대한 블록을 생성하여 블록체인에 추가하도록 구현될 수 있다. 이처럼, 디앱이 요구하는 높은 트랜잭션 처리량을 한꺼번에 블록체인에게 직접 요청하는 것이 아니라, 트랜잭션을 큐 서버가 포함하는 큐에 저장한 후, 컨슈머 서버를 통해 순차적으로 처리함에 따라 블록체인이 효율적으로 트랜잭션을 처리할 수 있도록 도울 수 있다.At this time, the queue server may be implemented to sequentially store the received transactions in the queue, and the consumer server may be implemented to transmit the transactions to one of the first nodes of the blockchain network so that the transactions stored in the queue are sequentially recorded in the blockchain. It can be. In this case, each of the first nodes of the blockchain network may generate a block for a transaction received from the consumer server through an agreement between the first nodes and add it to the blockchain. In this way, instead of directly requesting the high transaction throughput required by DApps to the blockchain all at once, the blockchain efficiently processes transactions as the transactions are stored in a queue containing a queue server and then processed sequentially through the consumer server. can help you do it.
이상에서와 같이, 본 발명의 실시예들에 따르면, 디앱(Decentralized Application, DApp)에서 요구하는 높은 트랜잭션 처리량을 효율적으로 블록체인에서 처리할 수 있다. 디앱에서 요청한 트랜잭션에 수신 서버에서 고유한 트랜잭션 식별자를 부여하여 큐(queue) 서버로 전송하여 큐잉하고, 별도의 컨슈머(consumer) 서버에서 큐잉된 트랜잭션을 순차적으로 블록체인에 기록함으로써, 스케일 아웃(scale out)이 불가능한 블록체인에 대해서도 디앱이 요구하는 높은 트랜잭션 처리량을 감당할 수 있다. 트랜잭션 식별자를 디앱으로 리턴함으로써, 디앱에서 해당 트랜잭션에 대해 블록체인에서 블록에 최종 커밋(commit)이 이루어졌는지 여부를 조회할 수 있다.As described above, according to the embodiments of the present invention, a high transaction throughput required by a decentralized application (DApp) can be efficiently processed in a blockchain. The receiving server assigns a unique transaction identifier to the transaction requested by the DApp, transmits it to the queue server for queuing, and sequentially records the queued transaction in a separate consumer server on the blockchain, thereby enabling scale-out. out) can handle the high transaction throughput required by DApps. By returning the transaction identifier to the dapp, the dapp can inquire whether a final commit has been made to the block in the blockchain for that transaction.
이상에서 설명된 시스템 또는 장치는 하드웨어 구성요소, 소프트웨어 구성요소 또는 하드웨어 구성요소 및 소프트웨어 구성요소의 조합으로 구현될 수 있다. 예를 들어, 실시예들에서 설명된 장치 및 구성요소는, 예를 들어, 프로세서, 콘트롤러, ALU(arithmetic logic unit), 디지털 신호 프로세서(digital signal processor), 마이크로컴퓨터, FPGA(field programmable gate array), PLU(programmable logic unit), 마이크로프로세서, 또는 명령(instruction)을 실행하고 응답할 수 있는 다른 어떠한 장치와 같이, 하나 이상의 범용 컴퓨터 또는 특수 목적 컴퓨터를 이용하여 구현될 수 있다. 처리 장치는 운영 체제(OS) 및 상기 운영 체제 상에서 수행되는 하나 이상의 소프트웨어 어플리케이션을 수행할 수 있다. 또한, 처리 장치는 소프트웨어의 실행에 응답하여, 데이터를 접근, 저장, 조작, 처리 및 생성할 수도 있다. 이해의 편의를 위하여, 처리 장치는 하나가 사용되는 것으로 설명된 경우도 있지만, 해당 기술분야에서 통상의 지식을 가진 자는, 처리 장치가 복수 개의 처리 요소(processing element) 및/또는 복수 유형의 처리 요소를 포함할 수 있음을 알 수 있다. 예를 들어, 처리 장치는 복수 개의 프로세서 또는 하나의 프로세서 및 하나의 콘트롤러를 포함할 수 있다. 또한, 병렬 프로세서(parallel processor)와 같은, 다른 처리 구성(processing configuration)도 가능하다.The system or device described above may be implemented as a hardware component, a software component, or a combination of hardware components and software components. For example, devices and components described in the embodiments may include, for example, a processor, a controller, an arithmetic logic unit (ALU), a digital signal processor, a microcomputer, a field programmable gate array (FPGA) , a programmable logic unit (PLU), microprocessor, or any other device capable of executing and responding to instructions. The processing device may run an operating system (OS) and one or more software applications running on the operating system. A processing device may also access, store, manipulate, process, and generate data in response to execution of software. For convenience of understanding, there are cases in which one processing device is used, but those skilled in the art will understand that the processing device includes a plurality of processing elements and/or a plurality of types of processing elements. It can be seen that it can include. For example, a processing device may include a plurality of processors or a processor and a controller. Other processing configurations are also possible, such as parallel processors.
소프트웨어는 컴퓨터 프로그램(computer program), 코드(code), 명령(instruction), 또는 이들 중 하나 이상의 조합을 포함할 수 있으며, 원하는 대로 동작하도록 처리 장치를 구성하거나 독립적으로 또는 결합적으로(collectively) 처리 장치를 명령할 수 있다. 소프트웨어 및/또는 데이터는, 처리 장치에 의하여 해석되거나 처리 장치에 명령 또는 데이터를 제공하기 위하여, 어떤 유형의 기계, 구성요소(component), 물리적 장치, 가상 장치(virtual equipment), 컴퓨터 저장 매체 또는 장치에 구체화(embody)될 수 있다. 소프트웨어는 네트워크로 연결된 컴퓨터 시스템 상에 분산되어서, 분산된 방법으로 저장되거나 실행될 수도 있다. 소프트웨어 및 데이터는 하나 이상의 컴퓨터 판독 가능 기록매체에 저장될 수 있다.Software may include a computer program, code, instructions, or a combination of one or more of the foregoing, which configures a processing device to operate as desired or processes independently or collectively. You can command the device. Software and/or data may be any tangible machine, component, physical device, virtual equipment, computer storage medium or device, intended to be interpreted by or provide instructions or data to a processing device. can be embodied in Software may be distributed on networked computer systems and stored or executed in a distributed manner. Software and data may be stored on one or more computer readable media.
실시예에 따른 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 실시예를 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 통상의 기술자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록매체(optical media), 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 이러한 기록매체는 단일 또는 수개 하드웨어가 결합된 형태의 다양한 기록수단 또는 저장수단일 수 있으며, 어떤 컴퓨터 시스템에 직접 접속되는 매체에 한정되지 않고, 네트워크 상에 분산 존재하는 것일 수도 있다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다.The method according to the embodiment may be implemented in the form of program instructions that can be executed through various computer means and recorded on a computer readable medium. The computer readable medium may include program instructions, data files, data structures, etc. alone or in combination. Program instructions recorded on the medium may be specially designed and configured for the embodiment or may be known and usable to those skilled in the art of computer software. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks and magnetic tapes, optical media such as CD-ROMs and DVDs, and magnetic media such as floptical disks. - includes hardware devices specially configured to store and execute program instructions, such as magneto-optical media, and ROM, RAM, flash memory, and the like. Such a recording medium may be a single or various recording means or storage means in the form of a combination of several hardware, and may be distributed on a network without being limited to a medium directly connected to a certain computer system. Examples of program instructions include high-level language codes that can be executed by a computer using an interpreter, as well as machine language codes such as those produced by a compiler.
발명의 실시를 위한 형태Mode for Carrying Out the Invention
이상과 같이 실시예들이 비록 한정된 실시예와 도면에 의해 설명되었으나, 해당 기술분야에서 통상의 지식을 가진 자라면 상기의 기재로부터 다양한 수정 및 변형이 가능하다. 예를 들어, 설명된 기술들이 설명된 방법과 다른 순서로 수행되거나, 및/또는 설명된 시스템, 구조, 장치, 회로 등의 구성요소들이 설명된 방법과 다른 형태로 결합 또는 조합되거나, 다른 구성요소 또는 균등물에 의하여 대치되거나 치환되더라도 적절한 결과가 달성될 수 있다.As described above, although the embodiments have been described with limited examples and drawings, those skilled in the art can make various modifications and variations from the above description. For example, the described techniques may be performed in an order different from the method described, and/or components of the described system, structure, device, circuit, etc. may be combined or combined in a different form than the method described, or other components may be used. Or even if it is replaced or substituted by equivalents, appropriate results can be achieved.
그러므로, 다른 구현들, 다른 실시예들 및 청구범위와 균등한 것들도 후술하는 청구범위의 범위에 속한다.Therefore, other implementations, other embodiments, and equivalents of the claims are within the scope of the following claims.
Claims (16)
상기 수신된 트랜잭션을 위한 트랜잭션 식별자를 생성하는 단계;
상기 생성된 트랜잭션 식별자를 포함하는 응답을 상기 디앱으로 전송하는 단계; 및
상기 디앱에 의해 처리가 요청된 트랜잭션이 큐(queue) 서버가 포함하는 큐에 저장된 후, 컨슈머(consumer) 서버에 의해 순차적으로 블록체인에 기록되도록, 상기 생성된 트랜잭션 식별자가 부여된 트랜잭션을 상기 큐 서버로 전송하는 단계
를 포함하는 트랜잭션 처리 방법.Receiving a transaction requested to be processed by a DApp (Decentralized Application) from the DApp;
generating a transaction identifier for the received transaction;
Transmitting a response including the generated transaction identifier to the DApp; and
After the transaction requested to be processed by the DApp is stored in the queue including the queue server, the transaction to which the generated transaction identifier is assigned is stored in the queue server so that it is sequentially recorded in the blockchain. Steps to send to server
Transaction processing method including.
상기 트랜잭션을 위한 트랜잭션 식별자를 생성하는 단계는,
상기 트랜잭션에 대한 해시값을 트랜잭션 식별자로서 생성하는 것을 특징으로 하는 트랜잭션 처리 방법.According to claim 1,
Generating a transaction identifier for the transaction,
Transaction processing method characterized in that for generating a hash value for the transaction as a transaction identifier.
사용자의 사용자 식별자 및 상기 사용자의 개인 키를 저장하는 단계; 및
상기 생성된 트랜잭션 식별자를 상기 사용자의 개인 키로 서명하는 단계
를 더 포함하고,
상기 생성된 트랜잭션 식별자가 부여된 트랜잭션을 상기 큐 서버로 전송하는 단계는,
상기 사용자의 개인 키로 서명된 트랜잭션 식별자를 상기 트랜잭션과 함께 상기 큐 서버로 전송하는 것
을 특징으로 하는 트랜잭션 처리 방법.According to claim 1,
storing a user identifier of a user and a private key of the user; and
signing the generated transaction identifier with the user's private key;
Including more,
The step of transmitting the transaction to which the generated transaction identifier is assigned to the queue server,
Sending a transaction identifier signed with the user's private key to the queue server along with the transaction.
Characterized by a transaction processing method.
상기 큐 서버는 수신되는 트랜잭션을 순차적으로 큐에 저장하도록 구현되고,
상기 컨슈머 서버는 큐에 저장된 트랜잭션이 순차적으로 블록체인에 기록되도록 트랜잭션을 블록체인 네트워크의 제1 노드들 중 하나로 전송하도록 구현되는 것
을 특징으로 하는 트랜잭션 처리 방법.According to claim 1,
The queue server is implemented to sequentially store received transactions in a queue,
The consumer server is implemented to transmit the transaction to one of the first nodes of the blockchain network so that the transaction stored in the queue is sequentially recorded in the blockchain.
Characterized by a transaction processing method.
상기 블록체인 네트워크의 제1 노드들 각각은 상기 제1 노드들간의 합의를 통해 상기 컨슈머 서버로부터 수신되는 트랜잭션에 대한 블록을 생성하여 블록체인에 추가하도록 구현되는 것
을 특징으로 하는 트랜잭션 처리 방법.According to claim 4,
Each of the first nodes of the blockchain network is implemented to generate a block for a transaction received from the consumer server through an agreement between the first nodes and add it to the blockchain
Characterized by a transaction processing method.
상기 디앱으로 전송된 응답이 포함하는 트랜잭션 식별자를 통해 상기 블록체인에서 상기 디앱이 요청한 트랜잭션에 대해 블록에 최종 커밋(commit)이 이루어졌는지 여부가 조회되는 것을 특징으로 하는 트랜잭션 처리 방법.According to claim 1,
Transaction processing method characterized in that whether a final commit has been made to a block for the transaction requested by the DApp in the blockchain is inquired through a transaction identifier included in the response transmitted to the DApp.
컴퓨터에서 판독 가능한 명령을 실행하도록 구현되는 적어도 하나의 프로세서
를 포함하고,
상기 적어도 하나의 프로세서에 의해,
디앱(Decentralized Application)에서 처리를 요청한 트랜잭션을 상기 디앱으로부터 수신하고,
상기 수신된 트랜잭션을 위한 트랜잭션 식별자를 생성하고,
상기 생성된 트랜잭션 식별자를 포함하는 응답을 상기 디앱으로 전송하고,
상기 디앱에 의해 처리가 요청된 트랜잭션이 큐(queue) 서버가 포함하는 큐에 저장된 후, 컨슈머(consumer) 서버에 의해 순차적으로 블록체인에 기록되도록, 상기 생성된 트랜잭션 식별자가 부여된 트랜잭션을 상기 큐 서버로 전송하는 것
을 특징으로 하는 컴퓨터 장치.In a computer device,
at least one processor implemented to execute computer readable instructions
including,
by the at least one processor,
Receive a transaction requested to be processed by a DApp (Decentralized Application) from the DApp;
generate a transaction identifier for the received transaction;
Sending a response including the generated transaction identifier to the DApp;
After the transaction requested to be processed by the DApp is stored in the queue including the queue server, the transaction to which the generated transaction identifier is assigned is stored in the queue server so that it is sequentially recorded in the blockchain. sending to server
Characterized by a computer device.
상기 적어도 하나의 프로세서에 의해,
상기 트랜잭션에 대한 해시값을 트랜잭션 식별자로서 생성하는 것
을 특징으로 하는 컴퓨터 장치.According to claim 9,
by the at least one processor,
Generating a hash value for the transaction as a transaction identifier
Characterized by a computer device.
상기 적어도 하나의 프로세서에 의해,
사용자의 사용자 식별자 및 상기 사용자의 개인 키를 저장하고,
상기 생성된 트랜잭션 식별자를 상기 사용자의 개인 키로 서명하고,
상기 사용자의 개인 키로 서명된 트랜잭션 식별자를 상기 트랜잭션과 함께 상기 큐 서버로 전송하는 것
을 특징으로 하는 컴퓨터 장치.According to claim 9,
by the at least one processor,
store a user identifier of a user and a private key of the user;
signing the generated transaction identifier with the user's private key;
Sending a transaction identifier signed with the user's private key to the queue server along with the transaction.
Characterized by a computer device.
상기 큐 서버는 수신되는 트랜잭션을 순차적으로 큐에 저장하도록 구현되고,
상기 컨슈머 서버는 큐에 저장된 트랜잭션이 순차적으로 블록체인에 기록되도록 트랜잭션을 블록체인 네트워크의 제1 노드들 중 하나로 전송하도록 구현되는 것
을 특징으로 하는 컴퓨터 장치.According to claim 9,
The queue server is implemented to sequentially store received transactions in a queue,
The consumer server is implemented to transmit the transaction to one of the first nodes of the blockchain network so that the transaction stored in the queue is sequentially recorded in the blockchain.
Characterized by a computer device.
상기 블록체인 네트워크의 제1 노드들 각각은 상기 제1 노드들간의 합의를 통해 상기 컨슈머 서버로부터 수신되는 트랜잭션에 대한 블록을 생성하여 블록체인에 추가하도록 구현되는 것
을 특징으로 하는 컴퓨터 장치.According to claim 12,
Each of the first nodes of the blockchain network is implemented to generate a block for a transaction received from the consumer server through an agreement between the first nodes and add it to the blockchain
Characterized by a computer device.
상기 디앱으로 전송된 응답이 포함하는 트랜잭션 식별자를 통해 상기 블록체인에서 상기 디앱이 요청한 트랜잭션에 대해 블록에 최종 커밋(commit)이 이루어졌는지 여부가 조회되는 것
을 특징으로 하는 컴퓨터 장치.According to claim 9,
Inquiring whether or not a final commit has been made to a block for a transaction requested by the DApp in the blockchain through a transaction identifier included in the response sent to the DApp
Characterized by a computer device.
상기 생성된 트랜잭션 식별자가 부여된 트랜잭션을 수신하여 큐에 저장하는 상기 큐 서버; 및
상기 큐 서버의 큐에 저장된 트랜잭션을 순차적으로 블록체인에 기록하는 컨슈머(consumer) 서버
를 포함하는 트랜잭션 처리 시스템.A transaction requested to be processed by a DApp (Decentralized Application) is received from the DApp, a transaction identifier for the received transaction is generated, a response including the generated transaction identifier is transmitted to the DApp, and the generated transaction identifier is a receiving server that transmits the assigned transaction to a queue server;
the queue server receiving the transaction to which the generated transaction identifier is assigned and storing it in a queue; and
A consumer server that sequentially records the transactions stored in the queue of the queue server in the blockchain
A transaction processing system that includes a.
상기 컨슈머 서버는 상기 큐 서버의 큐에 저장된 트랜잭션이 순차적으로 블록체인에 기록되도록 트랜잭션을 블록체인 네트워크의 제1 노드들 중 하나로 전송하고,
상기 블록체인 네트워크의 제1 노드들 각각은 상기 제1 노드들간의 합의를 통해 상기 컨슈머 서버로부터 수신되는 트랜잭션에 대한 블록을 생성하여 블록체인에 추가하도록 구현되는 것
을 특징으로 하는 트랜잭션 처리 시스템.According to claim 15,
The consumer server transmits the transaction to one of the first nodes of the blockchain network so that the transaction stored in the queue of the queue server is sequentially recorded in the blockchain;
Each of the first nodes of the blockchain network is implemented to generate a block for a transaction received from the consumer server through an agreement between the first nodes and add it to the blockchain
Characterized by a transaction processing system.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/KR2018/013315 WO2020096072A1 (en) | 2018-11-05 | 2018-11-05 | Method and system for efficiently processing, in block-chain, high transaction throughput required by dapp |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20210071962A KR20210071962A (en) | 2021-06-16 |
KR102553877B1 true KR102553877B1 (en) | 2023-07-10 |
Family
ID=70612426
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020217008151A KR102553877B1 (en) | 2018-11-05 | 2018-11-05 | A method and system for efficiently processing the high transaction throughput required by DApps in the blockchain |
Country Status (3)
Country | Link |
---|---|
JP (1) | JP7339335B2 (en) |
KR (1) | KR102553877B1 (en) |
WO (1) | WO2020096072A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102474866B1 (en) * | 2020-11-16 | 2022-12-05 | 두나무 주식회사 | Method and apparatus for managing document based on blockchain network |
US11960469B2 (en) * | 2020-12-07 | 2024-04-16 | Deixis, PBC | Heterogeneous integration with distributed ledger blockchain services |
CN112884579A (en) * | 2021-02-08 | 2021-06-01 | 京东数科海益信息科技有限公司 | Block chain transaction consensus method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101680540B1 (en) * | 2015-06-18 | 2016-11-30 | 주식회사 코인플러그 | Financial institution document verification system that is based on the block chain |
KR101799343B1 (en) * | 2016-05-16 | 2017-11-22 | 주식회사 코인플러그 | Method for using, revoking certificate information and blockchain-based server using the same |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPWO2008105099A1 (en) * | 2007-02-28 | 2010-06-03 | 富士通株式会社 | Application cooperation control program, application cooperation control method, and application cooperation control apparatus |
WO2018126059A1 (en) * | 2016-12-30 | 2018-07-05 | Slock.it, Inc. | Block-chain enabled service provider system |
KR102026225B1 (en) * | 2017-01-19 | 2019-09-27 | 주식회사 케이티 | Apparatus for managing data using block chain and method thereof |
WO2018144302A1 (en) * | 2017-01-31 | 2018-08-09 | Rush Thomas Jay | Blockchain data-processing engine |
CN107040585B (en) * | 2017-02-22 | 2020-06-19 | 创新先进技术有限公司 | Service checking method and device |
JP6942985B2 (en) * | 2017-03-23 | 2021-09-29 | 沖電気工業株式会社 | Remittance source device, remittance destination device, remittance method, remittance method, program and remittance system |
CN107391527B (en) * | 2017-03-28 | 2020-03-27 | 创新先进技术有限公司 | Data processing method and device based on block chain |
CN108376106A (en) * | 2018-02-01 | 2018-08-07 | 中国工商银行股份有限公司 | A kind of block chain message feedback method and system |
-
2018
- 2018-11-05 WO PCT/KR2018/013315 patent/WO2020096072A1/en active Application Filing
- 2018-11-05 KR KR1020217008151A patent/KR102553877B1/en active IP Right Grant
- 2018-11-05 JP JP2021523193A patent/JP7339335B2/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101680540B1 (en) * | 2015-06-18 | 2016-11-30 | 주식회사 코인플러그 | Financial institution document verification system that is based on the block chain |
KR101799343B1 (en) * | 2016-05-16 | 2017-11-22 | 주식회사 코인플러그 | Method for using, revoking certificate information and blockchain-based server using the same |
Also Published As
Publication number | Publication date |
---|---|
KR20210071962A (en) | 2021-06-16 |
JP2022520141A (en) | 2022-03-29 |
WO2020096072A1 (en) | 2020-05-14 |
JP7339335B2 (en) | 2023-09-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102294223B1 (en) | Parallel execution of transactions in a blockchain network based on a smart transaction whitelist | |
CN110199302B (en) | Event-driven blockchain workflow processing | |
KR102034840B1 (en) | Computer program to run the method of distributing users to groups by test and server | |
KR102553877B1 (en) | A method and system for efficiently processing the high transaction throughput required by DApps in the blockchain | |
US10924519B2 (en) | Method, apparatus, system, and non-transitory computer readable medium for interworking between applications of devices | |
KR102118178B1 (en) | Multiple transaction parallel processing method and system for blockchain | |
US10616003B2 (en) | Methods and systems for service interworking between servers using different user identification systems | |
KR102542631B1 (en) | Method and system for verifying blockchain data stored in a storage format different from blockchain | |
US8843631B2 (en) | Dynamic local function binding apparatus and method | |
TW201729121A (en) | Cloud service server and method for managing cloud service server | |
US11367068B2 (en) | Decentralized blockchain for artificial intelligence-enabled skills exchanges over a network | |
CN111597567B (en) | Data processing method, data processing device, node equipment and storage medium | |
JP2017045462A (en) | System and method for authenticating user by using contact list | |
US20220101189A1 (en) | Federated inference | |
US10986066B2 (en) | Systems, apparatuses, methods, and non-transitory computer readable media for efficient call processing | |
KR20200120288A (en) | Method, system, and non-transitory computer readable record medium for providing multiple group call in one chat room | |
US11881940B2 (en) | Method and system for providing secure message | |
US8904508B2 (en) | System and method for real time secure image based key generation using partial polygons assembled into a master composite image | |
US11258838B2 (en) | Method, system, and non-transitory computer readable record medium for processing chatroom based on usage | |
US11134124B2 (en) | Method and system for connecting between terminals in multimedia communication | |
KR102606911B1 (en) | Method and system for controlling traffic inbound to application programming interface server | |
KR101721379B1 (en) | Method and system for efficient call processing | |
US20220239713A1 (en) | Computer-based systems configured to adjust data capacity in a data stream generated from multiple data producer applications and methods of use thereof | |
KR101728945B1 (en) | System and method for determining existence of relationship between users | |
JP6258521B2 (en) | System and method for routing messages in a distributed computing environment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant |