KR102179160B1 - System and method to prove message for communication between blockchains - Google Patents
System and method to prove message for communication between blockchains Download PDFInfo
- Publication number
- KR102179160B1 KR102179160B1 KR1020200076623A KR20200076623A KR102179160B1 KR 102179160 B1 KR102179160 B1 KR 102179160B1 KR 1020200076623 A KR1020200076623 A KR 1020200076623A KR 20200076623 A KR20200076623 A KR 20200076623A KR 102179160 B1 KR102179160 B1 KR 102179160B1
- Authority
- KR
- South Korea
- Prior art keywords
- message
- block
- blockchain
- relay
- communication
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3236—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
- H04L9/3242—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving keyed hash functions, e.g. message authentication codes [MACs], CBC-MAC or HMAC
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/06—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
- H04L9/0643—Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0816—Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
- H04L9/0819—Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
- H04L9/083—Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) involving central third party, e.g. key distribution center [KDC] or trusted third party [TTP]
- H04L9/0833—Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) involving central third party, e.g. key distribution center [KDC] or trusted third party [TTP] involving conference or group key
- H04L9/0836—Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) involving central third party, e.g. key distribution center [KDC] or trusted third party [TTP] involving conference or group key using tree structure or hierarchical structure
-
- H04L2209/38—
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
Abstract
Description
이하의 일 실시 예들은 블록체인 네트워크에 관한 것으로, 서로 다른 블록체인 간의 통신과 통신하는 메시지의 증명을 제공하는 기술에 관한 것이다.The following embodiments relate to a blockchain network, and to a technology for providing proof of communication and communication messages between different blockchains.
블록체인은 공공 거래 장부라고도 부르며 대표적으로 가상 화폐로 거래할 때 발생할 수 있는 해킹을 막는 기술이다. 기존 금융 회사의 경우 중앙 집중형 서버에 거래 기록을 보관하는 반면, 블록체인은 블록체인 네트워크에 참여한 사용자 모두의 공동 작업을 통하여 블록을 생성하며, 생성된 블록을 모든 참여자가 검증하고 이를 승인함으로써 모두가 동일한 블록을 보유하는 것과 일부 사용자에 의해 데이터 위조를 막는 방식을 사용한다. 블록체인은 대표적인 온라인 가상 화폐인 비트코인에 적용되어 있다. 비트코인은 누구나 열람할 수 있는 장부에 거래 내역을 투명하게 기록하며, 비트코인을 사용하는 여러 컴퓨터가 이 기록을 검증하여 해킹을 막는다Blockchain is also called a public transaction ledger, and is a technology that prevents hacking that can occur when trading with virtual currency. In the case of existing financial companies, transaction records are stored on a centralized server, whereas blockchain generates blocks through collaboration between all users participating in the blockchain network, and all participants verify and approve the generated blocks. It uses a method of holding the same block and preventing data falsification by some users. Blockchain is applied to Bitcoin, a representative online virtual currency. Bitcoin transparently records transaction details in a ledger that anyone can read, and several computers using Bitcoin verify this record to prevent hacking.
블록체인 기반으로 금융거래, 부동산 계약, 공증 등 다양한 형태의 계약을 체결하고 이행하기 위해서 스마트 컨트랙트(Smart Contract)라는 개념이 제안되었다.The concept of a smart contract was proposed in order to sign and implement various types of contracts such as financial transactions, real estate contracts, and notarizations based on blockchain .
이더리움(Ethereum)은 블록체인 기술 기반의 스마트 컨트랙트 플랫폼으로, 이더리움에서는 금융거래뿐만 아니라 부동산거래, 공증 등의 가능한 모든 형태의 계약이 가능하다.Ethereum is a smart contract platform based on blockchain technology. In Ethereum, not only financial transactions but also real estate transactions, notarization, and other possible types of contracts are possible.
하지만, 블록체인은 하나의 블록체인 네트워크 내에서 수행되며, 다른 종류의 블록체인과 서로 통신을 수행함을 언급하고 있지 않다.However, it does not mention that blockchains are executed within one blockchain network and communicate with other types of blockchains.
서로 다른 블록체인 간의 통신이 가능해지면 다양한 서비스가 개발될 수 있을 것이므로, 서로 다른 블록체인 간에 메시지를 송수신할 수 있는 새로운 통신 체계가 요구된다.When communication between different blockchains becomes possible, various services can be developed, so a new communication system capable of sending and receiving messages between different blockchains is required.
또한, 서로 다른 블록체인 간에 메시지를 송수신할 때에는 메시지를 송신한 블록체인이 맞는지 검증할 수 있는 기술도 요구된다.In addition, when sending and receiving messages between different blockchains, a technology that can verify that the blockchain that sent the message is correct is also required.
본 발명은 서로 다른 블록체인 간의 통신을 제공하고, 통신하는 메시지의 증명을 제공하는 블록체인 통신 시스템 및 그 방법을 제공하는 것을 목적으로 한다.An object of the present invention is to provide a blockchain communication system and a method for providing communication between different blockchains and providing proof of messages to be communicated.
본 발명의 일 실시 예에 따른 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법은, 제1 블록체인 네트워크에서 제2 블록체인 네트워크로 전송하는 메시지를 수신하면, 상기 메시지와 상기 메시지의 서비스 정보를 포함하는 서비스 메시지를 생성하고, 상기 서비스 메시지를 포함하는 블록체인 통신 메시지를 생성하는 제1 단계; 상기 제1 블록체인 네트워크를 모니터링 하는 릴레이에서 상기 블록체인 통신 메시지의 생성을 감지하면, 상기 메시지가 포함된 블록을 검증할 수 있는 블록 검증 정보와 상기 메시지를 검증할 수 있는 메시지 검증 정보를 획득하고, 상기 블록체인 통신 메시지, 상기 블록 검증 정보 및 상기 메시지 검증 정보를 포함하는 릴레이 메시지를 생성하고, 상기 릴레이 메시지를 상기 메시지의 목적지를 포함하는 상기 제2 블록체인 네트워크로 송신하는 제2 단계; 및 상기 제2 블록체인 네트워크에서 상기 릴레이 메시지를 수신하면, 상기 릴레이 메시지에 포함된 상기 블록 검증 정보 및 상기 메시지 검증 정보를 이용해서 상기 릴레이 메시지를 검증하고, 상기 릴레이 메시지에 포함된 메시지를 목적지로 송신하는 제3 단계를 포함한다.A method of verifying a message for inter-blockchain communication in a blockchain communication system according to an embodiment of the present invention is, when a message transmitted from a first blockchain network to a second blockchain network is received, the message and the message A first step of generating a service message including service information of, and generating a blockchain communication message including the service message; When the relay monitoring the first blockchain network detects the creation of the block chain communication message, block verification information capable of verifying the block containing the message and message verification information capable of verifying the message are obtained, and A second step of generating a relay message including the block chain communication message, the block verification information, and the message verification information, and transmitting the relay message to the second block chain network including a destination of the message; And when the relay message is received in the second blockchain network, the relay message is verified using the block verification information and the message verification information included in the relay message, and the message included in the relay message is used as a destination. And a third step of transmitting.
이때, 상기 제2 단계는, 상기 릴레이에서 상기 블록체인 통신 메시지를 포함하는 블록체인 이벤트 메시지의 생성을 감지하면, 상기 릴레이에서 관리하는 제1 블록체인의 블록 높이(K)와 상기 메시지가 포함된 블록의 블록 높이(N)를 비교하는 단계; 비교 결과, 상기 메시지가 포함된 블록의 블록 높이(N)가 상기 릴레이에서 관리하는 제1 블록체인의 블록 높이(K) 보다 큰 경우와 상기 메시지가 포함된 블록의 블록 높이(N)가 상기 릴레이에서 관리하는 제1 블록체인의 블록 높이(K) 보다 작거나 같은 경우에 따라 상기 블록 검증 정보 및 상기 메시지 검증 정보를 획득하는 단계; 상기 블록체인 통신 메시지, 상기 블록 검증 정보 및 상기 메시지 검증 정보를 포함하는 상기 릴레이 메시지를 생성하는 단계; 및 상기 릴레이에서 상기 릴레이 메시지를 포함하는 릴레이 메시지 처리 요청 메시지를 생성하여 상기 제2 블록체인 네트워크의 제2 메시지 제어 스마트 컨트랙트로 송신하는 단계를 포함할 수 있다.In this case, in the second step, when the relay detects the generation of a block chain event message including the block chain communication message, the block height (K) of the first block chain managed by the relay and the message are included. Comparing the block height (N) of the blocks; As a result of comparison, when the block height (N) of the block containing the message is greater than the block height (K) of the first block chain managed by the relay and the block height (N) of the block containing the message is the relay Acquiring the block verification information and the message verification information according to a case less than or equal to the block height (K) of the first block chain managed by Generating the relay message including the block chain communication message, the block verification information, and the message verification information; And generating a relay message processing request message including the relay message in the relay and transmitting it to a second message control smart contract of the second blockchain network.
이때, 상기 메시지가 포함된 블록의 블록 높이(N)가 상기 릴레이에서 관리하는 제1 블록체인의 블록 높이(K) 보다 큰 경우, 상기 블록 검증 정보 및 상기 메시지 검증 정보를 획득하는 단계는, 상기 릴레이에서 관리하는 제1 블록체인의 블록 높이(K) 보다 크고 상기 메시지가 포함된 블록의 블록 높이(N) 까지의 새로운 모든 블록 각각에 대해서 블록 헤더, 블록에 대한 검증자의 투표 정보, 다음 블록을 검증할 검증자의 정보를 상기 블록 검증 정보로 획득하는 단계; 상기 메시지의 존재를 증명할 수 있는 정보를 상기 메시지 검증 정보로 획득하는 단계; 및 상기 릴레이에서 관리하는 제1 블록체인의 블록 높이(K) 보다 크고 상기 메시지가 포함된 블록의 블록 높이(N) 까지의 새로운 모든 블록을 제1 블록체인의 머클 트리에 적용하는 단계를 포함할 수 있다.At this time, when the block height (N) of the block containing the message is greater than the block height (K) of the first block chain managed by the relay, obtaining the block verification information and the message verification information comprises: For each new block that is greater than the block height (K) of the first block chain managed by the relay and up to the block height (N) of the block containing the message, the block header, the validator's vote information for the block, and the next block are Acquiring information of a verifier to be verified as the block verification information; Obtaining information that can prove the existence of the message as the message verification information; And applying all new blocks that are larger than the block height (K) of the first block chain managed by the relay and up to the block height (N) of the block containing the message to the Merkle tree of the first block chain. I can.
이때, 상기 제1 블록체인의 머클 트리는, 상기 제1 블록체인의 블록의 블록 헤더를 해쉬한 값을 리프 노드로 하는 2진 트리일 수 있다.In this case, the Merkle tree of the first blockchain may be a binary tree in which a value obtained by hashing the block header of the block of the first blockchain as a leaf node.
이때, 상기 메시지가 포함된 블록의 블록 높이(N)가 상기 릴레이에서 관리하는 제1 블록체인의 블록 높이(K) 보다 작거나 같은 경우, 상기 블록 검증 정보 및 상기 메시지 검증 정보를 획득하는 단계는, 상기 메시지가 포함된 블록의 블록 헤더 및 상기 제1 블록체인의 머클 트리를 이용한 상기 메시지가 포함된 블록의 존재를 증명할 수 있는 정보를 상기 블록 검증 정보로 획득하는 단계; 및 상기 메시지의 존재를 증명할 수 있는 정보를 상기 메시지 검증 정보로 획득하는 단계를 포함할 수 있다.At this time, when the block height (N) of the block containing the message is less than or equal to the block height (K) of the first block chain managed by the relay, obtaining the block verification information and the message verification information And obtaining, as the block verification information, information proving the existence of the block including the message using the block header of the block including the message and the Merkle tree of the first block chain; And obtaining information that can prove the existence of the message as the message verification information.
이때, 상기 제1 블록체인의 머클 트리를 이용한 상기 메시지가 포함된 블록의 존재를 증명할 수 있는 정보는, 상기 메시지가 포함된 블록의 블록 헤더를 이용해서 상기 제1 블록체인의 머클 트리의 루트 값을 생성하는데 필요한 정보일 수 있다.At this time, the information that can prove the existence of the block containing the message using the Merkle tree of the first blockchain is the root value of the Merkle tree of the first blockchain using the block header of the block containing the message. It may be information necessary to create
이때, 상기 릴레이 메시지 처리 요청 메시지는, 상기 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스 및 상기 릴레이 메시지를 포함할 수 있다.In this case, the relay message processing request message may include a block chain address of the message control smart contract that generated the block chain communication message and the relay message.
이때, 상기 제3 단계는, 상기 제2 블록체인 네트워크의 제2 메시지 제어 스마트 컨트랙트에서 상기 릴레이로부터 상기 릴레이 메시지를 포함하는 릴레이 메시지 처리 요청 메시지를 수신하는 단계; 상기 릴레이 메시지를 포함하는 릴레이 메시지 검증 요청 메시지를 생성하여 상기 제2 블록체인 네트워크의 제2 메시지 검증 스마트 컨트랙트로 송신하는 단계; 상기 제2 블록체인 네트워크의 상기 제2 메시지 검증 스마트 컨트랙트에서 상기 릴레이 메시지 검증 요청 메시지를 수신하면, 상기 릴레이 메시지에 포함된 상기 블록 검증 정보 및 상기 메시지 검증 정보를 검증하는 단계; 상기 제2 블록체인 네트워크의 상기 제2 메시지 제어 스마트 컨트랙트에서 상기 제2 메시지 검증 스마트 컨트랙트를 통해서 상기 릴레이 메시지의 검증에 성공함을 확인하면, 상기 릴레이 메시지에 포함된 상기 블록체인 통신 메시지를 확인하고, 상기 블록체인 통신 메시지에 포함된 서비스 메시지를 확인하고, 상기 서비스 메시지를 포함하는 서비스 메시지 처리 요청 메시지를 생성하여 상기 제2 블록체인 네트워크의 제2 서비스 제어 스마트 컨트랙트로 송신하는 단계; 및 상기 제2 블록체인 네트워크의 상기 제2 서비스 제어 스마트 컨트랙트에서 상기 서비스 메시지 처리 요청 메시지를 수신하면, 상기 서비스 메시지 처리 요청 메시지에 포함된 상기 서비스 메시지를 확인하여 상기 서비스 메시지의 목적지로 상기 서비스 메시지에 포함된 상기 메시지를 송신하는 단계를 포함할 수 있다.In this case, the third step may include: receiving a relay message processing request message including the relay message from the relay in a second message control smart contract of the second blockchain network; Generating a relay message verification request message including the relay message and transmitting it to a second message verification smart contract of the second blockchain network; Verifying the block verification information and the message verification information included in the relay message upon receiving the relay message verification request message from the second message verification smart contract of the second blockchain network; If the second message control smart contract of the second blockchain network confirms that the verification of the relay message is successful through the second message verification smart contract, the blockchain communication message included in the relay message is checked, and And checking a service message included in the block chain communication message, generating a service message processing request message including the service message, and transmitting it to a second service control smart contract of the second block chain network; And when receiving the service message processing request message from the second service control smart contract of the second blockchain network, the service message as a destination of the service message by checking the service message included in the service message processing request message. It may include the step of transmitting the message included in the.
이때, 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법은, 상기 제2 블록체인 네트워크의 상기 제2 메시지 검증 스마트 컨트랙트에서 이전 릴레이 메시지를 처리하는 과정에서 상기 제1 블록체인 네트워크로부터 수신한 블록 중에서 블록 높이가 가장 큰 블록이 L번째 블록일 때, L번째 블록의 블록 헤더, 상기 L번째 블록 헤더가 적용된 제1 블록체인의 머클 트리의 루트 값 및 상기 L번째 블록의 다음 블록의 검증자 정보를 저장하는 단계를 더 포함할 수 있다.In this case, the method of verifying a message for inter-blockchain communication in a blockchain communication system is from the first blockchain network in the process of processing a previous relay message in the second message verification smart contract of the second blockchain network. When the block with the largest block height among the received blocks is the L-th block, the block header of the L-th block, the root value of the Merkle tree of the first blockchain to which the L-th block header is applied, and the next block of the L-th block It may further include storing the verifier information.
이때, 상기 제2 블록체인 네트워크의 상기 제2 메시지 검증 스마트 컨트랙트에서 상기 릴레이 메시지 검증 요청 메시지를 수신하면, 상기 릴레이 메시지에 포함된 상기 블록 검증 정보 및 상기 메시지 검증 정보를 검증하는 단계는, 상기 릴레이 메시지 검증 요청 메시지에 포함된 상기 메시지에 대해서 상기 메시지가 포함된 블록의 블록 높이(K)가 상기 제2 메시지 검증 스마트 컨트랙트에 저장된 상기 L번째 블록 헤더의 블록 높이 보다 크면, L+1번째 블록에서 K번째 블록 까지의 모든 블록 각각에 대해서 블록 헤더, 블록에 대한 검증자의 투표 정보, 다음 블록을 검증할 검증자의 정보를 상기 블록 검증 정보로서 수신하고, 상기 메시지의 존재를 증명할 수 있는 정보를 상기 메시지 검증 정보로서 수신하는 단계; 상기 저장된 L번째 블록의 블록 헤더, 상기 저장된 L번째 블록의 다음 블록의 검증자 정보, 상기 수신한 블록에 대한 검증자의 투표정보, 상기 수신한 다음 블록을 검증할 검증자의 정보를 이용해서 블록 높이의 순서대로 상기 수신한 블록 헤더를 검증하여 블록의 존재를 검증하는 단계; 검증된 블록에 해당하는 블록 헤더를 블록 높이의 순서대로 적용하여 상기 제1 블록체인의 머클 트리의 루트 값을 갱신하는 단계; 및 상기 메시지가 포함된 블록의 블록헤더, 상기 메시지 및 상기 메시지 검증 정보를 이용해서 상기 메시지의 존재를 검증하는 단계를 포함할 수 있다.At this time, when receiving the relay message verification request message from the second message verification smart contract of the second blockchain network, verifying the block verification information and the message verification information included in the relay message may include: For the message included in the message verification request message, if the block height (K) of the block containing the message is greater than the block height of the Lth block header stored in the second message verification smart contract, in the L+1th block For each block up to the K-th block, the block header, the validator's voting information for the block, and the information of the validator who will verify the next block are received as the block verification information, and information that can prove the existence of the message is the message. Receiving as verification information; The block height of the block using the block header of the stored L-th block, validator information of the next block of the stored L-th block, voting information of a validator for the received block, and information of a validator to verify the next received block. Verifying the existence of a block by sequentially verifying the received block header; Updating a root value of the Merkle tree of the first blockchain by applying block headers corresponding to the verified blocks in the order of block heights; And verifying the existence of the message using a block header of a block including the message, the message, and the message verification information.
이때, 상기 제2 블록체인 네트워크의 상기 제2 메시지 검증 스마트 컨트랙트에서 상기 릴레이 메시지 검증 요청 메시지를 수신하면, 상기 릴레이 메시지에 포함된 상기 블록 검증 정보 및 상기 메시지 검증 정보를 검증하는 단계는, 상기 릴레이 메시지 검증 요청 메시지에 포함된 상기 메시지에 대해서 상기 메시지가 포함된 블록의 블록 높이(K)가 상기 제2 메시지 검증 스마트 컨트랙트에 저장된 상기 L번째 블록 헤더의 블록 높이 보다 작거나 같으면, 상기 메시지가 포함된 블록의 블록 헤더 및 상기 메시지가 포함된 블록의 존재를 증명할 수 있는 정보를 상기 블록 검증 정보로서 수신하고, 상기 메시지의 존재를 증명할 수 있는 정보를 상기 메시지 검증 정보로서 수신하는 단계; 상기 메시지가 포함된 블록의 블록 헤더 및 상기 메시지가 포함된 블록의 존재를 증명할 수 있는 정보를 이용해서 제1 블록체인의 머클 트리의 루트 값을 계산하고, 계산된 제1 블록체인의 머클 트리의 루트 값과 저장된 제1 블록체인의 머클 트리의 루트 값이 동일한지 비교해서 상기 메시지가 포함된 블록의 존재를 검증하는 단계; 및 상기 메시지가 포함된 블록의 블록헤더, 상기 메시지 및 상기 메시지 검증 정보를 이용해서 상기 메시지의 존재를 검증하는 단계를 포함할 수 있다.At this time, when receiving the relay message verification request message from the second message verification smart contract of the second blockchain network, verifying the block verification information and the message verification information included in the relay message may include: For the message included in the message verification request message, if the block height (K) of the block containing the message is less than or equal to the block height of the L-th block header stored in the second message verification smart contract, the message is included. Receiving, as the block verification information, a block header of the blocked block and information proving the existence of a block including the message, and receiving information proving the existence of the message as the message verification information; The root value of the Merkle tree of the first blockchain is calculated using the block header of the block containing the message and information that can prove the existence of the block containing the message, and the calculated Merkle tree of the first blockchain is Comparing whether the root value and the root value of the Merkle tree of the stored first block chain are the same to verify the existence of the block including the message; And verifying the existence of the message using a block header of a block including the message, the message, and the message verification information.
이때, 상기 메시지가 포함된 블록의 블록 헤더 및 상기 메시지가 포함된 블록의 존재를 증명할 수 있는 정보를 이용해서 제1 블록체인의 머클 트리의 루트 값을 계산하고, 계산된 제1 블록체인의 머클 트리의 루트 값과 저장된 제1 블록체인의 머클 트리의 루트 값이 동일한지 비교해서 상기 메시지가 포함된 블록의 존재를 검증하는 단계는, 상기 저장된 제1 블록체인의 머클 트리의 루트 값이 하나인 경우, 저장된 하나의 루트 값과 상기 계산된 제1 블록체인의 머클 트리의 루트 값이 동일하면 검증에 성공하였다고 판단하고, 상기 저장된 제1 블록체인의 머클 트리의 루트 값이 복수개인 경우, 저장된 복수개의 루트 값 중 하나와 상기 계산된 제1 블록체인의 머클 트리의 루트 값이 동일하면 검증에 성공하였다고 판단할 수 있다.At this time, the root value of the Merkle tree of the first blockchain is calculated using the block header of the block containing the message and information that can prove the existence of the block containing the message, and the calculated Merkle of the first blockchain The step of verifying the existence of the block containing the message by comparing whether the root value of the tree and the root value of the Merkle tree of the stored first block chain are the same may include a single root value of the Merkle tree of the stored first blockchain. In the case, if one stored root value and the calculated root value of the Merkle tree of the first blockchain are the same, it is determined that verification has been successful, and if the stored root value of the Merkle tree of the first blockchain is plural, the stored plurality If one of the root values and the calculated root value of the Merkle tree of the first blockchain are the same, it can be determined that the verification has been successful.
이때, 상기 릴레이 메시지 검증 요청 메시지는, 상기 릴레이 메시지 처리 요청 메시지를 수신하는 메시지 제어 스마트 컨트랙트의 블록체인 어드레스, 상기 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스, 시퀀스 정보, 및 상기 릴레이 메시지를 포함할 수 있다.In this case, the relay message verification request message includes the block chain address of the message control smart contract receiving the relay message processing request message, the block chain address of the message control smart contract that generated the block chain communication message, sequence information, and the May contain relay messages.
이때, 상기 서비스 메시지 처리 요청 메시지는, 상기 서비스 메시지를 송신한 블록체인 네트워크의 네트워크 어드레스, 상기 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류, 상기 서비스 메시지 처리 요청 메시지를 식별할 수 있는 시리얼 넘버, 및 상기 서비스 메시지를 포함할 수 있다.In this case, the service message processing request message includes a network address of the blockchain network that transmitted the service message, a service type identifying a service type of the service message, a serial number identifying the service message processing request message, And the service message.
이때, 상기 서비스 메시지는, 상기 메시지를 수신하는 계정의 블록체인 어드레스인 목적지 어드레스를 포함할 수 있다.In this case, the service message may include a destination address, which is a block chain address of an account receiving the message.
이때, 상기 서비스 메시지는, 상기 메시지의 종류를 식별하는 메시지 종류, 서비스 종류와 서비스 종류의 세부 사항정보를 포함하는 서비스 정보, 상기 메시지를 송신하는 계정의 블록체인 어드레스인 출발지 어드레스, 및 상기 메시지로 송신하고자 하는 데이터 중에서 적어도 하나를 더 포함할 수 있다.At this time, the service message includes a message type identifying the type of the message, service information including detailed information of the service type and service type, a source address that is a block chain address of the account sending the message, and the message. At least one of the data to be transmitted may be further included.
이때, 상기 블록체인 어드레스는, 블록체인 통신을 위한 어드레스임을 나타내는 통신 규약 식별 정보, 블록체인 네트워크의 종류를 구분하는 블록체인 종류 정보, 동일한 블록체인 네트워크의 종류에서 블록체인을 식별할 수 있는 블록체인 식별 정보, 및 블록체인 네트워크의 특정 계정을 식별할 수 있는 계정 식별 정보를 포함할 수 있다.At this time, the block chain address is communication protocol identification information indicating that it is an address for block chain communication, block chain type information that identifies the type of the block chain network, and a block chain that can identify the block chain from the same type of the block chain network. Identification information, and account identification information that can identify a specific account of the blockchain network may be included.
이때, 상기 블록체인 통신 메시지는, 상기 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스인 출발지 어드레스, 상기 블록체인 통신 메시지를 수신하는 메시지 제어 스마트 컨트랙트의 블록체인 어드레스인 목적지 어드레스, 상기 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류, 상기 블록체인 통신 메시지를 식별할 수 있는 시리얼 넘버, 및 상기 서비스 메시지를 포함할 수 있다.In this case, the block chain communication message includes a source address, which is a block chain address of the message control smart contract that generated the block chain communication message, a destination address, which is a block chain address of the message control smart contract that receives the block chain communication message. The service message may include a service type identifying a service type, a serial number identifying the blockchain communication message, and the service message.
이때, 상기 릴레이 메시지는, 동일한 네트워크 어드레스를 가진 적어도 하나의 상기 블록체인 통신 메시지, 및 상기 블록체인 통신 메시지의 상기 검증 정보를 포함할 수 있다.In this case, the relay message may include at least one block chain communication message having the same network address, and the verification information of the block chain communication message.
이때, 상기 제1 단계는, 상기 제1 블록체인 네트워크의 제1 서비스 제어 스마트 컨트랙트에서 상기 제2 블록체인 네트워크로 전송하는 상기 메시지를 수신하는 단계; 상기 제1 블록체인 네트워크의 상기 제1 서비스 제어 스마트 컨트랙트에서 상기 수신한 메시지를 이용해서 상기 서비스 메시지를 생성하고, 상기 서비스 메시지를 포함하는 송신 서비스 메시지를 생성하고, 상기 송신 서비스 메시지를 상기 제1 블록체인 네트워크의 제1 메시지 제어 스마트 컨트랙트로 송신하는 단계; 및 상기 제1 블록체인 네트워크의 상기 제1 메시지 제어 스마트 컨트랙트에서 상기 송신 서비스 메시지를 수신하면, 상기 서비스 메시지를 포함하는 상기 블록체인 통신 메시지를 생성하고, 상기 블록체인 통신 메시지를 포함하는 블록체인 이벤트 메시지를 생성하는 단계를 포함할 수 있다.In this case, the first step may include receiving the message transmitted from the first service control smart contract of the first blockchain network to the second blockchain network; The first service control smart contract of the first blockchain network generates the service message using the received message, generates a transmission service message including the service message, and sends the transmission service message to the first Transmitting to a first message control smart contract of a blockchain network; And when the transmission service message is received from the first message control smart contract of the first blockchain network, the block chain communication message including the service message is generated, and a block chain event including the block chain communication message. It may include generating a message.
이때, 상기 송신 서비스 메시지는, 상기 서비스 메시지를 수신하는 블록체인 네트워크의 네트워크 어드레스에 관한 정보인 목적지 네트워크 어드레스, 상기 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류, 상기 송신 서비스 메시지를 식별할 수 있는 시리얼 넘버, 및 상기 서비스 메시지를 포함할 수 있다.In this case, the transmission service message may include a destination network address, which is information on a network address of a blockchain network receiving the service message, a service type identifying the service type of the service message, and the transmission service message. It may include a serial number and the service message.
이때, 상기 블록체인 이벤트 메시지는, 상기 블록체인 통신 메시지가 전달되는 다음 블록체인 네트워크의 메시지 제어 스마트 컨트랙트에 관한 블록체인 어드레스에 관한 정보인 다음 목적지 어드레스, 상기 블록체인 이벤트 메시지의 순서를 확인할 수 있는 시퀀스 정보, 및 상기 블록체인 통신 메시지를 포함할 수 있다.At this time, the blockchain event message is a next destination address, which is information about a blockchain address for a message control smart contract of the next blockchain network to which the blockchain communication message is delivered, and the sequence of the blockchain event message can be checked. It may include sequence information, and the blockchain communication message.
이때, 상기 제1 단계는, 상기 제1 블록체인 네트워크의 상기 제1 메시지 제어 스마트 컨트랙트에서 상기 블록체인 통신 메시지를 상기 제1 블록체인 네트워크의 제1 블록체인에 추가하는 단계를 더 포함할 수 있다.In this case, the first step may further include adding the block chain communication message to the first block chain of the first block chain network in the first message control smart contract of the first block chain network. .
이때, 상기 제1 단계는, 상기 블록체인 통신 메시지를 생성에 실패하면, 에러 메시지를 생성하여 상기 제1 블록체인 네트워크의 제1 블록체인에 추가하는 단계를 더 포함할 수 있다.In this case, the first step may further include generating an error message and adding it to the first block chain of the first block chain network, when generating the block chain communication message fails.
본 발명의 일 실시 예에 따른 블록체인 간의 통신을 위해 메시지를 증명하는 블록체인 통신 시스템은, 제2 블록체인 네트워크로 전송하는 메시지를 수신하면, 상기 메시지와 상기 메시지의 서비스 정보를 포함하는 서비스 메시지를 생성하고, 상기 서비스 메시지를 포함하는 블록체인 통신 메시지를 생성하는 제1 블록체인 네트워크; 상기 제1 블록체인 네트워크를 모니터링 하다가 상기 블록체인 통신 메시지의 생성을 감지하면, 상기 메시지가 포함된 블록을 검증할 수 있는 블록 검증 정보와 상기 메시지를 검증할 수 있는 메시지 검증 정보를 획득하고, 상기 블록체인 통신 메시지, 상기 블록 검증 정보 및 상기 메시지 검증 정보를 포함하는 릴레이 메시지를 생성하고, 상기 릴레이 메시지를 상기 메시지의 목적지를 포함하는 상기 제2 블록체인 네트워크로 송신하는 릴레이; 및 상기 릴레이 메시지를 수신하면, 상기 릴레이 메시지에 포함된 상기 블록 검증 정보 및 상기 메시지 검증 정보를 이용해서 상기 릴레이 메시지를 검증하고, 상기 릴레이 메시지에 포함된 메시지를 목적지로 송신하는 상기 제2 블록체인 네트워크를 포함한다.Blockchain communication system for verifying a message for communication between block chains according to an embodiment of the present invention, upon receiving a message transmitted to a second blockchain network, a service message including the message and service information of the message And a first blockchain network for generating a blockchain communication message including the service message; When the creation of the block chain communication message is detected while monitoring the first blockchain network, block verification information capable of verifying the block containing the message and message verification information capable of verifying the message are obtained, and the A relay generating a relay message including a block chain communication message, the block verification information, and the message verification information, and transmitting the relay message to the second block chain network including a destination of the message; And when receiving the relay message, the second block chain for verifying the relay message using the block verification information and the message verification information included in the relay message, and transmitting the message included in the relay message to a destination. Includes network.
도 1은 본 발명의 일 실시 예에 따른 블록체인 간의 통신을 제공하고 통신하는 메시지를 증명하는 블록체인 통신 시스템의 개략적인 구성을 도시한 도면이다.
도 2는 본 발명의 일 실시 예에 따른 블록체인 통신 시스템에서 노드가 개략적으로 배치된 예를 도시한 도면이다.
도 3은 본 발명의 블록체인 간의 통신이 가능한 블록체인 통신 시스템에서 통신이 수행되는 과정을 도시한 흐름도이다.
도 4는 본 발명의 블록체인 통신 시스템의 제1 블록체인 네트워크에서 메시지를 송신하는 과정을 도시한 흐름도이다.
도 5는 본 발명의 블록체인 통신 시스템의 릴레이에서 메시지를 중계하는 과정을 도시한 흐름도이다.
도 6은 본 발명의 블록체인 통신 시스템의 릴레이에서 메시지를 중계할 때 검증을 위한 정보를 획득하는 과정을 도시한 흐름도이다.
도 7은 본 발명의 블록체인 통신 시스템의 제2 블록체인 네트워크에서 메시지를 수신하는 과정을 도시한 흐름도이다.
도 8은 본 발명의 제2 블록체인 네트워크에서 수신한 메시지를 검증하는 과정을 도시한 흐름도이다.
도 9는 본 발명의 블록체인 통신 시스템에서 생성하고 관리하는 머클 트리 및 머클 트리의 루트값의 예를 도시한 도면이다.
도 10은 본 발명의 블록체인 통신 시스템에서 이용하는 하는 메시지 구성의 예를 도시한 도면이다.
도 11은 본 발명의 블록체인 통신 시스템에서 이용하는 하는 송신 서비스 메시지 구성의 예를 도시한 도면이다.
도 12는 본 발명의 블록체인 통신 시스템에서 이용하는 하는 블록체인 통신 메시지 구성의 예를 도시한 도면이다.
도 13은 본 발명의 블록체인 통신 시스템에서 이용하는 하는 블록체인 이벤트 메시지 구성의 예를 도시한 도면이다.
도 14는 본 발명의 블록체인 통신 시스템에서 이용하는 하는 릴레이 메시지 처리 요청 메시지 구성의 예를 도시한 도면이다.
도 15는 본 발명의 블록체인 통신 시스템에서 이용하는 하는 릴레이 메시지 검증 요청 메시지 구성의 예를 도시한 도면이다.
도 16은 본 발명의 블록체인 통신 시스템에서 이용하는 하는 서비스 메시지 처리 요청 메시지 구성의 예를 도시한 도면이다.1 is a diagram showing a schematic configuration of a block chain communication system for providing communication between block chains and verifying a message to be communicated according to an embodiment of the present invention.
2 is a diagram illustrating an example of a schematic arrangement of nodes in a block chain communication system according to an embodiment of the present invention.
3 is a flowchart illustrating a process of performing communication in a blockchain communication system capable of inter-blockchain communication according to the present invention.
4 is a flowchart illustrating a process of transmitting a message in the first blockchain network of the blockchain communication system of the present invention.
5 is a flowchart illustrating a process of relaying a message in a relay of the blockchain communication system of the present invention.
6 is a flowchart illustrating a process of acquiring information for verification when relaying a message in a relay of the blockchain communication system of the present invention.
7 is a flowchart illustrating a process of receiving a message in a second blockchain network of the blockchain communication system of the present invention.
8 is a flowchart illustrating a process of verifying a message received in a second blockchain network of the present invention.
9 is a diagram showing an example of a Merkle tree and a root value of a Merkle tree created and managed in the blockchain communication system of the present invention.
10 is a diagram showing an example of a message configuration used in the blockchain communication system of the present invention.
11 is a diagram showing an example of the configuration of a transmission service message used in the blockchain communication system of the present invention.
12 is a diagram showing an example of the configuration of a block chain communication message used in the block chain communication system of the present invention.
13 is a diagram showing an example of the configuration of a block chain event message used in the block chain communication system of the present invention.
14 is a diagram showing an example of the configuration of a relay message processing request message used in the blockchain communication system of the present invention.
15 is a diagram showing an example of the configuration of a relay message verification request message used in the blockchain communication system of the present invention.
16 is a diagram showing an example of the configuration of a service message processing request message used in the blockchain communication system of the present invention.
이하에서, 첨부된 도면을 참조하여 실시예들을 상세하게 설명한다. 그러나, 실시예들에는 다양한 변경이 가해질 수 있어서 특허출원의 권리 범위가 이러한 실시예들에 의해 제한되거나 한정되는 것은 아니다. 실시예들에 대한 모든 변경, 균등물 내지 대체물이 권리 범위에 포함되는 것으로 이해되어야 한다.Hereinafter, exemplary embodiments will be described in detail with reference to the accompanying drawings. However, since various changes may be made to the embodiments, the scope of the rights of the patent application is not limited or limited by these embodiments. It should be understood that all changes, equivalents, or substitutes to the embodiments are included in the scope of the rights.
실시예에서 사용한 용어는 단지 설명을 목적으로 사용된 것으로, 한정하려는 의도로 해석되어서는 안된다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서, "포함하다" 또는 "가지다" 등의 용어는 명세서 상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terms used in the examples are used for illustrative purposes only and should not be interpreted as limiting. Singular expressions include plural expressions unless the context clearly indicates otherwise. In the present specification, terms such as "comprise" or "have" are intended to designate the presence of features, numbers, steps, actions, components, parts, or combinations thereof described in the specification, but one or more other features. It is to be understood that the presence or addition of elements or numbers, steps, actions, components, parts, or combinations thereof, does not preclude in advance.
다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 모든 용어들은 실시예가 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다. 일반적으로 사용되는 사전에 정의되어 있는 것과 같은 용어들은 관련 기술의 문맥 상 가지는 의미와 일치하는 의미를 가지는 것으로 해석되어야 하며, 본 출원에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.Unless otherwise defined, all terms used herein, including technical or scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art to which the embodiment belongs. Terms as defined in a commonly used dictionary should be interpreted as having a meaning consistent with the meaning in the context of the related technology, and should not be interpreted as an ideal or excessively formal meaning unless explicitly defined in this application. Does not.
또한, 첨부 도면을 참조하여 설명함에 있어, 도면 부호에 관계없이 동일한 구성 요소는 동일한 참조부호를 부여하고 이에 대한 중복되는 설명은 생략하기로 한다. 실시예를 설명함에 있어서 관련된 공지 기술에 대한 구체적인 설명이 실시예의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다.In addition, in the description with reference to the accompanying drawings, the same reference numerals are assigned to the same components regardless of the reference numerals, and redundant descriptions thereof will be omitted. In describing the embodiments, when it is determined that a detailed description of related known technologies may unnecessarily obscure the subject matter of the embodiments, the detailed description thereof will be omitted.
또한, 실시 예의 구성 요소를 설명하는 데 있어서, 제1, 제2, A, B, (a), (b) 등의 용어를 사용할 수 있다. 이러한 용어는 그 구성 요소를 다른 구성 요소와 구별하기 위한 것일 뿐, 그 용어에 의해 해당 구성 요소의 본질이나 차례 또는 순서 등이 한정되지 않는다. 어떤 구성 요소가 다른 구성요소에 "연결", "결합" 또는 "접속"된다고 기재된 경우, 그 구성 요소는 그 다른 구성요소에 직접적으로 연결되거나 접속될 수 있지만, 각 구성 요소 사이에 또 다른 구성 요소가 "연결", "결합" 또는 "접속"될 수도 있다고 이해되어야 할 것이다. In addition, in describing the constituent elements of the embodiment, terms such as first, second, A, B, (a) and (b) may be used. These terms are only used to distinguish the component from other components, and the nature, order, or order of the component is not limited by the term. When a component is described as being "connected", "coupled" or "connected" to another component, that component may be directly connected or connected to that other component, but another component between each component It should be understood that may be “connected”, “coupled” or “connected”.
어느 하나의 실시 예에 포함된 구성요소와, 공통적인 기능을 포함하는 구성요소는, 다른 실시 예에서 동일한 명칭을 사용하여 설명하기로 한다. 반대되는 기재가 없는 이상, 어느 하나의 실시 예에 기재한 설명은 다른 실시 예에도 적용될 수 있으며, 중복되는 범위에서 구체적인 설명은 생략하기로 한다.Components included in one embodiment and components including common functions will be described using the same name in other embodiments. Unless otherwise stated, descriptions in one embodiment may be applied to other embodiments, and detailed descriptions in the overlapping range will be omitted.
이하에서는, 본 발명의 일 실시 예에 따른 블록체인 간의 통신을 제공하고 통신 메시지를 증명하는 블록체인 통신 시스템 및 방법을 첨부된 도 1 내지 도 16을 참조하여 상세히 설명한다.Hereinafter, a block chain communication system and method for providing communication between block chains and verifying a communication message according to an embodiment of the present invention will be described in detail with reference to FIGS. 1 to 16.
도 1은 본 발명의 일 실시 예에 따른 블록체인 간의 통신을 제공하고 통신하는 메시지를 증명하는 블록체인 통신 시스템의 개략적인 구성을 도시한 도면이다.1 is a diagram showing a schematic configuration of a block chain communication system for providing communication between block chains and verifying a message to be communicated according to an embodiment of the present invention.
도 1을 참조하면, 본 발명의 블록체인 통신 시스템은 제1 블록체인 네트워크(110), 제2 블록체인 네트워크(130) 및 릴레이(120)를 포함하여 구성될 수 있다.Referring to FIG. 1, the blockchain communication system of the present invention may include a
제1 블록체인 네트워크(110)는 제1 서비스 제어 스마트 컨트랙트(112), 제1 메시지 제어 스마트 컨트랙트(114) 및 제1 메시지 검증 스마트 컨트랙트(116)를 포함할 수 있다.The
제2 블록체인 네트워크(130)는 제2 서비스 제어 스마트 컨트랙트(132), 제2 메시지 제어 스마트 컨트랙트(134) 및 제2 메시지 검증 스마트 컨트랙트(136)를 포함할 수 있다.The
즉, 블록체인 네트워크는 각각 서비스 제어 스마트 컨트랙트, 메시지 제어 스마트 컨트랙트, 메시지 검증 스마트 컨트랙트를 포함할 수 있다.That is, the blockchain network can each include a service control smart contract, a message control smart contract, and a message verification smart contract.
제1 블록체인 네트워크(110)에서 제2 블록체인 네트워크(130)로 메시지를 전달하는 예를 살펴보면 다음과 같이 동작할 할 수 있다.Looking at an example of transferring a message from the
제1 블록체인 네트워크(110)는 제2 블록체인 네트워크로 전송하는 메시지를 수신하면, 메시지와 메시지의 서비스 정보를 포함하는 서비스 메시지를 생성하고, 서비스 메시지를 포함하는 블록체인 통신 메시지를 생성한다.When the
릴레이(120)는 제1 블록체인 네트워크(110)를 모니터링 하다가 블록체인 통신 메시지의 생성을 감지하면, 제1 블록체인 네트워크로(110)부터 메시지가 포함된 블록을 검증할 수 있는 블록 검증 정보와 메시지를 검증할 수 있는 메시지 검증 정보를 획득하고(146), 블록체인 통신 메시지, 블록 검증 정보 및 메시지 검증 정보를 포함하는 릴레이 메시지를 생성하고, 릴레이 메시지를 메시지의 목적지를 포함하는 제2 블록체인 네트워크(130)로 송신한다.When the
이때, 블록 검증 정보는 메시지가 포함된 블록이 종결되었는지 또는 메시지가 포함된 블록이 제1 블록체인 내에 존재하는지 증명할 수 있는 데이터를 의미하고, 메시지 검증 정보는 메시지가 해당 블록에 존재하는지 증명할 수 있는 데이터를 의미한다. 그리고, 블록 검증 정보와 메시지 검증 정보는 블록체인마다 다르게 정의될 수 있다.At this time, the block verification information means data that can prove whether the block containing the message is terminated or whether the block containing the message exists in the first blockchain, and the message verification information can prove whether the message exists in the block. Means data. In addition, block verification information and message verification information may be defined differently for each block chain.
블록 검증 정보에 대한 설명은 추후 도 6을 통해서 후술한다.The block verification information will be described later with reference to FIG. 6.
메시지 검증 정보의 대표적인 예는 블록 헤더로부터 연결된 머클 트리(Merkle Tree)에 끝에 연결되어 있는 데이터일 수 있고, 이를 증명하기 위해서는 루트(Root)에서 연결되는 모든 엔티티(Entity)의 데이터를 검증 정보로 하거나, 혹은 형태(Sibling)들의 해쉬(Hash)값을 검증 정보로 할 수 있다. A representative example of message verification information may be data connected to the end of the Merkle Tree connected from the block header, and to prove this, data of all entities connected at the root may be used as verification information. , Or hash values of siblings may be used as verification information.
한편, 메시지 검증 정보의 다른 예로 MPT(Merkle Patricia Trie)를 사용하고 연결되는 엔티티(Entity)의 데이터로 메시지 검증 정보의 증명이 이루어 지도록 할 수 있다. 메시지 검증 정보의 획득은 해당 데이터의 키(Key)값을 가지고 특정한 계정에서 어플리케이션 프로그램 인터페이스(API: Application Program Interface)를 호출해서 얻을 수 있다.Meanwhile, as another example of the message verification information, a Merkle Patricia Trie (MPT) may be used, and the verification of the message verification information may be performed with data of an entity to be connected. Message verification information can be obtained by calling an application program interface (API: Application Program Interface) from a specific account with the key value of the data.
제2 블록체인 네트워크(130)는 릴레이 메시지를 수신하면, 릴레이 메시지에 포함된 블록 검증 정보와 메시지 검증 정보를 이용해서 릴레이 메시지를 검증하고, 릴레이 메시지에 포함된 메시지를 목적지로 송신한다.When receiving the relay message, the
블록체인 간의 통신의 보다 구체적인 예를 이후 도 3에서 도 8을 함께 참조하여 보다 상세히 후술한다.A more specific example of communication between block chains will be described later in more detail with reference to FIGS. 3 to 8 together.
도 2는 본 발명의 일 실시 예에 따른 블록체인 통신 시스템에서 노드가 개략적으로 배치된 예를 도시한 도면이다.2 is a diagram illustrating an example of a schematic arrangement of nodes in a block chain communication system according to an embodiment of the present invention.
도 2를 참조하면 본 발명의 블록체인 통신 시스템은 다수의 노드(211 - 215)를 포함하는 제1 블록체인 네트워크(110), 다수의 노드(231 - 234)를 포함하는 제2 블록체인 네트워크(130) 및 제1 블록체인 네트워크(110)와 제2 블록체인 네트워크(130)의 통신을 중계하는 릴레이(120)를 포함하여 구성될 수 있다.Referring to FIG. 2, the blockchain communication system of the present invention includes a
이때, 릴레이(120)는 제1 블록체인 네트워크(110)의 노드(214)와 제2 블록체인 네트워크(130)의 노드(232)를 포함할 수 있다.In this case, the
즉, 노드(214)는 제1 블록체인 네트워크(110)와 릴레이(120) 양쪽에 포함되어 구성될 수 있고, 노드(232)는 제2 블록체인 네트워크(130)와 릴레이(120) 양쪽에 포함되어 구성될 수 있다.That is, the
다른 방법으로 릴레이(120)는 노드를 포함하지 않고, 제1 블록체인 네트워크(110)의 적어도 하나의 노드와 통신하고, 제2 블록체인 네트워크(130)의 적어도 하나의 노드와 통신하는 형태로 구성될 수도 있다.Alternatively, the
이하, 상기와 같이 구성된 본 발명에 따른 방법을 아래에서 도면을 참조하여 설명한다.Hereinafter, a method according to the present invention configured as described above will be described with reference to the drawings.
도 3은 본 발명의 블록체인 간의 통신이 가능한 블록체인 통신 시스템에서 통신이 수행되는 과정을 도시한 흐름도이다.3 is a flowchart illustrating a process of performing communication in a blockchain communication system capable of inter-blockchain communication according to the present invention.
도 3을 참조하면, 제1 블록체인 네트워크(110)에서 제2 블록체인 네트워크(130)로 전송하는 메시지를 수신하면, 메시지와 메시지의 서비스 정보를 포함하는 서비스 메시지를 생성하고, 서비스 메시지를 포함하는 블록체인 통신 메시지를 생성한다(310). 310단계는 이후, 도 4를 참조하여 보다 상세히 후술한다.3, upon receiving a message transmitted from the
제1 블록체인 네트워크(110)를 모니터링 하는 릴레이(120)에서 블록체인 통신 메시지의 생성을 감지하면, 제1 블록체인 네트워크(110)로부터 메시지가 포함된 블록을 검증할 수 있는 블록 검증 정보와 메시지를 검증할 수 있는 메시지 검증 정보를 획득하고, 블록체인 통신 메시지, 블록 검증 정보 및 메시지 검증 정보를 포함하는 릴레이 메시지를 생성하고, 릴레이 메시지를 메시지의 목적지를 포함하는 제2 블록체인 네트워크로 송신한다(320). 320단계는 이후, 도 5를 참조하여 보다 상세히 후술한다.When the
제2 블록체인 네트워크(130)에서 릴레이 메시지를 수신하면, 릴레이 메시지에 포함된 블록 검증 정보와 메시지 검증 정보를 이용해서 릴레이 메시지를 검증하고, 릴레이 메시지에 포함된 메시지를 목적지로 송신한다(330). 330단계는 이후, 도 7을 참조하여 보다 상세히 후술한다.When a relay message is received from the
도 4는 본 발명의 블록체인 통신 시스템의 제1 블록체인 네트워크에서 메시지를 송신하는 과정을 도시한 흐름도이다.4 is a flowchart illustrating a process of transmitting a message in the first blockchain network of the blockchain communication system of the present invention.
도 4를 참조하면, 도 3의 310단계는 구체적으로 다음의 과정으로 수행될 수 있다.Referring to FIG. 4, step 310 of FIG. 3 may be specifically performed in the following process.
제1 블록체인 네트워크(110)의 제1 서비스 제어 스마트 컨트랙트(112)는 제2 블록체인 네트워크(130)로 전송하는 메시지를 수신하면(410), 수신한 메시지를 이용해서 서비스 메시지를 생성한다(412).When the first service control
이때, 메시지는 서비스 메시지를 수신하는 블록체인 네트워크의 네트워크 어드레스에 관한 정보인 목적지 네트워크 어드레스, 서비스 종류와 서비스 종류의 세부 사항정보를 포함하는 서비스 정보, 블록체인 네트워크에서 수신하는 스마트 컨트랙트를 식별할 수 있는 계정 식별 정보, 및 송신하는 데이터를 포함할 수 있다.At this time, the message can identify the destination network address, which is information about the network address of the blockchain network receiving the service message, service information including detailed information of the service type and service type, and the smart contract received from the blockchain network. It may include account identification information, and data to be transmitted.
메시지가 토큰(token)을 송신하는 경우 아래 도 10의 예과 같은 형태로 구성될 수 있다.When a message transmits a token, it may be configured in the same form as in the example of FIG. 10 below.
도 10은 본 발명의 블록체인 통신 시스템에서 이용하는 하는 메시지 구성의 예를 도시한 도면이다.10 is a diagram showing an example of a message configuration used in the blockchain communication system of the present invention.
도 10을 참조하면, 메시지는 Destination, Token, To 및Value를 포함하여 구성됨을 확인할 수 있다.Referring to FIG. 10, it can be seen that the message includes a destination, a token, a To, and a value.
여기서, Destination는 서비스 메시지를 수신하는 블록체인 네트워크의 네트워크 어드레스에 관한 정보인 목적지 네트워크 어드레스로서 도 10의 예에서 그 값은 '0x3.iconee'이다.Here, the destination is a destination network address, which is information about the network address of the blockchain network that receives the service message. In the example of FIG. 10, the value is '0x3.iconee'.
Token은 도 13의 메시지의 서비스 종류가 토큰임을 나타내고, 도 10의 예에서 세부 사항정보가 'ICON'임을 나타내는 서비스 정보이다.Token indicates that the service type of the message of FIG. 13 is a token, and in the example of FIG. 10, the token is service information indicating that detailed information is'ICON'.
To는 블록체인 네트워크에서 수신하는 계정를 식별할 수 있는 계정 식별 정보로 도 10의 예에서 그 값은 'hx1234~' 이다.To is account identification information that can identify an account received from a blockchain network, and in the example of FIG. 10, the value is'hx1234~'.
Value는 송신하는 데이터를 나타내고, 송신하는 토큰의 값이 도 10의 예에서 그 값은 '0x10000000'이다.Value represents data to be transmitted, and the value of the token to be transmitted is '0x10000000' in the example of FIG. 10.
한편, 서비스 메시지는 메시지를 수신하는 계정의 블록체인 어드레스인 목적지 어드레스만을 포함하여 생성할 수 있다.Meanwhile, the service message may be generated including only the destination address, which is the block chain address of the account receiving the message.
또는, 서비스 메시지는 메시지를 수신하는 계정의 블록체인 어드레스인 목적지 어드레스에 더해서 메시지의 종류를 식별하는 메시지 종류, 서비스 종류와 서비스 종류의 세부 사항정보를 포함하는 서비스 정보, 상기 메시지를 송신하는 계정의 블록체인 어드레스인 출발지 어드레스, 및 상기 메시지로 송신하고자 하는 데이터 중에서 적어도 하나를 더 포함하여 구성될 수 있다.Alternatively, the service message is a message type identifying the type of message, service information including detailed information of the service type and service type, in addition to the destination address which is the block chain address of the account receiving the message, and the account sending the message. It may be configured to further include at least one of a source address, which is a block chain address, and data to be transmitted in the message.
이때, 블록체인 어드레스는 블록체인 통신을 위한 어드레스임을 나타내는 통신 규약 식별 정보, 블록체인 네트워크의 종류를 구분하는 블록체인 종류 정보, 동일한 블록체인 네트워크의 종류에서 블록체인을 식별할 수 있는 블록체인 식별 정보, 및 블록체인 네트워크의 특정 계정을 식별할 수 있는 계정 식별 정보를 포함할 수 있다.At this time, the blockchain address is communication protocol identification information indicating that it is an address for blockchain communication, blockchain type information that identifies the type of blockchain network, and blockchain identification information that can identify the blockchain in the same blockchain network type. , And account identification information that can identify a specific account of the blockchain network.
예를 들어, 블록체인 어드레스는 "btp://0x3.iconee/hx1234~"로 구성될 수 있다.For example, the block chain address may consist of "btp://0x3.iconee/hx1234~".
여기서, 'btp://'는 블록체인 통신을 위한 어드레스임을 나타내는 통신 규약 식별 정보이고, '0x3'는 블록체인 네트워크의 종류를 구분하는 블록체인 종류 정보이고, 'iconee'는 동일한 블록체인 네트워크의 종류에서 블록체인을 식별할 수 있는 블록체인 식별 정보이고, 'hx1234~'는 블록체인 네트워크의 특정 계정을 식별할 수 있는 계정 식별 정보이다.Here,'btp://' is communication protocol identification information indicating that it is an address for blockchain communication, '0x3' is block chain type information that identifies the type of blockchain network, and'iconee' is the same block chain network. Blockchain identification information that can identify the blockchain by type, and'hx1234~' is account identification information that can identify a specific account in the blockchain network.
도 4의 설명으로 돌아와서, 제1 블록체인 네트워크(110)의 제1 서비스 제어 스마트 컨트랙트(112)는 서비스 메시지를 포함하는 송신 서비스 메시지를 생성한다(414).Returning to the description of FIG. 4, the first service control
이때, 송신 서비스 메시지는 서비스 메시지를 수신하는 제2 블록체인 네트워크의 네트워크 어드레스에 관한 정보인 목적지 네트워크 어드레스, 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류, 송신 서비스 메시지를 식별할 수 있는 시리얼 넘버, 및 서비스 메시지를 포함할 수 있다.At this time, the transmission service message is a destination network address that is information about the network address of the second blockchain network that receives the service message, a service type that identifies the service type of the service message, a serial number that can identify the transmission service message, And a service message.
도 11은 본 발명의 블록체인 통신 시스템에서 이용하는 하는 송신 서비스 메시지 구성의 예를 도시한 도면이다.11 is a diagram showing an example of the configuration of a transmission service message used in the blockchain communication system of the present invention.
도 11을 참조하면, 송신 서비스 메시지는 Destination, Service, SN 및ServiceMessage를 포함하여 구성됨을 확인할 수 있다.Referring to FIG. 11, it can be seen that the transmission service message includes a Destination, Service, SN, and ServiceMessage.
Destination는 서비스 메시지를 수신하는 블록체인 네트워크의 네트워크 어드레스에 관한 정보인 목적지 네트워크 어드레스로서 도 11의 예에서 그 값은 '0x3.iconee'이다.Destination is the destination network address, which is information about the network address of the blockchain network that receives the service message. In the example of FIG. 11, the value is '0x3.iconee'.
Service는 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류에 관한 정보로, 도 11의 예에서 서비스 종류는 'token'이다.Service is information on a service type for identifying a service type of a service message. In the example of FIG. 11, the service type is'token'.
SN는 송신 서비스 메시지를 식별할 수 있는 시리얼 넘버로서 도 11의 예에서 그 값은 '2'이다.SN is a serial number that can identify a transmission service message, and its value is '2' in the example of FIG. 11.
ServiceMessage는 서비스 메시지를 나타내며, 서비스 메시지의 모든 정보가 포함된다.ServiceMessage represents a service message and includes all information of the service message.
그리고, 제1 블록체인 네트워크(110)의 제1 서비스 제어 스마트 컨트랙트(112)는 송신 서비스 메시지를 제1 블록체인 네트워크(110)의 제1 메시지 제어 스마트 컨트랙트(114)로 송신한다(142, 416).Then, the first service control
이후, 제1 블록체인 네트워크(110)의 제1 메시지 제어 스마트 컨트랙트(114)는 송신 서비스 메시지를 수신하면, 블록체인 통신 메시지의 생성이 가능한지 여부를 확인한다(418).Thereafter, when the first message control
418단계의 확인결과 블록체인 통신 메시지의 생성이 가능하면, 제1 블록체인 네트워크(110)의 제1 메시지 제어 스마트 컨트랙트(114)는 서비스 메시지를 포함하는 블록체인 통신 메시지를 생성한다(420).If it is possible to generate a block chain communication message as a result of the check in
이때, 블록체인 통신 메시지는 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스인 출발지 어드레스, 블록체인 통신 메시지를 수신하는 메시지 제어 스마트 컨트랙트의 블록체인 어드레스인 목적지 어드레스, 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류, 블록체인 통신 메시지를 식별할 수 있는 시리얼 넘버, 및 서비스 메시지를 포함할 수 있다.At this time, the blockchain communication message is the source address, which is the block chain address of the message control smart contract that generated the block chain communication message, the destination address, which is the block chain address of the message control smart contract that receives the block chain communication message, and the service of the service message. It may include a service type that identifies the type, a serial number that can identify a blockchain communication message, and a service message.
도 12는 본 발명의 블록체인 통신 시스템에서 이용하는 하는 블록체인 통신 메시지 구성의 예를 도시한 도면이다.12 is a diagram showing an example of the configuration of a block chain communication message used in the block chain communication system of the present invention.
도 12를 참조하면, 블록체인 통신 메시지는 Source, Destination, Service, SN, 및 ServiceMessage를 포함하여 구성됨을 확인할 수 있다.Referring to FIG. 12, it can be seen that the block chain communication message includes a source, a destination, a service, an SN, and a service message.
Source는 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스인 출발지 어드레스로서, 도 12의 예에서 출발지 어드레스는 "btp://0x1.icon/cxefgh~"이다.Source is a source address, which is the block chain address of the message control smart contract that generated the blockchain communication message. In the example of FIG. 12, the source address is "btp://0x1.icon/cxefgh~".
Destination는 블록체인 통신 메시지를 수신하는 메시지 제어 스마트 컨트랙트의 블록체인 어드레스인 목적지 어드레스로서, 도 12의 예에서 목적지 어드레스는 "btp://0x3.iconee/cx5678~"이다.Destination is a destination address that is a block chain address of a message control smart contract that receives a block chain communication message. In the example of FIG. 12, the destination address is "btp://0x3.iconee/cx5678~".
Service는 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류에 관한 정보로, 도 12의 예에서 서비스 종류는 'token'이다.Service is information on a service type for identifying a service type of a service message. In the example of FIG. 12, the service type is'token'.
SN는 블록체인 통신 메시지를 식별할 수 있는 시리얼 넘버로서 도 12의 예에서 그 값은 '2'이다.SN is a serial number that can identify a blockchain communication message, and its value is '2' in the example of FIG. 12.
ServiceMessage는 서비스 메시지를 나타내며, 서비스 메시지의 모든 정보가 포함된다.ServiceMessage represents a service message and includes all information of the service message.
다시 도 4의 설명으로 돌아와서, 제1 블록체인 네트워크(110)의 제1 메시지 제어 스마트 컨트랙트(114)는 블록체인 통신 메시지를 제1 블록체인 네트워크의 제1 블록체인에 추가한다(422).Returning to the description of FIG. 4 again, the first message control
그리고, 제1 블록체인 네트워크(110)의 제1 메시지 제어 스마트 컨트랙트(114)는 블록체인 통신 메시지를 포함하는 블록체인 이벤트 메시지를 생성한다(424).And, the first message control
이때, 블록체인 이벤트 메시지는 블록체인 통신 메시지가 전달되는 다음 블록체인 네트워크의 메시지 제어 스마트 컨트랙트에 관한 블록체인 어드레스에 관한 정보인 다음 목적지 어드레스, 블록체인 이벤트 메시지의 순서를 확인할 수 있는 시퀀스 정보, 및 바이트 단위로 변경된 블록체인 통신 메시지를 포함할 수 있다.At this time, the block chain event message is the next destination address, which is information about the block chain address of the message control smart contract of the next block chain network to which the block chain communication message is delivered, sequence information that can confirm the sequence of the block chain event message, and Blockchain communication messages that have been changed in units of bytes can be included.
도 13은 본 발명의 블록체인 통신 시스템에서 이용하는 하는 블록체인 이벤트 메시지 구성의 예를 도시한 도면이다.13 is a diagram showing an example of the configuration of a block chain event message used in the block chain communication system of the present invention.
도 13을 참조하면, 블록체인 이벤트 메시지는 Next, Seq 및 Message를 포함하여 구성됨을 확인할 수 있다.Referring to FIG. 13, it can be seen that the block chain event message includes Next, Seq, and Message.
Next는 블록체인 통신 메시지가 전달되는 다음 블록체인 네트워크의 메시지 제어 스마트 컨트랙트에 관한 블록체인 어드레스에 관한 정보인 다음 목적지 어드레스로서, 도 13의 예에서 다음 목적지 어드레스는 "btp://0x3.iconee/cx5678~" 이다.Next is the next destination address, which is information on the blockchain address of the next blockchain network message control smart contract to which the blockchain communication message is delivered. In the example of FIG. 13, the next destination address is "btp://0x3.iconee/" cx5678~".
Seq는 블록체인 이벤트 메시지의 순서를 확인할 수 있는 시퀀스 정보로서, 도 13의 예에서 그 값은 '3'이다. Seq is sequence information that can confirm the sequence of block chain event messages, and the value is '3' in the example of FIG. 13.
Message는 바이트 단위로 변경된 블록체인 통신 메시지로서, 도 13의 예에서는 "Serialized BTP Message"로 표현될 수 있다. 여기서, BTP Message는 블록체인 통신 메시지를 나타내고, BTP는 블록체인 통신 프로토콜(Blockchain Transmission Protocol)을 나타낸다.The message is a block chain communication message changed in units of bytes, and may be expressed as a "Serialized BTP Message" in the example of FIG. 13. Here, BTP Message represents a blockchain communication message, and BTP represents a Blockchain Transmission Protocol.
도 13의 예에서 블록체인 이벤트 메시지에는 바이트 단위로 변경된 블록체인 통신 메시지가 포함되었지만, 이는 선택적인 것으로, 블록체인 이벤트 메시지는 바이트 단위로 변경되지 않은 블록체인 통신 메시지를 포함할 수도 있다.In the example of FIG. 13, the block chain event message includes a block chain communication message changed in units of bytes, but this is optional, and the block chain event message may include a block chain communication message not changed in units of bytes.
다시 도 4의 설명으로 돌아서, 418단계의 확인결과 블록체인 통신 메시지의 생성이 가능하지 않으면, 제1 블록체인 네트워크(110)의 제1 메시지 제어 스마트 컨트랙트(114)는 에러 메시지를 생성한다(426). 이때, 블록체인 통신 메시지의 생성이 가능하지 않은 경우는 예를 들어, 목적지 블록체인 네트워크가 확인되지 않는 경우 등이 존재할 수 있다. Returning to the description of FIG. 4 again, if it is not possible to generate a blockchain communication message as a result of the confirmation in
그리고, 제1 블록체인 네트워크(110)의 제1 메시지 제어 스마트 컨트랙트(114)는 에러 메시지를 제1 블록체인 네트워크의 제1 블록체인에 추가한다(428).Then, the first message control
도 5는 본 발명의 블록체인 통신 시스템의 릴레이에서 메시지를 중계하는 과정을 도시한 흐름도이다.5 is a flowchart illustrating a process of relaying a message in a relay of the blockchain communication system of the present invention.
도 5를 참조하면, 도 3의 320단계는 구체적으로 다음의 과정으로 수행될 수 있다.Referring to FIG. 5, step 320 of FIG. 3 may be specifically performed in the following process.
제1 블록체인 네트워크(110)를 모니터링 하는 릴레이(120)는 블록체인 통신 메시지를 포함하는 블록체인 이벤트 메시지의 생성을 감지하면(144, 510), 릴레이(120)에서 관리하는 제1 블록체인의 블록 높이(K)와 메시지가 포함된 블록의 블록 높이(N)를 비교한다(512). 이때, 릴레이(120)에서 관리하는 제1 블록체인의 블록 높이(K)는 릴레이(120)에서 수신한 가장 큰 제1 블록체인의 블록 헤더의 블록 높이이다.When the
비교 결과, 메시지가 포함된 블록의 블록 높이(N)가 릴레이에서 관리하는 제1 블록체인의 블록 높이(K) 보다 큰 경우와 메시지가 포함된 블록의 블록 높이(N)가 릴레이에서 관리하는 제1 블록체인의 블록 높이(K) 보다 작거나 같은 경우에 따라 블록 검증 정보 및 메시지 검증 정보를 획득한다(146, 514).As a result of the comparison, when the block height (N) of the block containing the message is greater than the block height (K) of the first block chain managed by the relay and the block height (N) of the block containing the message is the limit managed by the relay. 1 Block verification information and message verification information are acquired depending on the case of less than or equal to the block height (K) of the block chain (146, 514).
릴레이(120)는 블록체인 통신 메시지, 블록체인 통신 메시지, 블록 검증 정보 및 메시지 검증 정보를 포함하는 릴레이 메시지를 생성한다(516). 이때, 릴레이 메시지는 동일한 네트워크 어드레스를 가진 적어도 하나의 블록체인 통신 메시지와 함께 블록 검증 정보 및 메시지 검증 정보를 포함할 수 있다.The
릴레이(120)는 릴레이에서 릴레이 메시지를 포함하는 릴레이 메시지 처리 요청 메시지를 생성하여 제2 블록체인 네트워크(130)의 제2 메시지 제어 스마트 컨트랙트(134)로 송신한다(152, 518).The
이때, 릴레이 메시지 처리 요청 메시지는 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스 및 바이트 단위로 변경된 릴레이 메시지를 포함할 수 있다.In this case, the relay message processing request message may include a block chain address of the message control smart contract that generated the block chain communication message and a relay message changed in units of bytes.
도 14은 본 발명의 블록체인 통신 시스템에서 이용하는 하는 릴레이 메시지 처리 요청 메시지 구성의 예를 도시한 도면이다.14 is a diagram showing an example of the configuration of a relay message processing request message used in the blockchain communication system of the present invention.
도 14을 참조하면, 릴레이 메시지 처리 요청 메시지는 From 및 Message를 포함하여 구성됨을 확인할 수 있다.Referring to FIG. 14, it can be seen that the relay message processing request message includes From and Message.
From은 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스를 나타내는 것으로, 도 14의 예에서 해당 어드레스는 "btp://0x1.icon/cxefgh~" 이다.From indicates the block chain address of the message control smart contract that generated the block chain communication message. In the example of FIG. 14, the address is "btp://0x1.icon/cxefgh~".
Message는 바이트 단위로 변경된 릴레이 메시지로서, 도 14의 예에서는 "Serialized RelayMessage"로 표현될 수 있다.The message is a relay message changed in units of bytes, and may be expressed as "Serialized RelayMessage" in the example of FIG. 14.
도 14의 예에서 릴레이 메시지 처리 요청 메시지에는 바이트 단위로 변경된 릴레이 메시지가 포함되었지만, 이는 선택적인 것으로, 릴레이 메시지 처리 요청 메시지는 바이트 단위로 변경되지 않은 릴레이 메시지를 포함할 수도 있다.In the example of FIG. 14, the relay message processing request message includes a relay message changed in units of bytes, but this is optional, and the relay message processing request message may include a relay message not changed in units of bytes.
도 6은 본 발명의 블록체인 통신 시스템의 릴레이에서 메시지를 중계할 때 검증을 위한 정보를 획득하는 과정을 도시한 흐름도이다.6 is a flowchart illustrating a process of acquiring information for verification when relaying a message in a relay of the blockchain communication system of the present invention.
도 6을 참조하면, 본 발명의 릴레이(120)는 메시지가 포함된 블록의 블록 높이(N)가 릴레이에서 관리하는 제1 블록체인의 블록 높이(K) 보다 크면(610), 릴레이(120)에서 관리하는 제1 블록체인의 블록 높이(K) 보다 크고 메시지가 포함된 블록의 블록 높이(N) 까지의 새로운 모든 블록 각각에 대해서 블록 헤더, 블록에 대한 검증자의 투표 정보, 다음 블록을 검증할 검증자의 정보를 블록 검증 정보로서 획득한다(612). 즉, 릴레이(120)는 612단계에서 K+1에서 N까지의 새로운 모든 블록 각각의 블록 헤더, 블록에 대한 검증자의 투표 정보, 다음 블록을 검증할 검증자의 정보(검증자들의 리스트)를 획득한다.Referring to FIG. 6, the
그리고, 릴레이(120)는 메시지의 존재를 증명할 수 있는 정보를 메시지 검증 정보로서 획득한다(614).Then, the
그리고, 릴레이(120)는 릴레이(120)에서 관리하는 제1 블록체인의 블록 높이(K) 보다 크고 메시지가 포함된 블록의 블록 높이(N) 까지의 새로운 모든 블록(K+1에서 N까지의 새로운 모든 블록)을 제1 블록체인의 머클 트리에 적용하여 제1 블록체인의 머클 트리를 갱신한다(616). 이때, 제1 블록체인의 머클 트리는 제1 블록체인의 블록의 블록 헤더를 해쉬한 값을 리프 노드하는 2진 트리이며, 머클 트리를 생성하는 보다 구체적인 방법은 이후 도 9를 참조하여 후술한다.In addition, the
그리고, 릴레이(120)는 제1 블록체인의 블록 높이(K)를 메시지가 포함된 블록의 블록 높이(N)의 값으로 갱신하여 관리한다(618).In addition, the
한편, 릴레이(120)는 메시지가 포함된 블록의 블록 높이(N)가 릴레이에서 관리하는 제1 블록체인의 블록 높이(K) 보다 작거나 같으면(610), 메시지가 포함된 블록의 블록 헤더 및 제1 블록체인의 머클 트리를 이용한 메시지가 포함된 블록의 존재를 증명할 수 있는 정보를 블록 검증 정보로 획득한다(622).On the other hand, if the block height (N) of the block containing the message is less than or equal to the block height (K) of the first block chain managed by the relay (610), the block header of the block containing the message and Information that can prove the existence of a block containing a message using the Merkle tree of the first blockchain is acquired as block verification information (622).
이때, 제1 블록체인의 머클 트리를 이용한 메시지가 포함된 블록의 존재를 증명할 수 있는 정보는 메시지가 포함된 블록의 블록 헤더를 이용해서 제1 블록체인의 머클 트리의 루트 값을 생성하는데 필요한 모든 정보이다. 여기서, 제1 블록체인의 머클 트리를 이용한 메시지가 포함된 블록의 존재를 증명할 수 있는 정보의 예를 이후 도 9를 참조하여 후술한다.At this time, the information that can prove the existence of the block containing the message using the Merkle tree of the first blockchain is all necessary to generate the root value of the Merkle tree of the first blockchain using the block header of the block containing the message. Information. Here, an example of information that can prove the existence of a block including a message using the Merkle tree of the first blockchain will be described later with reference to FIG. 9.
그리고, 릴레이(120)는 메시지의 존재를 증명할 수 있는 정보를 메시지 검증 정보로 획득한다(624).Then, the
도 7은 본 발명의 블록체인 통신 시스템의 제2 블록체인 네트워크에서 메시지를 수신하는 과정을 도시한 흐름도이다.7 is a flowchart illustrating a process of receiving a message in a second blockchain network of the blockchain communication system of the present invention.
도 7을 참조하면, 도 3의 330단계는 구체적으로 다음의 과정으로 수행될 수 있다.Referring to FIG. 7, step 330 of FIG. 3 may be specifically performed in the following process.
제2 블록체인 네트워크(130)의 제2 메시지 제어 스마트 컨트랙트(134)는 릴레이(120)로부터 릴레이 메시지를 포함하는 릴레이 메시지 처리 요청 메시지를 수신하면(152, 710), 릴레이 메시지를 포함하는 릴레이 메시지 검증 요청 메시지를 생성하여 제2 블록체인 네트워크(130)의 제2 메시지 검증 스마트 컨트랙트(136)로 송신한다(154, 712).When the second message control
이때, 릴레이 메시지 검증 요청 메시지는 릴레이 메시지 처리 요청 메시지를 수신하는 메시지 제어 스마트 컨트랙트의 블록체인 어드레스, 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스, 블록 제1 메시지 제어 스마트 컨트랙트가 실행된 어드레스, 시퀀스 정보, 및 바이트 단위로 변경된 릴레이 메시지를 포함할 수 있다.At this time, the relay message verification request message is the block chain address of the message control smart contract that receives the relay message processing request message, the block chain address of the message control smart contract that generated the block chain communication message, and the block first message control smart contract is executed. The changed address, sequence information, and a relay message changed in units of bytes may be included.
도 15는 본 발명의 블록체인 통신 시스템에서 이용하는 하는 릴레이 메시지 검증 요청 메시지 구성의 예를 도시한 도면이다.15 is a diagram showing an example of the configuration of a relay message verification request message used in the blockchain communication system of the present invention.
도 15를 참조하면, 릴레이 메시지 검증 요청 메시지는 BMC, From, Seq 및 Message를 포함하여 구성됨을 확인할 수 있다.Referring to FIG. 15, it can be seen that the relay message verification request message includes BMC, From, Seq, and Message.
BMC는 릴레이 메시지 처리 요청 메시지를 수신하는 메시지 제어 스마트 컨트랙트의 블록체인 어드레스로서, 도 15의 예에서 해당 블록체인 어드레스는 "btp://0x3.iconee/cx5678~" 이다.BMC is a block chain address of a message control smart contract that receives a relay message processing request message. In the example of FIG. 15, the corresponding block chain address is "btp://0x3.iconee/cx5678~".
From은 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스로서, 도 15의 예에서 해당 블록체인 어드레스는 "btp://0x1.icon/cxefgh~" 이다.From is the block chain address of the message control smart contract that generated the block chain communication message. In the example of FIG. 15, the corresponding block chain address is "btp://0x1.icon/cxefgh~".
Seq는 릴레이 메시지 검증 요청 메시지의 순서를 확인할 수 있는 시퀀스 정보로서, 도 15의 예에서 그 값은 '3'이다.Seq is sequence information for confirming the order of the relay message verification request message. In the example of FIG. 15, the value is '3'.
Message는 바이트 단위로 변경된 릴레이 메시지로서, 도 15의 예에서 "Serialized RelayMessage"로 표현될 수 있다.The message is a relay message changed in units of bytes, and may be expressed as "Serialized RelayMessage" in the example of FIG. 15.
도 15의 예에서 릴레이 메시지 검증 요청 메시지에는 바이트 단위로 변경된 릴레이 메시지가 포함되었지만, 이는 선택적인 것으로, 릴레이 메시지 검증 요청 메시지는 바이트 단위로 변경되지 않은 릴레이 메시지를 포함할 수도 있다.In the example of FIG. 15, the relay message verification request message includes a relay message changed in units of bytes, but this is optional, and the relay message verification request message may include a relay message not changed in units of bytes.
다시 도 7의 설명으로 돌아와서, 제2 블록체인 네트워크(130)의 제2 메시지 검증 스마트 컨트랙트(136)에서 릴레이 메시지 검증 요청 메시지를 수신하면(154), 릴레이 메시지에 포함된 블록 검증 정보와 메시지 검증 정보를 이용해서 릴레이 메시지를 검증한다(714).Returning to the description of FIG. 7 again, upon receiving the relay message verification request message from the second message verification
제2 블록체인 네트워크(130)의 제2 메시지 제어 스마트 컨트랙트(134)는 제2 메시지 검증 스마트 컨트랙트를 통해서 릴레이 메시지의 검증에 성공함을 확인하면, 릴레이 메시지에 포함된 블록체인 통신 메시지를 확인하고, 블록체인 통신 메시지에 포함된 서비스 메시지를 확인하고, 서비스 메시지를 포함하는 서비스 메시지 처리 요청 메시지를 생성하여 제2 블록체인 네트워크의 제2 서비스 제어 스마트 컨트랙트로 송신한다(156, 716).When the second message control
이때, 서비스 메시지 처리 요청 메시지는 서비스 메시지를 송신한 블록체인 네트워크의 네트워크 어드레스, 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류, 서비스 메시지 처리 요청 메시지를 식별할 수 있는 시리얼 넘버, 및 서비스 메시지를 포함할 수 있다.At this time, the service message processing request message includes the network address of the blockchain network that sent the service message, the service type that identifies the service type of the service message, the serial number that identifies the service message processing request message, and the service message. can do.
도 16은 본 발명의 블록체인 통신 시스템에서 이용하는 하는 서비스 메시지 처리 요청 메시지 구성의 예를 도시한 도면이다.16 is a diagram showing an example of a configuration of a service message processing request message used in the blockchain communication system of the present invention.
도 16을 참조하면, 서비스 메시지 처리 요청 메시지는 From, Service, SN 및 ServiceMessage를 포함하여 구성됨을 확인할 수 있다.Referring to FIG. 16, it can be seen that the service message processing request message includes From, Service, SN, and ServiceMessage.
From는 서비스 메시지를 송신한 블록체인 네트워크의 네트워크 어드레스로서, 도 16의 예에서 네트워크 어드레스는 "0x1.icon" 이다.From is the network address of the blockchain network that sent the service message, and in the example of FIG. 16, the network address is "0x1.icon".
Service는 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류에 관한 정보로, 도 16의 예에서 서비스 종류는 'token'이다.Service is information on a service type identifying a service type of a service message. In the example of FIG. 16, the service type is'token'.
SN은 블록체인 통신 메시지를 식별할 수 있는 시리얼 넘버로서 도 16의 예에서 그 값은 '2'이다.SN is a serial number that can identify a blockchain communication message, and its value is '2' in the example of FIG. 16.
ServiceMessage는 서비스 메시지를 나타내며, 서비스 메시지의 모든 정보가 포함된다.ServiceMessage represents a service message and includes all information of the service message.
다시 도 7의 설명으로 돌아와서, 제2 블록체인 네트워크(130)의 제2 서비스 제어 스마트 컨트랙트(132)는 서비스 메시지 처리 요청 메시지를 수신하면(156), 서비스 메시지 처리 요청 메시지에 포함된 서비스 메시지를 확인하여 서비스 메시지의 목적지로 서비스 메시지에 포함된 메시지를 송신한다(718).Returning to the description of FIG. 7 again, when the second service control
도 8은 본 발명의 제2 블록체인 네트워크에서 수신한 메시지를 검증하는 과정을 도시한 흐름도이다.8 is a flowchart illustrating a process of verifying a message received in a second blockchain network of the present invention.
도 8을 참조하면, 제2 블록체인 네트워크(130)의 제2 메시지 검증 스마트 컨트랙트(136)는 릴레이 메시지 검증 요청 메시지에 포함된 메시지에 대해서 메시지가 포함된 블록의 블록 높이(K)와 제2 메시지 검증 스마트 컨트랙트(136)에 저장된 L번째 블록 헤더의 블록 높이를 비교한다.Referring to FIG. 8, the second message verification
810단계의 비교결과 K > L이면, 제2 메시지 검증 스마트 컨트랙트(136)는 릴레이 메시지 검증 요청 메시지를 통해서 L+1번째 블록에서 K번째 블록 까지의 모든 블록 각각에 대해서 블록 헤더, 블록에 대한 검증자의 투표 정보, 다음 블록을 검증할 검증자의 정보를 블록 검증 정보로서 수신하고, 메시지의 존재를 증명할 수 있는 정보를 메시지 검증 정보로서 수신한다(812).If the result of the comparison in
그리고, 제2 메시지 검증 스마트 컨트랙트(136)는 저장된 L번째 블록의 블록 헤더, 저장된 L번째 블록의 다음 블록의 검증자 정보, 수신한 블록에 대한 검증자의 투표정보, 수신한 다음 블록을 검증할 검증자의 정보를 이용해서 블록 높이의 순서대로 수신한 블록 헤더를 검증하여 블록의 존재를 검증한다(814).And, the second message verification
814단계에서 L+1번째 블록에서 K번째 블록 까지의 블록이 복수개이면, L+1번째 블록, L+2번째 블록, L+3번째 블록, ?? , K번째 블록 순으로 블록의 존재를 검증한다.In step 814, if there are multiple blocks from L+1th block to Kth block, L+1th block, L+2th block, L+3th block, ?? The existence of blocks is verified in the order of the K-th block.
즉, 저장된 L번째 블록의 블록 헤더, 저장된 L번째 블록의 다음 블록의 검증자 정보 및 수신한 L+1번째 블록의 투표정보를 이용하여 수신한 L+1번째 블록의 블록 헤더를 검증한다.That is, the received block header of the L+1 th block is verified using the stored block header of the L th block, the validator information of the next block of the L th block and the received voting information of the L+1 th block.
그리고, 수신한 L+2번째 블록의 블록 헤더는 검증된 L+1번째 블록의 블록 헤더, 수신한 L+1번째 블록의 다음 검증자 정보, 및 수신한 L+2번째 블록의 투표정보를 이용해서 검증된다.In addition, the received block header of the L+2 th block uses the verified block header of the L+1 th block, the next validator information of the received L+1 th block, and the received voting information of the L+2 th block. And verified.
이와 같은 블록 높이의 순서대로 검증을 수행하면 수신한 K번째 블록의 블록 헤더를 검증할 수 있다.If verification is performed in this order of block height, the block header of the received K-th block can be verified.
그리고, 제2 메시지 검증 스마트 컨트랙트(136)는 검증된 블록의 블록 헤더를 블록 높이의 순서대로 적용하여 제1 블록체인의 머클 트리의 루트 값을 갱신한다(816).In addition, the second message verification
그리고, 제2 메시지 검증 스마트 컨트랙트(136)는 메시지가 포함된 블록의 블록헤더, 메시지 및 메시지 검증 정보를 이용해서 메시지의 존재를 검증한다(818).Further, the second message verification
그리고, 제2 메시지 검증 스마트 컨트랙트(136)는 가장 마지막에 수신한 가장 큰 블록 높이를 가진 블록에 대응하는 블록 헤더, 해당 블록이 적용된 제1 블록체인의 머클 트리의 루트 값 및 해당 블록의 다음 블록의 검증자 정보를 다음번의 검증을 위해서 저장하여 관리한다(820).In addition, the second message verification
810단계의 비교결과 K ≤ L이면, 제2 메시지 검증 스마트 컨트랙트(136)는 릴레이 메시지 검증 요청 메시지를 통해서, 메시지가 포함된 블록의 블록 헤더 및 메시지가 포함된 블록의 존재를 증명할 수 있는 정보를 블록 검증 정보로서 수신하고, 메시지의 존재를 증명할 수 있는 정보를 메시지 검증 정보로서 수신한다(822).If the result of the comparison in
그리고, 제2 메시지 검증 스마트 컨트랙트(136)는 메시지가 포함된 블록의 블록 헤더 및 메시지가 포함된 블록의 존재를 증명할 수 있는 정보를 이용해서 제1 블록체인의 머클 트리의 루트 값을 계산하고, 계산된 제1 블록체인의 머클 트리의 루트 값과 저장된 제1 블록체인의 머클 트리의 루트 값이 동일한지 비교해서 메시지가 포함된 블록의 존재를 검증한다(824).Then, the second message verification
824단계에서 블록의 존재를 검증하는 것은 저장된 제1 블록체인의 머클 트리의 루트 값이 하나인 경우, 저장된 하나의 루트 값과 상기 계산된 제1 블록체인의 머클 트리의 루트 값이 동일하면 검증에 성공하였다고 판단할 수 있다. In step 824, verifying the existence of a block is performed when the stored root value of the Merkle tree of the first blockchain is one, and if the stored root value and the calculated root value of the Merkle tree of the first blockchain are the same, verification is performed. You can judge that it was successful.
그리고, 저장된 제1 블록체인의 머클 트리의 루트 값이 복수개인 경우, 저장된 복수개의 루트 값 중 하나와 상기 계산된 제1 블록체인의 머클 트리의 루트 값이 동일하면 검증에 성공하였다고 판단할 수 있다.In addition, when there are a plurality of stored root values of the Merkle tree of the first blockchain, if one of the stored plurality of root values and the calculated root value of the Merkle tree of the first blockchain are the same, it can be determined that the verification was successful. .
그리고, 제2 메시지 검증 스마트 컨트랙트(136)는 메시지가 포함된 블록의 블록헤더, 메시지 및 메시지 검증 정보를 이용해서 메시지의 존재를 검증한다(826).Further, the second message verification
도 9는 본 발명의 블록체인 통신 시스템에서 생성하고 관리하는 머클 트리 및 머클 트리의 루트값의 예를 도시한 도면이다.9 is a diagram showing an example of a Merkle tree and a root value of a Merkle tree created and managed in the blockchain communication system of the present invention.
도 9를 참조하면, 릴레이(120)는 블록의 블록 헤더 정보를 이용해서 다음과 같이 머클 트리를 생성할 수 있고, 제2 메시지 검증 스마트 컨트랙트(136)는 머클 트리의 루트 값을 생성하여 저장한다.Referring to FIG. 9, the
본 발명은 제2 메시지 검증 스마트 컨트랙트(136)에서 머클 트리 전체가 아닌 머클 트리의 루트 값을 저장하여도 블록의 존재 여부를 검증할 수 있어서 효과적이다.The present invention is effective because it is possible to verify whether a block exists even if the second message verification
머클 트리는 블록체인을 구성하는 블록의 블록 헤더를 해쉬한 값을 리프 노드(leaf node)하는 2진 트리이다.Merkle tree is a binary tree that leaves the hashed value of the block header of the block constituting the blockchain.
도 9에서 x1은 블록 높이가 1인 블록의 블록 헤드이고, x2는 블록 높이가 2인 블록의 블록 헤드이고, x3은 블록 높이가 3인 블록의 블록 헤드이고, x4은 블록 높이가 4인 블록의 블록 헤드이다.In FIG. 9, x1 is a block head of a block with a block height of 1, x2 is a block head of a block with a block height of 2, x3 is a block head of a block with a block height of 3, and x4 is a block with a block height of 4. Is the block head.
910 단계에서 940 단계는 x1, x2, x3, x4가 순차적으로 적용되어 머클 트리가 생성되는 과정이다.
910 단계는 x1가 머클 트리에 적용된 단계로, x1을 해쉬(hash)해서 계산된 h1 노드가 최초 노드로 머클 트리에 생성된다. 이때, h1 노드는 루트 값(912)이기도 하다.Step 910 is a step in which x1 is applied to the Merkle tree, and an h1 node calculated by hashing x1 is created in the Merkle tree as the first node. At this time, the node h1 is also the
920 단계는 910 단계에 추가로 x2가 적용된 단계로, 이진 트리 이므로, x2를 해쉬해서 계산된 h2 노드에 h1 노드를 해쉬( H1 = hash(h1 || h2) )해서 계산된 H1 노드를 생성하고, H1 노드의 자식 노드이자 리프노드로 h1 노드와 h2 노드를 연결한다. 이때, H1 노드는 루트 값(922)이 된다.Step 920 is a step to which x2 is applied in addition to
930 단계는 920 단계에 추가로 x3가 적용된 단계로, 이진 트리 이므로, x3를 해쉬해서 계산된 h3 노드를 루트 값(932)에 추가한다. 이때, 930 단계의 경우, 루트 값(932)이 H1 노드와 h3 노드로 2개의 루트 값을 가지며, 이로써 루트 값은 복수개일 수 있음을 확인할 수 있다.Step 930 is a step to which x3 is additionally applied to step 920, and since it is a binary tree, h3 node calculated by hashing x3 is added to the
940 단계는 930 단계에 추가로 x4가 적용된 단계로, 도면과 같이 H3 노드의 자식 노드로 H1 노드와 H2 노드가 연결하고, H1 노드의 자식 노드이자 리프노드로 h1 노드와 h2 노드를 연결하고, H2 노드의 자식 노드이자 리프노드로 h3 노드와 h4 노드를 연결한다. 이때, 루트 값(942)는 H3 노드이다.Step 940 is a step in which x4 is additionally applied to step 930. As shown in the drawing, H1 node and H2 node are connected as child nodes of H3 node, and h1 node and h2 node are connected as child nodes and leaf nodes of H1 node As a child node and leaf node of the H2 node, it connects the h3 node and the h4 node. At this time, the
도 6의 620단계에서 획득하는 제1 블록체인의 머클 트리를 이용한 메시지가 포함된 블록의 존재를 증명할 수 있는 정보를 도 9를 참조하여 다음과 같이 설명하고자 한다.Information for proving the existence of a block including a message using the Merkle tree of the first block chain obtained in
도 6의 K가 4이고 메시지가 포함된 블록의 블록 높이(N)가 2인 경우, 620단계의 블록의 존재를 증명할 수 있는 정보는 다음의 <수학식 1>과 같이 정의할 수 있다.When K in FIG. 6 is 4 and the block height (N) of the block containing the message is 2, information capable of proving the existence of the block in
[수학식 1][Equation 1]
Wt4 x2 = [(h1, left), (H2, right)]W t4 x2 = [(h1, left), (H2, right)]
여기서, Wt4 x2는 4번째 블록 헤더가 적용된 머클 트리에 2번째 블록 헤더가 존재한다는 증거로서, 블록의 존재를 증명할 수 있는 정보이다.Here, W t4 x2 is evidence that the second block header exists in the Merkle tree to which the fourth block header is applied, and is information that can prove the existence of the block.
(h1, left)는 x2의 해쉬값이 h2 노드의 왼쪽에 h1이 있다는 내용이고, (H2, right)]는 x2의 해쉬값이 h2 노드의 오른쪽에 H2가 있다는 내용이다.(h1, left) indicates that the hash value of x2 is on the left side of the h2 node, and (H2, right)] indicates that the hash value of x2 is on the right side of the node h2.
제2 메시지 검증 스마트 컨트랙트(136)는 822단계에서 블록의 존재를 증명할 수 있는 정보로 Wt4 x2를 수신하면, 824단계에서 다음의 <수학식 2>와 같이 계산하여 검증할 수 있다.When the second message verification
[수학식 2][Equation 2]
hash ( hash( h1 || hash (x2)) || H2 ) = H3hash (hash( h1 || hash (x2)) || H2) = H3
여기서, x2는 Wt4 x2와 함께 수신되는 메시지가 포함된 블록의 블록 헤더이고, h1와 H2는 Wt4 x2에 포함된 정보이고, H3는 제2 메시지 검증 스마트 컨트랙트(136)에 저장된 머클 트리의 루트 값이다.Here, x2 is the block header of the block containing the message received with W t4 x2 , h1 and H2 are the information included in W t4 x2 , and H3 is the Merkle tree stored in the second message verification
이상과 같이 실시예들이 비록 한정된 도면에 의해 설명되었으나, 해당 기술분야에서 통상의 지식을 가진 자라면 상기를 기초로 다양한 기술적 수정 및 변형을 적용할 수 있다. 예를 들어, 설명된 기술들이 설명된 방법과 다른 순서로 수행되거나, 및/또는 설명된 시스템, 구조, 장치, 회로 등의 구성요소들이 설명된 방법과 다른 형태로 결합 또는 조합되거나, 다른 구성요소 또는 균등물에 의하여 대치되거나 치환되더라도 적절한 결과가 달성될 수 있다.As described above, although the embodiments have been described by the limited drawings, a person of ordinary skill in the art can apply various technical modifications and variations based on the above. For example, the described techniques are performed in a different order from the described method, and/or components such as a system, structure, device, circuit, etc. described are combined or combined in a form different from the described method, or other components Alternatively, even if substituted or substituted by an equivalent, an appropriate result can be achieved.
그러므로, 다른 구현들, 다른 실시예들 및 특허청구범위와 균등한 것들도 후술하는 청구범위의 범위에 속한다.Therefore, other implementations, other embodiments and claims and equivalents fall within the scope of the following claims.
110: 제1 블록체인 네트워크
120: 릴레이
130: 제2 블록체인 네트워크
112: 제1 서비스 제어 스마트 컨트랙트
114: 제1 메시지 제어 스마트 컨트랙트
116: 제1 메시지 검증 스마트 컨트랙트
132: 제2 서비스 제어 스마트 컨트랙트
134: 제2 메시지 제어 스마트 컨트랙트
136: 제2 메시지 검증 스마트 컨트랙트110: the first blockchain network
120: relay
130: the second blockchain network
112: first service control smart contract
114: first message control smart contract
116: first message verification smart contract
132: second service control smart contract
134: second message control smart contract
136: Second message verification smart contract
Claims (25)
상기 제1 블록체인 네트워크를 모니터링 하는 릴레이에서 상기 블록체인 통신 메시지의 생성을 감지하면, 상기 메시지가 포함된 블록을 검증할 수 있는 블록 검증 정보와 상기 메시지를 검증할 수 있는 메시지 검증 정보를 획득하고, 상기 블록체인 통신 메시지, 상기 블록 검증 정보 및 상기 메시지 검증 정보를 포함하는 릴레이 메시지를 생성하고, 상기 릴레이 메시지를 상기 메시지의 목적지를 포함하는 상기 제2 블록체인 네트워크로 송신하는 제2 단계; 및
상기 제2 블록체인 네트워크에서 상기 릴레이 메시지를 수신하면, 상기 릴레이 메시지에 포함된 상기 블록 검증 정보 및 상기 메시지 검증 정보를 이용해서 상기 릴레이 메시지를 검증하고, 상기 릴레이 메시지에 포함된 메시지를 목적지로 송신하는 제3 단계
를 포함하고,
상기 제2 단계는,
상기 릴레이에서 상기 블록체인 통신 메시지를 포함하는 블록체인 이벤트 메시지의 생성을 감지하면, 상기 릴레이에서 관리하는 제1 블록체인의 블록 높이(K)와 상기 메시지가 포함된 블록의 블록 높이(N)를 비교하는 단계;
비교 결과, 상기 메시지가 포함된 블록의 블록 높이(N)가 상기 릴레이에서 관리하는 제1 블록체인의 블록 높이(K) 보다 큰 경우와 상기 메시지가 포함된 블록의 블록 높이(N)가 상기 릴레이에서 관리하는 제1 블록체인의 블록 높이(K) 보다 작거나 같은 경우에 따라 상기 블록 검증 정보 및 상기 메시지 검증 정보를 획득하는 단계;
상기 블록체인 통신 메시지, 상기 블록 검증 정보 및 상기 메시지 검증 정보를 포함하는 상기 릴레이 메시지를 생성하는 단계; 및
상기 릴레이에서 상기 릴레이 메시지를 포함하는 릴레이 메시지 처리 요청 메시지를 생성하여 상기 제2 블록체인 네트워크의 제2 메시지 제어 스마트 컨트랙트로 송신하는 단계
를 포함하는 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
When receiving a message transmitted from the first blockchain network to the second blockchain network, a service message including the message and service information of the message is generated, and a block chain communication message including the service message is generated. Step 1;
When the relay monitoring the first blockchain network detects the creation of the block chain communication message, block verification information capable of verifying the block containing the message and message verification information capable of verifying the message are obtained, and A second step of generating a relay message including the block chain communication message, the block verification information, and the message verification information, and transmitting the relay message to the second block chain network including a destination of the message; And
When the relay message is received from the second blockchain network, the relay message is verified using the block verification information and the message verification information included in the relay message, and the message included in the relay message is transmitted to the destination. The third step to do
Including,
The second step,
When the relay detects the creation of a block chain event message including the block chain communication message, the block height (K) of the first block chain managed by the relay and the block height (N) of the block containing the message are determined. Comparing;
As a result of comparison, when the block height (N) of the block containing the message is greater than the block height (K) of the first block chain managed by the relay and the block height (N) of the block containing the message is the relay Acquiring the block verification information and the message verification information according to a case less than or equal to the block height (K) of the first block chain managed by
Generating the relay message including the block chain communication message, the block verification information, and the message verification information; And
Generating a relay message processing request message including the relay message in the relay and transmitting it to a second message control smart contract of the second blockchain network
A method of verifying a message for communication between blockchains in a blockchain communication system comprising a.
상기 메시지가 포함된 블록의 블록 높이(N)가 상기 릴레이에서 관리하는 제1 블록체인의 블록 높이(K) 보다 큰 경우, 상기 블록 검증 정보 및 상기 메시지 검증 정보를 획득하는 단계는,
상기 릴레이에서 관리하는 제1 블록체인의 블록 높이(K) 보다 크고 상기 메시지가 포함된 블록의 블록 높이(N) 까지의 새로운 모든 블록 각각에 대해서 블록 헤더, 블록에 대한 검증자의 투표 정보, 다음 블록을 검증할 검증자의 정보를 상기 블록 검증 정보로 획득하는 단계;
상기 메시지의 존재를 증명할 수 있는 정보를 상기 메시지 검증 정보로 획득하는 단계; 및
상기 릴레이에서 관리하는 제1 블록체인의 블록 높이(K) 보다 크고 상기 메시지가 포함된 블록의 블록 높이(N) 까지의 새로운 모든 블록을 제1 블록체인의 머클 트리에 적용하는 단계
를 포함하는 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
The method of claim 1,
When the block height (N) of the block containing the message is greater than the block height (K) of the first block chain managed by the relay, obtaining the block verification information and the message verification information,
For each new block that is greater than the block height (K) of the first block chain managed by the relay and up to the block height (N) of the block containing the message, the block header, the validator's vote information for the block, and the next block Obtaining information of a validator to be verified as the block verification information;
Obtaining information that can prove the existence of the message as the message verification information; And
Applying all new blocks that are greater than the block height (K) of the first blockchain managed by the relay and up to the block height (N) of the block containing the message to the Merkle tree of the first blockchain
A method of verifying a message for communication between blockchains in a blockchain communication system comprising a.
상기 제1 블록체인의 머클 트리는,
상기 제1 블록체인의 블록의 블록 헤더를 해쉬한 값을 리프 노드하는 2진 트리인
블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
The method of claim 3,
The Merkle tree of the first blockchain,
A binary tree that leaves the hashed value of the block header of the block of the first blockchain
A method of proving messages for communication between blockchains in a blockchain communication system.
상기 메시지가 포함된 블록의 블록 높이(N)가 상기 릴레이에서 관리하는 제1 블록체인의 블록 높이(K) 보다 작거나 같은 경우, 상기 블록 검증 정보 및 상기 메시지 검증 정보를 획득하는 단계는,
상기 메시지가 포함된 블록의 블록 헤더 및 상기 제1 블록체인의 머클 트리를 이용한 상기 메시지가 포함된 블록의 존재를 증명할 수 있는 정보를 상기 블록 검증 정보로 획득하는 단계; 및
상기 메시지의 존재를 증명할 수 있는 정보를 상기 메시지 검증 정보로 획득하는 단계
를 포함하는 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
The method of claim 1,
When the block height (N) of the block containing the message is less than or equal to the block height (K) of the first block chain managed by the relay, obtaining the block verification information and the message verification information,
Acquiring, as the block verification information, information proving the existence of the block including the message using a block header of the block including the message and the Merkle tree of the first block chain; And
Acquiring information that can prove the existence of the message as the message verification information
A method of verifying a message for communication between blockchains in a blockchain communication system comprising a.
상기 제1 블록체인의 머클 트리를 이용한 상기 메시지가 포함된 블록의 존재를 증명할 수 있는 정보는,
상기 메시지가 포함된 블록의 블록 헤더를 이용해서 상기 제1 블록체인의 머클 트리의 루트 값을 생성하는데 필요한 정보인
블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
The method of claim 5,
Information that can prove the existence of the block containing the message using the Merkle tree of the first blockchain,
Information required to generate the root value of the Merkle tree of the first block chain using the block header of the block containing the message
A method of proving messages for communication between blockchains in a blockchain communication system.
상기 릴레이 메시지 처리 요청 메시지는,
상기 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스 및
상기 릴레이 메시지
를 포함하는 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
The method of claim 1,
The relay message processing request message,
Blockchain address of the message control smart contract that generated the blockchain communication message, and
The relay message
A method of verifying a message for communication between blockchains in a blockchain communication system comprising a.
상기 제3 단계는,
상기 제2 블록체인 네트워크의 제2 메시지 제어 스마트 컨트랙트에서 상기 릴레이로부터 상기 릴레이 메시지를 포함하는 릴레이 메시지 처리 요청 메시지를 수신하는 단계;
상기 릴레이 메시지를 포함하는 릴레이 메시지 검증 요청 메시지를 생성하여 상기 제2 블록체인 네트워크의 제2 메시지 검증 스마트 컨트랙트로 송신하는 단계;
상기 제2 블록체인 네트워크의 상기 제2 메시지 검증 스마트 컨트랙트에서 상기 릴레이 메시지 검증 요청 메시지를 수신하면, 상기 릴레이 메시지에 포함된 상기 블록 검증 정보 및 상기 메시지 검증 정보를 검증하는 단계;
상기 제2 블록체인 네트워크의 상기 제2 메시지 제어 스마트 컨트랙트에서 상기 제2 메시지 검증 스마트 컨트랙트를 통해서 상기 릴레이 메시지의 검증에 성공함을 확인하면, 상기 릴레이 메시지에 포함된 상기 블록체인 통신 메시지를 확인하고, 상기 블록체인 통신 메시지에 포함된 서비스 메시지를 확인하고, 상기 서비스 메시지를 포함하는 서비스 메시지 처리 요청 메시지를 생성하여 상기 제2 블록체인 네트워크의 제2 서비스 제어 스마트 컨트랙트로 송신하는 단계; 및
상기 제2 블록체인 네트워크의 상기 제2 서비스 제어 스마트 컨트랙트에서 상기 서비스 메시지 처리 요청 메시지를 수신하면, 상기 서비스 메시지 처리 요청 메시지에 포함된 상기 서비스 메시지를 확인하여 상기 서비스 메시지의 목적지로 상기 서비스 메시지에 포함된 상기 메시지를 송신하는 단계
를 포함하는 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
The method of claim 1,
The third step,
Receiving a relay message processing request message including the relay message from the relay in a second message control smart contract of the second blockchain network;
Generating a relay message verification request message including the relay message and transmitting it to a second message verification smart contract of the second blockchain network;
Verifying the block verification information and the message verification information included in the relay message upon receiving the relay message verification request message from the second message verification smart contract of the second blockchain network;
If the second message control smart contract of the second blockchain network confirms that the verification of the relay message is successful through the second message verification smart contract, the blockchain communication message included in the relay message is checked, and And checking a service message included in the block chain communication message, generating a service message processing request message including the service message, and transmitting it to a second service control smart contract of the second block chain network; And
When the service message processing request message is received by the second service control smart contract of the second blockchain network, the service message included in the service message processing request message is checked, and the service message is sent as a destination of the service message. Transmitting the included message
A method of verifying a message for communication between blockchains in a blockchain communication system comprising a.
상기 제2 블록체인 네트워크의 상기 제2 메시지 검증 스마트 컨트랙트에서 이전 릴레이 메시지를 처리하는 과정에서 상기 제1 블록체인 네트워크로부터 수신한 블록 중에서 블록 높이가 가장 큰 블록이 L번째 블록일 때, L번째 블록의 블록 헤더, 상기 L번째 블록의 블록 헤더가 적용된 제1 블록체인의 머클 트리의 루트 값 및 상기 L번째 블록의 다음 블록의 검증자 정보를 저장하는 단계
를 더 포함하는 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
The method of claim 8,
In the process of processing the previous relay message in the second message verification smart contract of the second blockchain network, when the block with the largest block height among the blocks received from the first blockchain network is the Lth block, the Lth block Storing the block header of, the root value of the Merkle tree of the first block chain to which the block header of the L-th block is applied, and validator information of the next block of the L-th block
A method of proving a message for communication between blockchains in a blockchain communication system further comprising a.
상기 제2 블록체인 네트워크의 상기 제2 메시지 검증 스마트 컨트랙트에서 상기 릴레이 메시지 검증 요청 메시지를 수신하면, 상기 릴레이 메시지에 포함된 상기 블록 검증 정보 및 상기 메시지 검증 정보를 검증하는 단계는,
상기 릴레이 메시지 검증 요청 메시지에 포함된 상기 메시지에 대해서 상기 메시지가 포함된 블록의 블록 높이(K)가 상기 제2 메시지 검증 스마트 컨트랙트에 저장된 상기 L번째 블록 헤더의 블록 높이 보다 크면, L+1번째 블록에서 K번째 블록 까지의 모든 블록 각각에 대해서 블록 헤더, 블록에 대한 검증자의 투표 정보, 다음 블록을 검증할 검증자의 정보를 상기 블록 검증 정보로서 수신하고, 상기 메시지의 존재를 증명할 수 있는 정보를 상기 메시지 검증 정보로서 수신하는 단계;
상기 저장된 L번째 블록의 블록 헤더, 상기 저장된 L번째 블록의 다음 블록의 검증자 정보, 상기 수신한 블록에 대한 검증자의 투표정보, 상기 수신한 다음 블록을 검증할 검증자의 정보를 이용해서 블록 높이의 순서대로 상기 수신한 블록 헤더를 검증하여 블록의 존재를 검증하는 단계;
검증된 블록에 해당하는 블록 헤더를 블록 높이의 순서대로 적용하여 상기 제1 블록체인의 머클 트리의 루트 값을 갱신하는 단계; 및
상기 메시지가 포함된 블록의 블록헤더, 상기 메시지 및 상기 메시지 검증 정보를 이용해서 상기 메시지의 존재를 검증하는 단계
를 포함하는 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
The method of claim 9,
When receiving the relay message verification request message from the second message verification smart contract of the second blockchain network, verifying the block verification information and the message verification information included in the relay message,
For the message included in the relay message verification request message, if the block height (K) of the block containing the message is greater than the block height of the L-th block header stored in the second message verification smart contract, L+1 th For each block from the block to the Kth block, the block header, the validator's voting information for the block, and the information of the validator who will verify the next block are received as the block verification information, and information that can prove the existence of the message Receiving as the message verification information;
The block height of the block using the block header of the stored L-th block, validator information of the next block of the stored L-th block, voting information of a validator for the received block, and information of a validator to verify the next received block. Verifying the existence of a block by sequentially verifying the received block header;
Updating a root value of the Merkle tree of the first blockchain by applying block headers corresponding to the verified blocks in the order of block heights; And
Verifying the existence of the message using the block header of the block containing the message, the message, and the message verification information
A method of verifying a message for communication between blockchains in a blockchain communication system comprising a.
상기 제2 블록체인 네트워크의 상기 제2 메시지 검증 스마트 컨트랙트에서 상기 릴레이 메시지 검증 요청 메시지를 수신하면, 상기 릴레이 메시지에 포함된 상기 블록 검증 정보 및 상기 메시지 검증 정보를 검증하는 단계는,
상기 릴레이 메시지 검증 요청 메시지에 포함된 상기 메시지에 대해서 상기 메시지가 포함된 블록의 블록 높이(K)가 상기 제2 메시지 검증 스마트 컨트랙트에 저장된 상기 L번째 블록 헤더의 블록 높이 보다 작거나 같으면, 상기 메시지가 포함된 블록의 블록 헤더 및 상기 메시지가 포함된 블록의 존재를 증명할 수 있는 정보를 상기 블록 검증 정보로서 수신하고, 상기 메시지의 존재를 증명할 수 있는 정보를 상기 메시지 검증 정보로서 수신하는 단계;
상기 메시지가 포함된 블록의 블록 헤더 및 상기 메시지가 포함된 블록의 존재를 증명할 수 있는 정보를 이용해서 제1 블록체인의 머클 트리의 루트 값을 계산하고, 계산된 제1 블록체인의 머클 트리의 루트 값과 저장된 제1 블록체인의 머클 트리의 루트 값이 동일한지 비교해서 상기 메시지가 포함된 블록의 존재를 검증하는 단계; 및
상기 메시지가 포함된 블록의 블록헤더, 상기 메시지 및 상기 메시지 검증 정보를 이용해서 상기 메시지의 존재를 검증하는 단계
를 포함하는 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.The method of claim 9,
When receiving the relay message verification request message from the second message verification smart contract of the second blockchain network, verifying the block verification information and the message verification information included in the relay message,
For the message included in the relay message verification request message, if the block height (K) of the block containing the message is less than or equal to the block height of the L-th block header stored in the second message verification smart contract, the message Receiving, as the block verification information, a block header of a block including a block header and information proving the existence of a block including the message, as the message verification information, and information proving the existence of the message;
The root value of the Merkle tree of the first blockchain is calculated using the block header of the block containing the message and information that can prove the existence of the block containing the message, and the calculated Merkle tree of the first blockchain is Comparing whether the root value and the root value of the Merkle tree of the stored first block chain are the same to verify the existence of the block including the message; And
Verifying the existence of the message using the block header of the block containing the message, the message, and the message verification information
A method of verifying a message for communication between blockchains in a blockchain communication system comprising a.
상기 메시지가 포함된 블록의 블록 헤더 및 상기 메시지가 포함된 블록의 존재를 증명할 수 있는 정보를 이용해서 제1 블록체인의 머클 트리의 루트 값을 계산하고, 계산된 제1 블록체인의 머클 트리의 루트 값과 저장된 제1 블록체인의 머클 트리의 루트 값이 동일한지 비교해서 상기 메시지가 포함된 블록의 존재를 검증하는 단계는,
상기 저장된 제1 블록체인의 머클 트리의 루트 값이 하나인 경우, 저장된 하나의 루트 값과 상기 계산된 제1 블록체인의 머클 트리의 루트 값이 동일하면 검증에 성공하였다고 판단하고,
상기 저장된 제1 블록체인의 머클 트리의 루트 값이 복수개인 경우, 저장된 복수개의 루트 값 중 하나와 상기 계산된 제1 블록체인의 머클 트리의 루트 값이 동일하면 검증에 성공하였다고 판단하는
블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
The method of claim 11,
The root value of the Merkle tree of the first blockchain is calculated using the block header of the block containing the message and information that can prove the existence of the block containing the message, and the calculated Merkle tree of the first blockchain is The step of verifying the existence of a block containing the message by comparing whether the root value and the root value of the Merkle tree of the stored first blockchain are the same,
If the stored root value of the Merkle tree of the first blockchain is one, it is determined that verification has been successful if the stored root value and the calculated root value of the Merkle tree of the first blockchain are the same,
When the stored root value of the Merkle tree of the first blockchain is plural, it is determined that verification is successful if one of the stored root values and the calculated root value of the Merkle tree of the first blockchain are the same.
A method of proving messages for communication between blockchains in a blockchain communication system.
상기 릴레이 메시지 검증 요청 메시지는,
상기 릴레이 메시지 처리 요청 메시지를 수신하는 메시지 제어 스마트 컨트랙트의 블록체인 어드레스,
상기 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스,
시퀀스 정보, 및
상기 릴레이 메시지
를 포함하는 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
The method of claim 8,
The relay message verification request message,
Blockchain address of a message control smart contract that receives the relay message processing request message,
Blockchain address of the message control smart contract that generated the blockchain communication message,
Sequence information, and
The relay message
A method of verifying a message for communication between blockchains in a blockchain communication system comprising a.
상기 서비스 메시지 처리 요청 메시지는,
상기 서비스 메시지를 송신한 블록체인 네트워크의 네트워크 어드레스,
상기 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류,
상기 서비스 메시지 처리 요청 메시지를 식별할 수 있는 시리얼 넘버, 및
상기 서비스 메시지
를 포함하는 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
The method of claim 8,
The service message processing request message,
The network address of the blockchain network that sent the service message,
A service type identifying a service type of the service message,
A serial number capable of identifying the service message processing request message, and
The service message
A method of verifying a message for communication between blockchains in a blockchain communication system comprising a.
상기 서비스 메시지는,
상기 메시지를 수신하는 계정의 블록체인 어드레스인 목적지 어드레스
를 포함하는 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
The method of claim 1,
The service message,
Destination address, which is the block chain address of the account receiving the message
A method of verifying a message for communication between blockchains in a blockchain communication system comprising a.
상기 서비스 메시지는,
상기 메시지의 종류를 식별하는 메시지 종류,
서비스 종류와 서비스 종류의 세부 사항정보를 포함하는 서비스 정보,
상기 메시지를 송신하는 계정의 블록체인 어드레스인 출발지 어드레스, 및
상기 메시지로 송신하고자 하는 데이터
중에서 적어도 하나를 더 포함하는 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
The method of claim 15,
The service message,
A message type identifying the type of the message,
Service information, including service type and detailed information of service type,
A source address, which is the block chain address of the account sending the message, and
Data to be sent in the above message
A method of proving a message for communication between blockchains in a blockchain communication system further comprising at least one of.
상기 블록체인 어드레스는,
블록체인 통신을 위한 어드레스임을 나타내는 통신 규약 식별 정보,
블록체인 네트워크의 종류를 구분하는 블록체인 종류 정보,
동일한 블록체인 네트워크의 종류에서 블록체인을 식별할 수 있는 블록체인 식별 정보, 및
블록체인 네트워크의 특정 계정을 식별할 수 있는 계정 식별 정보
를 포함하는 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
The method of claim 15,
The blockchain address is,
Communication protocol identification information indicating that the address is for blockchain communication,
Blockchain type information that identifies the type of blockchain network,
Blockchain identification information that can identify the blockchain in the same type of blockchain network, and
Account identification information that can identify a specific account on the blockchain network
A method of verifying a message for communication between blockchains in a blockchain communication system comprising a.
상기 블록체인 통신 메시지는,
상기 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스인 출발지 어드레스,
상기 블록체인 통신 메시지를 수신하는 메시지 제어 스마트 컨트랙트의 블록체인 어드레스인 목적지 어드레스,
상기 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류,
상기 블록체인 통신 메시지를 식별할 수 있는 시리얼 넘버, 및
상기 서비스 메시지
를 포함하는 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
The method of claim 1,
The block chain communication message,
The starting address, which is the block chain address of the message control smart contract that generated the blockchain communication message,
Destination address, which is the block chain address of the message control smart contract that receives the block chain communication message,
A service type identifying a service type of the service message,
A serial number capable of identifying the blockchain communication message, and
The service message
A method of verifying a message for communication between blockchains in a blockchain communication system comprising a.
상기 릴레이 메시지는,
동일한 네트워크 어드레스를 가진 적어도 하나의 상기 블록체인 통신 메시지, 및
상기 블록체인 통신 메시지의 상기 검증 정보
를 포함하는 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
The method of claim 1,
The relay message,
At least one of the blockchain communication messages having the same network address, and
The verification information of the blockchain communication message
A method of verifying a message for communication between blockchains in a blockchain communication system comprising a.
상기 제1 단계는,
상기 제1 블록체인 네트워크의 제1 서비스 제어 스마트 컨트랙트에서 상기 제2 블록체인 네트워크로 전송하는 상기 메시지를 수신하는 단계;
상기 제1 블록체인 네트워크의 상기 제1 서비스 제어 스마트 컨트랙트에서 상기 수신한 메시지를 이용해서 상기 서비스 메시지를 생성하고, 상기 서비스 메시지를 포함하는 송신 서비스 메시지를 생성하고, 상기 송신 서비스 메시지를 상기 제1 블록체인 네트워크의 제1 메시지 제어 스마트 컨트랙트로 송신하는 단계; 및
상기 제1 블록체인 네트워크의 상기 제1 메시지 제어 스마트 컨트랙트에서 상기 송신 서비스 메시지를 수신하면, 상기 서비스 메시지를 포함하는 상기 블록체인 통신 메시지를 생성하고, 상기 블록체인 통신 메시지를 포함하는 블록체인 이벤트 메시지를 생성하는 단계
를 포함하는 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
The method of claim 1,
The first step,
Receiving the message transmitted from the first service control smart contract of the first blockchain network to the second blockchain network;
The first service control smart contract of the first blockchain network generates the service message using the received message, generates a transmission service message including the service message, and sends the transmission service message to the first Transmitting to a first message control smart contract of a blockchain network; And
When the transmission service message is received by the first message control smart contract of the first blockchain network, the blockchain communication message including the service message is generated, and a blockchain event message including the blockchain communication message Steps to generate
A method of verifying a message for communication between blockchains in a blockchain communication system comprising a.
상기 송신 서비스 메시지는,
상기 서비스 메시지를 수신하는 블록체인 네트워크의 네트워크 어드레스에 관한 정보인 목적지 네트워크 어드레스,
상기 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류,
상기 송신 서비스 메시지를 식별할 수 있는 시리얼 넘버, 및
상기 서비스 메시지
를 포함하는 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
The method of claim 20,
The transmission service message,
A destination network address, which is information about the network address of the blockchain network receiving the service message,
A service type identifying a service type of the service message,
A serial number capable of identifying the transmission service message, and
The service message
A method of verifying a message for communication between blockchains in a blockchain communication system comprising a.
상기 블록체인 이벤트 메시지는,
상기 블록체인 통신 메시지가 전달되는 다음 블록체인 네트워크의 메시지 제어 스마트 컨트랙트에 관한 블록체인 어드레스에 관한 정보인 다음 목적지 어드레스,
상기 블록체인 이벤트 메시지의 순서를 확인할 수 있는 시퀀스 정보, 및
상기 블록체인 통신 메시지
를 포함하는 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
The method of claim 20,
The block chain event message,
The next destination address, which is information about the blockchain address for the message control smart contract of the next blockchain network to which the blockchain communication message is delivered,
Sequence information for confirming the sequence of the blockchain event message, and
Blockchain communication message above
A method of verifying a message for communication between blockchains in a blockchain communication system comprising a.
상기 제1 단계는,
상기 제1 블록체인 네트워크의 상기 제1 메시지 제어 스마트 컨트랙트에서 상기 블록체인 통신 메시지를 상기 제1 블록체인 네트워크의 제1 블록체인에 추가하는 단계
를 더 포함하는 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
The method of claim 20,
The first step,
Adding the block chain communication message to the first block chain of the first block chain network in the first message control smart contract of the first block chain network
A method of proving a message for communication between blockchains in a blockchain communication system further comprising a.
상기 제1 단계는,
상기 블록체인 통신 메시지를 생성에 실패하면, 에러 메시지를 생성하여 상기 제1 블록체인 네트워크의 제1 블록체인에 추가하는 단계
를 더 포함하는 블록체인 통신 시스템에서 블록체인 간의 통신을 위해 메시지를 증명하는 방법.
The method of claim 1,
The first step,
When generating the blockchain communication message fails, generating an error message and adding it to the first blockchain of the first blockchain network
A method of proving a message for communication between blockchains in a blockchain communication system further comprising a.
상기 제1 블록체인 네트워크를 모니터링 하다가 상기 블록체인 통신 메시지의 생성을 감지하면, 상기 메시지가 포함된 블록을 검증할 수 있는 블록 검증 정보와 상기 메시지를 검증할 수 있는 메시지 검증 정보를 획득하고, 상기 블록체인 통신 메시지, 상기 블록 검증 정보 및 상기 메시지 검증 정보를 포함하는 릴레이 메시지를 생성하고, 상기 릴레이 메시지를 상기 메시지의 목적지를 포함하는 상기 제2 블록체인 네트워크로 송신하는 릴레이; 및
상기 릴레이 메시지를 수신하면, 상기 릴레이 메시지에 포함된 상기 블록 검증 정보 및 상기 메시지 검증 정보를 이용해서 상기 릴레이 메시지를 검증하고, 상기 릴레이 메시지에 포함된 메시지를 목적지로 송신하는 상기 제2 블록체인 네트워크
를 포함하고,
상기 릴레이는,
상기 블록체인 통신 메시지를 포함하는 블록체인 이벤트 메시지의 생성을 감지하면, 상기 릴레이에서 관리하는 제1 블록체인의 블록 높이(K)와 상기 메시지가 포함된 블록의 블록 높이(N)를 비교하고,
비교 결과, 상기 메시지가 포함된 블록의 블록 높이(N)가 상기 릴레이에서 관리하는 제1 블록체인의 블록 높이(K) 보다 큰 경우와 상기 메시지가 포함된 블록의 블록 높이(N)가 상기 릴레이에서 관리하는 제1 블록체인의 블록 높이(K) 보다 작거나 같은 경우에 따라 상기 블록 검증 정보 및 상기 메시지 검증 정보를 획득하고,
상기 블록체인 통신 메시지, 상기 블록 검증 정보 및 상기 메시지 검증 정보를 포함하는 상기 릴레이 메시지를 생성하고,
상기 릴레이 메시지를 포함하는 릴레이 메시지 처리 요청 메시지를 생성하여 상기 제2 블록체인 네트워크의 제2 메시지 제어 스마트 컨트랙트로 송신하는
블록체인 간의 통신을 위해 메시지를 증명하는 블록체인 통신 시스템.A first blockchain network for generating a service message including the message and service information of the message and generating a blockchain communication message including the service message when receiving a message transmitted to the second blockchain network;
When the creation of the block chain communication message is detected while monitoring the first blockchain network, block verification information capable of verifying the block containing the message and message verification information capable of verifying the message are obtained, and the A relay generating a relay message including a block chain communication message, the block verification information, and the message verification information, and transmitting the relay message to the second block chain network including a destination of the message; And
Upon receiving the relay message, the second blockchain network verifies the relay message using the block verification information and the message verification information included in the relay message and transmits the message included in the relay message to a destination
Including,
The relay,
When the creation of a block chain event message including the block chain communication message is detected, the block height (K) of the first block chain managed by the relay is compared with the block height (N) of the block containing the message,
As a result of comparison, when the block height (N) of the block containing the message is greater than the block height (K) of the first block chain managed by the relay and the block height (N) of the block containing the message is the relay Acquires the block verification information and the message verification information according to a case that is less than or equal to the block height (K) of the first block chain managed by
Generating the relay message including the block chain communication message, the block verification information, and the message verification information,
Generating a relay message processing request message including the relay message and transmitting it to a second message control smart contract of the second blockchain network
Blockchain communication system that proves messages for communication between blockchains.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020200076623A KR102179160B1 (en) | 2020-06-23 | 2020-06-23 | System and method to prove message for communication between blockchains |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020200076623A KR102179160B1 (en) | 2020-06-23 | 2020-06-23 | System and method to prove message for communication between blockchains |
Publications (1)
Publication Number | Publication Date |
---|---|
KR102179160B1 true KR102179160B1 (en) | 2020-11-16 |
Family
ID=73679949
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020200076623A KR102179160B1 (en) | 2020-06-23 | 2020-06-23 | System and method to prove message for communication between blockchains |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR102179160B1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022203203A1 (en) * | 2021-03-23 | 2022-09-29 | 주식회사 헤세그 | Method for accessing blockchain via trusted node, computer-readable recording medium storing same, and system therefor |
KR102474855B1 (en) * | 2022-06-29 | 2022-12-06 | 주식회사 호패 | Method, system and non-transitory computer-readable recording medium for providing messenger service |
KR20220170773A (en) | 2021-06-23 | 2022-12-30 | 포항공과대학교 산학협력단 | Dynamic merkle tree-based message stream generation apparatus, message streaming method and message streaming network system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019075560A1 (en) * | 2017-10-16 | 2019-04-25 | Btl Group Ltd. | Method and system for facilitating data transfer between blockchains |
KR20190104138A (en) * | 2017-06-07 | 2019-09-06 | 중안 인포메이션 테크놀로지 서비스 컴퍼니 리미티드 | Methods, devices and systems for realizing blockchain cross-chain communication |
KR20190136364A (en) * | 2018-05-30 | 2019-12-10 | 삼성에스디에스 주식회사 | Method for interconnecting heterogeneous blockchain platform and gateway apparatus for executing the same |
US20200050786A1 (en) * | 2018-05-29 | 2020-02-13 | Alibaba Group Holding Limited | Blockchain-based transaction processing method and apparatus |
-
2020
- 2020-06-23 KR KR1020200076623A patent/KR102179160B1/en active IP Right Grant
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20190104138A (en) * | 2017-06-07 | 2019-09-06 | 중안 인포메이션 테크놀로지 서비스 컴퍼니 리미티드 | Methods, devices and systems for realizing blockchain cross-chain communication |
WO2019075560A1 (en) * | 2017-10-16 | 2019-04-25 | Btl Group Ltd. | Method and system for facilitating data transfer between blockchains |
US20200050786A1 (en) * | 2018-05-29 | 2020-02-13 | Alibaba Group Holding Limited | Blockchain-based transaction processing method and apparatus |
KR20190136364A (en) * | 2018-05-30 | 2019-12-10 | 삼성에스디에스 주식회사 | Method for interconnecting heterogeneous blockchain platform and gateway apparatus for executing the same |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022203203A1 (en) * | 2021-03-23 | 2022-09-29 | 주식회사 헤세그 | Method for accessing blockchain via trusted node, computer-readable recording medium storing same, and system therefor |
KR20220170773A (en) | 2021-06-23 | 2022-12-30 | 포항공과대학교 산학협력단 | Dynamic merkle tree-based message stream generation apparatus, message streaming method and message streaming network system |
KR102474855B1 (en) * | 2022-06-29 | 2022-12-06 | 주식회사 호패 | Method, system and non-transitory computer-readable recording medium for providing messenger service |
WO2024005565A1 (en) * | 2022-06-29 | 2024-01-04 | 주식회사 호패 | Method, system, and non-transitory computer-readable recording medium for providing messenger service |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102179160B1 (en) | System and method to prove message for communication between blockchains | |
RU2716740C1 (en) | Information protection system and method | |
AU2018349940B2 (en) | System and method for information protection | |
CN110958110B (en) | Block chain private data management method and system based on zero knowledge proof | |
US9524327B2 (en) | Method and system for data synchronization, and apparatus thereof | |
US10819505B2 (en) | System and method for information protection | |
KR102128210B1 (en) | System and method for information protection | |
TW202046221A (en) | Method and device for creating block chain account and verifying block chain transaction | |
CN110930153B (en) | Block chain privacy data management method and system based on hidden third party account | |
KR20180102269A (en) | System and method for supporting external interface based on block chain | |
CN113676452B (en) | Replay attack resisting method and system based on one-time key | |
CN113328997A (en) | Alliance chain cross-chain system and method | |
Charapko et al. | Bridging paxos and blockchain consensus | |
KR102150210B1 (en) | Blockchain network | |
CN114567643A (en) | Cross-block-chain data transfer method, device and related equipment | |
KR102137269B1 (en) | Communication system and method between blockchains | |
CN112039837B (en) | Electronic evidence preservation method based on block chain and secret sharing | |
CN111797171A (en) | Data synchronization system based on block chain cross-chain technology | |
CN113839768B (en) | Cross-link communication method based on satellite link relay | |
WO2022116900A1 (en) | Method and apparatus for blockchain consensus | |
CN114037449A (en) | Cross-chain asset transfer method, computer device, and storage medium | |
CN113672988A (en) | Block chain-based information management method, system, medium, and electronic device | |
KR20200133140A (en) | Method and system for high speed processing of transaction based on hybrid blockchain | |
CN111626735B (en) | Data interaction system, method and module | |
US20240104557A1 (en) | Method for transmitting specific data whose data format is unknown at relay from first blockchain network to second blockchain network and relay using the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant |