WO2020096072A1 - Method and system for efficiently processing, in block-chain, high transaction throughput required by dapp - Google Patents

Method and system for efficiently processing, in block-chain, high transaction throughput required by dapp Download PDF

Info

Publication number
WO2020096072A1
WO2020096072A1 PCT/KR2018/013315 KR2018013315W WO2020096072A1 WO 2020096072 A1 WO2020096072 A1 WO 2020096072A1 KR 2018013315 W KR2018013315 W KR 2018013315W WO 2020096072 A1 WO2020096072 A1 WO 2020096072A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction
server
queue
blockchain
identifier
Prior art date
Application number
PCT/KR2018/013315
Other languages
French (fr)
Korean (ko)
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 PCT/KR2018/013315 priority Critical patent/WO2020096072A1/en
Priority to JP2021523193A priority patent/JP7339335B2/en
Priority to KR1020217008151A priority patent/KR102553877B1/en
Publication of WO2020096072A1 publication Critical patent/WO2020096072A1/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/1042Peer-to-peer [P2P] networks using topology management mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/06Network architectures or network communication protocols for network security for supporting key management in a packet data network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Definitions

  • the following description relates to a transaction processing method and system for efficiently processing a high transaction throughput required by a decentralized application (DApp) in a blockchain.
  • DApp decentralized application
  • 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 a control transmission of a digital asset between participants in a blockchain system, and includes at least one input and at least one output.
  • Each block is linked together, including the hash of the previous block, to create a permanent, unalterable record of all transactions recorded on the blockchain from the beginning.
  • Korean Patent Publication No. 10-2018-0113143 discloses a blockchain-based user-defined currency transaction system and its operation method.
  • a decentralized application refers to an application in which the backend code runs on a decentralized peer-to-peer network (or makes data calls and registrations to the blockchain database) and provides it as an interface in the front end.
  • the writing of the transaction in the blockchain is too slow because the process of creating a block and connecting it to the chain through consensus among nodes on the blockchain network is required, and the blockchain itself does not scale out. Does not. For example, adding a node to create a block in the blockchain network increases the cost of consensus for block creation, but does not increase the rate of block creation for transactions. Therefore, there is a problem in that it is difficult to handle the high transaction throughput required by the DApp on the blockchain.
  • the DApp By returning the transaction identifier to the DApp, the DApp provides a transaction processing method and system that can inquire whether the final commit is made to the block in the blockchain for the corresponding transaction.
  • Receiving a transaction requested by a decentralized application Generating a transaction identifier for the transaction; Transmitting a response including the generated transaction identifier to the D-App; And after the transaction to which the generated transaction identifier is assigned is stored in a queue included in the queue server, sequentially written to the blockchain by the consumer server, the transaction to which the generated transaction identifier is assigned is the It provides a transaction processing method comprising the step of transmitting to the queue server.
  • a computer program stored in a computer readable recording medium is provided to execute a transaction processing method on the computer device.
  • a computer device comprising at least one processor implemented to execute instructions readable by a computer, by the at least one processor, receiving a transaction requested by a decentralized application, and obtaining a transaction identifier for the transaction. After generating, sending a response including the generated transaction identifier to the dApp, and after the transaction to which the generated transaction identifier is assigned is stored in a queue included in the queue server, sequentially by a consumer server It provides a computer device, characterized in that for transmitting to the queue server, the transaction to which the generated transaction identifier is assigned, so as to be recorded on the blockchain.
  • Receives a transaction requested by a decentralized application generates a transaction identifier for the transaction, sends a response including the generated transaction identifier to the dApp, and transmits a transaction given the generated transaction identifier server;
  • a queue server that receives and stores the generated transaction identifier in a queue;
  • it provides a transaction processing system including a consumer (consumer) server that sequentially records the transactions stored in the queue of the queue server on the blockchain.
  • the high transaction throughput required by the decentralized application (DApp) can be efficiently processed on the blockchain.
  • the DApp can inquire whether the final commit is made to the block in the blockchain for the corresponding transaction.
  • FIG. 1 is a diagram showing an example of a network environment according to an embodiment of the present invention.
  • FIG. 2 is a block diagram showing an example of a computer device according to an embodiment of the present invention.
  • FIG. 3 is a diagram illustrating a schematic example of a transaction processing system according to an embodiment of the present invention.
  • FIG. 4 is a flowchart illustrating an example of a transaction processing method in an embodiment of the present invention.
  • a transaction processing system 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 the computer device, and the computer device may perform a transaction processing method according to an embodiment of the present invention under control of the driven computer program.
  • the above-described computer program may be stored in a computer-readable recording medium in combination with a computer device to execute a transaction processing method on the computer device.
  • FIG. 1 is a diagram showing 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 electronic devices 110, 120, 130, 140, a plurality of servers 150, 160, and a network 170. 1 is an example for explaining the invention, and the number of electronic devices or the number of servers is not limited as shown in FIG. 1.
  • the network environment of FIG. 1 is merely an example of one of the environments applicable to the embodiments, and the environment applicable to the embodiments is not limited to the network environment of FIG. 1.
  • the plurality of electronic devices 110, 120, 130, and 140 may be a fixed terminal or a mobile terminal implemented as a computer device.
  • a plurality of electronic devices 110, 120, 130, 140
  • smart phones smart phones
  • mobile phones navigation, computers, notebooks, digital broadcasting terminals, PDA (Personal Digital Assistants), PMP (Portable Multimedia Player) ), Tablet PC, etc.
  • PDA Personal Digital Assistants
  • PMP Portable Multimedia Player
  • Tablet PC Tablet PC
  • the shape of a smartphone is shown as an example of the electronic device 1 110 in FIG. 1, in the embodiments of the present invention, the electronic device 1 110 substantially uses the wireless or wired communication method to connect the network 170. It may mean one of various physical computer devices capable of communicating with other electronic devices 120, 130, 140 and / or servers 150, 160.
  • the communication method is not limited, and a communication method using a communication network (for example, a mobile communication network, a wired Internet, a wireless Internet, and a broadcasting network) that the network 170 may include may include short-range wireless communication between devices.
  • the network 170 includes a personal area network (PAN), a local area network (LAN), a campus area network (CAN), a metropolitan area network (MAN), a wide area network (WAN), and a broadband network (BBN). , Any one or more of the networks such as the Internet.
  • PAN personal area network
  • LAN local area network
  • CAN campus area network
  • MAN metropolitan area network
  • WAN wide area network
  • BBN broadband network
  • the network 170 may include any one or more of a network topology including a bus network, a star network, a ring network, a mesh network, a star-bus network, a tree, or a hierarchical network. It is not limited.
  • Each of the servers 150 and 160 communicates with a plurality of electronic devices 110, 120, 130, and 140 through a network 170 to provide commands, codes, files, contents, services, or the like, or a plurality of computers. It can be implemented with devices.
  • the server 150 is a service (for example, a video call service, a financial service, a payment service, a social network service) with a plurality of electronic devices 110, 120, 130, and 140 accessed through the network 170. , Messaging service, search service, mail service, content provision service, question and answer service, etc.).
  • FIG. 2 is a block diagram showing an example of a computer device according to an embodiment of the present invention.
  • Each of the plurality of electronic devices 110, 120, 130, 140 described above or each of the servers 150, 160 may be implemented by the computer device 200 shown through FIG. 2, and an embodiment of the present invention The method according to the field may be performed by the computer device 200.
  • the computer device 200 may include a memory 210, a processor 220, a communication interface 230, and an input / output interface 240.
  • the memory 210 is a computer-readable recording medium, and may include a non-permanent mass storage device such as random access memory (RAM), read only memory (ROM), and a disk drive.
  • RAM random access memory
  • ROM read only memory
  • a non-destructive large-capacity recording device such as a ROM and a disk drive may be included in the computer device 200 as a separate permanent storage device separate from the memory 210.
  • an operating system and at least one program code may be stored in the memory 210. These software components may be loaded into the memory 210 from a computer-readable recording medium separate from the memory 210.
  • Such a separate computer-readable recording medium may include a computer-readable recording medium such as a floppy drive, disk, tape, DVD / CD-ROM drive, and memory card.
  • software components may be loaded into memory 210 through communication interface 230 rather than a computer-readable recording medium.
  • software components can be loaded into the memory 210 of the computer device 200 based on a computer program installed by files received over the network 170.
  • the processor 220 may be configured to process instructions of a computer program by performing basic arithmetic, logic, and input / output operations. Instructions may be provided to processor 220 by memory 210 or communication interface 230. For example, the processor 220 may be configured to execute a received command according to program code stored in a recording device such as the memory 210.
  • the communication interface 230 may provide a function for the computer device 200 to communicate with other devices (eg, the storage devices described above) through the network 170. For example, requests, commands, data, files, etc. generated by the processor 220 of the computer device 200 according to program codes stored in a recording device such as the memory 210 are controlled by the communication interface 230. 170) to other devices. Conversely, signals, commands, data, files, etc. from other devices may be received through the network 170 to the computer device 200 through the communication interface 230 of the computer device 200. Signals, commands, data, etc. received through the communication interface 230 may be transferred to the processor 220 or the memory 210, and files and the like may be further stored by the computer device 200 (described above) Permanent storage device).
  • the input / output interface 240 may be a means for interfacing with the input / output device 250.
  • the input device may include a device such as a microphone, keyboard, camera or mouse
  • the output device may include a device such as a display or speaker.
  • the input / output interface 240 may be a means for interfacing with a device in which functions for input and output are integrated into one, such as a touch screen.
  • the input / output device 250 may be configured as a computer device 200 and a single device.
  • the computer device 200 may include fewer or more components than those in FIG. 2. However, there is no need to clearly show most prior art components.
  • the computer device 200 may be implemented to include at least some of the input / output devices 250 described above, or may further include other components such as a transceiver, a database, and the like.
  • 3 is a diagram illustrating a schematic example of a transaction processing system according to an embodiment of the present invention.
  • 3 illustrates a decentralized application (DApp) 310, a receiving server 320, a node 330, a queue server 340, and a consumer server 350.
  • DApp decentralized application
  • the receiving server 320, the node 330, the queue server 340, and the consumer server 350 may be implemented by the computer device 200 described above, respectively.
  • at least two or more of the receiving server 320, the node 330, the queue server 340, and the consumer server 350 may be implemented to be included in one computer device 200.
  • the D-app 310 is an example of a decentralized application, and may be an application service that operates as a smart contract on a platform based on a blockchain.
  • the dApp 310 may register (or record) data on the blockchain and call it.
  • the D-App 310 may attempt to register transaction data on the blockchain by passing a transaction (Tx) to the receiving server 320.
  • Tx transaction
  • the receiving server 320 may receive a transaction from the D-App 310 and attempt to register with the blockchain. At this time, the d-app 310 may process the data (transactions) to be processed for a certain period or a certain amount at a time. In other words, a situation in which the receiving server 320 needs to receive and process a certain amount of transactions for a certain period of time from the DApp 310 at a time may occur. However, since the throughput per a certain period of time (eg, minutes or seconds) of the blockchain is limited, and the scale-out for increasing such throughput has a feature that is impossible, the receiving server 320 may block the blockchain. In the case of attempting to register transactions exceeding the throughput all at once, there is a problem in that registration of all transactions fails from the moment when it exceeds the throughput of the blockchain.
  • the throughput per a certain period of time eg, minutes or seconds
  • the receiving server 320 may transmit the transactions to the queue server 340 instead of transmitting them directly to the node 350 of the blockchain.
  • the receiving server 320 may generate a transaction identifier (TxID) for each transaction requested by the DApp 310.
  • TxID transaction identifier
  • the receiving server 310 may generate a hash value for a transaction as a transaction identifier for the corresponding transaction.
  • the receiving server 320 may respond to the request of the DApp 310 by sending a response including the transaction identifier to the DApp 310, and may transmit a transaction to which the transaction ID is assigned to the queue server 340.
  • the receiving server 320 may generate a transaction identifier (sign (TxID)) signed with the private key by signing the transaction identifier with the private key of the user of the transaction, and the signed transaction identifier is granted It is also possible to send the transaction to the queue server 340.
  • the receiving server 320 may include an electronic wallet for at least one user. Such an electronic wallet may include information such as a user identifier in the user's D-App 310, a user's private key, and a public address for the blockchain.
  • the receiving server 320 may sign the transaction identifier of a specific user using the private key of the user.
  • the queue server 340 may store the transaction transmitted from the receiving server 320 in the queue 341.
  • the consumer server 350 sequentially records the transactions stored in the queue 341 of the queue server 340 (transactions each of which is given a unique transaction identifier (or signed transaction identifier)) to the blockchain.
  • Transactions can be transmitted to the node 350 of the blockchain.
  • the DApp 310 since the DApp 310 is stored in the queue 341 of the queue server 340 for a certain period of time or a certain amount of transactions delivered at once, and is registered in the blockchain sequentially through the consumer server 350, the present The transaction processing system according to the embodiment can help to efficiently process the high transaction throughput required by the DApp 310 on the blockchain.
  • the node 350 may be one of nodes participating in the blockchain network.
  • the node 350 may be implemented to create a block for the received transaction through agreement between the nodes and add it to the blockchain.
  • the node 350 creates a block for a transaction, and also creates a block for nodes for consensus. You can instruct them to do.
  • a block can be created at each node and added to the blockchain stored by the nodes.
  • the nodes for consensus may be all nodes of the blockchain network, but may be some nodes selected among all nodes of the blockchain network according to an embodiment.
  • FIG. 4 is a flowchart illustrating an example of a transaction processing method in an embodiment of the present invention.
  • the transaction processing method according to the present embodiment may be performed by the computer device 200 described above.
  • the processor 220 of the computer device 200 may be implemented to execute control instructions according to code of an operating system included in the memory 210 or code of at least one program.
  • the processor 220 is the computer device 200 to perform the steps (410 to 440) included in the method of Figure 4, the computer device 200 according to the control command provided by the code stored in the computer device 200 Can be controlled.
  • the computer device 200 may receive the transaction requested by the D-App.
  • the D-App may transmit data (transactions) to be processed in a predetermined period or a predetermined amount at a time, and the computer device 200 may receive a certain amount of transactions or a certain amount of transactions from the D-App at a time.
  • the computer device 200 is a subsequent step so that the blockchain can efficiently process the high transaction throughput required by the DApp on the blockchain. Fields 420 to 440 may be performed.
  • the computer device 200 may generate a transaction identifier for the transaction.
  • the computer device 200 may generate a hash value for the transaction as a transaction identifier.
  • the contents of the transaction may be an input parameter of a predetermined hash function, and a hash value that is an output value of the hash function may be used as a transaction identifier.
  • the computer device 200 may transmit a response including the generated transaction identifier to the DApp.
  • the transaction identifier included in the response sent to the DApp may be used to inquire whether or not a final commit is made to the block for the transaction requested by the DApp in the blockchain.
  • step 440 the computer device 200 generates a transaction with the generated transaction identifier, so that the transaction with the generated transaction identifier is stored in the queue included in the queue server, and then sequentially written to the blockchain by the consumer server. Can be sent to the queue server.
  • the computer device 200 may store the user's user identifier and the user's private key in advance, and sign the generated transaction identifier with the user's private key to generate a signed transaction identifier.
  • the computer device 200 may transmit the transaction identifier signed with the user's private key in step 440 to the queue server along with the transaction.
  • the queue server may be implemented to sequentially store the received transactions in a queue, and the consumer server is implemented to transmit the transaction to one of the first nodes of the blockchain network so that the transactions stored in the queue are sequentially recorded on the blockchain.
  • each of the first nodes of the blockchain network may be implemented to create a block for a transaction received from the consumer server through an agreement between the first nodes and add it to the blockchain.
  • the blockchain is efficiently processed by storing transactions in the queue included by the queue server and sequentially processing them through the consumer server. Can help you do it.
  • a high transaction throughput required by a decentralized application can be efficiently processed in a blockchain.
  • DApp decentralized application
  • the DApp can inquire whether the final commit is made to the block in the blockchain for the corresponding transaction.
  • 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.
  • the devices and components described in the embodiments include, for example, processors, controllers, arithmetic logic units (ALUs), digital signal processors (micro signal processors), microcomputers, field programmable gate arrays (FPGAs).
  • a programmable logic unit (PLU), microprocessor, or any other device capable of executing and responding to instructions may be implemented using one or more general purpose computers or special purpose computers.
  • the processing device may perform an operating system (OS) and one or more software applications running on the operating system.
  • the processing device may access, store, manipulate, process, and generate data in response to execution of the software.
  • OS operating system
  • the processing device may access, store, manipulate, process, and generate data in response to execution of the software.
  • a processing device may be described as one being used, but a person having ordinary skill in the art, the processing device may include a plurality of processing elements and / or a plurality of types of processing elements. It can be seen that may include.
  • the processing device may include a plurality of processors or a processor and a controller.
  • other processing configurations such as parallel processors, are possible.
  • the software may include a computer program, code, instruction, or a combination of one or more of these, and configure the processing device to operate as desired, or process independently or collectively You can command the device.
  • Software and / or data may be interpreted by a processing device, or to provide instructions or data to a processing device, of any type of machine, component, physical device, virtual equipment, computer storage medium or device.
  • the software may be distributed over networked computer systems, and stored or executed in a distributed manner.
  • Software and data may be stored on one or more computer-readable recording media.
  • 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, or the like alone or in combination.
  • the program instructions recorded on the medium may be specially designed and configured for the embodiments or may be known and usable by those skilled in 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, DVDs, and magnetic media such as floptical disks.
  • -Hardware devices specifically 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 various recording means or storage means in the form of a combination of single or several hardware, and is not limited to a medium directly connected to a computer system, but may be distributed on a network.
  • Examples of program instructions include high-level language codes that can be executed by a computer using an interpreter, etc., as well as machine language codes produced by a compiler.

Abstract

Provided are a method and a system for efficiently processing, in a block-chain, a high transaction throughput required by a Decentralized Application (DApp). A method for processing a transaction, according to embodiments of the present invention, may comprise the steps of: 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 transmitting, to a queue server, the transaction to which the generated transaction identifier is assigned such that the transaction to which the generated transaction identifier is assigned is stored in a queue included in the queue server and then is sequentially recorded in a block-chain by a consumer server.

Description

디앱에서 요구하는 높은 트랜잭션 처리량을 효율적으로 블록체인에서 처리하기 위한 방법 및 시스템Method and system for efficiently processing high transaction throughput required by DApp on the blockchain
아래의 설명은 디앱(Decentralized Application, DApp)에서 요구하는 높은 트랜잭션 처리량을 효율적으로 블록체인에서 처리하기 위한 트랜잭션 처리 방법 및 시스템에 관한 것이다.The following description relates to a transaction processing method and system for efficiently processing a high transaction throughput required by a decentralized application (DApp) in a blockchain.
블록체인(block-chain)은 전자 대장(electronic ledger)으로서, 트랜잭션들을 위한 블록들로 구성된 컴퓨터 기반의 분산형, P2P(peer-to-peer)의 시스템으로 구현된다. 각 트랜잭션(Transaction, Tx)은 블록체인 시스템 내의 참가자들 간에 디지털 자산의 제어 전송을 인코딩하는 데이터 구조이며, 적어도 하나의 입력과 적어도 하나의 출력을 포함한다. 각 블록은 이전 블록의 해시를 포함하여 해당 블록이 함께 연결되어 처음부터 블록체인에 기록된 모든 트랜잭션의 영구적인, 바꿀 수 없는(unalterable) 기록을 생성한다. 예를 들어, 한국공개특허 제10-2018-0113143호는 블록체인 기반의 사용자 정의 화폐 거래 시스템 및 그 동작 방법을 개시하고 있다.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 a control transmission of a digital asset between participants in a blockchain system, and includes at least one input and at least one output. Each block is linked together, including the hash of the previous block, to create a permanent, unalterable record of all transactions recorded on the blockchain from the beginning. For example, Korean Patent Publication No. 10-2018-0113143 discloses a blockchain-based user-defined currency transaction system and its operation method.
한편, 디앱(Decentralized Application, DApp)은 백엔드 코드가 탈중앙화된 피어-투-피어 네트워크 상에서 돌아가고 (혹은 데이터 호출 및 등록을 블록체인 데이터베이스에 하고) 이를 프론트엔드에서 인터페이스로 제공해주는 어플리케이션을 말한다. 이때, 블록체인에서 트랜잭션의 쓰기(write)는 블록체인 네트워크상의 노드들간의 합의를 통해 블록을 생성하여 체인에 연결하는 과정이 요구되기 때문에 너무 느리며, 블록체인 자체가 스케일 아웃(scale out)이 되지 않는다. 예를 들어, 블록체인 네트워크에서 블록을 생성하기 위한 노드를 추가하더라도 블록 생성을 위한 합의의 비용이 증가할 뿐, 트랜잭션에 대한 블록 생성 속도가 증가하지는 않는다. 따라서, 블록체인에서 디앱이 요구하는 높은 트랜잭션 처리량을 감당하기 어렵다는 문제점이 있다.Meanwhile, a decentralized application (DApp) refers to an application in which the backend code runs on a decentralized peer-to-peer network (or makes data calls and registrations to the blockchain database) and provides it as an interface in the front end. At this time, the writing of the transaction in the blockchain is too slow because the process of creating a block and connecting it to the chain through consensus among nodes on the blockchain network is required, and the blockchain itself does not scale out. Does not. For example, adding a node to create a block in the blockchain network increases the cost of consensus for block creation, but does not increase the rate of block creation for transactions. Therefore, there is a problem in that it is difficult to handle the high transaction throughput required by the DApp on the blockchain.
디앱(Decentralized Application, DApp)에서 요구하는 높은 트랜잭션 처리량을 효율적으로 블록체인에서 처리하기 위한 트랜잭션 처리 방법 및 시스템을 제공한다.Provides a transaction processing method and system for efficiently processing high transaction throughput required by a decentralized application (DApp) on the blockchain.
디앱에서 요청한 트랜잭션에 수신 서버에서 고유한 트랜잭션 식별자를 부여하여 큐(queue) 서버로 전송하여 큐잉하고, 별도의 컨슈머 서버에서 큐잉된 트랜잭션을 순차적으로 블록체인에 기록함으로써, 스케일 아웃(scale out)이 불가능한 블록체인에 대해서도 디앱이 요구하는 높은 트랜잭션 처리량을 감당할 수 있는 트랜잭션 처리 방법 및 시스템을 제공한다.By sending a unique transaction identifier from the receiving server to the transaction requested by the DApp and sending it to the queue server, it is queued, and by sequentially recording the queued transaction in a separate consumer server on the blockchain, scale out It provides a transaction processing method and system that can handle the high transaction throughput required by DApp even for impossible blockchains.
트랜잭션 식별자를 디앱으로 리턴함으로써, 디앱에서 해당 트랜잭션에 대해 블록체인에서 블록에 최종 커밋(commit)이 이루어졌는지 여부를 조회할 수 있는 트랜잭션 처리 방법 및 시스템을 제공한다.By returning the transaction identifier to the DApp, the DApp provides a transaction processing method and system that can inquire whether the final commit is made to the block in the blockchain for the corresponding transaction.
디앱(Decentralized Application)에서 요청한 트랜잭션을 수신하는 단계; 상기 트랜잭션을 위한 트랜잭션 식별자를 생성하는 단계; 상기 생성된 트랜잭션 식별자를 포함하는 응답을 상기 디앱으로 전송하는 단계; 및 상기 생성된 트랜잭션 식별자가 부여된 트랜잭션이 큐(queue) 서버가 포함하는 큐에 저장된 후, 컨슈머(consumer) 서버에 의해 순차적으로 블록체인에 기록되도록, 상기 생성된 트랜잭션 식별자가 부여된 트랜잭션을 상기 큐 서버로 전송하는 단계를 포함하는 트랜잭션 처리 방법을 제공한다.Receiving a transaction requested by a decentralized application; Generating a transaction identifier for the transaction; Transmitting a response including the generated transaction identifier to the D-App; And after the transaction to which the generated transaction identifier is assigned is stored in a queue included in the queue server, sequentially written to the blockchain by the consumer server, the transaction to which the generated transaction identifier is assigned is the It provides a transaction processing method comprising the step of transmitting to the queue server.
컴퓨터 장치와 결합되어 트랜잭션 처리 방법을 컴퓨터 장치에 실행시키기 위해 컴퓨터 판독 가능한 기록매체에 저장된 컴퓨터 프로그램을 제공한다.In combination with a computer device, a computer program stored in a computer readable recording medium is provided to execute a transaction processing method on the computer device.
트랜잭션 처리 방법을 컴퓨터 장치에 실행시키기 위한 컴퓨터 프로그램이 기록되어 있는 것을 특징으로 하는 컴퓨터 판독 가능한 기록매체를 제공한다.Disclosed is a computer readable recording medium characterized in that a computer program for executing a transaction processing method is recorded on a computer device.
컴퓨터 장치에 있어서, 컴퓨터에서 판독 가능한 명령을 실행하도록 구현되는 적어도 하나의 프로세서를 포함하고, 상기 적어도 하나의 프로세서에 의해, 디앱(Decentralized Application)에서 요청한 트랜잭션을 수신하고, 상기 트랜잭션을 위한 트랜잭션 식별자를 생성하고, 상기 생성된 트랜잭션 식별자를 포함하는 응답을 상기 디앱으로 전송하고, 상기 생성된 트랜잭션 식별자가 부여된 트랜잭션이 큐(queue) 서버가 포함하는 큐에 저장된 후, 컨슈머(consumer) 서버에 의해 순차적으로 블록체인에 기록되도록, 상기 생성된 트랜잭션 식별자가 부여된 트랜잭션을 상기 큐 서버로 전송하는 것을 특징으로 하는 컴퓨터 장치를 제공한다.A computer device, comprising at least one processor implemented to execute instructions readable by a computer, by the at least one processor, receiving a transaction requested by a decentralized application, and obtaining a transaction identifier for the transaction. After generating, sending a response including the generated transaction identifier to the dApp, and after the transaction to which the generated transaction identifier is assigned is stored in a queue included in the queue server, sequentially by a consumer server It provides a computer device, characterized in that for transmitting to the queue server, the transaction to which the generated transaction identifier is assigned, so as to be recorded on the blockchain.
디앱(Decentralized Application)에서 요청한 트랜잭션을 수신하여 상기 트랜잭션을 위한 트랜잭션 식별자를 생성하고, 상기 생성된 트랜잭션 식별자를 포함하는 응답을 상기 디앱으로 전송하고, 상기 생성된 트랜잭션 식별자가 부여된 트랜잭션을 전송하는 수신 서버; 상기 생성된 트랜잭션 식별자가 부여된 트랜잭션을 수신하여 큐에 저장하는 큐(queue) 서버로; 및 상기 큐 서버의 큐에 저장된 트랜잭션을 순차적으로 블록체인에 기록하는 컨슈머(consumer) 서버를 포함하는 트랜잭션 처리 시스템을 제공한다.Receives a transaction requested by a decentralized application, generates a transaction identifier for the transaction, sends a response including the generated transaction identifier to the dApp, and transmits a transaction given the generated transaction identifier server; A queue server that receives and stores the generated transaction identifier in a queue; And it provides a transaction processing system including a consumer (consumer) server that sequentially records the transactions stored in the queue of the queue server on the blockchain.
디앱(Decentralized Application, DApp)에서 요구하는 높은 트랜잭션 처리량을 효율적으로 블록체인에서 처리할 수 있다.The high transaction throughput required by the decentralized application (DApp) can be efficiently processed on the blockchain.
디앱에서 요청한 트랜잭션에 수신 서버에서 고유한 트랜잭션 식별자를 부여하여 큐(queue) 서버로 전송하여 큐잉하고, 별도의 컨슈머(consumer) 서버에서 큐잉된 트랜잭션을 순차적으로 블록체인에 기록함으로써, 스케일 아웃(scale out)이 불가능한 블록체인에 대해서도 디앱이 요구하는 높은 트랜잭션 처리량을 감당할 수 있다.By receiving a unique transaction identifier from the receiving server to the transaction requested by the DApp, it is sent to the queue server for queuing, and the transaction queued in a separate consumer server is sequentially recorded on the blockchain, thereby scaling out (scale) Blockchain that cannot be out) can handle the high transaction throughput required by DApp.
트랜잭션 식별자를 디앱으로 리턴함으로써, 디앱에서 해당 트랜잭션에 대해 블록체인에서 블록에 최종 커밋(commit)이 이루어졌는지 여부를 조회할 수 있다.By returning the transaction identifier to the DApp, the DApp can inquire whether the final commit is made to the block in the blockchain for the corresponding transaction.
도 1은 본 발명의 일실시예에 따른 네트워크 환경의 예를 도시한 도면이다.1 is a diagram showing an example of a network environment according to an embodiment of the present invention.
도 2는 본 발명의 일실시예에 따른 컴퓨터 장치의 예를 도시한 블록도이다.2 is a block diagram showing an example of a computer device according to an embodiment of the present invention.
도 3은 본 발명의 일실시예에 따른 트랜잭션 처리 시스템의 개략적인 예를 도시한 도면이다.3 is a diagram illustrating a schematic example of a transaction processing system according to an embodiment of the present invention.
도 4는 본 발명의 일실시예에 있어서, 트랜잭션 처리 방법의 예를 도시한 흐름도이다.4 is a flowchart illustrating an example of a transaction processing method in an embodiment of the present invention.
이하, 실시예를 첨부한 도면을 참조하여 상세히 설명한다.Hereinafter, embodiments 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 the computer device, and the computer device may perform a transaction processing method according to an embodiment of the present invention under control of the driven computer program. The above-described computer program may be stored in a computer-readable recording medium in combination with a computer device to execute a transaction processing method on the computer device.
도 1은 본 발명의 일실시예에 따른 네트워크 환경의 예를 도시한 도면이다. 도 1의 네트워크 환경은 복수의 전자 기기들(110, 120, 130, 140), 복수의 서버들(150, 160) 및 네트워크(170)를 포함하는 예를 나타내고 있다. 이러한 도 1은 발명의 설명을 위한 일례로 전자 기기의 수나 서버의 수가 도 1과 같이 한정되는 것은 아니다. 또한, 도 1의 네트워크 환경은 본 실시예들에 적용 가능한 환경들 중 하나의 예를 설명하는 것일 뿐, 본 실시예들에 적용 가능한 환경이 도 1의 네트워크 환경으로 한정되는 것은 아니다.1 is a diagram showing 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 electronic devices 110, 120, 130, 140, a plurality of servers 150, 160, and a network 170. 1 is an example for explaining the invention, and the number of electronic devices or the number of servers is not limited as shown in FIG. 1. In addition, the network environment of FIG. 1 is merely an example of one of the environments applicable to the embodiments, and the environment applicable to the embodiments is not limited to the network environment of FIG. 1.
복수의 전자 기기들(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 electronic devices 110, 120, 130, and 140 may be a fixed terminal or a mobile terminal implemented as a computer device. For example, a plurality of electronic devices (110, 120, 130, 140), smart phones (smart phone), mobile phones, navigation, computers, notebooks, digital broadcasting terminals, PDA (Personal Digital Assistants), PMP (Portable Multimedia Player) ), Tablet PC, etc. For example, although the shape of a smartphone is shown as an example of the electronic device 1 110 in FIG. 1, in the embodiments of the present invention, the electronic device 1 110 substantially uses the wireless or wired communication method to connect the network 170. It may mean one of various physical computer devices capable of communicating with other electronic devices 120, 130, 140 and / or servers 150, 160.
통신 방식은 제한되지 않으며, 네트워크(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 a communication method using a communication network (for example, a mobile communication network, a wired Internet, a wireless Internet, and a broadcasting network) that the network 170 may include may include short-range wireless communication between devices. For example, the network 170 includes a personal area network (PAN), a local area network (LAN), a campus area network (CAN), a metropolitan area network (MAN), a wide area network (WAN), and a broadband network (BBN). , Any one or more of the networks such as the Internet. Further, the network 170 may include any one or more of a network topology including a bus network, a star network, a ring network, a mesh network, a star-bus network, a tree, or a hierarchical network. It is not limited.
서버(150, 160) 각각은 복수의 전자 기기들(110, 120, 130, 140)과 네트워크(170)를 통해 통신하여 명령, 코드, 파일, 컨텐츠, 서비스 등을 제공하는 컴퓨터 장치 또는 복수의 컴퓨터 장치들로 구현될 수 있다. 예를 들어, 서버(150)는 네트워크(170)를 통해 접속한 복수의 전자 기기들(110, 120, 130, 140)로 서비스(일례로, 영상통화 서비스, 금융 서비스, 결제 서비스, 소셜 네트워크 서비스, 메시징 서비스, 검색 서비스, 메일 서비스, 컨텐츠 제공 서비스, 질문 및 답변 서비스 등)를 제공하는 시스템일 수 있다.Each of the servers 150 and 160 communicates with a plurality of electronic devices 110, 120, 130, and 140 through a network 170 to provide commands, codes, files, contents, services, or the like, or a plurality of computers. It can be implemented with devices. For example, the server 150 is a service (for example, a video call service, a financial service, a payment service, a social network service) with a plurality of electronic devices 110, 120, 130, and 140 accessed through the network 170. , Messaging service, search service, mail service, content provision service, question and answer service, etc.).
도 2는 본 발명의 일실시예에 따른 컴퓨터 장치의 예를 도시한 블록도이다. 앞서 설명한 복수의 전자 기기들(110, 120, 130, 140) 각각이나 서버들(150, 160) 각각은 도 2를 통해 도시된 컴퓨터 장치(200)에 의해 구현될 수 있으며, 본 발명의 실시예들에 따른 방법은 이러한 컴퓨터 장치(200)에 의해 수행될 수 있다.2 is a block diagram showing an example of a computer device according to an embodiment of the present invention. Each of the plurality of electronic devices 110, 120, 130, 140 described above or each of the servers 150, 160 may be implemented by the computer device 200 shown through FIG. 2, and an embodiment of the present invention The method according to the field may be performed by the computer device 200.
이때, 도 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 computer device 200 may include a memory 210, a processor 220, a communication interface 230, and an input / output interface 240. The memory 210 is a computer-readable recording medium, and may include a non-permanent mass storage device such as random access memory (RAM), read only memory (ROM), and a disk drive. Here, a non-destructive large-capacity recording device such as a ROM and a disk drive may be included in the computer device 200 as a separate permanent storage device separate from the memory 210. In addition, an operating system and at least one program code may be stored in the memory 210. These software components may be loaded into the memory 210 from a computer-readable recording medium separate from the memory 210. Such a separate computer-readable recording medium may include a computer-readable recording medium such as a floppy drive, disk, tape, DVD / CD-ROM drive, and memory card. In other embodiments, software components may be loaded into memory 210 through communication interface 230 rather than a computer-readable recording medium. For example, software components can be loaded into the memory 210 of the computer device 200 based on a computer program installed by files received over the network 170.
프로세서(220)는 기본적인 산술, 로직 및 입출력 연산을 수행함으로써, 컴퓨터 프로그램의 명령을 처리하도록 구성될 수 있다. 명령은 메모리(210) 또는 통신 인터페이스(230)에 의해 프로세서(220)로 제공될 수 있다. 예를 들어 프로세서(220)는 메모리(210)와 같은 기록 장치에 저장된 프로그램 코드에 따라 수신되는 명령을 실행하도록 구성될 수 있다.The processor 220 may be configured to process instructions of a computer program by performing basic arithmetic, logic, and input / output operations. Instructions may be provided to processor 220 by memory 210 or communication interface 230. For example, the processor 220 may be configured to execute a received command according to program code stored in a recording device such as the memory 210.
통신 인터페이스(230)은 네트워크(170)를 통해 컴퓨터 장치(200)가 다른 장치(일례로, 앞서 설명한 저장 장치들)와 서로 통신하기 위한 기능을 제공할 수 있다. 일례로, 컴퓨터 장치(200)의 프로세서(220)가 메모리(210)와 같은 기록 장치에 저장된 프로그램 코드에 따라 생성한 요청이나 명령, 데이터, 파일 등이 통신 인터페이스(230)의 제어에 따라 네트워크(170)를 통해 다른 장치들로 전달될 수 있다. 역으로, 다른 장치로부터의 신호나 명령, 데이터, 파일 등이 네트워크(170)를 거쳐 컴퓨터 장치(200)의 통신 인터페이스(230)를 통해 컴퓨터 장치(200)로 수신될 수 있다. 통신 인터페이스(230)를 통해 수신된 신호나 명령, 데이터 등은 프로세서(220)나 메모리(210)로 전달될 수 있고, 파일 등은 컴퓨터 장치(200)가 더 포함할 수 있는 저장 매체(상술한 영구 저장 장치)로 저장될 수 있다.The communication interface 230 may provide a function for the computer device 200 to communicate with other devices (eg, the storage devices described above) through the network 170. For example, requests, commands, data, files, etc. generated by the processor 220 of the computer device 200 according to program codes stored in a recording device such as the memory 210 are controlled by the communication interface 230. 170) to other devices. Conversely, signals, commands, data, files, etc. from other devices may be received through the network 170 to the computer device 200 through the communication interface 230 of the computer device 200. Signals, commands, data, etc. received through the communication interface 230 may be transferred to the processor 220 or the memory 210, and files and the like may be further stored by the computer device 200 (described above) Permanent storage device).
입출력 인터페이스(240)는 입출력 장치(250)와의 인터페이스를 위한 수단일 수 있다. 예를 들어, 입력 장치는 마이크, 키보드, 카메라 또는 마우스 등의 장치를, 그리고 출력 장치는 디스플레이, 스피커와 같은 장치를 포함할 수 있다. 다른 예로 입출력 인터페이스(240)는 터치스크린과 같이 입력과 출력을 위한 기능이 하나로 통합된 장치와의 인터페이스를 위한 수단일 수도 있다. 입출력 장치(250)는 컴퓨터 장치(200)와 하나의 장치로 구성될 수도 있다.The input / output interface 240 may be a means for interfacing with the input / output device 250. For example, the input device may include a device such as a microphone, keyboard, camera or mouse, and the output device may include a device such as a display or speaker. As another example, the input / output interface 240 may be a means for interfacing with a device in which functions for input and output are integrated into one, such as a touch screen. The input / output device 250 may be configured as a computer device 200 and a single device.
또한, 다른 실시예들에서 컴퓨터 장치(200)는 도 2의 구성요소들보다 더 적은 혹은 더 많은 구성요소들을 포함할 수도 있다. 그러나, 대부분의 종래기술적 구성요소들을 명확하게 도시할 필요성은 없다. 예를 들어, 컴퓨터 장치(200)는 상술한 입출력 장치(250) 중 적어도 일부를 포함하도록 구현되거나 또는 트랜시버(transceiver), 데이터베이스 등과 같은 다른 구성요소들을 더 포함할 수도 있다.Further, in other embodiments, the computer device 200 may include fewer or more components than those in FIG. 2. However, there is no need to clearly show most prior art components. For example, the computer device 200 may be implemented to include at least some of the input / output devices 250 described above, or may further include other components such as a transceiver, a database, and the like.
도 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 illustrating a schematic example of a transaction processing system according to an embodiment of the present invention. 3 illustrates a decentralized application (DApp) 310, a receiving server 320, a node 330, a queue server 340, and a consumer server 350. In this case, the receiving server 320, the node 330, the queue server 340, and the consumer server 350 may be implemented by the computer device 200 described above, respectively. Depending on the embodiment, at least two or more of the receiving server 320, the node 330, the queue server 340, and the consumer server 350 may be implemented to be included in one computer device 200.
디앱(310)은 탈중앙화된 어플리케이션으로 일례로, 블록체인을 기반으로 플랫폼에서 스마트 컨트랙트(smart contract)로 작동하는 어플리케이션 서비스일 수 있다. 이러한 디앱(310)은 블록체인상에 데이터를 등록(또는 기록)하고 호출할 수 있다. 예를 들어, 디앱(310)은 트랜잭션(transaction, Tx)을 수신 서버(320)로 전달하여 블록체인상에 트랜잭션 데이터를 등록하고자 할 수 있다.The D-app 310 is an example of a decentralized application, and may be an application service that operates as a smart contract on a platform based on a blockchain. The dApp 310 may register (or record) data on the blockchain and call it. For example, the D-App 310 may attempt to register transaction data on the blockchain by passing a transaction (Tx) to the receiving server 320.
수신 서버(320)는 디앱(310)으로부터 트랜잭션을 수신하여 블록체인에 등록을 시도할 수 있다. 이때, 디앱(310)은 처리해야 할 데이터(트랜잭션들)을 일정 기간 또는 일정량 정리하여 한꺼번에 처리할 수 있다. 다시 말해, 수신 서버(320)는 디앱(310)으로부터 일정 기간 동안의 또는 일정량의 트랜잭션들을 한꺼번에 수신하여 처리해야 하는 상황이 발생할 수 있다. 그러나, 블록체인의 일정 기간(일례로, 분 또는 초) 당 처리량은 한정되어 있으며, 이러한 처리량을 늘리기 위한 스케일 아웃(scale out)이 불가능한 특징을 갖고 있기 때문에, 수신 서버(320)에서 블록체인의 처리량을 넘어서는 트랜잭션들을 한꺼번에 등록하고자 하는 경우, 블록체인의 처리량을 넘어서는 순간부터 모든 트랜잭션의 등록이 실패하게 되는 문제점이 있다.The receiving server 320 may receive a transaction from the D-App 310 and attempt to register with the blockchain. At this time, the d-app 310 may process the data (transactions) to be processed for a certain period or a certain amount at a time. In other words, a situation in which the receiving server 320 needs to receive and process a certain amount of transactions for a certain period of time from the DApp 310 at a time may occur. However, since the throughput per a certain period of time (eg, minutes or seconds) of the blockchain is limited, and the scale-out for increasing such throughput has a feature that is impossible, the receiving server 320 may block the blockchain. In the case of attempting to register transactions exceeding the throughput all at once, there is a problem in that registration of all transactions fails from the moment when it exceeds the throughput of the blockchain.
이러한 문제점을 해결하기 위해, 수신 서버(320)는 트랜잭션들을 직접 블록체인의 노드(350)로 전송하는 대신, 큐 서버(340)로 전송할 수 있다. 이를 위해, 수신 서버(320)는 디앱(310)에 의해 요청된 트랜잭션 각각을 위한 트랜잭션 식별자(TxID)를 생성할 수 있다. 예를 들어, 수신 서버(310)는 트랜잭션에 대한 해시값을 해당 트랜잭션을 위한 트랜잭션 식별자로서 생성할 수 있다. 이때, 수신 서버(320)는 트랜잭션 식별자를 포함하는 응답을 디앱(310)으로 전송하여 디앱(310)의 요청에 응답할 수 있으며, 트랜잭션 식별자가 부여된 트랜잭션을 큐 서버(340)로 전송할 수 있다.In order to solve this problem, the receiving server 320 may transmit the transactions to the queue server 340 instead of transmitting them directly to the node 350 of the blockchain. To this end, the receiving server 320 may generate a transaction identifier (TxID) for each transaction requested by the DApp 310. For example, the receiving server 310 may generate a hash value for a transaction as a transaction identifier for the corresponding transaction. At this time, the receiving server 320 may respond to the request of the DApp 310 by sending a response including the transaction identifier to the DApp 310, and may transmit a transaction to which the transaction ID is assigned to the queue server 340. .
이때, 수신 서버(320)는 트랜잭션 식별자를 해당 트랜잭션의 사용자의 개인 키(private key)로 서명하여 개인 키로 서명된 트랜잭션 식별자(sign(TxID))를 생성할 수 있으며, 이러한 서명된 트랜잭션 식별자가 부여된 트랜잭션을 큐 서버(340)로 전송할 수도 있다. 예를 들어, 수신 서버(320)는 적어도 하나의 사용자를 위한 전자 지갑을 포함할 수 있다. 이러한 전자 지갑은 사용자의 디앱(310)에서의 사용자 식별자, 사용자의 개인 키 및 블록체인을 위한 퍼블릭 주소 등의 정보를 포함할 수 있다. 이때, 수신 서버(320)는 특정 사용자의 트랜잭션 식별자를 해당 사용자의 개인 키를 이용하여 서명할 수 있다.At this time, the receiving server 320 may generate a transaction identifier (sign (TxID)) signed with the private key by signing the transaction identifier with the private key of the user of the transaction, and the signed transaction identifier is granted It is also possible to send the transaction to the queue server 340. For example, the receiving server 320 may include an electronic wallet for at least one user. Such an electronic wallet may include information such as a user identifier in the user's D-App 310, a user's private key, and a public address for the blockchain. At this time, the receiving server 320 may sign the transaction identifier of a specific user using the private key of the user.
큐 서버(340)는 수신 서버(320)에서 전송되는 트랜잭션을 큐(341)에 저장할 수 있다. 이때, 컨슈머 서버(350)는 큐 서버(340)의 큐(341)에 저장된 트랜잭션들(각각 고유한 트랜잭션 식별자(또는 서명된 트랜잭션 식별자)가 부여된 트랜잭션들)을 순차적으로 블록체인에 기록하기 위해, 트랜잭션들을 블록체인의 노드(350)로 전송할 수 있다. 이처럼, 디앱(310)이 한꺼번에 전달하는 일정 기간 동안의 또는 일정량의 트랜잭션들이 큐 서버(340)의 큐(341)에 저장되고, 컨슈머 서버(350)를 통해 순차적으로 블록체인에 등록되기 때문에, 본 실시예에 따른 트랜잭션 처리 시스템은 디앱(310)에서 요구하는 높은 트랜잭션 처리량을 효율적으로 블록체인에서 처리할 수 있도록 도울 수 있게 된다.The queue server 340 may store the transaction transmitted from the receiving server 320 in the queue 341. In this case, the consumer server 350 sequentially records the transactions stored in the queue 341 of the queue server 340 (transactions each of which is given a unique transaction identifier (or signed transaction identifier)) to the blockchain. , Transactions can be transmitted to the node 350 of the blockchain. As such, since the DApp 310 is stored in the queue 341 of the queue server 340 for a certain period of time or a certain amount of transactions delivered at once, and is registered in the blockchain sequentially through the consumer server 350, the present The transaction processing system according to the embodiment can help to efficiently process the high transaction throughput required by the DApp 310 on the blockchain.
노드(350)는 블록체인 네트워크에 참여한 노드들 중 하나일 수 있다. 이때, 노드(350)는 트랜잭션을 수신하는 경우, 노드들간의 합의를 통해 수신된 트랜잭션에 대한 블록을 생성하여 블록체인에 추가하도록 구현될 수 있다. 예를 들어, 블록체인 네트워크에서 합의를 위한 노드들 중 전부(또는 기설정된 비율 이상의 노드들)이 합의한 경우, 노드(350)는 트랜잭션을 위한 블록을 생성하고, 합의를 위한 노드들에게도 블록을 생성할 것을 지시할 수 있다. 이 경우, 각각의 노드들에서 블록이 생성되어 해당 노드들이 저장하고 있는 블록체인에 추가될 수 있다. 합의를 위한 노드들은 블록체인 네트워크의 모든 노드들일 수도 있으나, 실시예에 따라 블록체인 네트워크의 모든 노드들 중에서 선정된 일부의 노드들일 수도 있다.The node 350 may be one of nodes participating in the blockchain network. At this time, when receiving the transaction, the node 350 may be implemented to create a block for the received transaction through agreement between the nodes and add it to the blockchain. For example, in the blockchain network, when all of the nodes for consensus (or nodes above a predetermined ratio) agree, the node 350 creates a block for a transaction, and also creates a block for nodes for consensus. You can instruct them to do. In this case, a block can be created at each node and added to the blockchain stored by the nodes. The nodes for consensus may be all nodes of the blockchain network, but may be some nodes selected among all nodes of the blockchain network according to an embodiment.
도 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 in an embodiment of the present invention. The transaction processing method according to the present embodiment may be performed by the computer device 200 described above. For example, the processor 220 of the computer device 200 may be implemented to execute control instructions according to code of an operating system included in the memory 210 or code of at least one program. Here, the processor 220 is the computer device 200 to perform the steps (410 to 440) included in the method of Figure 4, the computer device 200 according to the control command provided by the code stored in the computer device 200 Can be controlled.
단계(410)에서 컴퓨터 장치(200)는 디앱에서 요청한 트랜잭션을 수신할 수 있다. 이미 설명한 바와 같이, 디앱은 처리해야 할 데이터(트랜잭션들)을 일정 기간 또는 일정량 정리하여 한꺼번에 전송할 수 있으며, 컴퓨터 장치(200)는 디앱으로부터 일정 기간 동안의 또는 일정량의 트랜잭션들을 한꺼번에 수신할 수 있다. 이때, 블록체인의 일정 기간 동안의 처리량은 한정되어 있으며 스케일 아웃이 불가능하기 때문에, 컴퓨터 장치(200)는 블록체인이 디앱이 요구하는 높은 트랜잭션 처리량을 효율적으로 블록체인에서 처리할 수 있도록 이후의 단계들(420 내지 440)을 수행할 수 있다.In step 410, the computer device 200 may receive the transaction requested by the D-App. As described above, the D-App may transmit data (transactions) to be processed in a predetermined period or a predetermined amount at a time, and the computer device 200 may receive a certain amount of transactions or a certain amount of transactions from the D-App at a time. At this time, since the throughput for a certain period of the blockchain is limited and cannot be scaled out, the computer device 200 is a subsequent step so that the blockchain can efficiently process the high transaction throughput required by the DApp on the blockchain. Fields 420 to 440 may be performed.
단계(420)에서 컴퓨터 장치(200)는 트랜잭션을 위한 트랜잭션 식별자를 생성할 수 있다. 이때, 컴퓨터 장치(200)는 트랜잭션에 대한 해시값을 트랜잭션 식별자로서 생성할 수 있다. 예를 들어, 트랜잭션의 내용은 기설정된 해시함수의 입력 파라미터가 될 수 있으며, 해시함수의 출력값인 해시값이 트랜잭션 식별자로서 이용될 수 있다.In step 420, the computer device 200 may generate a transaction identifier for the transaction. At this time, the computer device 200 may generate a hash value for the transaction as a transaction identifier. For example, the contents of the transaction may be an input parameter of a predetermined hash function, and a hash value that is an output value of the hash function may be used as a transaction identifier.
단계(430)에서 컴퓨터 장치(200)는 생성된 트랜잭션 식별자를 포함하는 응답을 디앱으로 전송할 수 있다. 이때, 디앱으로 전송된 응답이 포함하는 트랜잭션 식별자는 이후 블록체인에서 디앱이 요청한 트랜잭션에 대해 블록에 최종 커밋(commit)이 이루어졌는지 여부를 조회하는데 활용될 수 있다.In step 430, the computer device 200 may transmit a response including the generated transaction identifier to the DApp. At this time, the transaction identifier included in the response sent to the DApp may be used to inquire whether or not a final commit is made to the block for the transaction requested by the DApp in the blockchain.
단계(440)에서 컴퓨터 장치(200)는 생성된 트랜잭션 식별자가 부여된 트랜잭션이 큐 서버가 포함하는 큐에 저장된 후, 컨슈머 서버에 의해 순차적으로 블록체인에 기록되도록, 생성된 트랜잭션 식별자가 부여된 트랜잭션을 큐 서버로 전송할 수 있다. 실시예에 따라, 컴퓨터 장치(200)는 사용자의 사용자 식별자 및 사용자의 개인 키를 미리 저장하고 있을 수 있으며, 생성된 트랜잭션 식별자를 사용자의 개인 키로 서명하여 서명된 트랜잭션 식별자를 생성할 수 있다. 이 경우, 컴퓨터 장치(200)는 단계(440)에서 사용자의 개인 키로 서명된 트랜잭션 식별자를 트랜잭션과 함께 큐 서버로 전송할 수 있다.In step 440, the computer device 200 generates a transaction with the generated transaction identifier, so that the transaction with the generated transaction identifier is stored in the queue included in the queue server, and then sequentially written to the blockchain by the consumer server. Can be sent to the queue server. According to an embodiment, the computer device 200 may store the user's user identifier and the user's private key in advance, and sign the generated transaction identifier with the user's private key to generate a signed transaction identifier. In this case, the computer device 200 may transmit the transaction identifier signed with the user's private key in step 440 to the queue server along with the transaction.
이때, 큐 서버는 수신되는 트랜잭션을 순차적으로 큐에 저장하도록 구현될 수 있으며, 컨슈머 서버는 큐에 저장된 트랜잭션이 순차적으로 블록체인에 기록되도록 트랜잭션을 블록체인 네트워크의 제1 노드들 중 하나로 전송하도록 구현될 수 있다. 이때, 블록체인 네트워크의 제1 노드들 각각은 제1 노드들간의 합의를 통해 컨슈머 서버로부터 수신되는 트랜잭션에 대한 블록을 생성하여 블록체인에 추가하도록 구현될 수 있다. 이처럼, 디앱이 요구하는 높은 트랜잭션 처리량을 한꺼번에 블록체인에게 직접 요청하는 것이 아니라, 트랜잭션을 큐 서버가 포함하는 큐에 저장한 후, 컨슈머 서버를 통해 순차적으로 처리함에 따라 블록체인이 효율적으로 트랜잭션을 처리할 수 있도록 도울 수 있다.At this time, the queue server may be implemented to sequentially store the received transactions in a queue, and the consumer server is implemented to transmit the transaction to one of the first nodes of the blockchain network so that the transactions stored in the queue are sequentially recorded on the blockchain. Can be. At this time, each of the first nodes of the blockchain network may be implemented to create a block for a transaction received from the consumer server through an agreement between the first nodes and add it to the blockchain. As such, rather than directly requesting the high transaction throughput required by the DApp to the blockchain at once, the blockchain is efficiently processed by storing transactions in the queue included by the queue server and sequentially processing them through the consumer server. Can help you do it.
이상에서와 같이, 본 발명의 실시예들에 따르면, 디앱(Decentralized Application, DApp)에서 요구하는 높은 트랜잭션 처리량을 효율적으로 블록체인에서 처리할 수 있다. 디앱에서 요청한 트랜잭션에 수신 서버에서 고유한 트랜잭션 식별자를 부여하여 큐(queue) 서버로 전송하여 큐잉하고, 별도의 컨슈머(consumer) 서버에서 큐잉된 트랜잭션을 순차적으로 블록체인에 기록함으로써, 스케일 아웃(scale out)이 불가능한 블록체인에 대해서도 디앱이 요구하는 높은 트랜잭션 처리량을 감당할 수 있다. 트랜잭션 식별자를 디앱으로 리턴함으로써, 디앱에서 해당 트랜잭션에 대해 블록체인에서 블록에 최종 커밋(commit)이 이루어졌는지 여부를 조회할 수 있다.As described above, according to embodiments of the present invention, a high transaction throughput required by a decentralized application (DApp) can be efficiently processed in a blockchain. By receiving a unique transaction identifier from the receiving server to the transaction requested by the DApp, it is sent to the queue server for queuing, and the transaction queued in a separate consumer server is sequentially recorded on the blockchain, thereby scaling out (scale) Blockchain that cannot be out) can handle the high transaction throughput required by DApp. By returning the transaction identifier to the DApp, the DApp can inquire whether the final commit is made to the block in the blockchain for the corresponding 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, the devices and components described in the embodiments include, for example, processors, controllers, arithmetic logic units (ALUs), digital signal processors (micro signal processors), microcomputers, field programmable gate arrays (FPGAs). , A programmable logic unit (PLU), microprocessor, or any other device capable of executing and responding to instructions, may be implemented using one or more general purpose computers or special purpose computers. The processing device may perform an operating system (OS) and one or more software applications running on the operating system. In addition, the processing device may access, store, manipulate, process, and generate data in response to execution of the software. For convenience of understanding, a processing device may be described as one being used, but a person having ordinary skill in the art, the processing device may include a plurality of processing elements and / or a plurality of types of processing elements. It can be seen that may include. For example, the processing device may include a plurality of processors or a processor and a controller. In addition, other processing configurations, such as parallel processors, are possible.
소프트웨어는 컴퓨터 프로그램(computer program), 코드(code), 명령(instruction), 또는 이들 중 하나 이상의 조합을 포함할 수 있으며, 원하는 대로 동작하도록 처리 장치를 구성하거나 독립적으로 또는 결합적으로(collectively) 처리 장치를 명령할 수 있다. 소프트웨어 및/또는 데이터는, 처리 장치에 의하여 해석되거나 처리 장치에 명령 또는 데이터를 제공하기 위하여, 어떤 유형의 기계, 구성요소(component), 물리적 장치, 가상 장치(virtual equipment), 컴퓨터 저장 매체 또는 장치에 구체화(embody)될 수 있다. 소프트웨어는 네트워크로 연결된 컴퓨터 시스템 상에 분산되어서, 분산된 방법으로 저장되거나 실행될 수도 있다. 소프트웨어 및 데이터는 하나 이상의 컴퓨터 판독 가능 기록매체에 저장될 수 있다.The software may include a computer program, code, instruction, or a combination of one or more of these, and configure the processing device to operate as desired, or process independently or collectively You can command the device. Software and / or data may be interpreted by a processing device, or to provide instructions or data to a processing device, of any type of machine, component, physical device, virtual equipment, computer storage medium or device. Can be embodied in The software may be distributed over networked computer systems, and stored or executed in a distributed manner. Software and data may be stored on one or more computer-readable recording 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, or the like alone or in combination. The program instructions recorded on the medium may be specially designed and configured for the embodiments or may be known and usable by those skilled in 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, DVDs, and magnetic media such as floptical disks. -Hardware devices specifically 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 various recording means or storage means in the form of a combination of single or several hardware, and is not limited to a medium directly connected to a computer system, but may be distributed on a network. Examples of program instructions include high-level language codes that can be executed by a computer using an interpreter, etc., as well as machine language codes produced by a compiler.
이상과 같이 실시예들이 비록 한정된 실시예와 도면에 의해 설명되었으나, 해당 기술분야에서 통상의 지식을 가진 자라면 상기의 기재로부터 다양한 수정 및 변형이 가능하다. 예를 들어, 설명된 기술들이 설명된 방법과 다른 순서로 수행되거나, 및/또는 설명된 시스템, 구조, 장치, 회로 등의 구성요소들이 설명된 방법과 다른 형태로 결합 또는 조합되거나, 다른 구성요소 또는 균등물에 의하여 대치되거나 치환되더라도 적절한 결과가 달성될 수 있다.As described above, although the embodiments have been described by a limited embodiment and drawings, those skilled in the art can make various modifications and variations from the above description. For example, the described techniques are performed in a different order than the described method, and / or the components of the described system, structure, device, circuit, etc. are combined or combined in a different form from the described method, or other components Alternatively, even if replaced or substituted by equivalents, appropriate results can be achieved.
그러므로, 다른 구현들, 다른 실시예들 및 청구범위와 균등한 것들도 후술하는 청구범위의 범위에 속한다.Therefore, other implementations, other embodiments, and equivalents to the claims are also within the scope of the following claims.

Claims (16)

  1. 디앱(Decentralized Application)에서 요청한 트랜잭션을 수신하는 단계;Receiving a transaction requested by a decentralized application;
    상기 트랜잭션을 위한 트랜잭션 식별자를 생성하는 단계;Generating a transaction identifier for the transaction;
    상기 생성된 트랜잭션 식별자를 포함하는 응답을 상기 디앱으로 전송하는 단계; 및Transmitting a response including the generated transaction identifier to the D-App; And
    상기 생성된 트랜잭션 식별자가 부여된 트랜잭션이 큐(queue) 서버가 포함하는 큐에 저장된 후, 컨슈머(consumer) 서버에 의해 순차적으로 블록체인에 기록되도록, 상기 생성된 트랜잭션 식별자가 부여된 트랜잭션을 상기 큐 서버로 전송하는 단계After the transaction to which the generated transaction identifier is assigned is stored in the queue included in the queue server, the transaction to which the generated transaction identifier is assigned is queued so that the transaction is sequentially recorded on the blockchain by the consumer server. Steps to send to the server
    를 포함하는 트랜잭션 처리 방법.Transaction processing method comprising a.
  2. 제1항에 있어서,According to claim 1,
    상기 트랜잭션을 위한 트랜잭션 식별자를 생성하는 단계는,Generating a transaction identifier for the transaction,
    상기 트랜잭션에 대한 해시값을 트랜잭션 식별자로서 생성하는 것을 특징으로 하는 트랜잭션 처리 방법.A transaction processing method characterized by generating a hash value for the transaction as a transaction identifier.
  3. 제1항에 있어서,According to claim 1,
    사용자의 사용자 식별자 및 상기 사용자의 개인 키를 저장하는 단계; 및Storing the user's user identifier and the user's private key; And
    상기 생성된 트랜잭션 식별자를 상기 사용자의 개인 키로 서명하는 단계Signing the generated transaction identifier with the user's private key
    를 더 포함하고,Further comprising,
    상기 생성된 트랜잭션 식별자가 부여된 트랜잭션을 상기 큐 서버로 전송하는 단계는,The step of transmitting the generated transaction identifier-granted transaction to the queue server is:
    상기 사용자의 개인 키로 서명된 트랜잭션 식별자를 상기 트랜잭션과 함께 상기 큐 서버로 전송하는 것Sending a transaction identifier signed with the user's private key to the queue server along with the transaction
    을 특징으로 하는 트랜잭션 처리 방법.Transaction processing method characterized in that.
  4. 제1항에 있어서,According to claim 1,
    상기 큐 서버는 수신되는 트랜잭션을 순차적으로 큐에 저장하도록 구현되고,The queue server is implemented to sequentially store the received transactions in the queue,
    상기 컨슈머 서버는 큐에 저장된 트랜잭션이 순차적으로 블록체인에 기록되도록 트랜잭션을 블록체인 네트워크의 제1 노드들 중 하나로 전송하도록 구현되는 것The consumer server is implemented to transmit the transaction to one of the first nodes of the blockchain network so that the transactions stored in the queue are sequentially recorded on the blockchain.
    을 특징으로 하는 트랜잭션 처리 방법.Transaction processing method characterized in that.
  5. 제4항에 있어서,The method of claim 4,
    상기 블록체인 네트워크의 제1 노드들 각각은 상기 제1 노드들간의 합의를 통해 상기 컨슈머 서버로부터 수신되는 트랜잭션에 대한 블록을 생성하여 블록체인에 추가하도록 구현되는 것Each of the first nodes of the blockchain network is implemented to create a block for a transaction received from the consumer server through an agreement between the first nodes and add it to the blockchain.
    을 특징으로 하는 트랜잭션 처리 방법.Transaction processing method characterized in that.
  6. 제1항에 있어서,According to claim 1,
    상기 디앱으로 전송된 응답이 포함하는 트랜잭션 식별자를 통해 상기 블록체인에서 상기 디앱이 요청한 트랜잭션에 대해 블록에 최종 커밋(commit)이 이루어졌는지 여부가 조회되는 것을 특징으로 하는 트랜잭션 처리 방법.Transaction processing method characterized in that whether the final commit (commit) is made to the block for the transaction requested by the DApp in the blockchain through the transaction identifier included in the response sent to the DApp.
  7. 컴퓨터 장치와 결합되어 제1항 내지 제6항 중 어느 한 항의 방법을 컴퓨터 장치에 실행시키기 위해 컴퓨터 판독 가능한 기록매체에 저장된 컴퓨터 프로그램.A computer program stored in a computer-readable recording medium in combination with a computer device for executing the method of any one of claims 1 to 6 in a computer device.
  8. 제1항 내지 제6항 중 어느 한 항의 방법을 컴퓨터 장치에 실행시키기 위한 컴퓨터 프로그램이 기록되어 있는 것을 특징으로 하는 컴퓨터 판독 가능한 기록매체.A computer readable recording medium characterized in that a computer program for executing the method of any one of claims 1 to 6 is recorded on a computer device.
  9. 컴퓨터 장치에 있어서,In the computer device,
    컴퓨터에서 판독 가능한 명령을 실행하도록 구현되는 적어도 하나의 프로세서At least one processor implemented to execute computer readable instructions
    를 포함하고,Including,
    상기 적어도 하나의 프로세서에 의해,By the at least one processor,
    디앱(Decentralized Application)에서 요청한 트랜잭션을 수신하고,Decentralized Application receives the requested transaction,
    상기 트랜잭션을 위한 트랜잭션 식별자를 생성하고,Create a transaction identifier for the transaction,
    상기 생성된 트랜잭션 식별자를 포함하는 응답을 상기 디앱으로 전송하고,Send a response including the generated transaction identifier to the D-app,
    상기 생성된 트랜잭션 식별자가 부여된 트랜잭션이 큐(queue) 서버가 포함하는 큐에 저장된 후, 컨슈머(consumer) 서버에 의해 순차적으로 블록체인에 기록되도록, 상기 생성된 트랜잭션 식별자가 부여된 트랜잭션을 상기 큐 서버로 전송하는 것After the transaction to which the generated transaction identifier is assigned is stored in the queue included in the queue server, the transaction to which the generated transaction identifier is assigned is queued so that the transaction is sequentially recorded on the blockchain by the consumer server. Send to server
    을 특징으로 하는 컴퓨터 장치.Computer device characterized in that.
  10. 제9항에 있어서,The method of claim 9,
    상기 적어도 하나의 프로세서에 의해,By the at least one processor,
    상기 트랜잭션에 대한 해시값을 트랜잭션 식별자로서 생성하는 것Generating a hash value for the transaction as a transaction identifier
    을 특징으로 하는 컴퓨터 장치.Computer device characterized in that.
  11. 제9항에 있어서,The method of claim 9,
    상기 적어도 하나의 프로세서에 의해,By the at least one processor,
    사용자의 사용자 식별자 및 상기 사용자의 개인 키를 저장하고,Stores the user's user identifier and the user's private key,
    상기 생성된 트랜잭션 식별자를 상기 사용자의 개인 키로 서명하고,Sign 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
    을 특징으로 하는 컴퓨터 장치.Computer device characterized in that.
  12. 제9항에 있어서,The method of claim 9,
    상기 큐 서버는 수신되는 트랜잭션을 순차적으로 큐에 저장하도록 구현되고,The queue server is implemented to sequentially store the received transactions in the queue,
    상기 컨슈머 서버는 큐에 저장된 트랜잭션이 순차적으로 블록체인에 기록되도록 트랜잭션을 블록체인 네트워크의 제1 노드들 중 하나로 전송하도록 구현되는 것The consumer server is implemented to transmit the transaction to one of the first nodes of the blockchain network so that the transactions stored in the queue are sequentially recorded on the blockchain.
    을 특징으로 하는 컴퓨터 장치.Computer device characterized in that.
  13. 제12항에 있어서,The method of claim 12,
    상기 블록체인 네트워크의 제1 노드들 각각은 상기 제1 노드들간의 합의를 통해 상기 컨슈머 서버로부터 수신되는 트랜잭션에 대한 블록을 생성하여 블록체인에 추가하도록 구현되는 것Each of the first nodes of the blockchain network is implemented to create a block for a transaction received from the consumer server through an agreement between the first nodes and add it to the blockchain.
    을 특징으로 하는 컴퓨터 장치.Computer device characterized in that.
  14. 제9항에 있어서,The method of claim 9,
    상기 디앱으로 전송된 응답이 포함하는 트랜잭션 식별자를 통해 상기 블록체인에서 상기 디앱이 요청한 트랜잭션에 대해 블록에 최종 커밋(commit)이 이루어졌는지 여부가 조회되는 것Whether or not a final commit is made to the block for the transaction requested by the D-App in the blockchain is searched through the transaction identifier included in the response sent to the D-App.
    을 특징으로 하는 컴퓨터 장치.Computer device characterized in that.
  15. 디앱(Decentralized Application)에서 요청한 트랜잭션을 수신하여 상기 트랜잭션을 위한 트랜잭션 식별자를 생성하고, 상기 생성된 트랜잭션 식별자를 포함하는 응답을 상기 디앱으로 전송하고, 상기 생성된 트랜잭션 식별자가 부여된 트랜잭션을 전송하는 수신 서버;Receives a transaction requested by a decentralized application, generates a transaction identifier for the transaction, sends a response including the generated transaction identifier to the dApp, and transmits a transaction given the generated transaction identifier server;
    상기 생성된 트랜잭션 식별자가 부여된 트랜잭션을 수신하여 큐에 저장하는 큐(queue) 서버로; 및A queue server that receives and stores the generated transaction identifier in a queue; And
    상기 큐 서버의 큐에 저장된 트랜잭션을 순차적으로 블록체인에 기록하는 컨슈머(consumer) 서버A consumer server that sequentially records the transactions stored in the queue of the queue server on the blockchain
    를 포함하는 트랜잭션 처리 시스템.Transaction processing system comprising a.
  16. 제15항에 있어서,The method of claim 15,
    상기 컨슈머 서버는 상기 큐 서버의 큐에 저장된 트랜잭션이 순차적으로 블록체인에 기록되도록 트랜잭션을 블록체인 네트워크의 제1 노드들 중 하나로 전송하고,The consumer server transmits the transaction to one of the first nodes of the blockchain network so that the transactions stored in the queue of the queue server are sequentially recorded on the blockchain,
    상기 블록체인 네트워크의 제1 노드들 각각은 상기 제1 노드들간의 합의를 통해 상기 컨슈머 서버로부터 수신되는 트랜잭션에 대한 블록을 생성하여 블록체인에 추가하도록 구현되는 것Each of the first nodes of the blockchain network is implemented to create a block for a transaction received from the consumer server through an agreement between the first nodes and add it to the blockchain.
    을 특징으로 하는 트랜잭션 처리 시스템.Transaction processing system, characterized by.
PCT/KR2018/013315 2018-11-05 2018-11-05 Method and system for efficiently processing, in block-chain, high transaction throughput required by dapp WO2020096072A1 (en)

Priority Applications (3)

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
JP2021523193A JP7339335B2 (en) 2018-11-05 2018-11-05 A method and system for efficient blockchain processing of high transaction processing volume required by DApps
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

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 (1)

Publication Number Publication Date
WO2020096072A1 true WO2020096072A1 (en) 2020-05-14

Family

ID=70612426

Family Applications (1)

Application Number Title Priority Date Filing Date
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

Country Status (3)

Country Link
JP (1) JP7339335B2 (en)
KR (1) KR102553877B1 (en)
WO (1) WO2020096072A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112884579A (en) * 2021-02-08 2021-06-01 京东数科海益信息科技有限公司 Block chain transaction consensus method and device
KR20220066466A (en) * 2020-11-16 2022-05-24 두나무 주식회사 Method and apparatus for managing document based on blockchain network
US20220179841A1 (en) * 2020-12-07 2022-06-09 Deixis, PBC Heterogeneous integration with distributed ledger blockchain services

Citations (5)

* Cited by examiner, † Cited by third party
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
KR20180085570A (en) * 2017-01-19 2018-07-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
US20180240114A1 (en) * 2017-02-22 2018-08-23 Alibaba Group Holding Limited Transaction verification in a consensus network

Family Cites Families (5)

* Cited by examiner, † Cited by third party
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
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
KR20180085570A (en) * 2017-01-19 2018-07-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
US20180240114A1 (en) * 2017-02-22 2018-08-23 Alibaba Group Holding Limited Transaction verification in a consensus network

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20220066466A (en) * 2020-11-16 2022-05-24 두나무 주식회사 Method and apparatus for managing document based on blockchain network
KR102474866B1 (en) 2020-11-16 2022-12-05 두나무 주식회사 Method and apparatus for managing document based on blockchain network
KR20230002125A (en) * 2020-11-16 2023-01-05 두나무 주식회사 Method and apparatus for managing document based on blockchain network
KR102656323B1 (en) 2020-11-16 2024-04-11 두나무 주식회사 Method and apparatus for managing document based on blockchain network
US20220179841A1 (en) * 2020-12-07 2022-06-09 Deixis, PBC Heterogeneous integration with distributed ledger blockchain services
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

Also Published As

Publication number Publication date
JP2022520141A (en) 2022-03-29
KR102553877B1 (en) 2023-07-10
KR20210071962A (en) 2021-06-16
JP7339335B2 (en) 2023-09-05

Similar Documents

Publication Publication Date Title
US10601911B2 (en) Partitioning of a blockchain ledger
JP7272844B2 (en) Method and system for recognizing message contents and providing remittance function in messenger equipped with remittance function
US10165058B2 (en) Dynamic local function binding apparatus and method
KR102118178B1 (en) Multiple transaction parallel processing method and system for blockchain
CN101005507A (en) System and method for host-to-host communication
WO2020096072A1 (en) Method and system for efficiently processing, in block-chain, high transaction throughput required by dapp
WO2020213763A1 (en) Method and system for verifying block-chain data stored in storage having different format from block-chain
US10616003B2 (en) Methods and systems for service interworking between servers using different user identification systems
JP6758139B2 (en) Systems and methods for efficient call processing
CN110069346A (en) Resource share method, device, electronic equipment between multi-process
CN112118115A (en) Method, computer readable medium and computer device for automatically generating chat room
KR102646276B1 (en) Method and system to charge the talk time of video call fairly that introduces new person
JP7101292B2 (en) Payment methods and systems
US20220058693A1 (en) Method, system, and non-transitory computer readable record medium for providing chatroom embedded content
CN108111374A (en) Method, apparatus, equipment and the computer storage media of synchronizer list
CN111580883A (en) Application program starting method, device, computer system and medium
KR20200084177A (en) Transaction processing system and method enabling extension of block chain
WO2019172463A1 (en) Method, system, and non-transitory computer-readable recording medium for recommending profile photo
US20210099503A1 (en) Method, system, and non-transitory computer readable record medium for processing chatroom based on usage
WO2021125399A1 (en) Escrow transaction method and system using smart contract in blockchain
KR20210049362A (en) Data analysis service method and data analysis service system using the method
WO2018030553A1 (en) Method and system for providing automatic response function on messenger
WO2024090845A1 (en) Method for authenticating ownership of blockchain wallet without signature function, and system using same
WO2023239080A1 (en) Virtual asset transfer method for preventing incorrect deposit
KR101721379B1 (en) Method and system for efficient call processing

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18939257

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021523193

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18939257

Country of ref document: EP

Kind code of ref document: A1