KR102137269B1 - Communication system and method between blockchains - Google Patents

Communication system and method between blockchains Download PDF

Info

Publication number
KR102137269B1
KR102137269B1 KR1020200042242A KR20200042242A KR102137269B1 KR 102137269 B1 KR102137269 B1 KR 102137269B1 KR 1020200042242 A KR1020200042242 A KR 1020200042242A KR 20200042242 A KR20200042242 A KR 20200042242A KR 102137269 B1 KR102137269 B1 KR 102137269B1
Authority
KR
South Korea
Prior art keywords
message
blockchain
service
relay
communication
Prior art date
Application number
KR1020200042242A
Other languages
Korean (ko)
Inventor
김종협
송문규
유동창
고동휘
Original Assignee
주식회사 아이콘루프
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 주식회사 아이콘루프 filed Critical 주식회사 아이콘루프
Priority to KR1020200042242A priority Critical patent/KR102137269B1/en
Application granted granted Critical
Publication of KR102137269B1 publication Critical patent/KR102137269B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/72Routing based on the source address
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/16Flow control; Congestion control in connection oriented networks, e.g. frame relay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2408Traffic characterised by specific attributes, e.g. priority or QoS for supporting different services, e.g. a differentiated services [DiffServ] type of service
    • H04L61/306
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1087Peer-to-peer [P2P] networks using cross-functional networking aspects
    • H04L67/1091Interfacing with client-server systems or between P2P systems
    • H04L67/16
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/30Types of network names

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention relates to a system and a method for inter-blockchain communications. The inter-blockchain communication method comprises: a first step of, if a first blockchain network receives a message transmitted to a second blockchain network, generating a service message including the message and service information of the message and generating a blockchain communication message including the service message; a second step of, if a relay, which monitors the first blockchain network, senses generation of the blockchain communication message, acquiring validation information, which enables the blockchain communication message to be validated, from the first blockchain network, generating a relay message including the blockchain communication message and the validation information, and transmitting the relay message to the second blockchain network including a message destination; and a third step of, if the second blockchain network receives the relay message, validating the relay message using the validation information included in the relay message and transmitting the message, included in the relay message, to the destination. The present invention makes communications among different blockchain networks possible.

Description

블록체인간 통신 시스템 및 방법{COMMUNICATION SYSTEM AND METHOD BETWEEN BLOCKCHAINS}Blockchain communication system and method{COMMUNICATION SYSTEM AND METHOD BETWEEN BLOCKCHAINS}

이하의 일 실시 예들은 블록체인 네트워크에 관한 것으로, 서로 다른 블록체인 간의 통신을 제공하는 기술에 관한 것이다.The following exemplary embodiments relate to a blockchain network, and to a technology for providing communication between different blockchains.

블록체인은 공공 거래 장부라고도 부르며 대표적으로 가상 화폐로 거래할 때 발생할 수 있는 해킹을 막는 기술이다. 기존 금융 회사의 경우 중앙 집중형 서버에 거래 기록을 보관하는 반면, 블록체인은 블록체인 네트워크에 참여한 사용자 모두의 공동 작업을 통하여 블록을 생성하며, 생성된 블록을 모든 참여자가 검증하고 이를 승인함으로써 모두가 동일한 블록을 보유하는 것과 일부 사용자에 의해 데이터 위조를 막는 방식을 사용한다. 블록체인은 대표적인 온라인 가상 화폐인 비트코인에 적용되어 있다. 비트코인은 누구나 열람할 수 있는 장부에 거래 내역을 투명하게 기록하며, 비트코인을 사용하는 여러 컴퓨터가 이 기록을 검증하여 해킹을 막는다Blockchain is also called a public transaction ledger and is a technology that prevents hacking that can occur when trading in virtual currency. In the case of existing financial companies, the transaction records are kept in a centralized server, while the blockchain creates blocks through the collaboration of all users who participate in the blockchain network, and all the participants verify and approve the created blocks. It uses the same method of holding the same block and preventing data forgery by some users. Blockchain is applied to Bitcoin, a representative online virtual currency. Bitcoin transparently records transaction history in a book that anyone can read, and several computers using Bitcoin verify this record to prevent hacking

 블록체인 기반으로 금융거래, 부동산 계약, 공증 등 다양한 형태의 계약을 체결하고 이행하기 위해서 스마트 컨트랙트(Smart Contract)라는 개념이 제안되었다.The concept of a smart contract has been proposed to sign and execute various types of contracts such as financial transactions, real estate contracts, and notarization based on blockchain.

이더리움(Ethereum)은 블록체인 기술 기반의 스마트 컨트랙트 플랫폼으로, 이더리움에서는 금융거래뿐만 아니라 부동산거래, 공증 등의 가능한 모든 형태의 계약이 가능하다.Ethereum is a smart contract platform based on blockchain technology, and in Ethereum, not only financial transactions, but also all types of contracts such as real estate transactions and notarization are possible.

하지만, 블록체인은 하나의 블록체인 네트워크 내에서 수행되며, 다른 종류의 블록체인과 서로 통신을 수행함을 언급하고 있지 않다.However, blockchain does not mention that it is performed within one blockchain network and communicates with other types of blockchain.

서로 다른 블록체인 간의 통신이 가능해지면 다양한 서비스가 개발될 수 있을 것이므로, 서로 다른 블록체인 간에 메시지를 송수신할 수 있는 새로운 통신 체계가 요구된다.When communication between different blockchains becomes possible, various services can be developed, so a new communication system that can send and receive messages between different blockchains is required.

본 발명은 서로 다른 블록체인 간의 통신을 제공하는 통신 시스템 및 그 방법을 제공하는 것을 목적으로 한다.An object of the present invention is to provide a communication system and method for providing communication between different blockchains.

본 발명의 일 실시 예에 따른 블록체인 간 통신 방법은, 제1 블록체인 네트워크에서 제2 블록체인 네트워크로 전송하는 메시지를 수신하면, 상기 메시지와 상기 메시지의 서비스 정보를 포함하는 서비스 메시지를 생성하고, 상기 서비스 메시지를 포함하는 블록체인 통신 메시지를 생성하는 제1 단계; 상기 제1 블록체인 네트워크를 모니터링 하는 릴레이에서 상기 블록체인 통신 메시지의 생성을 감지하면, 상기 제1 블록체인 네트워크로부터 상기 블록체인 통신 메시지를 검증할 수 있는 검증 정보를 획득하고, 상기 블록체인 통신 메시지와 상기 검증 정보를 포함하는 릴레이 메시지를 생성하고, 상기 릴레이 메시지를 상기 메시지의 목적지를 포함하는 상기 제2 블록체인 네트워크로 송신하는 제2 단계; 및 상기 제2 블록체인 네트워크에서 상기 릴레이 메시지를 수신하면, 상기 릴레이 메시지에 포함된 상기 검증 정보를 이용해서 상기 릴레이 메시지를 검증하고, 상기 릴레이 메시지에 포함된 메시지를 목적지로 송신하는 제3 단계를 포함한다.The inter-blockchain communication method according to an embodiment of the present invention, upon receiving a message transmitted from a first blockchain network to a second blockchain network, generates a service message including the message and service information of the message, , A first step of generating a blockchain communication message including the service message; When the relay monitoring the first blockchain network detects the creation of the blockchain communication message, it obtains verification information to verify the blockchain communication message from the first blockchain network, and the blockchain communication message And a second step of generating a relay message including the verification information, and transmitting the relay message to the second blockchain network including a destination of the message; And a third step of, upon receiving the relay message from the second blockchain network, verifying the relay message using the verification information included in the relay message, and transmitting the message included in the relay message to a destination. Includes.

이때, 상기 서비스 메시지는, 상기 메시지를 수신하는 계정의 블록체인 어드레스인 목적지 어드레스를 포함할 수 있다.In this case, the service message may include a destination address that is a blockchain address of the account receiving the message.

또한, 상기 서비스 메시지는, 상기 메시지의 종류를 식별하는 메시지 종류, 서비스 종류와 서비스 종류의 세부 사항정보를 포함하는 서비스 정보, 상기 메시지를 송신하는 계정의 블록체인 어드레스인 출발지 어드레스, 및 상기 메시지로 송신하고자 하는 데이터 중에서 적어도 하나를 더 포함할 수 있다.In addition, the service message includes a message type identifying the type of the message, service information including service type and detailed information of the service type, a source address that is a blockchain address of an account sending the message, and the message. At least one of data to be transmitted may be further included.

이때, 상기 블록체인 어드레스는, 블록체인 통신을 위한 어드레스임을 나타내는 통신 규약 식별 정보, 블록체인 네트워크의 종류를 구분하는 블록체인 종류 정보, 동일한 블록체인 네트워크의 종류에서 블록체인을 식별할 수 있는 블록체인 식별 정보, 및 블록체인 네트워크의 특정 계정을 식별할 수 있는 계정 식별 정보를 포함할 수 있다.At this time, the blockchain address is a communication protocol identification information indicating that it is an address for blockchain communication, blockchain type information that distinguishes types of blockchain networks, and a blockchain that can identify a blockchain from the same blockchain network type. Identification information, and account identification information that can identify a specific account of the blockchain network.

이때, 상기 블록체인 통신 메시지는, 상기 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스인 출발지 어드레스, 상기 블록체인 통신 메시지를 수신하는 메시지 제어 스마트 컨트랙트의 블록체인 어드레스인 목적지 어드레스, 상기 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류, 상기 블록체인 통신 메시지를 식별할 수 있는 시리얼 넘버, 및 상기 서비스 메시지를 포함할 수 있다.At this time, the blockchain communication message includes a source address, which is a blockchain address of the message control smart contract that generated the blockchain communication message, a destination address, which is a blockchain address of a message control smart contract that receives the blockchain communication message, and the A service type for identifying a service type of a service message, a serial number for identifying the blockchain communication message, and the service message.

이때, 상기 릴레이 메시지는, 동일한 네트워크 어드레스를 가진 적어도 하나의 상기 블록체인 통신 메시지, 및 상기 블록체인 통신 메시지의 상기 검증 정보를 포함할 수 있다.In this case, the relay message may include at least one blockchain communication message having the same network address, and the verification information of the blockchain communication message.

이때, 상기 제1 단계는, 상기 제1 블록체인 네트워크의 제1 서비스 제어 스마트 컨트랙트에서 상기 제2 블록체인 네트워크로 전송하는 상기 메시지를 수신하는 단계; 상기 제1 블록체인 네트워크의 상기 제1 서비스 제어 스마트 컨트랙트에서 상기 수신한 메시지를 이용해서 상기 서비스 메시지를 생성하고, 상기 서비스 메시지를 포함하는 송신 서비스 메시지를 생성하고, 상기 송신 서비스 메시지를 상기 제1 블록체인 네트워크의 제1 메시지 제어 스마트 컨트랙트로 송신하는 단계; 및 상기 제1 블록체인 네트워크의 상기 제1 메시지 제어 스마트 컨트랙트에서 상기 송신 서비스 메시지를 수신하면, 상기 서비스 메시지를 포함하는 상기 블록체인 통신 메시지를 생성하고, 상기 블록체인 통신 메시지를 포함하는 블록체인 이벤트 메시지를 생성하는 단계를 포함할 수 있다.At this time, 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 the first message control smart contract of the blockchain network; And when the transmission service message is received from the first message control smart contract of the first blockchain network, generates the blockchain communication message including the service message, and a blockchain event including the blockchain communication message. And generating a message.

이때, 상기 송신 서비스 메시지는, 상기 서비스 메시지를 수신하는 블록체인 네트워크의 네트워크 어드레스에 관한 정보인 목적지 네트워크 어드레스, 상기 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류, 상기 송신 서비스 메시지를 식별할 수 있는 시리얼 넘버, 및 상기 서비스 메시지를 포함할 수 있다.At this time, the transmission service message is a destination network address, which is information about a network address of a blockchain network that receives the service message, a service type that identifies a service type of the service message, and a transmission service message that can be identified. It may include a serial number and the service message.

이때, 상기 블록체인 이벤트 메시지는, 상기 블록체인 통신 메시지가 전달되는 다음 블록체인 네트워크의 메시지 제어 스마트 컨트랙트에 관한 블록체인 어드레스에 관한 정보인 다음 목적지 어드레스, 상기 블록체인 이벤트 메시지의 순서를 확인할 수 있는 시퀀스 정보, 및 상기 블록체인 통신 메시지를 포함할 수 있다.At this time, the blockchain event message, the next destination address that is information on the blockchain address for the message control smart contract of the next blockchain network to which the blockchain communication message is delivered, can check the order of the blockchain event message Sequence information, and the blockchain communication message.

이때, 상기 블록체인 이벤트 메시지는, 상기 블록체인 통신 메시지를 바이트 단위로 변경하여 포함할 수 있다.At this time, the block chain event message may include the block chain communication message in bytes.

이때, 상기 제1 단계는, 상기 제1 블록체인 네트워크의 상기 제1 메시지 제어 스마트 컨트랙트에서 상기 블록체인 통신 메시지를 상기 제1 블록체인 네트워크의 제1 블록체인에 추가하는 단계를 더 포함할 수 있다.In this case, the first step may further include adding the blockchain communication message to the first blockchain of the first blockchain network in the first message control smart contract of the first blockchain network. .

이때, 상기 제1 단계는, 상기 블록체인 통신 메시지를 생성에 실패하면, 에러 메시지를 생성하여 상기 제1 블록체인 네트워크의 제1 블록체인에 추가하는 단계를 더 포함할 수 있다.In this case, the first step may further include the step of generating an error message and adding it to the first blockchain of the first blockchain network when the generation of the blockchain communication message fails.

이때, 상기 제2 단계는, 상기 릴레이에서 상기 블록체인 통신 메시지를 포함하는 블록체인 이벤트 메시지의 생성을 감지하면, 상기 제1 블록체인 네트워크로부터 상기 블록체인 통신 메시지를 검증할 수 있는 상기 검증 정보를 획득하고, 상기 블록체인 통신 메시지와 상기 검증 정보를 포함하는 상기 릴레이 메시지를 생성하는 단계; 및 상기 릴레이에서 상기 릴레이 메시지를 포함하는 핸들 릴레이 메시지를 생성하여 상기 제2 블록체인 네트워크의 제2 메시지 제어 스마트 컨트랙트로 송신하는 단계를 포함할 수 있다.At this time, in the second step, when the relay detects the creation of a blockchain event message including the blockchain communication message, the verification information capable of verifying the blockchain communication message from the first blockchain network is received. Acquiring and generating the relay message including the blockchain communication message and the verification information; And generating, by the relay, a handle relay message including the relay message and transmitting it to a second message control smart contract of the second blockchain network.

이때, 상기 핸들 릴레이 메시지는, 상기 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스 및 상기 릴레이 메시지를 포함할 수 있다.At this time, the handle relay message may include the blockchain address of the message control smart contract that generated the blockchain communication message and the relay message.

이때, 상기 핸들 릴레이 메시지는, 상기 릴레이 메시지를 바이트 단위로 변경하여 포함할 수 있다.In this case, the handle relay message may include the relay message in bytes.

이때, 상기 제3 단계는, 상기 제2 블록체인 네트워크의 제2 메시지 제어 스마트 컨트랙트에서 상기 릴레이로 부터 상기 릴레이 메시지를 포함하는 핸들 릴레이 메시지를 수신하는 단계; 상기 릴레이 메시지를 포함하는 검증 핸들 릴레이 메시지를 생성하여 상기 제2 블록체인 네트워크의 제2 메시지 검증 스마트 컨트랙트로 송신하는 단계; 상기 제2 블록체인 네트워크의 상기 제2 메시지 검증 스마트 컨트랙트에서 상기 검증 핸들 릴레이 메시지를 수신하면, 상기 릴레이 메시지에 포함된 상기 검증 정보를 검증하는 단계; 상기 제2 블록체인 네트워크의 상기 제2 메시지 제어 스마트 컨트랙트에서 상기 제2 메시지 검증 스마트 컨트랙트를 통해서 상기 릴레이 메시지의 검증에 성공함을 확인하면, 상기 릴레이 메시지에 포함된 상기 블록체인 통신 메시지를 확인하고, 상기 블록체인 통신 메시지에 포함된 서비스 메시지를 확인하고, 상기 서비스 메시지를 포함하는 핸들 서비스 메시지를 생성하여 상기 제2 블록체인 네트워크의 제2 서비스 제어 스마트 컨트랙트로 송신하는 단계; 및 상기 제2 블록체인 네트워크의 상기 제2 서비스 제어 스마트 컨트랙트에서 상기 핸들 서비스 메시지를 수신하면, 상기 핸들 서비스 메시지에 포함된 상기 서비스 메시지를 확인하여 상기 서비스 메시지의 목적지로 상기 서비스 메시지에 포함된 상기 메시지를 송신하는 단계를 포함할 수 있다.At this time, the third step may include: receiving a handle relay message including the relay message from the relay in the second message control smart contract of the second blockchain network; Generating a verification handle relay message including the relay message and transmitting it to a second message verification smart contract of the second blockchain network; Verifying the verification information included in the relay message when the verification handle relay message is received from the second message verification smart contract of the second blockchain network; When it is confirmed that the verification of the relay message is successful through the second message verification smart contract in the second message control smart contract of the second blockchain network, the blockchain communication message included in the relay message is checked, , Identifying a service message included in the blockchain communication message, generating a handle service message including the service message, and transmitting it to a second service control smart contract in the second blockchain network; And when the handle service message is received from the second service control smart contract of the second blockchain network, the service message included in the handle service message is checked to include the service message as a destination of the service message. And sending a message.

이때, 상기 검증 핸들 릴레이 메시지는, 상기 핸들 릴레이 메시지를 수신하는 메시지 제어 스마트 컨트랙트의 블록체인 어드레스, 상기 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스, 시퀀스 정보, 및 상기 릴레이 메시지를 포함할 수 있다.In this case, the verification handle relay message may include the blockchain address of the message control smart contract that receives the handle relay message, the blockchain address of the message control smart contract that generated the blockchain communication message, sequence information, and the relay message. It can contain.

이때, 상기 검증 핸들 릴레이 메시지는, 상기 릴레이 메시지를 바이트 단위로 변경하여 포함할 수 있다.In this case, the verification handle relay message may include the relay message by changing it in units of bytes.

이때, 상기 핸들 서비스 메시지는, 상기 서비스 메시지를 송신한 블록체인 네트워크의 네트워크 어드레스, 상기 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류, 상기 핸들 서비스 메시지를 식별할 수 있는 시리얼 넘버, 및 상기 서비스 메시지를 포함할 수 있다.At this time, the handle service message includes a network address of a blockchain network that has sent the service message, a service type for identifying the service type of the service message, a serial number for identifying the handle service message, and the service message. It may include.

본 발명의 일 실시 예에 따른 블록체인 간 통신 시스템은, 제2 블록체인 네트워크로 전송하는 메시지를 수신하면, 상기 메시지와 상기 메시지의 서비스 정보를 포함하는 서비스 메시지를 생성하고, 상기 서비스 메시지를 포함하는 블록체인 통신 메시지를 생성하는 제1 블록체인 네트워크; 상기 제1 블록체인 네트워크를 모니터링 하다가 상기 블록체인 통신 메시지의 생성을 감지하면, 상기 제1 블록체인 네트워크로부터 상기 블록체인 통신 메시지를 검증할 수 있는 검증 정보를 획득하고, 상기 블록체인 통신 메시지와 상기 검증 정보를 포함하는 릴레이 메시지를 생성하고, 상기 릴레이 메시지를 상기 메시지의 목적지를 포함하는 상기 제2 블록체인 네트워크로 송신하는 릴레이; 및 상기 릴레이 메시지를 수신하면, 상기 릴레이 메시지에 포함된 상기 검증 정보를 이용해서 상기 릴레이 메시지를 검증하고, 상기 릴레이 메시지에 포함된 메시지를 목적지로 송신하는 상기 제2 블록체인 네트워크를 포함한다.The inter-blockchain communication system according to an embodiment of the present invention, upon receiving a message transmitted to a second blockchain network, generates a service message including the message and service information of the message, and includes the service message A first blockchain network that generates a blockchain communication message; When monitoring the first blockchain network and detecting the creation of the blockchain communication message, obtain verification information to verify the blockchain communication message from the first blockchain network, and obtain the blockchain communication message and the A relay for generating a relay message including verification information and transmitting the relay message to the second blockchain network including the destination of the message; And the second blockchain network that, upon receiving the relay message, verifies the relay message using the verification information included in the relay message, and transmits the message included in the relay message to a destination.

도 1은 본 발명의 일 실시 예에 따른 블록체인 간의 통신이 가능한 통신 시스템의 개략적인 구성을 도시한 도면이다.
도 2는 본 발명의 일 실시 예에 따른 통신 시스템에서 노드가 개략적으로 배치된 예를 도시한 도면이다.
도 3은 본 발명의 블록체인 간의 통신이 가능한 통신 시스템에서 통신이 수행되는 과정을 도시한 흐름도이다.
도 4는 본 발명의 통신 시스템의 제1 블록체인 네트워크에서 메시지를 송신하는 과정을 도시한 흐름도이다.
도 5는 본 발명의 통신 시스템의 릴레이에서 메시지를 중계하는 과정을 도시한 흐름도이다.
도 6은 본 발명의 통신 시스템의 제2 블록체인 네트워크에서 메시지를 수신하는 과정을 도시한 흐름도이다.
도 7은 본 발명의 통신 시스템에서 이용하는 하는 메시지 구성의 예를 도시한 도면이다.
도 8은 본 발명의 통신 시스템에서 이용하는 하는 송신 서비스 메시지 구성의 예를 도시한 도면이다.
도 9는 본 발명의 통신 시스템에서 이용하는 하는 블록체인 통신 메시지 구성의 예를 도시한 도면이다.
도 10은 본 발명의 통신 시스템에서 이용하는 하는 블록체인 이벤트 메시지 구성의 예를 도시한 도면이다.
도 11은 본 발명의 통신 시스템에서 이용하는 하는 핸들 릴레이 메시지 구성의 예를 도시한 도면이다.
도 12는 본 발명의 통신 시스템에서 이용하는 하는 검증 핸들 릴레이 메시지 구성의 예를 도시한 도면이다.
도 13은 본 발명의 통신 시스템에서 이용하는 하는 핸들 서비스 메시지 구성의 예를 도시한 도면이다.
1 is a diagram illustrating a schematic configuration of a communication system capable of communication between blockchains according to an embodiment of the present invention.
2 is a diagram illustrating an example in which nodes are schematically arranged in a communication system according to an embodiment of the present invention.
3 is a flowchart illustrating a process in which communication is performed in a communication system capable of communication between blockchains of the present invention.
4 is a flowchart illustrating a process of transmitting a message in the first blockchain network of the communication system of the present invention.
5 is a flowchart showing a process of relaying a message in a relay of the communication system of the present invention.
6 is a flowchart illustrating a process of receiving a message in a second blockchain network of the communication system of the present invention.
7 is a diagram showing an example of a message configuration used in the communication system of the present invention.
8 is a diagram showing an example of a configuration of a transmission service message used in the communication system of the present invention.
9 is a diagram showing an example of a block chain communication message configuration used in the communication system of the present invention.
10 is a diagram showing an example of a block chain event message configuration used in the communication system of the present invention.
11 is a diagram showing an example of a handle relay message configuration used in the communication system of the present invention.
12 is a diagram showing an example of the configuration of a verification handle relay message used in the communication system of the present invention.
13 is a diagram showing an example of a handle service message configuration used in the communication system of the present invention.

이하에서, 첨부된 도면을 참조하여 실시예들을 상세하게 설명한다. 그러나, 실시예들에는 다양한 변경이 가해질 수 있어서 특허출원의 권리 범위가 이러한 실시예들에 의해 제한되거나 한정되는 것은 아니다. 실시예들에 대한 모든 변경, 균등물 내지 대체물이 권리 범위에 포함되는 것으로 이해되어야 한다.Hereinafter, embodiments will be described in detail with reference to the accompanying drawings. However, various changes may be made to the embodiments, and the scope of the patent application right is not limited or limited by these embodiments. It should be understood that all modifications, equivalents, or substitutes for the embodiments are included in the scope of rights.

실시예에서 사용한 용어는 단지 설명을 목적으로 사용된 것으로, 한정하려는 의도로 해석되어서는 안된다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서, "포함하다" 또는 "가지다" 등의 용어는 명세서 상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terms used in the examples are used for illustrative purposes only and should not be construed as limiting. Singular expressions include plural expressions unless the context clearly indicates otherwise. In this specification, the terms "include" or "have" are intended to indicate the presence of features, numbers, steps, actions, components, parts or combinations thereof described in the specification, one or more other features. It should be understood that the existence or addition possibilities of fields or numbers, steps, operations, components, parts or combinations thereof are not excluded in advance.

다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 모든 용어들은 실시예가 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다. 일반적으로 사용되는 사전에 정의되어 있는 것과 같은 용어들은 관련 기술의 문맥 상 가지는 의미와 일치하는 의미를 가지는 것으로 해석되어야 하며, 본 출원에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.Unless otherwise defined, all terms used herein, including technical or scientific terms, have the same meaning as commonly understood by a person skilled in the art to which the embodiment belongs. Terms, such as those defined in a commonly used dictionary, should be interpreted as having meanings consistent with meanings in the context of related technologies, and should not be interpreted as ideal or excessively formal meanings unless explicitly defined in the present 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 reference numerals, and redundant descriptions thereof will be omitted. In describing the embodiments, when it is determined that detailed descriptions of related known technologies may unnecessarily obscure the subject matter of the embodiments, the detailed descriptions will be omitted.

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

어느 하나의 실시 예에 포함된 구성요소와, 공통적인 기능을 포함하는 구성요소는, 다른 실시 예에서 동일한 명칭을 사용하여 설명하기로 한다. 반대되는 기재가 없는 이상, 어느 하나의 실시 예에 기재한 설명은 다른 실시 예에도 적용될 수 있으며, 중복되는 범위에서 구체적인 설명은 생략하기로 한다.Components included in any one embodiment and components including common functions will be described using the same name in other embodiments. Unless there is an objection to the contrary, the description described in any one embodiment may be applied to other embodiments, and a detailed description will be omitted in the overlapped range.

이하에서는, 본 발명의 일 실시 예에 따른 블록체인간 통신 시스템 및 방법을 첨부된 도 1 내지 도 13을 참조하여 상세히 설명한다.Hereinafter, a communication system and method between blockchains according to an embodiment of the present invention will be described in detail with reference to FIGS. 1 to 13.

도 1은 본 발명의 일 실시 예에 따른 블록체인 간의 통신이 가능한 통신 시스템의 개략적인 구성을 도시한 도면이다.1 is a diagram illustrating a schematic configuration of a communication system capable of communication between blockchains according to an embodiment of the present invention.

도 1을 참조하면, 본 발명의 통신 시스템은 제1 블록체인 네트워크(110), 제2 블록체인 네트워크(130) 및 릴레이(120)를 포함하여 구성될 수 있다.Referring to FIG. 1, the communication system of the present invention may include a first blockchain network 110, a second blockchain network 130, and a relay 120.

제1 블록체인 네트워크(110)는 제1 서비스 제어 스마트 컨트랙트(112), 제1 메시지 제어 스마트 컨트랙트(114) 및 제1 메시지 검증 스마트 컨트랙트(116)를 포함할 수 있다.The first blockchain network 110 may include a first service control smart contract 112, a first message control smart contract 114, and a first message verification smart contract 116.

제2 블록체인 네트워크(130)는 제2 서비스 제어 스마트 컨트랙트(132), 제2 메시지 제어 스마트 컨트랙트(134) 및 제2 메시지 검증 스마트 컨트랙트(136)를 포함할 수 있다.The second blockchain network 130 may include a second service control smart contract 132, a second message control smart contract 134, and a second message verification smart contract 136.

즉, 블록체인 네트워크는 각각 서비스 제어 스마트 컨트랙트, 메시지 제어 스마트 컨트랙트, 메시지 검증 스마트 컨트랙트를 포함할 수 있다.That is, the blockchain network may include a service control smart contract, a message control smart contract, and a message verification smart contract, respectively.

제1 블록체인 네트워크(110)에서 제2 블록체인 네트워크(130)로 메시지를 전달하는 예를 살펴보면 다음과 같이 동작할 할 수 있다.Looking at an example of transferring a message from the first blockchain network 110 to the second blockchain network 130, it can operate as follows.

제1 블록체인 네트워크(110)는 제2 블록체인 네트워크로 전송하는 메시지를 수신하면, 메시지와 메시지의 서비스 정보를 포함하는 서비스 메시지를 생성하고, 서비스 메시지를 포함하는 블록체인 통신 메시지를 생성한다.Upon receiving the message transmitted to the second blockchain network, the first blockchain network 110 generates a service message including the message and the service information of the message, and generates a blockchain communication message including the service message.

릴레이(120)는 제1 블록체인 네트워크(110)를 모니터링 하다가 블록체인 통신 메시지의 생성을 감지하면, 제1 블록체인 네트워크로(110)부터 블록체인 통신 메시지를 검증할 수 있는 검증 정보를 획득하고(146), 블록체인 통신 메시지와 검증 정보를 포함하는 릴레이 메시지를 생성하고, 릴레이 메시지를 메시지의 목적지를 포함하는 제2 블록체인 네트워크(130)로 송신한다.When the relay 120 monitors the first blockchain network 110 and detects the creation of a blockchain communication message, the relay 120 obtains verification information capable of verifying the blockchain communication message from the first blockchain network 110 and (146), generates a relay message including the blockchain communication message and verification information, and transmits the relay message to the second blockchain network 130 including the destination of the message.

이때, 검증 정보는 블록체인 통신 메시지가 블록체인에 특정 블록에 소속되어 있음을 증명할 수 있는 일련의 데이터를 의미한다. 그리고, 검증 정보는 블록체인마다 다르게 정의될 수 있다.At this time, the verification information means a series of data that can prove that the blockchain communication message belongs to a specific block on the blockchain. And, verification information can be defined differently for each blockchain.

검증 정보의 대표적인 예는 블록 헤더로부터 연결된 머클 트리(Merkle Tree)에 끝에 연결되어 있는 데이터일 수 있고, 이를 증명하기 위해서는 루트(Root)에서 연결되는 모든 엔티티(Entity)의 데이터를 검증 정보로 하거나, 혹은 형태(Sibling)들의 해쉬(Hash)값을 검증 정보로 할 수 있다. A representative example of the verification information may be data connected at the end to a Merkle Tree connected from a block header, and in order to prove this, the data of all entities connected at the Root is used as verification information, Alternatively, a hash value of siblings may be used as verification information.

한편, 검증 정보의 다른 예로 MPT(Merkle Patricia Trie)를 사용하고 연결되는 엔티티(Entity)의 데이터로 검증 정보의 증명이 이루어 지도록 할 수 있다. 검증 정보의 획득은 해당 데이터의 키(Key)값을 가지고 특정한 계정에서 어플리케이션 프로그램 인터페이스(API: Application Program Interface)를 호출해서 얻을 수 있다.On the other hand, as another example of the verification information, MPT (Merkle Patricia Trie) may be used, and verification of verification information may be performed with data of the connected entity. Acquisition of verification information can be obtained by calling the application program interface (API: Application Program Interface) from a specific account with the key value of the data.

제2 블록체인 네트워크(130)는 릴레이 메시지를 수신하면, 릴레이 메시지에 포함된 검증 정보를 이용해서 릴레이 메시지를 검증하고, 릴레이 메시지에 포함된 메시지를 목적지로 송신한다.Upon receiving the relay message, the second blockchain network 130 verifies the relay message using the verification information included in the relay message, and transmits the message included in the relay message to the destination.

블록체인 간의 통신의 보다 구체적인 예를 이후 도 3에서 도 6을 함께 참조하여 보다 상세히 후술한다.A more specific example of communication between blockchains will be described later in more detail with reference to FIGS. 3 to 6 together.

도 2는 본 발명의 일 실시 예에 따른 통신 시스템에서 노드가 개략적으로 배치된 예를 도시한 도면이다.2 is a diagram illustrating an example in which nodes are schematically arranged in a 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 communication system of the present invention includes a first blockchain network 110 including a plurality of nodes 211-215, and a second blockchain network 130 including a plurality of nodes 231-234. And a relay 120 relaying communication between the first blockchain network 110 and the second blockchain network 130.

이때, 릴레이(120)는 제1 블록체인 네트워크(110)의 노드(214)와 제2 블록체인 네트워크(130)의 노드(232)를 포함할 수 있다.At this time, the relay 120 may include a node 214 of the first blockchain network 110 and a node 232 of the second blockchain network 130.

즉, 노드(214)는 제1 블록체인 네트워크(110)와 릴레이(120) 양쪽에 포함되어 구성될 수 있고, 노드(232)는 제2 블록체인 네트워크(130)와 릴레이(120) 양쪽에 포함되어 구성될 수 있다.That is, the node 214 may be configured to be included in both the first blockchain network 110 and the relay 120, and the node 232 may be included in both the second blockchain network 130 and the relay 120. Can be configured.

다른 방법으로 릴레이(120)는 노드를 포함하지 않고, 제1 블록체인 네트워크(110)의 적어도 하나의 노드와 통신하고, 제2 블록체인 네트워크(130)의 적어도 하나의 노드와 통신하는 형태로 구성될 수도 있다.Alternatively, the relay 120 does not include a node, and is configured in a form of communicating with at least one node of the first blockchain network 110 and communicating with at least one node of the second blockchain network 130. It may be.

이하, 상기와 같이 구성된 본 발명에 따른 방법을 아래에서 도면을 참조하여 설명한다.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 in which communication is performed in a communication system capable of communication between blockchains of the present invention.

도 3을 참조하면, 제1 블록체인 네트워크(110)에서 제2 블록체인 네트워크(130)로 전송하는 메시지를 수신하면, 메시지와 메시지의 서비스 정보를 포함하는 서비스 메시지를 생성하고, 서비스 메시지를 포함하는 블록체인 통신 메시지를 생성한다(310). 310단계는 이후, 도 4를 참조하여 보다 상세히 후술한다.Referring to FIG. 3, upon receiving a message transmitted from the first blockchain network 110 to the second blockchain network 130, a service message including a message and service information of the message is generated, and the service message is included. Generates a block chain communication message (310). Step 310 will be described later in more detail with reference to FIG. 4.

제1 블록체인 네트워크(110)를 모니터링 하는 릴레이(120)에서 블록체인 통신 메시지의 생성을 감지하면, 제1 블록체인 네트워크(110)로부터 블록체인 통신 메시지를 검증할 수 있는 검증 정보를 획득하고, 블록체인 통신 메시지와 검증 정보를 포함하는 릴레이 메시지를 생성하고, 릴레이 메시지를 메시지의 목적지를 포함하는 제2 블록체인 네트워크로 송신한다(320). 320단계는 이후, 도 5를 참조하여 보다 상세히 후술한다.When the relay 120 monitoring the first blockchain network 110 detects the creation of a blockchain communication message, it obtains verification information to verify the blockchain communication message from the first blockchain network 110, A relay message including a blockchain communication message and verification information is generated, and the relay message is transmitted to a second blockchain network including the destination of the message (320). Step 320 will be described later in more detail with reference to FIG. 5.

제2 블록체인 네트워크(130)에서 릴레이 메시지를 수신하면, 릴레이 메시지에 포함된 검증 정보를 이용해서 릴레이 메시지를 검증하고, 릴레이 메시지에 포함된 메시지를 목적지로 송신한다(330). 330단계는 이후, 도 6을 참조하여 보다 상세히 후술한다.Upon receiving the relay message from the second blockchain network 130, the relay message is verified using the verification information included in the relay message, and the message included in the relay message is transmitted to the destination (330). Step 330 will be described later in more detail with reference to FIG. 6.

도 4는 본 발명의 통신 시스템의 제1 블록체인 네트워크에서 메시지를 송신하는 과정을 도시한 흐름도이다.4 is a flowchart illustrating a process of transmitting a message in the first blockchain network of the communication system of the present invention.

도 4를 참조하면, 도 3의 310단계는 구체적으로 다음의 과정으로 수행될 수 있다.Referring to FIG. 4, step 310 of FIG. 3 may be specifically performed as the following process.

제1 블록체인 네트워크(110)의 제1 서비스 제어 스마트 컨트랙트(112)는 제2 블록체인 네트워크(130)로 전송하는 메시지를 수신하면(410), 수신한 메시지를 이용해서 서비스 메시지를 생성한다(412).When the first service control smart contract 112 of the first blockchain network 110 receives the message transmitted to the second blockchain network 130 (410), it generates a service message using the received message ( 412).

이때, 메시지는 서비스 메시지를 수신하는 블록체인 네트워크의 네트워크 어드레스에 관한 정보인 목적지 네트워크 어드레스, 서비스 종류와 서비스 종류의 세부 사항정보를 포함하는 서비스 정보, 블록체인 네트워크에서 수신하는 스마트 컨트랙트를 식별할 수 있는 계정 식별 정보, 및 송신하는 데이터를 포함할 수 있다.At this time, the message can identify the destination network address, which is information about the network address of the blockchain network that receives the service message, service information including detailed information of the service type and service type, and smart contracts received from the blockchain network. Account identification information, and data to be transmitted.

메시지가 토큰(token)을 송신하는 경우 아래 도 7의 예과 같은 형태로 구성될 수 있다.When the message transmits a token, it may be configured in the form of the example of FIG. 7 below.

도 7은 본 발명의 통신 시스템에서 이용하는 하는 메시지 구성의 예를 도시한 도면이다.7 is a diagram showing an example of a message configuration used in the communication system of the present invention.

도 7을 참조하면, 메시지는 Destination, Token, To 및Value를 포함하여 구성됨을 확인할 수 있다.Referring to FIG. 7, it can be confirmed that the message is configured including Destination, Token, To and Value.

여기서, Destination는 서비스 메시지를 수신하는 블록체인 네트워크의 네트워크 어드레스에 관한 정보인 목적지 네트워크 어드레스로서 도 7의 예에서 그 값은 '0x3.iconee'이다.Here, Destination is a destination network address that is information about a network address of a blockchain network that receives a service message, and the value in the example of FIG. 7 is '0x3.iconee'.

Token은 도 7의 메시지의 서비스 종류가 토큰임을 나타내고, 도 7의 예에서 세부 사항정보가 'ICON'임을 나타내는 서비스 정보이다.Token is service information indicating that the service type of the message of FIG. 7 is a token, and detailed information is'ICON' in the example of FIG. 7.

To는 블록체인 네트워크에서 수신하는 계정를 식별할 수 있는 계정 식별 정보로 도 7의 예에서 그 값은 'hx1234~' 이다.To is account identification information that can identify an account received from the blockchain network, and the value in the example of FIG. 7 is'hx1234~'.

Value는 송신하는 데이터를 나타내고, 송신하는 토큰의 값이 도 7의 예에서 그 값은 '0x10000000'이다.Value represents data to be transmitted, and the value of the token to be transmitted is '0x10000000' in the example of FIG. 7.

한편, 서비스 메시지는 메시지를 수신하는 계정의 블록체인 어드레스인 목적지 어드레스만을 포함하여 생성할 수 있다.Meanwhile, the service message may be generated including only the destination address, which is the blockchain address of the account receiving the message.

또는, 서비스 메시지는 메시지를 수신하는 계정의 블록체인 어드레스인 목적지 어드레스에 더해서 메시지의 종류를 식별하는 메시지 종류, 서비스 종류와 서비스 종류의 세부 사항정보를 포함하는 서비스 정보, 상기 메시지를 송신하는 계정의 블록체인 어드레스인 출발지 어드레스, 및 상기 메시지로 송신하고자 하는 데이터 중에서 적어도 하나를 더 포함하여 구성될 수 있다.Alternatively, the service message may include a message type for identifying the message type, service information including detailed information of the service type and the service type, in addition to the destination address, which is the blockchain address of the account receiving the message, of the account transmitting the message. It may be configured to further include at least one of a source address, which is a blockchain address, and data to be transmitted by the message.

이때, 블록체인 어드레스는 블록체인 통신을 위한 어드레스임을 나타내는 통신 규약 식별 정보, 블록체인 네트워크의 종류를 구분하는 블록체인 종류 정보, 동일한 블록체인 네트워크의 종류에서 블록체인을 식별할 수 있는 블록체인 식별 정보, 및 블록체인 네트워크의 특정 계정을 식별할 수 있는 계정 식별 정보를 포함할 수 있다.At this time, the block chain address is the communication protocol identification information indicating that it is an address for blockchain communication, the block chain type information that distinguishes the types of the block chain network, and the block chain identification information that can identify the block chain from the same block chain network type. , And account identification information capable of identifying a specific account of the blockchain network.

예를 들어, 블록체인 어드레스는 “btp://0x3.iconee/hx1234~”로 구성될 수 있다.For example, the blockchain address can be composed 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 blockchain type information that distinguishes the type of blockchain network, and'iconee' is the same blockchain network. Blockchain identification information that can identify the blockchain from the 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 smart contract 112 of the first blockchain network 110 generates a transmission service message including the service message (414).

이때, 송신 서비스 메시지는 서비스 메시지를 수신하는 제2 블록체인 네트워크의 네트워크 어드레스에 관한 정보인 목적지 네트워크 어드레스, 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류, 송신 서비스 메시지를 식별할 수 있는 시리얼 넘버, 및 서비스 메시지를 포함할 수 있다.At this time, the outgoing service message includes a destination network address, which is information regarding 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, and a serial number that can identify the outgoing service message. And a service message.

도 8은 본 발명의 통신 시스템에서 이용하는 하는 송신 서비스 메시지 구성의 예를 도시한 도면이다.8 is a diagram showing an example of a configuration of a transmission service message used in the communication system of the present invention.

도 8을 참조하면, 송신 서비스 메시지는 Destination, Service, SN 및ServiceMessage를 포함하여 구성됨을 확인할 수 있다.Referring to FIG. 8, it can be confirmed that the transmission service message is configured including Destination, Service, SN, and ServiceMessage.

Destination는 서비스 메시지를 수신하는 블록체인 네트워크의 네트워크 어드레스에 관한 정보인 목적지 네트워크 어드레스로서 도 8의 예에서 그 값은 '0x3.iconee'이다.Destination is a destination network address that is information about the network address of the blockchain network that receives the service message. In the example of FIG. 8, the value is '0x3.iconee'.

Service는 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류에 관한 정보로, 도 8의 예에서 서비스 종류는 'token'이다.Service is information on a service type that identifies a service type of a service message. In the example of FIG. 8, the service type is'token'.

SN는 송신 서비스 메시지를 식별할 수 있는 시리얼 넘버로서 도 8의 예에서 그 값은 '2'이다.SN is a serial number that can identify a transmission service message, and its value is '2' in the example of FIG. 8.

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 smart contract 112 of the first blockchain network 110 transmits the transmission service message to the first message control smart contract 114 of the first blockchain network 110 (142, 416) ).

이후, 제1 블록체인 네트워크(110)의 제1 메시지 제어 스마트 컨트랙트(114)는 송신 서비스 메시지를 수신하면, 블록체인 통신 메시지의 생성이 가능한지 여부를 확인한다(418).Thereafter, when receiving the transmission service message, the first message control smart contract 114 of the first blockchain network 110 checks whether it is possible to generate a blockchain communication message (418).

418단계의 확인결과 블록체인 통신 메시지의 생성이 가능하면, 제1 블록체인 네트워크(110)의 제1 메시지 제어 스마트 컨트랙트(114)는 서비스 메시지를 포함하는 블록체인 통신 메시지를 생성한다(420).As a result of the check in step 418, if it is possible to generate a blockchain communication message, the first message control smart contract 114 of the first blockchain network 110 generates a blockchain communication message including a service message (420).

이때, 블록체인 통신 메시지는 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스인 출발지 어드레스, 블록체인 통신 메시지를 수신하는 메시지 제어 스마트 컨트랙트의 블록체인 어드레스인 목적지 어드레스, 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류, 블록체인 통신 메시지를 식별할 수 있는 시리얼 넘버, 및 서비스 메시지를 포함할 수 있다.At this time, the blockchain communication message includes the source address, which is the blockchain address of the message control smart contract that generated the blockchain communication message, the destination address, which is the blockchain address of the message control smart contract that receives the blockchain communication message, and the service of the service message. It may include a service type for identifying the type, a serial number for identifying a blockchain communication message, and a service message.

도 9는 본 발명의 통신 시스템에서 이용하는 하는 블록체인 통신 메시지 구성의 예를 도시한 도면이다.9 is a diagram showing an example of a block chain communication message configuration used in the communication system of the present invention.

도 9를 참조하면, 블록체인 통신 메시지는 Source, Destination, Service, SN, 및 ServiceMessage를 포함하여 구성됨을 확인할 수 있다.Referring to FIG. 9, it can be seen that the blockchain communication message is configured including Source, Destination, Service, SN, and ServiceMessage.

Source는 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스인 출발지 어드레스로서, 도 9의 예에서 출발지 어드레스는 “btp://0x1.icon/cxefgh~”이다.Source is a source address, which is the blockchain address of the message control smart contract that generated the blockchain communication message. In the example of FIG. 9, the source address is “btp://0x1.icon/cxefgh~”.

Destination는 블록체인 통신 메시지를 수신하는 메시지 제어 스마트 컨트랙트의 블록체인 어드레스인 목적지 어드레스로서, 도 9의 예에서 목적지 어드레스는 “btp://0x3.iconee/cx5678~”이다.Destination is the destination address, which is the blockchain address of the message control smart contract that receives the blockchain communication message. In the example of FIG. 9, the destination address is “btp://0x3.iconee/cx5678~”.

Service는 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류에 관한 정보로, 도 9의 예에서 서비스 종류는 'token'이다.Service is information about a service type that identifies a service type of a service message. In the example of FIG. 9, the service type is'token'.

SN는 블록체인 통신 메시지를 식별할 수 있는 시리얼 넘버로서 도 9의 예에서 그 값은 '2'이다.SN is a serial number that can identify a blockchain communication message, and its value is '2' in the example of FIG. 9.

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 smart contract 114 of the first blockchain network 110 adds a blockchain communication message to the first blockchain of the first blockchain network (422).

그리고, 제1 블록체인 네트워크(110)의 제1 메시지 제어 스마트 컨트랙트(114)는 블록체인 통신 메시지를 포함하는 블록체인 이벤트 메시지를 생성한다(424).Then, the first message control smart contract 114 of the first blockchain network 110 generates a blockchain event message including the blockchain communication message (424).

이때, 블록체인 이벤트 메시지는 블록체인 통신 메시지가 전달되는 다음 블록체인 네트워크의 메시지 제어 스마트 컨트랙트에 관한 블록체인 어드레스에 관한 정보인 다음 목적지 어드레스, 블록체인 이벤트 메시지의 순서를 확인할 수 있는 시퀀스 정보, 및 바이트 단위로 변경된 블록체인 통신 메시지를 포함할 수 있다.At this time, the blockchain event message is 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, and sequence information for confirming the sequence of the blockchain event message, and It may include a blockchain communication message changed in bytes.

도 10은 본 발명의 통신 시스템에서 이용하는 하는 블록체인 이벤트 메시지 구성의 예를 도시한 도면이다.10 is a diagram showing an example of a block chain event message configuration used in the communication system of the present invention.

도 10을 참조하면, 블록체인 이벤트 메시지는 Next, Seq 및 Message를 포함하여 구성됨을 확인할 수 있다.Referring to FIG. 10, it can be seen that the blockchain event message is composed of Next, Seq, and Message.

Next는 블록체인 통신 메시지가 전달되는 다음 블록체인 네트워크의 메시지 제어 스마트 컨트랙트에 관한 블록체인 어드레스에 관한 정보인 다음 목적지 어드레스로서, 도 10의 예에서 다음 목적지 어드레스는 "btp://0x3.iconee/cx5678~" 이다.Next is 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. In the example of FIG. 10, the next destination address is "btp://0x3.iconee/ cx5678~".

Seq는 블록체인 이벤트 메시지의 순서를 확인할 수 있는 시퀀스 정보로서, 도 10의 예에서 그 값은 '3'이다. Seq is sequence information that can confirm the order of the blockchain event message, and in the example of FIG. 10, the value is '3'.

Message는 바이트 단위로 변경된 블록체인 통신 메시지로서, 도 10의 예에서는 "Serialized BTP Message"로 표현될 수 있다. 여기서, BTP Message는 블록체인 통신 메시지를 나타내고, BTP는 블록체인 통신 프로토콜(Blockchain Transmission Protocol)을 나타낸다.Message is a block chain communication message changed in bytes, and in the example of FIG. 10, it can be expressed as “Serialized BTP Message”. Here, BTP Message represents a blockchain communication message, and BTP represents a Blockchain Transmission Protocol.

도 10 의 예에서 블록체인 이벤트 메시지에는 바이트 단위로 변경된 블록체인 통신 메시지가 포함되었지만, 이는 선택적인 것으로, 블록체인 이벤트 메시지는 바이트 단위로 변경되지 않은 블록체인 통신 메시지를 포함할 수도 있다.In the example of FIG. 10, the block chain event message includes a block chain communication message changed in bytes, but this is optional, and the block chain event message may include a block chain communication message in 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 check in step 418, the first message control smart contract 114 of the first blockchain network 110 generates an error message (426) ). At this time, when it is not possible to generate a blockchain communication message, for example, there may be a case where the destination blockchain network is not confirmed.

그리고, 제1 블록체인 네트워크(110)의 제1 메시지 제어 스마트 컨트랙트(114)는 에러 메시지를 제1 블록체인 네트워크의 제1 블록체인에 추가한다(428).Then, the first message control smart contract 114 of the first blockchain network 110 adds an error message to the first blockchain of the first blockchain network (428).

도 5는 본 발명의 통신 시스템의 릴레이에서 메시지를 중계하는 과정을 도시한 흐름도이다.5 is a flowchart showing a process of relaying a message in a relay of the communication system of the present invention.

도 5를 참조하면, 도 3의 320단계는 구체적으로 다음의 과정으로 수행될 수 있다.Referring to FIG. 5, step 320 of FIG. 3 may be specifically performed as the following process.

제1 블록체인 네트워크(110)를 모니터링 하는 릴레이(120)는 블록체인 통신 메시지를 포함하는 블록체인 이벤트 메시지의 생성을 감지하면(144, 510), 제1 블록체인 네트워크(110)로부터 블록체인 통신 메시지를 검증할 수 있는 검증 정보를 획득한다(146, 512).When the relay 120 monitoring the first blockchain network 110 detects the creation of a blockchain event message including the blockchain communication message (144, 510), the blockchain communication from the first blockchain network 110 Acquire verification information capable of verifying the message (146, 512).

릴레이(120)는 블록체인 통신 메시지와 검증 정보를 포함하는 릴레이 메시지를 생성한다(514). 이때, 릴레이 메시지는 동일한 네트워크 어드레스를 가진 적어도 하나의 블록체인 통신 메시지, 및 블록체인 통신 메시지의 검증 정보를 포함할 수 있다.The relay 120 generates a relay message including a blockchain communication message and verification information (514). At this time, the relay message may include at least one blockchain communication message having the same network address, and verification information of the blockchain communication message.

릴레이(120)는 릴레이에서 릴레이 메시지를 포함하는 핸들 릴레이 메시지를 생성하여 제2 블록체인 네트워크(130)의 제2 메시지 제어 스마트 컨트랙트(134)로 송신한다(152, 516).The relay 120 generates a handle relay message including a relay message in the relay and transmits it to the second message control smart contract 134 of the second blockchain network 130 (152, 516).

이때, 핸들 릴레이 메시지는 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스 및 바이트 단위로 변경된 릴레이 메시지를 포함할 수 있다.At this time, the handle relay message may include a relay message changed in the block unit address and byte of the message control smart contract that generated the blockchain communication message.

도 11은 본 발명의 통신 시스템에서 이용하는 하는 핸들 릴레이 메시지 구성의 예를 도시한 도면이다.11 is a diagram showing an example of a handle relay message configuration used in the communication system of the present invention.

도 11을 참조하면, 핸들 릴레이 메시지는 From 및 Message를 포함하여 구성됨을 확인할 수 있다.Referring to FIG. 11, it can be confirmed that the handle relay message is configured to include From and Message.

From은 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스를 나타내는 것으로, 도 11의 예에서 해당 어드레스는 “btp://0x1.icon/cxefgh~” 이다.From indicates the blockchain address of the message control smart contract that generated the blockchain communication message. In the example of FIG. 11, the corresponding address is “btp://0x1.icon/cxefgh~”.

Message는 바이트 단위로 변경된 릴레이 메시지로서, 도 11의 예에서는 “Serialized RelayMessage”로 표현될 수 있다.Message is a relay message changed in units of bytes, and may be expressed as “Serialized RelayMessage” in the example of FIG. 11.

도 11의 예에서 핸들 릴레이 메시지에는 바이트 단위로 변경된 릴레이 메시지가 포함되었지만, 이는 선택적인 것으로, 핸들 릴레이 메시지는 바이트 단위로 변경되지 않은 릴레이 메시지를 포함할 수도 있다.In the example of FIG. 11, a relay message changed in bytes is included in the handle relay message, but this is optional, and the handle relay message may include a relay message not changed in bytes.

도 6은 본 발명의 통신 시스템의 제2 블록체인 네트워크에서 메시지를 수신하는 과정을 도시한 흐름도이다.6 is a flowchart illustrating a process of receiving a message in a second blockchain network of the communication system of the present invention.

도 6을 참조하면, 도 3의 330단계는 구체적으로 다음의 과정으로 수행될 수 있다.Referring to FIG. 6, step 330 of FIG. 3 may be specifically performed as the following process.

제2 블록체인 네트워크(130)의 제2 메시지 제어 스마트 컨트랙트(134)는 릴레이(120)로부터 릴레이 메시지를 포함하는 핸들 릴레이 메시지를 수신하면(152, 610), 릴레이 메시지를 포함하는 검증 핸들 릴레이 메시지를 생성하여 제2 블록체인 네트워크(130)의 제2 메시지 검증 스마트 컨트랙트(136)로 송신한다(154, 612).When the second message control smart contract 134 of the second blockchain network 130 receives the handle relay message including the relay message from the relay 120 (152, 610), the verification handle relay message including the relay message Is generated and transmitted to the second message verification smart contract 136 of the second blockchain network 130 (154, 612).

이때, 검증 핸들 릴레이 메시지는 핸들 릴레이 메시지를 수신하는 메시지 제어 스마트 컨트랙트의 블록체인 어드레스, 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스, 블록 제1 메시지 제어 스마트 컨트랙트가 실행된 어드레스, 시퀀스 정보, 및 바이트 단위로 변경된 릴레이 메시지를 포함할 수 있다.At this time, the verification handle relay message includes the block address of the message control smart contract that receives the handle relay message, the block address of the message control smart contract that generated the blockchain communication message, and the address where the block first message control smart contract was executed, It may include sequence information and a relay message changed in bytes.

도 12는 본 발명의 통신 시스템에서 이용하는 하는 검증 핸들 릴레이 메시지 구성의 예를 도시한 도면이다.12 is a diagram showing an example of the configuration of a verification handle relay message used in the communication system of the present invention.

도 12를 참조하면, 검증 핸들 릴레이 메시지는 BMC, From, Seq 및 Message를 포함하여 구성됨을 확인할 수 있다.Referring to FIG. 12, it can be confirmed that the verification handle relay message includes BMC, From, Seq, and Message.

BMC는 핸들 릴레이 메시지를 수신하는 메시지 제어 스마트 컨트랙트의 블록체인 어드레스로서, 도 12의 예에서 해당 블록체인 어드레스는 “btp://0x3.iconee/cx5678~” 이다.BMC is a blockchain address of a message control smart contract that receives a handle relay message. In the example of FIG. 12, the corresponding blockchain address is “btp://0x3.iconee/cx5678~”.

From은 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스로서, 도 12의 예에서 해당 블록체인 어드레스는 “btp://0x1.icon/cxefgh~” 이다.From is the blockchain address of the message control smart contract that generated the blockchain communication message. In the example of FIG. 12, the corresponding blockchain address is “btp://0x1.icon/cxefgh~”.

Seq는 검증 핸들 릴레이 메시지의 순서를 확인할 수 있는 시퀀스 정보로서, 도 12의 예에서 그 값은 '3'이다.Seq is sequence information that can confirm the order of the verification handle relay message. In the example of FIG. 12, the value is '3'.

Message는 바이트 단위로 변경된 릴레이 메시지로서, 도 12의 예에서 “Serialized RelayMessage”로 표현될 수 있다.Message is a relay message changed in units of bytes, and may be expressed as “Serialized RelayMessage” in the example of FIG. 12.

도 12의 예에서 검증 핸들 릴레이 메시지에는 바이트 단위로 변경된 릴레이 메시지가 포함되었지만, 이는 선택적인 것으로, 검증 핸들 릴레이 메시지는 바이트 단위로 변경되지 않은 릴레이 메시지를 포함할 수도 있다.In the example of FIG. 12, the relay message changed in bytes is included in the verification handle relay message, but this is optional, and the verification handle relay message may include a relay message that is not changed in bytes.

다시 도 6의 설명으로 돌아와서, 제2 블록체인 네트워크(130)의 제2 메시지 검증 스마트 컨트랙트(136)에서 검증 핸들 릴레이 메시지를 수신하면(154), 릴레이 메시지에 포함된 검증 정보를 검증한다(614).Returning to the description of FIG. 6 again, upon receiving the verification handle relay message from the second message verification smart contract 136 of the second blockchain network 130 (154), the verification information included in the relay message is verified (614). ).

제2 블록체인 네트워크(130)의 제2 메시지 제어 스마트 컨트랙트(134)는 제2 메시지 검증 스마트 컨트랙트를 통해서 릴레이 메시지의 검증에 성공함을 확인하면, 릴레이 메시지에 포함된 블록체인 통신 메시지를 확인하고, 블록체인 통신 메시지에 포함된 서비스 메시지를 확인하고, 서비스 메시지를 포함하는 핸들 서비스 메시지를 생성하여 제2 블록체인 네트워크의 제2 서비스 제어 스마트 컨트랙트로 송신한다(156, 616).When the second message control smart contract 134 of the second blockchain network 130 confirms that the verification of the relay message is successful through the second message verification smart contract, it checks the blockchain communication message included in the relay message and , Check the service message included in the blockchain communication message, generate a handle service message including the service message, and transmit it to the second service control smart contract of the second blockchain network (156, 616).

이때, 핸들 서비스 메시지는 서비스 메시지를 송신한 블록체인 네트워크의 네트워크 어드레스, 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류, 핸들 서비스 메시지를 식별할 수 있는 시리얼 넘버, 및 서비스 메시지를 포함할 수 있다.At this time, the handle service message may include a network address of the blockchain network that sent the service message, a service type for identifying the service type of the service message, a serial number for identifying the handle service message, and a service message.

도 13은 본 발명의 통신 시스템에서 이용하는 하는 핸들 서비스 메시지 구성의 예를 도시한 도면이다.13 is a diagram showing an example of a handle service message configuration used in the communication system of the present invention.

도 13을 참조하면, 핸들 서비스 메시지는 From, Service, SN 및 ServiceMessage를 포함하여 구성됨을 확인할 수 있다.Referring to FIG. 13, it can be confirmed that the handle service message is configured to include From, Service, SN, and ServiceMessage.

From는 서비스 메시지를 송신한 블록체인 네트워크의 네트워크 어드레스로서, 도 13의 예에서 네트워크 어드레스는 “0x1.icon” 이다.From is the network address of the blockchain network that sent the service message. In the example of FIG. 13, the network address is “0x1.icon”.

Service는 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류에 관한 정보로, 도 13의 예에서 서비스 종류는 'token'이다.Service is information on a service type that identifies a service type of a service message. In the example of FIG. 13, the service type is'token'.

SN은 블록체인 통신 메시지를 식별할 수 있는 시리얼 넘버로서 도 13의 예에서 그 값은 '2'이다.SN is a serial number that can identify a blockchain communication message, and its value is '2' in the example of FIG. 13.

ServiceMessage는 서비스 메시지를 나타내며, 서비스 메시지의 모든 정보가 포함된다.ServiceMessage represents a service message, and includes all information of the service message.

다시 도 6의 설명으로 돌아와서, 제2 블록체인 네트워크(130)의 제2 서비스 제어 스마트 컨트랙트(132)는 핸들 서비스 메시지를 수신하면(156), 핸들 서비스 메시지에 포함된 서비스 메시지를 확인하여 서비스 메시지의 목적지로 서비스 메시지에 포함된 메시지를 송신한다(618).Returning to the description of FIG. 6 again, when the second service control smart contract 132 of the second blockchain network 130 receives the handle service message (156), it checks the service message included in the handle service message to check the service message. The message included in the service message is transmitted to the destination of 618.

이상과 같이 실시예들이 비록 한정된 도면에 의해 설명되었으나, 해당 기술분야에서 통상의 지식을 가진 자라면 상기를 기초로 다양한 기술적 수정 및 변형을 적용할 수 있다. 예를 들어, 설명된 기술들이 설명된 방법과 다른 순서로 수행되거나, 및/또는 설명된 시스템, 구조, 장치, 회로 등의 구성요소들이 설명된 방법과 다른 형태로 결합 또는 조합되거나, 다른 구성요소 또는 균등물에 의하여 대치되거나 치환되더라도 적절한 결과가 달성될 수 있다.As described above, although the embodiments have been described by the limited drawings, those skilled 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 than the described method, and/or the components of the described system, structure, device, circuit, etc. are combined or combined in a different form from the described method, or other components Alternatively, even if replaced or substituted by equivalents, appropriate results can be achieved.

그러므로, 다른 구현들, 다른 실시예들 및 특허청구범위와 균등한 것들도 후술하는 청구범위의 범위에 속한다.Therefore, other implementations, other embodiments, and equivalents to the claims are also within the scope of the following claims.

110: 제1 블록체인 네트워크
120: 릴레이
130: 제2 블록체인 네트워크
112: 제1 서비스 제어 스마트 컨트랙트
114: 제1 메시지 제어 스마트 컨트랙트
116: 제1 메시지 검증 스마트 컨트랙트
132: 제2 서비스 제어 스마트 컨트랙트
134: 제2 메시지 제어 스마트 컨트랙트
136: 제2 메시지 검증 스마트 컨트랙트
110: 1st blockchain network
120: relay
130: 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 (20)

제1 블록체인 네트워크에서 제2 블록체인 네트워크로 전송하는 메시지를 수신하면, 상기 메시지와 상기 메시지의 서비스 정보를 포함하는 서비스 메시지를 생성하고, 상기 서비스 메시지를 포함하는 블록체인 통신 메시지를 생성하는 제1 단계;
상기 제1 블록체인 네트워크를 모니터링 하는 릴레이에서 상기 블록체인 통신 메시지의 생성을 감지하면, 상기 제1 블록체인 네트워크로부터 상기 블록체인 통신 메시지를 검증할 수 있는 검증 정보를 획득하고, 상기 블록체인 통신 메시지와 상기 검증 정보를 포함하는 릴레이 메시지를 생성하고, 상기 릴레이 메시지를 상기 메시지의 목적지를 포함하는 상기 제2 블록체인 네트워크로 송신하는 제2 단계; 및
상기 제2 블록체인 네트워크에서 상기 릴레이 메시지를 수신하면, 상기 릴레이 메시지에 포함된 상기 검증 정보를 이용해서 상기 릴레이 메시지를 검증하고, 상기 릴레이 메시지에 포함된 메시지를 목적지로 송신하는 제3 단계
를 포함하고,
상기 블록체인 통신 메시지는,
상기 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스인 출발지 어드레스,
상기 블록체인 통신 메시지를 수신하는 메시지 제어 스마트 컨트랙트의 블록체인 어드레스인 목적지 어드레스,
상기 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류,
상기 블록체인 통신 메시지를 식별할 수 있는 시리얼 넘버, 및
상기 서비스 메시지
를 포함하는 블록체인 간 통신 방법.
When receiving a message transmitted from the first blockchain network to the second blockchain network, a service message including the message and the service information of the message is generated, and a blockchain communication message including the service message is generated. Level 1;
When the relay monitoring the first blockchain network detects the creation of the blockchain communication message, it obtains verification information to verify the blockchain communication message from the first blockchain network, and the blockchain communication message And a second step of generating a relay message including the verification information, and transmitting the relay message to the second blockchain network including a destination of the message; And
When the relay message is received from the second blockchain network, a third step of verifying the relay message using the verification information included in the relay message and transmitting the message included in the relay message to a destination.
Including,
The blockchain communication message,
The origin address, which is the blockchain address of the message control smart contract that generated the blockchain communication message,
Destination address, which is the blockchain address of the message control smart contract that receives the blockchain communication message,
A service type that identifies a service type of the service message,
Serial number that can identify the blockchain communication message, and
Reminder service message
Blockchain communication method comprising a.
제1항에 있어서,
상기 서비스 메시지는,
상기 메시지를 수신하는 계정의 블록체인 어드레스인 목적지 어드레스
를 포함하는 블록체인 간 통신 방법.
According to claim 1,
The service message,
The destination address, which is the blockchain address of the account receiving the message
Blockchain communication method comprising a.
제2항에 있어서,
상기 서비스 메시지는,
상기 메시지의 종류를 식별하는 메시지 종류,
서비스 종류와 서비스 종류의 세부 사항정보를 포함하는 서비스 정보,
상기 메시지를 송신하는 계정의 블록체인 어드레스인 출발지 어드레스, 및
상기 메시지로 송신하고자 하는 데이터
중에서 적어도 하나를 더 포함하는 블록체인 간 통신 방법.
According to claim 2,
The service message,
A message type that identifies the type of the message,
Service information including service type and detailed information of service type,
The origin address, which is the blockchain address of the account sending the message, and
Data to send with the message
Blockchain communication method further comprising at least one.
제2항에 있어서,
상기 블록체인 어드레스는,
블록체인 통신을 위한 어드레스임을 나타내는 통신 규약 식별 정보,
블록체인 네트워크의 종류를 구분하는 블록체인 종류 정보,
동일한 블록체인 네트워크의 종류에서 블록체인을 식별할 수 있는 블록체인 식별 정보, 및
블록체인 네트워크의 특정 계정을 식별할 수 있는 계정 식별 정보
를 포함하는 블록체인 간 통신 방법.
According to claim 2,
The blockchain address,
Communication protocol identification information indicating that it is an address for blockchain communication,
Blockchain type information that distinguishes the types of blockchain networks,
Blockchain identification information that can identify the blockchain in the same type of blockchain network, and
Account identification information that can identify specific accounts on the blockchain network
Blockchain communication method comprising a.
삭제delete 제1항에 있어서,
상기 릴레이 메시지는,
동일한 네트워크 어드레스를 가진 적어도 하나의 상기 블록체인 통신 메시지, 및
상기 블록체인 통신 메시지의 상기 검증 정보
를 포함하는 블록체인 간 통신 방법.
According to claim 1,
The relay message,
At least one blockchain communication message having the same network address, and
The verification information of the blockchain communication message
Blockchain communication method comprising a.
제1항에 있어서,
상기 제1 단계는,
상기 제1 블록체인 네트워크의 제1 서비스 제어 스마트 컨트랙트에서 상기 제2 블록체인 네트워크로 전송하는 상기 메시지를 수신하는 단계;
상기 제1 블록체인 네트워크의 상기 제1 서비스 제어 스마트 컨트랙트에서 상기 수신한 메시지를 이용해서 상기 서비스 메시지를 생성하고, 상기 서비스 메시지를 포함하는 송신 서비스 메시지를 생성하고, 상기 송신 서비스 메시지를 상기 제1 블록체인 네트워크의 제1 메시지 제어 스마트 컨트랙트로 송신하는 단계; 및
상기 제1 블록체인 네트워크의 상기 제1 메시지 제어 스마트 컨트랙트에서 상기 송신 서비스 메시지를 수신하면, 상기 서비스 메시지를 포함하는 상기 블록체인 통신 메시지를 생성하고, 상기 블록체인 통신 메시지를 포함하는 블록체인 이벤트 메시지를 생성하는 단계
를 포함하는 블록체인 간 통신 방법.
According to 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 the first message control smart contract of the blockchain network; And
Upon receiving the outgoing service message from 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
Blockchain communication method comprising a.
제7항에 있어서,
상기 송신 서비스 메시지는,
상기 서비스 메시지를 수신하는 블록체인 네트워크의 네트워크 어드레스에 관한 정보인 목적지 네트워크 어드레스,
상기 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류,
상기 송신 서비스 메시지를 식별할 수 있는 시리얼 넘버, 및
상기 서비스 메시지
를 포함하는 블록체인 간 통신 방법.
The method of claim 7,
The transmission service message,
The destination network address, which is information about the network address of the blockchain network that receives the service message,
A service type that identifies a service type of the service message,
A serial number capable of identifying the transmission service message, and
Reminder service message
Blockchain communication method comprising a.
제7항에 있어서,
상기 블록체인 이벤트 메시지는,
상기 블록체인 통신 메시지가 전달되는 다음 블록체인 네트워크의 메시지 제어 스마트 컨트랙트에 관한 블록체인 어드레스에 관한 정보인 다음 목적지 어드레스,
상기 블록체인 이벤트 메시지의 순서를 확인할 수 있는 시퀀스 정보, 및
상기 블록체인 통신 메시지
를 포함하는 블록체인 간 통신 방법.
The method of claim 7,
The blockchain 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 transmitted,
Sequence information that can confirm the order of the blockchain event message, and
The blockchain communication message
Blockchain communication method comprising a.
제9항에 있어서,
상기 블록체인 이벤트 메시지는,
상기 블록체인 통신 메시지를 바이트 단위로 변경하여 포함하는
블록체인 간 통신 방법.
The method of claim 9,
The blockchain event message,
Change the block chain communication message in bytes and include
Method of communication between blockchains.
제1항에 있어서,
상기 제1 단계는,
상기 제1 블록체인 네트워크의 제1 메시지 제어 스마트 컨트랙트에서 상기 블록체인 통신 메시지를 상기 제1 블록체인 네트워크의 제1 블록체인에 추가하는 단계
를 더 포함하는 블록체인 간 통신 방법.
According to claim 1,
The first step,
Adding the blockchain communication message to the first blockchain of the first blockchain network in the first message control smart contract of the first blockchain network;
Blockchain communication method further comprising a.
제1항에 있어서,
상기 제1 단계는,
상기 블록체인 통신 메시지를 생성에 실패하면, 에러 메시지를 생성하여 상기 제1 블록체인 네트워크의 제1 블록체인에 추가하는 단계
를 더 포함하는 블록체인 간 통신 방법.
According to claim 1,
The first step,
If it fails to generate the blockchain communication message, generating an error message and adding it to the first blockchain of the first blockchain network.
Blockchain communication method further comprising a.
제1항에 있어서,
상기 제2 단계는,
상기 릴레이에서 상기 블록체인 통신 메시지를 포함하는 블록체인 이벤트 메시지의 생성을 감지하면, 상기 제1 블록체인 네트워크로부터 상기 블록체인 통신 메시지를 검증할 수 있는 상기 검증 정보를 획득하고, 상기 블록체인 통신 메시지와 상기 검증 정보를 포함하는 상기 릴레이 메시지를 생성하는 단계; 및
상기 릴레이에서 상기 릴레이 메시지를 포함하는 핸들 릴레이 메시지를 생성하여 상기 제2 블록체인 네트워크의 제2 메시지 제어 스마트 컨트랙트로 송신하는 단계
를 포함하는 블록체인 간 통신 방법.
According to claim 1,
The second step,
When the relay detects generation of a blockchain event message including the blockchain communication message, the verification information capable of verifying the blockchain communication message is obtained from the first blockchain network, and the blockchain communication message And generating the relay message including the verification information. And
Generating, by the relay, a handle relay message including the relay message and transmitting it to a second message control smart contract of the second blockchain network.
Blockchain communication method comprising a.
제13항에 있어서,
상기 핸들 릴레이 메시지는,
상기 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스 및
상기 릴레이 메시지
를 포함하는 블록체인 간 통신 방법.
The method of claim 13,
The handle relay message,
The blockchain address of the message control smart contract that generated the blockchain communication message and
The relay message
Blockchain communication method comprising a.
제14항에 있어서,
상기 핸들 릴레이 메시지는,
상기 릴레이 메시지를 바이트 단위로 변경하여 포함하는
블록체인 간 통신 방법.
The method of claim 14,
The handle relay message,
Change the relay message in bytes and include
Method of communication between blockchains.
제1항에 있어서,
상기 제3 단계는,
상기 제2 블록체인 네트워크의 제2 메시지 제어 스마트 컨트랙트에서 상기 릴레이로 부터 상기 릴레이 메시지를 포함하는 핸들 릴레이 메시지를 수신하는 단계;
상기 릴레이 메시지를 포함하는 검증 핸들 릴레이 메시지를 생성하여 상기 제2 블록체인 네트워크의 제2 메시지 검증 스마트 컨트랙트로 송신하는 단계;
상기 제2 블록체인 네트워크의 상기 제2 메시지 검증 스마트 컨트랙트에서 상기 검증 핸들 릴레이 메시지를 수신하면, 상기 릴레이 메시지에 포함된 상기 검증 정보를 검증하는 단계;
상기 제2 블록체인 네트워크의 상기 제2 메시지 제어 스마트 컨트랙트에서 상기 제2 메시지 검증 스마트 컨트랙트를 통해서 상기 릴레이 메시지의 검증에 성공함을 확인하면, 상기 릴레이 메시지에 포함된 상기 블록체인 통신 메시지를 확인하고, 상기 블록체인 통신 메시지에 포함된 서비스 메시지를 확인하고, 상기 서비스 메시지를 포함하는 핸들 서비스 메시지를 생성하여 상기 제2 블록체인 네트워크의 제2 서비스 제어 스마트 컨트랙트로 송신하는 단계; 및
상기 제2 블록체인 네트워크의 상기 제2 서비스 제어 스마트 컨트랙트에서 상기 핸들 서비스 메시지를 수신하면, 상기 핸들 서비스 메시지에 포함된 상기 서비스 메시지를 확인하여 상기 서비스 메시지의 목적지로 상기 서비스 메시지에 포함된 상기 메시지를 송신하는 단계
를 포함하는 블록체인 간 통신 방법.
According to claim 1,
The third step,
Receiving a handle relay message including the relay message from the relay in the second message control smart contract of the second blockchain network;
Generating a verification handle relay message including the relay message and transmitting it to a second message verification smart contract of the second blockchain network;
Verifying the verification information included in the relay message when the verification handle relay message is received from the second message verification smart contract of the second blockchain network;
When it is confirmed that the verification of the relay message is successful through the second message verification smart contract in the second message control smart contract of the second blockchain network, the blockchain communication message included in the relay message is checked, , Identifying a service message included in the blockchain communication message, generating a handle service message including the service message, and transmitting it to a second service control smart contract in the second blockchain network; And
When the handle service message is received from the second service control smart contract of the second blockchain network, the service message included in the handle service message is checked and the message included in the service message as a destination of the service message Sending steps
Blockchain communication method comprising a.
제16항에 있어서,
상기 검증 핸들 릴레이 메시지는,
상기 핸들 릴레이 메시지를 수신하는 메시지 제어 스마트 컨트랙트의 블록체인 어드레스,
상기 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스,
시퀀스 정보, 및
상기 릴레이 메시지
를 포함하는 블록체인 간 통신 방법.
The method of claim 16,
The verification handle relay message,
Blockchain address of the message control smart contract that receives the handle relay message,
Blockchain address of the message control smart contract that generated the blockchain communication message,
Sequence information, and
The relay message
Blockchain communication method comprising a.
제16항에 있어서,
상기 검증 핸들 릴레이 메시지는,
상기 릴레이 메시지를 바이트 단위로 변경하여 포함하는
블록체인 간 통신 방법.
The method of claim 16,
The verification handle relay message,
Change the relay message in bytes and include
Method of communication between blockchains.
제16항에 있어서,
상기 핸들 서비스 메시지는,
상기 서비스 메시지를 송신한 블록체인 네트워크의 네트워크 어드레스,
상기 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류,
상기 핸들 서비스 메시지를 식별할 수 있는 시리얼 넘버, 및
상기 서비스 메시지
를 포함하는 블록체인 간 통신 방법.
The method of claim 16,
The handle service message,
The network address of the blockchain network that sent the service message,
A service type that identifies a service type of the service message,
A serial number that can identify the handle service message, and
Reminder service message
Blockchain communication method comprising a.
제2 블록체인 네트워크로 전송하는 메시지를 수신하면, 상기 메시지와 상기 메시지의 서비스 정보를 포함하는 서비스 메시지를 생성하고, 상기 서비스 메시지를 포함하는 블록체인 통신 메시지를 생성하는 제1 블록체인 네트워크;
상기 제1 블록체인 네트워크를 모니터링 하다가 상기 블록체인 통신 메시지의 생성을 감지하면, 상기 제1 블록체인 네트워크로부터 상기 블록체인 통신 메시지를 검증할 수 있는 검증 정보를 획득하고, 상기 블록체인 통신 메시지와 상기 검증 정보를 포함하는 릴레이 메시지를 생성하고, 상기 릴레이 메시지를 상기 메시지의 목적지를 포함하는 상기 제2 블록체인 네트워크로 송신하는 릴레이; 및
상기 릴레이 메시지를 수신하면, 상기 릴레이 메시지에 포함된 상기 검증 정보를 이용해서 상기 릴레이 메시지를 검증하고, 상기 릴레이 메시지에 포함된 메시지를 목적지로 송신하는 상기 제2 블록체인 네트워크
를 포함하고,
상기 블록체인 통신 메시지는,
상기 블록체인 통신 메시지를 생성한 메시지 제어 스마트 컨트랙트의 블록체인 어드레스인 출발지 어드레스,
상기 블록체인 통신 메시지를 수신하는 메시지 제어 스마트 컨트랙트의 블록체인 어드레스인 목적지 어드레스,
상기 서비스 메시지의 서비스의 종류를 식별하는 서비스 종류,
상기 블록체인 통신 메시지를 식별할 수 있는 시리얼 넘버, 및
상기 서비스 메시지
를 포함하는 블록체인 간 통신 시스템.
A first blockchain network generating a service message including the message and the service information of the message, and generating a blockchain communication message including the service message when a message transmitted to the second blockchain network is received;
When monitoring the first blockchain network and detecting the creation of the blockchain communication message, obtain verification information to verify the blockchain communication message from the first blockchain network, and obtain the blockchain communication message and the A relay for generating a relay message including verification information and transmitting the relay message to the second blockchain network including the destination of the message; And
Upon receiving the relay message, the second blockchain network that verifies the relay message using the verification information included in the relay message and transmits the message included in the relay message to a destination.
Including,
The blockchain communication message,
The origin address, which is the blockchain address of the message control smart contract that generated the blockchain communication message,
Destination address, which is the blockchain address of the message control smart contract that receives the blockchain communication message,
A service type that identifies a service type of the service message,
Serial number that can identify the blockchain communication message, and
Reminder service message
Blockchain inter-chain communication system comprising a.
KR1020200042242A 2020-04-07 2020-04-07 Communication system and method between blockchains KR102137269B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020200042242A KR102137269B1 (en) 2020-04-07 2020-04-07 Communication system and method between blockchains

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200042242A KR102137269B1 (en) 2020-04-07 2020-04-07 Communication system and method between blockchains

Publications (1)

Publication Number Publication Date
KR102137269B1 true KR102137269B1 (en) 2020-07-23

Family

ID=71894322

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200042242A KR102137269B1 (en) 2020-04-07 2020-04-07 Communication system and method between blockchains

Country Status (1)

Country Link
KR (1) KR102137269B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7397552B1 (en) 2022-09-23 2023-12-13 パラメタ株式会社 A method of transmitting specific data whose format is unknown from a first blockchain network to a second blockchain network using a relay, and a relay using this method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190036599A (en) * 2017-09-28 2019-04-05 주식회사 케이티 Method, apparatus, system and computer program for controlling network traffic
KR20190117485A (en) * 2017-07-14 2019-10-16 알리바바 그룹 홀딩 리미티드 Service data processing method and device, and Service processing method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190117485A (en) * 2017-07-14 2019-10-16 알리바바 그룹 홀딩 리미티드 Service data processing method and device, and Service processing method and device
KR20190036599A (en) * 2017-09-28 2019-04-05 주식회사 케이티 Method, apparatus, system and computer program for controlling network traffic

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7397552B1 (en) 2022-09-23 2023-12-13 パラメタ株式会社 A method of transmitting specific data whose format is unknown from a first blockchain network to a second blockchain network using a relay, and a relay using this method

Similar Documents

Publication Publication Date Title
CN108665372B (en) Information processing, inquiring and storing method and device based on block chain
AU2018349940B2 (en) System and method for information protection
KR102179160B1 (en) System and method to prove message for communication between blockchains
TW202040457A (en) Computer-implemented systems and methods for implementing transfers over a blockchain network
CN113328997B (en) Alliance chain crossing system and method
CN112087502B (en) Method, device and equipment for processing request and storage medium
US11625266B2 (en) Data processing device, system and method
CN113255014B (en) Data processing method based on block chain and related equipment
CN110400217A (en) The regular changing process method and device of intelligent contract
CN110910000A (en) Block chain asset management method and device
CN112202564A (en) Transaction transfer method and device, electronic equipment and readable storage medium
KR102137269B1 (en) Communication system and method between blockchains
US20030140010A1 (en) Method and apparatus for routing signed messages
CN117221337A (en) Block chain consensus method, device, medium and electronic equipment
CN111510306B (en) Offline signature method and device based on block chain
CN113672988B (en) Information management method, system, medium and electronic equipment based on block chain
CN117061538A (en) Consensus processing method and related device based on block chain network
CN114641967A (en) Callback mechanism for blockchain transactions
Wang et al. A new dependable exchange protocol
CN116126480A (en) Cross-region block chain processing method and device for transaction, intelligent equipment, medium and product
Hwang et al. Blockchain-based automatic indemnification mechanism based on proof of violation for cloud storage services
US20160119341A1 (en) System and methods for exchanging identity information among independent enterprises
KR20200133140A (en) Method and system for high speed processing of transaction based on hybrid blockchain
KR20240041818A (en) Method for transmitting specific data whose data type is not known to relay from first blockchain network to second blockchain network and the relay using the same
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