KR20200003306A - Block chain-based system of iot and method for the same - Google Patents

Block chain-based system of iot and method for the same Download PDF

Info

Publication number
KR20200003306A
KR20200003306A KR1020180069757A KR20180069757A KR20200003306A KR 20200003306 A KR20200003306 A KR 20200003306A KR 1020180069757 A KR1020180069757 A KR 1020180069757A KR 20180069757 A KR20180069757 A KR 20180069757A KR 20200003306 A KR20200003306 A KR 20200003306A
Authority
KR
South Korea
Prior art keywords
iot
blockchain
added
authentication information
smart contract
Prior art date
Application number
KR1020180069757A
Other languages
Korean (ko)
Other versions
KR102635038B1 (en
Inventor
한정원
김경업
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to KR1020180069757A priority Critical patent/KR102635038B1/en
Publication of KR20200003306A publication Critical patent/KR20200003306A/en
Application granted granted Critical
Publication of KR102635038B1 publication Critical patent/KR102635038B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • 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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key 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/0825Key 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) using asymmetric-key encryption or public key infrastructure [PKI], e.g. key signature or public key certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
    • H04L2209/38

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Automation & Control Theory (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention relates to a blockchain-based IoT system and a control method thereof, and more specifically, to a technology which provides an IoT system which is decentralized by constructing a home network system by using a blockchain technology. To this end, the IoT system according to an embodiment of the present invention comprises: a plurality of IoT devices corresponding to each of a plurality of nodes constituting a blockchain; a plurality of blocks corresponding to each of the plurality of IoT devices to store authentication information of the plurality of IoT devices constituting the blockchain; and an IoT control device which is one device among the plurality of IoT devices, and controls the operation of the plurality of IoT devices constituting the blockchain. Here, the IoT control device: generates a smart contract among the plurality of IoT devices; registers the added authentication information of the IoT devices to the blockchain based on a password key provided by the IoT devices added to the nodes; and renews the generated smart contract based on the added authentication information of the IoT devices.

Description

블록체인 기반의 사물 인터넷 시스템 및 그 제어방법{BLOCK CHAIN-BASED SYSTEM OF IOT AND METHOD FOR THE SAME}BLOCK CHAIN-BASED SYSTEM OF IOT AND METHOD FOR THE SAME}

블록체인 기반의 사물 인터넷 시스템 및 그 제어방법에 관한 것으로, 보다 상세하게는 블록체인 기술을 이용하여 홈 네트워크 시스템을 구축함으로써, 분산화된 사물 인터넷 시스템을 제공하는 기술에 관한 것이다.The present invention relates to a blockchain-based IoT system and a control method thereof, and more particularly, to a technology for providing a decentralized IoT system by building a home network system using a blockchain technology.

인터넷은 기본적으로 TCP/IP 프로토콜(TCP/IP Protocol)을 통해 사람이 운용하는 컴퓨터들이 상호 통신을 수행할 수 있도록 개발되었으나, 최근에는 식별, 연산 및 통신이 가능한 모든 사물들(Things)이 인터넷을 통해 통신을 수행할 수 있도록 하기 위한 연구가 진행되고 있다. 이렇게 모든 사물이 통신을 수행할 수 있도록 하는 기술을 IoT(Internet of Things; 이하, "사물 인터넷"이라고 한다)라고 한다. The Internet is basically designed to enable human-operated computers to communicate with each other through the TCP / IP protocol, but recently, all the things that can identify, compute, and communicate with the Internet Research is being conducted to enable communication through the Internet. The technology that enables all things to communicate is called the Internet of Things (IoT).

이러한 사물 인터넷은 기존의 유선 통신을 기반으로 한 인터넷이나 모바일 인터넷보다 더욱 진화된 단계로서, 인터넷에 연결된 기기가 사람의 개입 없이 상호간에 정보를 주고 받아 처리하고, 이는 사물이 인간에 의존하지 않고 통신을 주고받는 점에서 기존의 유비쿼터스(Ubiquitous)나 사물지능통신인 M2M(Machine to Machine)과 유사한 점은 있지만, M2M의 개념을 인터넷으로 확장하여 세상에 존재하는 모든 사물들을 네트워크에 연결하여 언제 어디서나 상호 간에 통신이 가능한 정보 통신 기반을 의미한다.The Internet of Things is a more advanced stage than the wired or mobile Internet based on the existing wired communication, and devices connected to the Internet transmit and receive information to each other without human intervention. It is similar to the existing Ubiquitous or M2M (Machine to Machine), which is an existing ubiquitous and IoT communication, but it extends the concept of M2M to the Internet and connects all the things in the world to the network anytime, anywhere. It means an information communication base that can communicate.

사물 인터넷 분야에서는 기기간 상호 인증 뿐만 아니라, 특정 사물, 통신 등의 분야에서 상호 장비, 기기, 또는 사용자와 사용자를 특정 지어 인식하고, 인식된 후 통신상황에서 보안상태를 유지해야 하는 경우, 통신 수단은 유무선 통신 또는 유무선 네트워크 방식을 사용하는데, 일반적으로 해킹이나 권한 이탈과 같은 형상이나 문제점이 존재한다. 또한, 종래의 사물 인터넷 시스템은 기본적으로 중앙 서버 중심으로 운영되기 때문에 서버 관리 비용이 커져서 소비자에게 큰 부담을 주고, 서버는 해킹의 확실한 목표지점이 되기 때문에 해킹의 위험이 항상 내재 될 뿐만 아니라 해킹을 방어하기 위한 부담과 비용도 커질 수 밖에 없으며, 이 부분에서도 소비자나 서비스 제공자 입장에서는 큰 부담이 된다.In the Internet of Things field, in addition to mutual authentication between devices, when a specific device, a device, or a user and a user are identified and recognized in a specific object, communication, etc., the communication means is required to maintain a security state in a communication situation. Wired and wireless communication or wired and wireless network methods are used, and there are generally shapes or problems such as hacking or deprivation. In addition, since the conventional IoT system operates mainly on the central server, the server management cost increases, which puts a heavy burden on the consumer, and since the server becomes a definite target point for hacking, the risk of hacking is always inherent and hacking is performed. The burden and cost of defense are also high, and this is a huge burden for consumers and service providers.

따라서, 중앙 서버를 이용하지 않는 분산된 사물 인터넷 시스템의 구축을 위해 블록체인 기술 적용의 필요성이 증대되고 있다. Therefore, the necessity of applying blockchain technology for building a distributed IoT system without using a central server is increasing.

일반적으로 블록 체인(blockchain)은 P2P(peer-to-peer) 네트워크에 의해 생성되고 관리되는 위변조 불가능한 분산 저장소이다. 블록 체인은 트랜잭션(쌍방간의 쪼갤 수 없는 단위 작업)으로 생성된 데이터 블록들을 체인(chain) 형태로 잇따라 연결한 모음을 의미한다. 이전 블록에 다름 블록을 연이어 암호화하고 과반수가 넘는 사용자가 동의한 데이터를 실제 데이터로 인정하기 때문에, 한번 기록된 데이터는 위조 또는 변조가 불가능하다. 블록 체인의 대표적인 응용사례는 암호화폐의 거래 과정을 기록하는 분산화된 전자 화폐인 비트코인(bitcoin)이 있다. 블록 체인에는 일정 시간 동안 사용자들 간에 발생되는 확정된 거래 내역이 저장될 수 있다. 그리고, 많은 사용자들은 블록 체인 사본을 각자 갖고 있으며, 거래 내역은 모두에게 공개될 수 있다. 이와 같이, 과반수가 넘는 사용자가 동의한 거래 내역만 실제 데이터로 인정되고, 영구적으로 보관할 블록으로 묶여 저장될 수 있다.In general, blockchain is a non-forgery, distributed repository created and managed by a peer-to-peer network. A blockchain is a collection of data blocks created by a transaction (a divisible unit work between two parties) in a chain. Since the previous block is encrypted in succession and the data agreed by more than half of the users are recognized as the actual data, once recorded data cannot be forged or tampered with. A typical application of the blockchain is bitcoin, a decentralized electronic currency that records the transaction process of cryptocurrencies. In the blockchain, a confirmed transaction history generated between users for a certain time may be stored. And many users have their own copy of the blockchain, and transaction details can be made public for everyone. As such, only transaction details agreed by more than half of users are recognized as actual data, and may be stored in a block to be permanently stored.

블록체인 기술을 이용하여 홈 네트워크 시스템을 구축함으로써, 사물 인터넷 디바이스 상호간 제어 명령 작업을 분산화 하여 유무선 통신 시스템에서 통신 보안 및 해킹 문제를 해결하는 것을 목적으로 한다.It aims to solve communication security and hacking problems in wired and wireless communication systems by decentralizing control command work between IoT devices by building a home network system using blockchain technology.

상술한 목적을 달성하기 위한 일 실시예에 따른 사물 인터넷 시스템은,Internet of Things system according to an embodiment for achieving the above object,

블록체인을 구성하는 복수의 노드 각각에 대응하는 복수의 사물 인터넷 디바이스, 상기 복수의 사물 인터넷 디바이스 각각에 대응하여, 상기 블록체인을 구성하는 복수의 사물 인터넷 디바이스의 인증 정보를 저장하는 복수의 블록 및 상기 복수의 사물 인터넷 디바이스 중 일 디바이스로서, 상기 블록체인을 구성하는 복수의 사물 인터넷 디바이스의 동작을 제어하는 사물 인터넷 제어 디바이스를 포함하고, 상기 사물 인터넷 제어 디바이스는, 상기 복수의 사물 인터넷 디바이스 간의 스마트 컨트랙트(smart contract)를 생성하고, 상기 노드에 추가되는 사물 인터넷 디바이스가 제공하는 암호키에 기초하여 상기 추가되는 사물 인터넷 디바이스의 인증 정보를 상기 블록체인에 등록하고, 상기 추가된 사물 인터넷 디바이스의 인증 정보에 기초하여 상기 생성된 스마트 컨트랙트를 갱신한다.A plurality of IoT devices corresponding to each of the plurality of nodes constituting the block chain, a plurality of blocks storing authentication information of the plurality of IoT devices constituting the block chain, corresponding to each of the plurality of IoT devices; One of the plurality of IoT devices, the IoT control device for controlling the operation of the plurality of IoT devices constituting the blockchain, the IoT control device is smart between the plurality of IoT devices Create a contract, register authentication information of the added IoT device to the blockchain based on an encryption key provided by the IoT device added to the node, and authenticate the added IoT device The student based on the information Update the created smart contract.

또한, 상기 사물 인터넷 시스템은, 상기 복수의 사물 인터넷 디바이스에 대응하는 n(n=자연수)개의 블록을 체인형태로 연계한 n 블록체인을 포함하고, 상기 n 블록체인을 기반으로 상기 복수의 사물 인터넷 디바이스 각각에 대해 고유의 공개키와 개인키를 생성할 수 있다.The IoT system may include n blockchains in which n (n = natural numbers) blocks corresponding to the plurality of IoT devices are linked in a chain form, and the plurality of IoT devices based on the n blockchains. You can create unique public and private keys for each.

또한, 상기 노드에 추가되는 사물 인터넷 디바이스가 제공하는 암호키는 개인키를 포함하고, 상기 사물 인터넷 제어 디바이스는, 상기 제공된 개인키가 상기 생성된 스마트 컨트랙트와 대응하면, 상기 추가되는 사물 인터넷 디바이스가 상기 블록체인에 추가되도록 인증하고, 상기 추가된 사물 인터넷 디바이스의 인증 정보를 상기 블록체인에 등록할 수 있다.The encryption key provided by the IoT device added to the node may include a private key, and the IoT control device may further include: if the provided private key corresponds to the generated smart contract, Authentication may be added to the blockchain, and authentication information of the added IoT device may be registered in the blockchain.

또한, 상기 사물 인터넷 제어 디바이스는, 상기 추가되는 사물 인터넷 디바이스가 제공하는 개인키가 상기 사물 인터넷 시스템이 생성한 개인키와 일치하면, 상기 추가되는 사물 인터넷 디바이스가 상기 블록체인에 추가되도록 인증할 수 있다.The IoT control device may authenticate the IoT apparatus to be added to the blockchain if the private key provided by the IoT apparatus matches the private key generated by the IoT system. have.

또한, 상기 사물 인터넷 제어 디바이스는, 상기 추가된 사물 인터넷 디바이스의 인증 정보를 상기 블록체인을 구성하는 복수의 사물 인터넷 디바이스 각각에 대응하는 상기 복수의 블록에 저장하여, 상기 추가된 사물 인터넷 디바이스의 인증 정보를 상기 블록체인에 등록할 수 있다.In addition, the IoT control device may store authentication information of the added IoT device in the plurality of blocks corresponding to each of the plurality of IoT devices constituting the block chain, thereby authenticating the added IoT device. Information can be registered in the blockchain.

또한, 상기 복수의 블록은, 상기 추가된 사물 인터넷 디바이스를 포함하는 상기 복수의 사물 인터넷 디바이스의 인증 정보를 저장할 수 있다.The plurality of blocks may store authentication information of the plurality of IoT devices including the added IoT device.

또한, 상기 생성된 스마트 컨트랙트는, 상기 복수의 사물 인터넷 디바이스 각각에 대응하는 복수의 블록에 저장되고, 상기 추가된 사물 인터넷 디바이스에 따라 갱신된 상기 스마트 컨트랙트는, 상기 복수의 블록에 저장될 수 있다.The generated smart contract may be stored in a plurality of blocks corresponding to each of the plurality of IoT devices, and the smart contract updated according to the added IoT device may be stored in the plurality of blocks. .

또한, 상기 사물 인터넷 디바이스가 상기 블록체인에 추가되면, 상기 추가된 사물 인터넷 디바이스에 대응하는 n+1번째 블록은 상기 n 블록체인에 연결 기록되어 n+1 블록체인으로 생성되고, 상기 n+1 블록체인은 상기 블록체인을 구성하는 복수의 노드에 전파되어 상기 n 블록체인이 n+1 블록체인으로 갱신될 수 있다.In addition, when the IoT device is added to the blockchain, the n + 1 th block corresponding to the added IoT device is connected to the n blockchain and recorded in the n + 1 blockchain, and the n + 1 blockchain is generated. The blockchain can be propagated to a plurality of nodes constituting the blockchain so that the n blockchain can be updated to an n + 1 blockchain.

또한, 상기 사물 인터넷 디바이스의 인증 정보는, 상기 복수의 사물 인터넷 디바이스 각각의 제품 정보 및 제품 동작 정보 중 적어도 하나를 포함할 수 있다.The authentication information of the IoT device may include at least one of product information and product operation information of each of the plurality of IoT devices.

또한, 상기 사물 인터넷 제어 디바이스는, 모바일 단말을 포함하고, 상기 블록체인을 구성하는 복수의 사물 인터넷 디바이스 각각에 대한 제어 명령을 입력 받을 수 있다.The IoT control device may include a mobile terminal and receive a control command for each of a plurality of IoT devices constituting the blockchain.

또한, 상기 사물 인터넷 제어 디바이스는, 상기 스마트 컨트랙트에 기초하여, 상기 블록체인에 추가된 사물 인터넷 디바이스를 제어하고, 상기 복수의 사물 인터넷 디바이스는, 상기 스마트 컨트랙트에 기초하여, 상기 블록체인을 구성하는 복수의 사물 인터넷 디바이스 상호간 제어를 수행할 수 있다.The IoT control device may further control the IoT device added to the blockchain based on the smart contract, and the plurality of IoT devices may configure the blockchain based on the smart contract. Control between a plurality of IoT devices may be performed.

또한, 상기 복수의 노드는, 유선 네트워크 및 무선 네트워크 중 적어도 하나로 상호 연결되고, 상기 사물 인터넷 시스템은, 상기 복수의 노드에 대응하는 상기 복수의 사물 인터넷 디바이스 간에 블록체인 인증을 기반으로, 상기 복수의 사물 인터넷 디바이스 상호간 제어를 수행할 수 있다.The plurality of nodes may be interconnected to at least one of a wired network and a wireless network, and the IoT system may be configured based on blockchain authentication between the plurality of IoT devices corresponding to the plurality of nodes. The IoT apparatus may control each other.

또한, 상기 복수의 사물 인터넷 디바이스는 통신부를 포함할 수 있다.In addition, the plurality of IoT devices may include a communication unit.

또한, 상술한 목적을 달성하기 위한 일 실시예에 따른 차량 제어방법은,In addition, the vehicle control method according to an embodiment for achieving the above object,

블록체인을 구성하는 복수의 노드 각각에 대응하는 복수의 사물 인터넷 디바이스의 인증 정보를 저장하고, 상기 복수의 사물 인터넷 디바이스 간의 스마트 컨트랙트를 생성하고, 상기 노드에 추가되는 사물 인터넷 디바이스가 제공하는 암호키에 기초하여 상기 추가되는 사물 인터넷 디바이스의 인증 정보를 상기 블록체인에 등록하고, 상기 추가된 사물 인터넷 디바이스의 인증 정보에 기초하여 상기 생성된 스마트 컨트랙트를 갱신한다.An encryption key provided by the IoT device that stores authentication information of a plurality of IoT devices corresponding to each of the plurality of nodes constituting the blockchain, generates a smart contract between the plurality of IoT devices, and is added to the node. Register authentication information of the IoT apparatus to be added to the blockchain based on the authentication information, and update the generated smart contract based on the authentication information of the added IoT apparatus.

또한, 상기 복수의 사물 인터넷 디바이스에 대응하는 n(n=자연수)개의 블록을 체인형태로 연계한 n 블록체인을 포함하고, 상기 n 블록체인을 기반으로 상기 복수의 사물 인터넷 디바이스 각각에 대해 고유의 공개키와 개인키를 생성하는 것을 포함할 수 있다.The present invention also includes an n blockchain in which n (n = natural numbers) blocks corresponding to the plurality of IoT devices are linked in a chain form, and is uniquely disclosed to each of the plurality of IoT devices based on the n blockchain. It may include generating a key and a private key.

또한, 상기 노드에 추가되는 사물 인터넷 디바이스가 제공하는 암호키는 개인키를 포함하고, 상기 추가되는 사물 인터넷 디바이스의 인증 정보를 상기 블록체인에 등록하는 것은, 상기 제공된 개인키가 상기 생성된 스마트 컨트랙트와 대응하면, 상기 추가되는 사물 인터넷 디바이스가 상기 블록체인에 추가되도록 인증하고, 상기 추가된 사물 인터넷 디바이스의 인증 정보를 상기 블록체인에 등록할 수 있다.The encryption key provided by the IoT device added to the node may include a private key, and registering the additional authentication information of the IoT device added to the blockchain may include generating the smart contract in which the provided private key is generated. In response to, the additional IoT device may be authenticated to be added to the blockchain, and the authentication information of the added IoT device may be registered in the blockchain.

또한, 상기 추가되는 사물 인터넷 디바이스가 상기 블록체인에 추가되도록 인증하는 것은, 상기 추가되는 사물 인터넷 디바이스가 제공하는 개인키가 상기 사물 인터넷 시스템이 생성한 개인키와 일치하면, 상기 추가되는 사물 인터넷 디바이스가 상기 블록체인에 추가되도록 인증할 수 있다.In addition, authenticating the additional IoT device to be added to the blockchain may include adding the IoT apparatus when the private key provided by the IoT apparatus matches the private key generated by the IoT system. Can be authenticated to be added to the blockchain.

또한, 상기 추가되는 사물 인터넷 디바이스의 인증 정보를 상기 블록체인에 등록하는 것은, 상기 추가된 사물 인터넷 디바이스의 인증 정보를 상기 블록체인을 구성하는 복수의 사물 인터넷 디바이스 각각에 대응하는 복수의 블록에 저장하여, 상기 추가된 사물 인터넷 디바이스의 인증 정보를 상기 블록체인에 등록할 수 있다.The registering of the additional authentication information of the IoT apparatus on the blockchain may include storing the added authentication information of the IoT apparatus in a plurality of blocks corresponding to each of a plurality of IoT apparatuses constituting the blockchain. Thus, authentication information of the added IoT device may be registered in the blockchain.

또한, 상기 추가된 사물 인터넷 디바이스를 포함하는 상기 복수의 사물 인터넷 디바이스의 인증 정보를 상기 복수의 블록에 저장하는 것을 더 포함할 수 있다.The method may further include storing authentication information of the plurality of IoT devices including the added IoT device in the plurality of blocks.

또한, 상기 생성된 스마트 컨트랙트를 상기 복수의 사물 인터넷 디바이스 각각에 대응하는 복수의 블록에 저장하고, 상기 추가된 사물 인터넷 디바이스에 따라 갱신된 상기 스마트 컨트랙트를 상기 복수의 블록에 저장하는 것을 포함할 수 있다.The method may further include storing the generated smart contract in a plurality of blocks corresponding to each of the plurality of IoT devices and storing the updated smart contract in the plurality of blocks according to the added IoT device. have.

또한, 상기 사물 인터넷 디바이스가 상기 블록체인에 추가되면, 상기 추가된 사물 인터넷 디바이스에 대응하는 n+1번째 블록은 상기 n 블록체인에 연결 기록되어 n+1 블록체인으로 생성되고, 상기 n+1 블록체인은 상기 블록체인을 구성하는 복수의 노드에 전파되어 상기 n 블록체인이 n+1 블록체인으로 갱신될 수 있다.In addition, when the IoT device is added to the blockchain, the n + 1 th block corresponding to the added IoT device is connected to the n blockchain and recorded in the n + 1 blockchain, and the n + 1 blockchain is generated. The blockchain can be propagated to a plurality of nodes constituting the blockchain so that the n blockchain can be updated to an n + 1 blockchain.

또한, 상기 블록체인을 구성하는 복수의 사물 인터넷 디바이스 각각에 대한 제어 명령을 입력 받는 것을 더 포함할 수 있다.The method may further include receiving a control command for each of the plurality of IoT devices constituting the blockchain.

또한, 상기 스마트 컨트랙트에 기초하여, 상기 블록체인에 추가된 사물 인터넷 디바이스를 포함하는 복수의 사물 인터넷 디바이스 상호간 제어를 수행하는 것을 더 포함할 수 있다.The method may further include performing control between a plurality of IoT devices including the IoT device added to the blockchain based on the smart contract.

또한, 상기 복수의 사물 인터넷 디바이스간의 통신을 제어하는 것을 더 포함할 수 있다.The method may further include controlling communication between the plurality of IoT devices.

블록체인 기술을 이용하여 홈 네트워크 시스템을 구축함으로써, 분산화된 사물 인터넷 시스템을 제공하여 중앙 서버에 대한 해킹을 방지하고 익명성과 비밀성을 보장할 수 있다. 또한, 중앙 서버 없이 각 디바이스끼리 신뢰할 수 있는 장치로 등록하고 제어함으로써 각 디바이스를 손쉽게 제어할 수 있고, 제어 명령에 대한 위조 및 변조를 방지하여 투명성을 확보할 수 있는 효과가 있다. 또한, 탈 중앙화를 통한 사물 인터넷 시스템을 제공함으로써, 서버 운용 비용 및 관리 비용을 절감할 수 있는 효과가 있다.By building a home network system using blockchain technology, it is possible to provide a decentralized IoT system to prevent hacking to the central server and to ensure anonymity and confidentiality. In addition, by registering and controlling each device as a reliable device without a central server, it is possible to easily control each device, and there is an effect of ensuring transparency by preventing forgery and tampering with control commands. In addition, by providing the IoT system through de-centralization, there is an effect that can reduce the server operating cost and management cost.

도 1은 일 실시예에 따른 블록체인 기반의 사물 인터넷 시스템을 도시한 전체 구성도이다.
도 2는 일 실시예에 따른 블록체인을 구성하는 복수의 노드 각각에 대응하는 복수의 사물 인터넷 디바이스를 도시한 것이다.
도 3은 일 실시예에 따른 스마트 컨트랙트를 도시한 것이다.
도 4는 일 실시예에 따른 사물 인터넷 디바이스의 제어 구성도이다.
도 5는 일 실시예에 따른 사물 인터넷 시스템의 제어 흐름도이다.
도 6은 일 실시예에 따라 복수의 사물 인터넷 디바이스간에 스마트 컨트랙트를 생성하는 것을 도시한 것이다.
도 7은 일 실시예에 따라 사물 인터넷 디바이스가 추가되기 위한 등록 요청을 도시한 것이다.
도 8은 일 실시예에 따라 인증된 사물 인터넷 디바이스가 추가된 것을 도시한 것이다.
도 9는 일 실시예에 따라 추가된 사물 인터넷 디바이스의 인증 정보에 기초하여 스마트 컨트랙트를 갱신하는 것을 도시한 것이다.
도 10은 다른 실시예에 따라 사물 인터넷 디바이스가 추가되기 위한 등록 요청을 도시한 것이다.
도 11은 다른 실시예에 따라 인증된 사물 인터넷 디바이스가 추가된 것을 도시한 것이다.
도 12는 다른 실시예에 따라 추가된 사물 인터넷 디바이스의 인증 정보에 기초하여 스마트 컨트랙트를 갱신하는 것을 도시한 것이다.
도 13은 일 실시예에 따라 사물 인터넷 디바이스의 인증 정보가 사물 인터넷 디바이스 각각에 포함된 블록에 블록체인 형태로 저장되는 것을 도시한 것이다.
도 14 및 도 15는 일 실시예에 따라 블록체인을 구성하는 사물 인터넷 디바이스들이 상호간에 제어를 수행하는 것을 도시한 것이다.
도 16은 일 실시예에 따른 사물 인터넷 시스템 제어방법을 도시한 순서도이다.
1 is a block diagram illustrating a blockchain-based IoT system according to an embodiment.
2 illustrates a plurality of IoT devices corresponding to each of a plurality of nodes constituting a blockchain, according to an exemplary embodiment.
3 illustrates a smart contract according to an embodiment.
4 is a control block diagram of an IoT device according to an exemplary embodiment.
5 is a control flowchart of an IoT system according to an exemplary embodiment.
6 illustrates generating a smart contract between a plurality of IoT devices according to an embodiment.
7 illustrates a registration request for adding an IoT device according to an embodiment.
8 illustrates that an authenticated IoT device is added according to an embodiment.
9 illustrates updating a smart contract based on authentication information of an IoT apparatus added according to an embodiment.
10 illustrates a registration request for adding an IoT device according to another embodiment.
11 illustrates that an authenticated IoT device is added according to another embodiment.
12 is a diagram for updating a smart contract based on authentication information of an IoT apparatus added according to another embodiment.
FIG. 13 illustrates that authentication information of an IoT device is stored in a block chain form in a block included in each IoT device.
14 and 15 illustrate that the IoT devices constituting the blockchain perform control with each other according to an embodiment.
16 is a flowchart illustrating a method of controlling an IoT system, according to an exemplary embodiment.

명세서 전체에 걸쳐 동일 참조 부호는 동일 구성요소를 지칭한다. 본 명세서가 실시예들의 모든 요소들을 설명하는 것은 아니며, 본 발명이 속하는 기술분야에서 일반적인 내용 또는 실시예들 간에 중복되는 내용은 생략한다. 명세서에서 사용되는 '부, 모듈, 부재, 블록'이라는 용어는 소프트웨어 또는 하드웨어로 구현될 수 있으며, 실시예들에 따라 복수의 '부, 모듈, 부재, 블록'이 하나의 구성요소로 구현되거나, 하나의 '부, 모듈, 부재, 블록'이 복수의 구성요소들을 포함하는 것도 가능하다. Like reference numerals refer to like elements throughout. The present specification does not describe all elements of the embodiments, and overlaps between general contents or embodiments in the technical field to which the present invention belongs. The term 'part, module, member, block' used in the specification may be implemented in software or hardware, and a plurality of 'part, module, member, block' may be embodied as one component, It is also possible that one 'part, module, member, block' includes a plurality of components.

명세서 전체에서, 어떤 부분이 다른 부분과 "연결"되어 있다고 할 때, 이는 직접적으로 연결되어 있는 경우뿐 아니라, 간접적으로 연결되어 있는 경우를 포함하고, 간접적인 연결은 무선 통신망을 통해 연결되는 것을 포함한다.Throughout the specification, when a part is said to be "connected" with another part, it includes not only directly connected but also indirectly connected, and indirect connection includes connecting through a wireless communication network. do.

또한 어떤 부분이 어떤 구성요소를 "포함"한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 포함할 수 있는 것을 의미한다.In addition, when a part is said to "include" a certain component, which means that it may further include other components, except to exclude other components unless otherwise stated.

제 1, 제 2 등의 용어는 하나의 구성요소를 다른 구성요소로부터 구별하기 위해 사용되는 것으로, 구성요소가 전술된 용어들에 의해 제한되는 것은 아니다. The terms first, second, etc. are used to distinguish one component from another component, and the component is not limited by the terms described above.

단수의 표현은 문맥상 명백하게 예외가 있지 않는 한, 복수의 표현을 포함한다.Singular expressions include plural expressions unless the context clearly indicates an exception.

각 단계들에 있어 식별부호는 설명의 편의를 위하여 사용되는 것으로 식별부호는 각 단계들의 순서를 설명하는 것이 아니며, 각 단계들은 문맥상 명백하게 특정 순서를 기재하지 않는 이상 명기된 순서와 다르게 실시될 수 있다. In each step, the identification code is used for convenience of explanation, and the identification code does not describe the order of each step, and each step may be performed differently from the stated order unless the context clearly indicates a specific order. have.

이하 첨부된 도면들을 참고하여 본 발명의 작용 원리 및 실시예들에 대해 설명한다.Hereinafter, the working principle and the embodiments of the present invention will be described with reference to the accompanying drawings.

도 1은 일 실시예에 따른 블록체인 기반의 사물 인터넷 시스템을 도시한 전체 구성도이다. 도 2는 일 실시예에 따른 블록체인을 구성하는 복수의 노드 각각에 대응하는 복수의 사물 인터넷 디바이스를 도시한 것이다.1 is a block diagram illustrating a blockchain-based IoT system according to an embodiment. 2 illustrates a plurality of IoT devices corresponding to each of a plurality of nodes constituting a blockchain, according to an exemplary embodiment.

도 1을 참고하면, 사물 인터넷 시스템(1)은 복수의 사물 인터넷 디바이스(100)를 포함할 수 있다.Referring to FIG. 1, the IoT system 1 may include a plurality of IoT devices 100.

사물 인터넷(IOT)은 인터넷을 기반으로 모든 사물을 연결하여 사람과 사물, 사물과 사물 간의 정보를 상호 소통하는 지능형 기술 및 서비스를 의미한다. 이를 구현하기 위한 기술 요소로는 유형의 사물과 주위 환경으로부터 정보를 얻는 센싱 기술, 사물이 인터넷에 연결되도록 지원하는 유무선 통신 및 네트워크 인프라 기술, 각종 서비스 분야와 형태에 적합하게 정보를 가공하고 처리하거나 각 종 기술을 융합하는 서비스 인터페이스 기술, 대량의 데이터 등 사물 인터넷의 구성 요소들에 대한 해킹이나 정보 유출을 방지하기 위한 보안 기술 등이 있다.The Internet of Things (IOT) refers to intelligent technologies and services that connect all objects to each other and communicate information between objects based on the Internet. Technology elements to implement this include sensing technology that obtains information from tangible objects and their surroundings, wired and wireless communication and network infrastructure technologies that enable things to be connected to the Internet, and processes and processes the information appropriately for various service areas and forms. There are service interface technologies that fuse various technologies, security technologies to prevent hacking or information leakage of the components of the Internet of Things such as large amounts of data.

이러한 사물 인터넷(IOT)을 기반으로 네트워크에 연결할 수 있는 사물 인터넷 디바이스(100)에는 스마트폰(100-1), 냉장고(100-2), 세탁기(100-3), TV(100-4), 로봇 청소기(100-5), 오븐(100-6), 에어컨(100-7) 등의 일반 가정에서 사용하는 각종 가전기기, 디지털 카메라, 컴퓨터, 노트북, 각종 센서, 자동차 오디오, 디지털 계량기, 도어 잠금 장치, 게임기, 스피커, 보안 장치 등 우리 주변의 모든 사물을 포함할 수 있다. 사물의 종류에 대한 제한은 없다.The IoT device 100 that can connect to a network based on the Internet of Things (IOT) includes a smartphone 100-1, a refrigerator 100-2, a washing machine 100-3, a TV 100-4, Various home appliances such as robot cleaner (100-5), oven (100-6), air conditioner (100-7), digital camera, computer, laptop, various sensors, car audio, digital meter, door lock It can include everything around us, including devices, game consoles, speakers, and security devices. There is no restriction on the kind of things.

네트워크에 연결된 사물 인터넷 디바이스(100)는 복수의 사물 인터넷 디바이스(100) 중 일 디바이스에 의해 제어될 수 있다. The IoT device 100 connected to the network may be controlled by one of the plurality of IoT devices 100.

사물 인터넷 디바이스(100)를 제어할 수 있는 디바이스는 일반적으로 사용자 단말기 또는 음성 명령에 따라 제어를 수행할 수 있는 제어 주체로 구현될 수 있으나, 사물 인터넷 시스템(1)에 포함된 복수의 사물 인터넷 디바이스(100) 중 어떠한 디바이스도 제어 주체가 될 수 있다.A device capable of controlling the IoT device 100 may be generally implemented as a control entity capable of performing control according to a user terminal or a voice command, but a plurality of IoT devices included in the IoT system 1 may be implemented. Any device of 100 may be a controlling entity.

사용자 단말기는 일반적으로 스마트폰(smart phone), 셀룰러폰(cellular phone), 태블릿 피씨(tablet PC), 스마트 TV, 디지털 카메라, 개인용 디지털 보조 장치(PDA, personal digital assistant), 원격 제어 장치(리모콘, remote controller), 휴대용 멀티미디어 플레이어(portable multimedia player: PMP), 노트북, 데스크 탑 컴퓨터 등을 포함할 수 있다. User terminals are typically smartphones, cellular phones, tablet PCs, smart TVs, digital cameras, personal digital assistants (PDAs), remote controls (remote controls, remote controller, portable multimedia player (PMP), laptop, desktop computer and the like.

기존의 사물 인터넷 시스템(1)은 중앙 서버를 포함하고, 중앙 서버와 연계되어 사물 인터넷 디바이스의 동작 및 제어가 수행되었다. 즉, 사물 인터넷 시스템(1)에 연결된 디바이스가 상호간에 직접 연결되지 않고, 중앙 서버를 통해 연결되었는데 이 경우 서버에 많은 부하가 걸리게 되고 서버에 연결된 네트워크에도 큰 트래픽이 발생하게 된다.The existing IoT system 1 includes a central server, and the operation and control of the IoT device is performed in connection with the central server. That is, the devices connected to the IoT system 1 are not directly connected to each other, but are connected through a central server. In this case, a heavy load is placed on the server and a large traffic is generated in the network connected to the server.

또한, 서버 기반의 사물 인터넷 시스템(1)은, 사물 인터넷 디바이스(100)간의 통신 및 제어를 위해서는 반드시 서버를 통해야 하므로 개인 정보의 유출 우려가 있고, 서버 해킹으로 인한 정보 손실 및 오작동의 우려가 있다. In addition, since the server-based IoT system 1 must communicate through a server for communication and control between the IoT devices 100, there is a risk of leakage of personal information, and there is a fear of information loss and malfunction due to server hacking. .

나아가, 사물 인터넷 시스템(1)의 서버가 상시 동작하고, 데이터가 제공되어야 하므로 방대한 데이터 제공 비용 및 서버 관리 비용이 발생한다. Furthermore, since the server of the IoT system 1 always operates and data is to be provided, a huge data provision cost and server management cost occur.

따라서, 개시된 실시예에 따른 블록체인 기반의 사물 인터넷 시스템 및 제어방법에서는, 복수의 사물 인터넷 디바이스가 중앙 서버를 통해 상호간에 연결되는 것이 아닌, 블록체인 시스템을 통해 상호간에 직접 연결됨으로써 분산화된 제어 시스템을 구축할 수 있다.Therefore, in the blockchain-based IoT system and control method according to the disclosed embodiment, a plurality of IoT devices are not directly connected to each other through a central server, but are directly connected to each other through a blockchain system to be decentralized. Can be built.

도 1에 도시된 바와 같이, 사물 인터넷 시스템(1)에 포함되는 복수의 사물 인터넷 디바이스(100)는 중앙 서버와 같은 중계자를 이용하지 않고 블록체인 기반의 분산 네트워크를 통해 서로 연결되고 상호 간에 제어를 수행할 수 있다.As shown in FIG. 1, the plurality of IoT devices 100 included in the IoT system 1 are connected to each other through a blockchain-based distributed network without using a relay such as a central server and control each other. Can be done.

네트워크는 유선 및/또는 무선 네트워크일 수 있다. 구체적으로, 일 실시예에 따른 네트워크는 복수의 사물 인터넷 디바이스(100)가 서버를 통하지 않고 직접 데이터 통신을 할 수 있는 P2P(Peer to Peer) 네트워크일 수 있으나, 이에 한정되지 않는다. 사물 인터넷 시스템(1)에 포함된 사물 인터넷 디바이스(100) 간의 인증 내역, 제어 내역, 동작 내역 등은 P2P 네트워크 기반의 분산 데이터베이스인 블록체인에 저장될 수 있다.The network may be a wired and / or wireless network. Specifically, the network according to an embodiment may be a peer to peer (P2P) network in which the plurality of IoT devices 100 may directly communicate with each other without passing through a server, but is not limited thereto. Authentication details, control details, operation details, etc. between the IoT devices 100 included in the IoT system 1 may be stored in a blockchain that is a distributed database based on a P2P network.

도 2에 도시된 바와 같이, 블록체인은 거래(transaction)로 생성된 데이터 블록들을 체인 형태로 잇따라 연결하는 모음일 수 있다. 예를 들어, 블록체인은 해시 알고리즘(hash algorithm)을 이용하여 위변조가 불가능하도록 장부(ledger) 데이터를 블록 단위로 저장하고, 블록을 링크드 리스트로 구성하여 이전 블록의 해시 값을 다음 블록에 포함시켜서 중간의 한 블록만 위조하는 것을 불가능하게 할 수 있다. As shown in FIG. 2, a blockchain may be a collection that sequentially connects data blocks generated by a transaction in a chain form. For example, the blockchain uses a hash algorithm to store ledger data in units of blocks so that forgery is impossible, and organizes the block into a linked list to include the hash value of the previous block in the next block. It can make it impossible to forge only one block in the middle.

예를 들어, 시스템(1)에서 거래에 이용되는 가상 화폐 중 암호화된 화폐의 거래과정을 기록하는 분산화된 전자 장부(ledger)는 블록체인을 이용할 수 있다. 즉, 블록체인의 블록에는 일정 시간 동안 사용자들 간의 확정된 거래내역이 저장될 수 있다. For example, a decentralized electronic book that records the transaction process of encrypted money among virtual currencies used for the transaction in the system 1 may use a blockchain. In other words, a predetermined transaction history between users may be stored in a block of a block chain.

도 1에서 설명한 사물 인터넷 시스템(1)에서 디바이스 제어, 디바이스 추가, 디바이스 인증, 디바이스간 데이터 공유 등을 수행하는 복수의 사물 인터넷 디바이스(100)는 블록체인 사본을 각각 가질 수 있다. In the IoT system 1 described with reference to FIG. 1, the plurality of IoT devices 100 that perform device control, device addition, device authentication, and data sharing between devices may each have a blockchain copy.

또한, 사물 인터넷 시스템(1)에서 각 사물 인터넷 디바이스(100)간 데이터 공유 내역은 블록체인에 저장되어 모든 사물 인터넷 디바이스(100)에게 공개될 수 있다. In addition, in the IoT system 1, details of data sharing between the IoT devices 100 may be stored in a blockchain and disclosed to all IoT devices 100.

예를 들어, 사물 인터넷 시스템(1)에 포함된 복수의 사물 인터넷 디바이스(100) 중 과반수가 넘는 디바이스가 동의한 경우에만, 시스템(1)에 추가되는 디바이스를 검증된 디바이스로 인정하고, 추가되는 디바이스의 검증 내역을 블록으로 묶어 저장할 수 있다. 이 때, 새로 만든 블록은 이전 블록체인 뒤에 덧붙여 진다.For example, only when more than half of the plurality of IoT devices 100 included in the IoT system 1 agree, a device added to the system 1 is recognized as a verified device, and You can save the verification details of the device in blocks. At this point, the newly created block is added after the previous blockchain.

즉, 블록체인은 이전 블록에 다음 블록을 연이어 암호화하고 과반수가 넘는 사용자가 동의(consensus)한 데이터만 검증된 데이터로 인정한다. 따라서, 블록체인을 이용한 분산 데이터베이스에서는 블록체인에 기록된 내용에 대한 위조 및 변조가 불가능하다. That is, the blockchain only encrypts the next block in the previous block and recognizes only the data that has been agreed by more than half of users as verified data. Therefore, in a distributed database using blockchain, forgery and modulation of contents recorded in the blockchain is impossible.

개시된 발명의 일 실시예에 따라, 사물 인터넷 시스템(1)에서 분산 네트워크를 통해 사물 인터넷 디바이스(100)들 간의 제어를 수행하기 위하여, 각 디바이스들은 블록체인 기반의 오픈 마켓을 제공하는 어플리케이션을 외부 서버로부터 다운로드 하여 각 단말에서 실행할 수 있다.According to an embodiment of the present invention, in order to perform control between the IoT devices 100 through the distributed network in the IoT system 1, each device may be configured to use an external server to provide an application that provides a blockchain-based open market. It can be downloaded from and executed on each terminal.

도 2에 도시된 바와 같이, 블록체인은 복수의 노드를 포함할 수 있으며, 복수의 노드 각각에는 사물 인터넷 디바이스(100)가 연결될 수 있다. 즉, 블록체인의 복수의 노드는 유선 네트워크 또는 무선 네트워크 중 적어도 하나로 상호 연결되고, 노드에 연결된 사물 인터넷 디바이스(100)들은 블록체인 시스템을 구성할 수 있다.As shown in FIG. 2, the blockchain may include a plurality of nodes, and the IoT device 100 may be connected to each of the plurality of nodes. That is, the plurality of nodes of the blockchain are interconnected to at least one of a wired network or a wireless network, and the IoT devices 100 connected to the node may constitute a blockchain system.

사물 인터넷 시스템(1)은 복수의 노드(ND1, ND2, ND3, ??, NDn)가 인터넷 통신망, 저전력 통신망(LPWAN), LPWAN에 포함 또는 연계되는 게이트웨이(GW) 등으로 상호 연결되어 이루어질 수 있으며, 필요에 따라 업데이트, 데이터 수집, 최소한의 관리 등을 위한 관리 서버가 포함될 수 있다. 그러나, 전체 사물 인터넷 시스템(1)은 관리 서버 없이도 노드(ND1, ND2, ND3, ??, NDn)들 사이에서 운영이 가능하도록 구성될 수 있다. 전체 노드의 개수는 무수히 많을 수 있으며, 특별히 제한을 두지 않는다.The IoT system 1 may be formed by interconnecting a plurality of nodes ND1, ND2, ND3, ??, and NDn with an Internet communication network, a low power communication network (LPWAN), a gateway included in or connected to the LPWAN, and the like. If necessary, a management server for update, data collection, minimal management, and the like may be included. However, the entire IoT system 1 may be configured to operate between nodes ND1, ND2, ND3, ??, and NDn without a management server. The total number of nodes can be numerous and there is no particular limitation.

또한, 복수의 노드에 연결될 수 있는 사물 인터넷 디바이스(100)에는 제한이 없으며, 도2와 같이 스마트폰(100-1), TV(100-4), 에어컨(100-7)이 연결될 수 있다.In addition, the IoT device 100 which may be connected to a plurality of nodes is not limited, and as illustrated in FIG. 2, the smartphone 100-1, the TV 100-4, and the air conditioner 100-7 may be connected.

도 3은 일 실시예에 따른 스마트 컨트랙트를 도시한 것이다.3 illustrates a smart contract according to an embodiment.

스마트 컨트랙트(Smart Contract)는 블록체인 기반의 네트워크 시스템에 있어서, 시스템을 구성하는 디바이스들 간에 내부 네트워크(Private Network)를 구성하기 위한 인증 수단이다. A smart contract is a blockchain-based network system, and is an authentication means for constructing an internal network between devices constituting the system.

이러한 스마트 컨트랙트(110)는 실행 가능한 바이트 코드로 컴파일되어 적어도 하나의 컴퓨팅 장치상에서 실행될 수 있는 코드이고, 스마트 컨트랙트(110) 실행 시에 특정 조건이 만족되면 미리 정해진 절차 또는 동작을 수행하도록 구성되며, 이러한 스마트 컨트랙트(110)의 실행 결과값은 스마트 컨트랙트(110)에 대한 합의(consensus)를 포함하는 디바이스들에 의하여 결정될 수 있다.The smart contract 110 is code that can be compiled into executable byte code and executed on at least one computing device, and is configured to perform a predetermined procedure or operation when a specific condition is satisfied when the smart contract 110 is executed. The execution result of such a smart contract 110 may be determined by devices including a consensus on the smart contract 110.

스마트 컨트랙트(110)는 블록체인을 구성하는 복수의 사물 인터넷 디바이스(100)간에 약속된 내용으로서, 블록체인을 구성하는 블록(BC)에 생성될 수 있다. The smart contract 110 is a content promised between the plurality of IoT devices 100 constituting the block chain, and may be generated in the block BC constituting the block chain.

사물 인터넷 디바이스(100)가 블록(BC)에 스마트 컨트랙트(110) 생성을 요청하면, 블록은 스마트 컨트랙트(110) 생성 요청에 따라 트랜잭션 ID를 생성하여 트랜잭션 ID를 출력할 수 있다. When the IoT device 100 requests the block BC to generate the smart contract 110, the block may generate a transaction ID according to the smart contract 110 generation request and output the transaction ID.

블록(BC)은 생성 요청된 스마트 컨트랙트(110)에 대해 마이닝(mining, 채굴)을 수행할 수 있다. 이러한 마이닝은 블록체인 내에서 수행될 수 있고, 블록체인에 접속하는 다른 디바이스들에 의해 수행될 수 있다. 마이닝이 완료되면, 스마트 컨트랙트(110)가 블록체인 내에 생성된다. 이러한 스마트 컨트랙트(110)는 블록체인의 블록(BC)에 생성될 수 있고, 블록체인에 접속하는 다른 디바이스들의 블록에도 생성될 수 있다.Block BC may perform mining (mining) on the generated smart contract 110. Such mining may be performed within the blockchain and may be performed by other devices connecting to the blockchain. When the mining is completed, the smart contract 110 is created in the blockchain. The smart contract 110 may be generated in the block BC of the blockchain, and may also be generated in the block of other devices connecting to the blockchain.

도 3을 참조하면, 스마트 컨트랙트(110)는 블록체인을 구성하는 사물 인터넷 디바이스(100)의 정보를 포함할 수 있다. 즉, 사물 인터넷 디바이스(100)가 블록체인에 포함되기 위해서는 디바이스 상호간에 인증이 되어야 하고, 인증된 디바이스 정보는 블록체인에 포함된 디바이스가 모두 공유할 수 있다.Referring to FIG. 3, the smart contract 110 may include information of the IoT device 100 constituting the blockchain. That is, in order for the IoT device 100 to be included in the blockchain, the devices must be authenticated with each other, and the authenticated device information can be shared by all devices included in the blockchain.

따라서, 스마트 컨트랙트(110)에는 인증된 사물 인터넷 디바이스 정보(111)가 포함될 수 있다. Accordingly, the smart contract 110 may include authenticated IoT device information 111.

또한, 스마트 컨트랙트(110)는 사물 인터넷 디바이스(100)의 인증 정보(112)를 포함할 수 있다. 즉, 스마트 컨트랙트(110)에는 블록체인을 구성하는 사물 인터넷 디바이스(100)의 제품 정보, 동작 정보 등이 포함될 수 있다. 사물 인터넷 디바이스(100)의 제품 정보는 디바이스의 모델명, 제품 번호 등이 포함될 수 있고, 사물 인터넷 디바이스(100)의 동작 정보는 디바이스의 동작 조건, 동작 시점, 중지 시점 등이 포함될 수 있다.In addition, the smart contract 110 may include authentication information 112 of the IoT device 100. That is, the smart contract 110 may include product information, operation information, and the like of the IoT device 100 constituting the blockchain. The product information of the IoT device 100 may include a model name, a product number, and the like of the device, and the operation information of the IoT device 100 may include an operation condition, an operation time, a stop time, and the like of the device.

또한, 스마트 컨트랙트(110)는 사물 인터넷 디바이스(100)의 접속 정보(IP/MAC, 113)를 포함할 수 있다. 즉, 사물 인터넷 시스템(1)은 사물 인터넷 디바이스(100)가 접속하면 사물 인터넷 시스템(1)의 고유한 식별정보를 사물 인터넷 디바이스(100)에 전송할 수 있다. 이러한 식별 정보는 네트워크에 부여된 고유 식별자인 맥 주소송(Media Access Control address: MAC address), 무선랜(wireless-lan)을 통하여 전송되는 모든 패킷의 해더에 존재하는 서비스 세트 식별자(Service Set IDentifier : SSID) 또는 사용자가 사전에 지정한 아이디(identifier: ID) 등 사물 인터넷 디바이스(100)를 식별할 수 있는 정보이면 어느 것이라도 이용할 수 있다.In addition, the smart contract 110 may include access information (IP / MAC) 113 of the IoT device 100. That is, when the IoT device 100 is connected, the IoT system 1 may transmit unique identification information of the IoT system 1 to the IoT device 100. Such identification information may include a MAC (Media Access Control address), a unique identifier assigned to a network, and a service set identifier present in a header of all packets transmitted through a wireless-lan. Any information that can identify the IoT device 100, such as an SSID) or a user-specified identifier (ID), can be used.

또한, 후술할 바와 같이, 블록체인 기반의 사물 인터넷 시스템(1)은 시스템(1)에 포함된 사물 인터넷 디바이스(100) 상호간에 제어를 수행할 수 있다. 이러한 사물 인터넷 디바이스(100) 제어는 스마트 컨트랙트(110)를 통해 인증된 디바이스들 간에만 수행될 수 있다. In addition, as will be described later, the blockchain-based IoT system 1 may control the IoT apparatus 100 included in the system 1. Such IoT device 100 control may be performed only between devices authenticated through the smart contract 110.

따라서, 스마트 컨트랙트(110)에는 복수의 사물 인터넷 디바이스(100) 중에서 제어 주체가 되는 제어 디바이스의 정보(114) 및 제어 대상이 되는 피 제어 디바이스의 정보(115)를 포함할 수 있다.Accordingly, the smart contract 110 may include information 114 of the control device, which is the control subject, and information 115 of the controlled device, which is the control target, among the plurality of IoT devices 100.

도 4는 일 실시예에 따른 사물 인터넷 디바이스의 제어 구성도이다. 4 is a control block diagram of an IoT device according to an exemplary embodiment.

도 4를 참조하면, 블록체인 기반의 사물 인터넷 시스템(1)을 구성하는 사물 인터넷 디바이스(100)는 사물 인터넷 디바이스(100)의 인증 정보를 저장하는 블록(BC; 101), 사물 인터넷 디바이스(100)간에 데이터 공유 등 통신을 수행하는 통신부(102)를 포함할 수 있다. 이하, 사물 인터넷 디바이스 1(100-1)을 예로 들어 설명한다.Referring to FIG. 4, the IoT device 100 constituting the blockchain-based IoT system 1 may include a block BC 101 storing authentication information of the IoT device 100, and an IoT device 100. The communication unit 102 may perform communication such as data sharing. Hereinafter, the IoT device 1 100-1 will be described as an example.

도 1에서 설명한 바와 같이, 사물 인터넷 디바이스 1(100-1)은 스마트폰에 해당할 수 있고, 이러한 사물 인터넷 디바이스 1(100-1)은 블록(101-1) 및 통신부(102-1)를 포함할 수 있다. As described with reference to FIG. 1, the IoT device 1 100-1 may correspond to a smartphone, and the IoT device 1 100-1 may block the block 101-1 and the communication unit 102-1. It may include.

블록(101-1)은 블록체인을 동작시키는 구성에 해당한다. 예를 들어, 블록(101-1)은 이더리움(Etherium) 블록일 수 있다. 블록체인이 동작하기 위해서는, 블록체인을 구성하는 복수의 사물 인터넷 디바이스(100)들 모두 블록체인용 블록을 포함해야 한다. Block 101-1 corresponds to a configuration for operating the blockchain. For example, block 101-1 may be an Ethereum block. In order for a blockchain to operate, all of the plurality of IoT devices 100 constituting the blockchain must include a blockchain block.

도 4에 도시된 바와 같이 블록체인을 구성하는 복수의 사물 인터넷 디바이스(100)가 사물 인터넷 디바이스 1(100-1, 이하 '디바이스 1'로 설명한다), 사물 인터넷 디바이스 2(100-2, 이하 '디바이스 2'로 설명한다), 사물 인터넷 디바이스 3(100-3, 이하 '디바이스 3'으로 설명한다)을 포함하는 경우 디바이스 1(100-1), 디바이스 2(100-2) 및 디바이스 3(100-3)은 모두 블록체인용 블록(101-1, 101-2, 101-3)을 포함할 수 있다.As illustrated in FIG. 4, the plurality of IoT devices 100 constituting the blockchain are IoT device 1 (100-1, hereinafter referred to as device 1) and IoT device 2 (100-2, hereinafter). Device 1 (100-1), device 2 (100-2), and device 3 (it will be described as 'device 2'), Internet of Things device 3 (100-3, hereinafter referred to as 'device 3') 100-3 may all include blockchain blocks 101-1, 101-2, and 101-3.

이러한 블록(101)의 크기는 블록체인의 동작 시간이 증가함에 따라 점점 증가할 수 있다. 예를 들어, 블록(101)의 크기는 수 기가바이트(gigabyte, GB) 내지 수십 기가바이트(gigabyte, GB)일 수 있다. 그러나, 사물 인터넷 시스템(1) 내에 존재하는 사물 인터넷 디바이스(100)들(예를 들어, 100-1, 100-2, 100-3) 중에는 블록을 채용할 수 있는 경량화 장치가 다수 존재할 수 있다. The size of the block 101 may increase gradually as the operation time of the blockchain increases. For example, the size of block 101 may be several gigabytes (GB) to several tens of gigabytes (gigabyte, GB). However, among the IoT devices 100 (eg, 100-1, 100-2, and 100-3) existing in the IoT system 1, there may be a number of lightweight devices that can employ a block.

디바이스 1(100-1)에 포함되는 블록(101-1)은 디바이스 1(100-1)의 인증 정보를 저장할 수 있고, 블록체인을 구성하는 다른 디바이스 2(100-2) 및 디바이스 3(100-3)의 인증 정보를 저장할 수 있다.The block 101-1 included in the device 1 100-1 may store authentication information of the device 1 100-1, and the other device 2 100-2 and the device 3 (100) constituting the block chain. -3) authentication information can be stored.

이러한 인증 정보는 구체적으로 블록(101-1)에 포함되는 Data storage(120-1)에 저장될 수 있다. Such authentication information may be specifically stored in the data storage 120-1 included in the block 101-1.

도 4에 도시된 바와 같이, 블록체인을 구성하는 인증된 사물 인터넷 디바이스(100)가 디바이스 1(100-1), 디바이스 2(100-2) 및 디바이스 3(100-3)인 경우 디바이스 1(100-1) 내지 디바이스 3(100-3) 상호간 신뢰관계가 형성된다. As shown in FIG. 4, when the authenticated IoT device 100 constituting the blockchain is the device 1 (100-1), the device 2 (100-2) and the device 3 (100-3), device 1 ( 100-1) to device 3 (100-3) mutual trust relationship is formed.

따라서, 디바이스 1(100-1)의 인증 정보는 디바이스 1(100-1)의 블록(101-1), 디바이스 2(100-2)의 블록(101-2) 및 디바이스 3(100-3)의 블록에 모두 저장된다. 마찬가지로, 디바이스 2(100-2)의 인증 정보는 디바이스 1(100-1)의 블록(101-1), 디바이스 2(100-2)의 블록(101-2) 및 디바이스 3(100-3)의 블록에 모두 저장된다. 마찬가지로, 디바이스 3(100-3)의 인증 정보는 디바이스 1(100-1)의 블록(101-1), 디바이스 2(100-2)의 블록(101-2) 및 디바이스 3(100-3)의 블록에 모두 저장된다.Therefore, the authentication information of the device 1 (100-1) is the block 101-1 of the device 1 (100-1), the block 101-2 of the device 2 (100-2) and the device 3 (100-3) Are all stored in the block. Similarly, the authentication information of the device 2 (100-2) is the block 101-1 of the device 1 (100-1), the block 101-2 of the device 2 (100-2) and the device 3 (100-3). Are all stored in the block. Similarly, the authentication information of the device 3 (100-3) is the block 101-1 of the device 1 (100-1), the block 101-2 of the device 2 (100-2) and the device 3 (100-3) Are all stored in the block.

이러한 사물 인터넷 디바이스(100)의 인증 정보는 도 3에서 설명한 바와 같이, 디바이스의 제품 정보 및 제품 동작 정보 중 적어도 하나를 포함할 수 있다.As described with reference to FIG. 3, the authentication information of the IoT device 100 may include at least one of product information and product operation information of the device.

도 3에서 전술한 스마트 컨트랙트(110)는 사물 인터넷 디바이스(100)에 포함되는 각각의 블록(101)에 동일하게 저장될 수 있다. The smart contract 110 described above with reference to FIG. 3 may be equally stored in each block 101 included in the IoT device 100.

즉, 스마트 컨트랙트(110)는 블록체인을 구성하는 사물 인터넷 디바이스(100) 간에 약속된 내용이고, 블록체인에 다른 디바이스가 추가되는 경우에는, 추가되는 디바이스의 인증 내용에 따라 스마트 컨트랙트(110)가 갱신되므로 갱신되는 스마트 컨트랙트 역시 사물 인터넷 디바이스(100)에 포함되는 각각의 블록(101)에 동일하게 저장될 수 있다.That is, the smart contract 110 is content promised between the IoT devices 100 constituting the blockchain, and when another device is added to the blockchain, the smart contract 110 may be configured according to the authentication content of the added device. The updated smart contract may also be equally stored in each block 101 included in the IoT device 100.

또한, 블록(101)의 Data Storage(120)에는 사물 인터넷 디바이스(100)의 상태 정보, 동작 정보, 제어 명령 데이터 등이 포함될 수 있다. In addition, the data storage 120 of the block 101 may include state information, operation information, control command data, and the like of the IoT device 100.

사물 인터넷 디바이스(100)의 통신부(102)는 디바이스 상호 간 유무선 통신을 통해 데이터를 공유할 수 있다. 이러한 통신부(102)는 유선 또는 무선으로 구현될 수 있다. The communication unit 102 of the IoT device 100 may share data through wired / wireless communication between the devices. The communication unit 102 may be implemented by wire or wirelessly.

무선 통신은, 예를 들면, 셀룰러 통신 프로토콜로서, LTE(long-term evolution), LTE-A(LTE Advance), CDMA(code division multiple access), WCDMA(wideband CDMA), UMTS(universal mobile telecommunications system), WiBro(Wireless Broadband), 또는 GSM(Global System for Mobile Communications) 등 중 적어도 하나를 사용할 수 있다. 또한, 무선 통신은, 예를 들면, 근거리 통신을 포함할 수 있다. 근거리 통신은, 예를 들면, WiFi(wireless fidelity), 블루투스(Bluetooth) 또는 NFC(near field communication) 등 중 적어도 하나를 포함할 수 있다. Wireless communication is, for example, a cellular communication protocol, and includes long-term evolution (LTE), LTE Advance (LTE-A), code division multiple access (CDMA), wideband CDMA (WCDMA), and universal mobile telecommunications system (UMTS). , WiBro (Wireless Broadband), or Global System for Mobile Communications (GSM) may be used. In addition, wireless communication may include, for example, near field communication. The short range communication may include, for example, at least one of wireless fidelity (WiFi), Bluetooth, or near field communication (NFC).

유선 통신은, 예를 들면, USB(universal serial bus), HDMI(high definition multimedia interface), RS-232(recommended standard232), 또는 POTS(plain old telephone service) 등 중 적어도 하나를 포함할 수 있다. 네트워크는 통신 네트워크(telecommunications network), 예를 들면, 컴퓨터 네트워크(computer network)(예: LAN 또는 WAN), 인터넷, 또는 전화 망(telephone network) 중 적어도 하나를 포함할 수 있다.The wired communication may include, for example, at least one of a universal serial bus (USB), a high definition multimedia interface (HDMI), a reduced standard232 (RS-232), a plain old telephone service (POTS), and the like. The network may include a telecommunications network, for example, at least one of a computer network (for example, a LAN or a WAN), the Internet, and a telephone network.

도면에는 도시되지 않았지만, 블록(101) 및 통신부(102)가 사물 인터넷 디바이스(100)에 직접 포함되지 않고, 별개의 구성으로 구현될 수도 있다. Although not shown in the figure, the block 101 and the communication unit 102 are not directly included in the IoT device 100, but may be implemented in separate configurations.

즉, 블록(101) 및 통신부(102)를 포함하고, 사물 인터넷 디바이스(100)와 연결될 수 있는 USB, 동글(dongle)로 구현될 수 있다. 사물 인터넷 디바이스(100)에 블록(101) 및 통신부(102)가 포함되지 않은 경우이더라도 USB 또는 동글과 결합됨으로써 블록체인을 구성하는 사물 인터넷 디바이스(100)로 동작할 수 있다. That is, the block 101 and the communication unit 102 may be included, and may be implemented as a USB or a dongle that can be connected to the IoT device 100. Even if the IoT device 100 does not include the block 101 and the communication unit 102, the IoT device 100 may operate as the IoT device 100 constituting the block chain by being combined with a USB or a dongle.

도 5는 일 실시예에 따른 사물 인터넷 시스템의 제어 흐름도이고, 도 6은 일 실시예에 따라 복수의 사물 인터넷 디바이스간에 스마트 컨트랙트를 생성하는 것을 도시한 것이다. 도 7은 일 실시예에 따라 사물 인터넷 디바이스가 추가되기 위한 등록 요청을 도시한 것이고, 도 8은 일 실시예에 따라 인증된 사물 인터넷 디바이스가 추가된 것을 도시한 것이고, 도 9는 일 실시예에 따라 추가된 사물 인터넷 디바이스의 인증 정보에 기초하여 스마트 컨트랙트를 갱신하는 것을 도시한 것이다. FIG. 5 is a control flowchart of an IoT system according to an embodiment, and FIG. 6 illustrates generating a smart contract between a plurality of IoT devices according to an embodiment. FIG. 7 illustrates a registration request for adding an IoT device according to an embodiment, FIG. 8 illustrates adding an authorized IoT device according to an embodiment, and FIG. 9 illustrates an embodiment of FIG. Accordingly, the smart contract is updated based on the authentication information of the IoT device added accordingly.

도 5를 참조하면, 블록체인을 구성하는 복수의 사물 인터넷 디바이스(100)의 인증 정보는 사물 인터넷 디바이스(100) 각각에 포함된 블록(101)에 저장될 수 있다.Referring to FIG. 5, authentication information of the plurality of IoT devices 100 constituting the blockchain may be stored in blocks 101 included in each of the IoT devices 100.

즉, 블록체인을 구성하는 사물 인터넷 디바이스(100)는 상호 인증에 따라 블록체인의 일 노드에 등록된 디바이스이므로, 인증된 사물 인터넷 디바이스(100)의 인증 정보는 디바이스 각각에 대응하는 복수의 블록에 동일하게 저장되고 전파될 수 있다.That is, since the IoT device 100 constituting the blockchain is a device registered to one node of the blockchain according to mutual authentication, authentication information of the authenticated IoT device 100 is stored in a plurality of blocks corresponding to each device. The same can be stored and propagated.

이러한 사물 인터넷 디바이스(100)의 인증 정보는 도 3에서 설명한 바와 같이, 디바이스의 제품 정보 및 제품 동작 정보 중 적어도 하나를 포함할 수 있다.As described with reference to FIG. 3, the authentication information of the IoT device 100 may include at least one of product information and product operation information of the device.

도 6을 참조하면, 최초에 디바이스 1(스마트폰; 100-1)과 디바이스 2(냉장고; 100-2)는 상호간 유선 통신 또는 무선 통신을 통해 디바이스 인증을 진행하고, 스마트 컨트랙트(110)를 발생시킬 수 있다. Referring to FIG. 6, device 1 (smartphone; 100-1) and device 2 (fridge; 100-2) initially perform device authentication through mutual wired communication or wireless communication, and generate smart contract 110. You can.

이 때, 디바이스 1 및 디바이스 2 중에서 미리 설정된 디바이스는 '사물 인터넷 제어 디바이스'로 동작할 수 있다. 즉, 복수의 사물 인터넷 디바이스 중에서 미리 설정된 일 디바이스는 다른 디바이스들을 제어할 수 있는 제어 주체로 설정될 수 있다. In this case, the device preset among the device 1 and the device 2 may operate as the 'Internet of Things Control Device'. That is, one device preset among a plurality of IoT devices may be set as a control entity capable of controlling other devices.

이러한 사물 인터넷 제어 디바이스는 일반적으로 스마트폰(100-1) 등의 사용자 단말기 또는 음성 명령에 따라 제어를 수행할 수 있는 제어 주체로 구현될 수 있으나, 사물 인터넷 시스템(1)에 포함된 복수의 사물 인터넷 디바이스(100) 중 어떠한 디바이스도 제어 주체가 될 수 있다.Such an IoT control device may be generally implemented as a control entity capable of performing control according to a user terminal or a voice command such as a smart phone 100-1, but a plurality of things included in the IoT system 1. Any device in the Internet device 100 may be a controlling entity.

이하에서는, 도 6에 도시된 사물 인터넷 디바이스 1(100-1)이 사물 인터넷 제어 디바이스에 해당하는 것을 전제로 설명한다. 즉, 사물 인터넷 디바이스 1(100-1)는 스마트폰으로서 블록체인을 구성하는 다른 사물 인터넷 디바이스들을 제어할 수 있다. Hereinafter, a description will be given on the assumption that the IoT device 1 100-1 illustrated in FIG. 6 corresponds to an IoT control device. That is, the IoT device 1 100-1 may control other IoT devices constituting the blockchain as a smartphone.

사물 인터넷 디바이스 1(100-1)은 사물 인터넷 디바이스 2(100-2)와 WIFI, 블루투스, 또는 NFC 등 근거리 통신을 이용하여 인증 정보를 공유할 수 있고, 사물 인터넷 디바이스 1(100-1)과 사물 인터넷 디바이스 2(100-2)에 대한 스마트 컨트랙트(110)를 생성할 수 있다. The IoT device 1 (100-1) may share authentication information with the IoT device 2 (100-2) using short-range communication such as WIFI, Bluetooth, or NFC, and the IoT device 1 (100-1). The smart contract 110 for the IoT device 2 100-2 may be generated.

생성된 스마트 컨트랙트(110)는 사물 인터넷 디바이스 1(100-1) 및 사물 인터넷 디바이스 2(100-2) 각각에 포함된 블록(101-1, 101-2)에 저장될 수 있다.The generated smart contract 110 may be stored in blocks 101-1 and 101-2 included in the IoT device 1 100-1 and the IoT device 2 100-2, respectively.

즉, 사물 인터넷 디바이스 1(100-1)과 사물 인터넷 디바이스 2(100-2)는 블록체인을 구성하는 노드 각각에 대응하여 블록체인에 등록될 수 있고, 디바이스 각각이 포함하는 블록(101)에는 사물 인터넷 디바이스 1(100-1) 및 사물 인터넷 디바이스 2(100-2)의 인증 정보가 저장될 수 있다.That is, the IoT device 1 (100-1) and the IoT device 2 (100-2) may be registered in the block chain corresponding to each node constituting the block chain, and in the block 101 each device includes Authentication information of the IoT device 1 100-1 and the IoT device 2 100-2 may be stored.

도 6에 도시된 바와 같이, 사물 인터넷 제어 디바이스에 해당하는 사물 인터넷 디바이스 1(100-1)에 의해 생성된 스마트 컨트랙트(110)에는 인증된 사물 인터넷 디바이스 정보(111)가 포함될 수 있다. 즉, 도 6에서는 사물 인터넷 디바이스 1(100-1) 및 사물 인터넷 디바이스 2(100-2)의 디바이스 정보가 포함될 수 있다. As illustrated in FIG. 6, the smart contract 110 generated by the IoT device 1 100-1 corresponding to the IoT control device may include authenticated IoT device information 111. That is, in FIG. 6, device information of the IoT device 1 100-1 and the IoT device 2 100-2 may be included.

또한, 스마트 컨트랙트(110)는 사물 인터넷 디바이스(100)의 인증 정보(112)를 포함할 수 있다. 즉, 도 6에서는 스마트 컨트랙트(110)에 스마트폰(100-1)의 제품 정보 및 동작 정보가 포함될 수 있고, 냉장고(100-2)의 제품 정보 및 동작 정보가 포함될 수 있다.In addition, the smart contract 110 may include authentication information 112 of the IoT device 100. That is, in FIG. 6, product information and operation information of the smart phone 100-1 may be included in the smart contract 110, and product information and operation information of the refrigerator 100-2 may be included.

또한 스마트 컨트랙트(110)는 사물 인터넷 디바이스(100)의 접속 정보(IP/MAC, 113)를 포함할 수 있다. 즉, 도 6에서는 스마트 컨트랙트(110)에 사물 인터넷 디바이스 1(100-1) 및 사물 인터넷 디바이스 2(100-2)의 접속 정보가 포함될 수 있다.In addition, the smart contract 110 may include access information (IP / MAC) 113 of the IoT device 100. That is, in FIG. 6, the smart contract 110 may include access information of the IoT device 1 100-1 and the IoT device 2 100-2.

또한, 스마트 컨트랙트(110)는 복수의 사물 인터넷 디바이스(100) 중에서 제어 주체가 되는 제어 디바이스의 정보(114) 및 제어 대상이 되는 피 제어 디바이스의 정보(115)를 포함할 수 있다. 즉, 도 6에서는 사물 인터넷 디바이스 1(100-1)이 다른 디바이스들을 제어하는 사물 인터넷 제어 디바이스로 설정되었으므로, 사물 인터넷 제어 디바이스 정보(114)는 사물 인터넷 디바이스 1(100-1)이 되고, 사물 인터넷 피제어 디바이스 정보(115)는 사물 인터넷 디바이스 2(100-2)가 된다.In addition, the smart contract 110 may include information 114 of a control device, which is a control subject, and information 115 of a controlled device, which is a control target, among the plurality of IoT devices 100. That is, in FIG. 6, since the IoT device 1 100-1 is set as an IoT control device that controls other devices, the IoT control device information 114 becomes the IoT device 1 100-1, and The Internet controlled device information 115 becomes the IoT apparatus 2 100-2.

이와 같이 생성된 스마트 컨트랙트(110)는 블록체인을 구성하는 복수의 사물 인터넷 디바이스(100) 각각에 공유되고 전파될 수 있다.The smart contract 110 generated as described above may be shared and propagated to each of the plurality of IoT devices 100 constituting the blockchain.

또한, 사물 인터넷 디바이스 1(100-1) 및 사물 인터넷 디바이스 2(100-2)는 내부 네트워크(Private Network)를 구성할 수 있다. In addition, the IoT device 1 100-1 and the IoT device 2 100-2 may configure an internal network.

사물 인터넷 시스템(1)은 복수의 사물 인터넷 디바이스(100)에 대응하는 n(n=자연수)개의 블록을 체인형태로 연계한 n 블록체인을 포함할 수 있고, n 블록체인을 기반으로 복수의 사물 인터넷 디바이스(100) 각각에 대해 고유의 공개키(public key)와 개인키(private key)를 생성할 수 있다. The IoT system 1 may include n blockchains in which n (n = natural numbers) blocks corresponding to the plurality of IoT devices 100 are linked in a chain form, and the plurality of IoTs are based on n blockchains. For each device 100, a unique public key and a private key can be generated.

즉, 도 6에 도시된 바와 같이 사물 인터넷 디바이스 1(100-1)과 사물 인터넷 디바이스 2(100-2)가 블록체인을 구성하는 두 개의 노드에 대응하여 연결되면, 사물 인터넷 디바이스 1(100-1)과 사물 인터넷 디바이스 2(100-2) 각각에 포함된 2개의 블록이 체인 형태로 연결되어 블록체인을 구성할 수 있다.That is, as shown in FIG. 6, when the IoT device 1 100-1 and the IoT device 2 100-2 are connected to two nodes constituting the block chain, the IoT device 1 100-100 is connected. Two blocks included in each of 1) and the IoT apparatus 2 100-2 may be connected in a chain to form a blockchain.

사물 인터넷 시스템(1)에 의해 생성된 공개키와 개인키는 블록체인 구성하는 각각의 노드에 제공될 수 있으며, 각각의 노드에 대응하는 복수의 사물 인터넷 디바이스에서 자동으로 주기적으로 갱신될 수 있다.The public key and the private key generated by the IoT system 1 may be provided to each node constituting the blockchain, and may be automatically updated periodically in a plurality of IoT devices corresponding to each node.

사물 인터넷 시스템(1)이 생성한 공개키와 개인키는 사물 인터넷 시스템(1)에 접속하여 추가될 수 있는 복수의 사물 인터넷 디바이스(100)들의 정보가 포함된 암호키에 해당한다.The public key and the private key generated by the IoT system 1 correspond to an encryption key including information of the plurality of IoT devices 100 that may be added by accessing the IoT system 1.

이러한 공개키와 개인키는 실질적으로, 사물 인터넷 디바이스(100) 각각에 포함되는 블록(101)에 비휘발성 형태로 이식될 수도 있고, 필요에 따라서는 주기적으로 새롭게 생성되어 교체되도록 제공될 수도 있다. Such a public key and a private key may be substantially implanted in a non-volatile form in the block 101 included in each of the IoT devices 100, and may be provided to be newly generated and replaced periodically as needed.

후술할 바와 같이, 블록체인 기반의 사물 인터넷 시스템(1)에 새로운 사물 인터넷 디바이스(100)가 추가되기 위해서는, 추가되는 사물 인터넷 디바이스(100)가 제공하는 개인키와 사물 인터넷 시스템(1)이 생성한 개인키가 일치해야 한다. As will be described later, in order to add a new IoT device 100 to the blockchain-based IoT system 1, a private key provided by the IoT apparatus 100 to be added and the IoT system 1 are generated. One private key must match.

사물 인터넷 시스템(1)이 생성하고 제공하는 공개키 및 개인키는 주기적으로 자동으로 갱신되거나 사용자의 필요에 의해 새롭게 갱신될 수도 있다. 공개키 및 개인키는 블록체인을 구성하는 각 블록(101)에 저장될 수 있고, EPROM이나 S-RAM 등으로 리드-라이트가 동시에 가능한 비휘발성 메모리에 저장될 수도 있다. The public key and the private key generated and provided by the IoT system 1 may be automatically updated periodically or newly updated by the user's needs. The public key and the private key may be stored in each block 101 constituting the blockchain, or may be stored in a nonvolatile memory that can be read-write simultaneously using EPROM or S-RAM.

공개키 및 개인키가 갱신되는 경우에는 갱신의 기록이 갱신될 때마다 블록체인에 추가되는 것이 바람직하며, 이에 따라 외부의 해킹이나 조작, 인터럽트 등이 불가능하게 된다. When the public key and the private key are updated, it is desirable to be added to the blockchain every time the record of the update is updated, thereby preventing external hacking, manipulation, interruption, and the like.

도 7을 참조하면, 블록체인을 구성하는 복수의 노드 중 일 노드에 사물 인터넷 디바이스(100-3)가 추가될 수 있다. 즉, 도 6에서 전술한 바와 같이, 스마트폰(100-1)과 냉장고(100-2)로 구성된 사물 인터넷 시스템(1)에 새로운 사물 인터넷 디바이스(100-3)가 추가될 수 있다. Referring to FIG. 7, the IoT device 100-3 may be added to one node of a plurality of nodes configuring the blockchain. That is, as described above in FIG. 6, a new IoT device 100-3 may be added to the IoT system 1 including the smart phone 100-1 and the refrigerator 100-2.

이하, 사물 인터넷 디바이스 1(100-1)은 스마트폰이고, 사물 인터넷 디바이스 2(100-2)는 냉장고이고, 새롭게 추가되는 사물 인터넷 디바이스(100-3)는 세탁기인 것을 전제로 설명한다. 또한, 사물 인터넷 시스템(1) 내에서 복수의 사물 인터넷 디바이스(100)를 제어하는 주체가 되는 사물 인터넷 제어 디바이스는 스마트폰(100-1)인 것을 전제로 설명한다.Hereinafter, the IoT device 1 100-1 is a smartphone, the IoT device 2 100-2 is a refrigerator, and the newly added IoT device 100-3 is a washing machine. In addition, the IoT control device, which is a subject controlling the plurality of IoT devices 100 in the IoT system 1, will be described on the premise that the smartphone 100-1 is used.

추가되는 세탁기(100-3)는 스마트폰(100-1) 및 냉장고(100-2)로 구성된 내부 네트워크에 디바이스 등록 요청을 전송할 수 있고, 사물 인터넷 제어 디바이스로 설정된 스마트폰(100-1)은 등록 요청을 수신할 수 있다. The additional washing machine 100-3 may transmit a device registration request to an internal network including the smartphone 100-1 and the refrigerator 100-2, and the smartphone 100-1 set as the IoT control device may be A registration request can be received.

등록 요청을 전송하는 세탁기(100-3)가 블록체인에 등록되기 위해서는 기존에 스마트 컨트랙트(110)를 통해 블록체인을 구성하고 있는 스마트폰(100-1) 및 냉장고(100-2)와의 신뢰 관계가 형성되어야 한다. In order for the washing machine 100-3 to transmit a registration request to be registered in the block chain, a trust relationship between the smart phone 100-1 and the refrigerator 100-2, which is constituting the block chain through the smart contract 110, is established. Should be formed.

세탁기(100-3)는 암호키를 제공하는데, 이러한 암호키는 개인키(private key)를 포함할 수 있다. 스마트폰(100-1)은 블록체인 노드에 추가되고자 하는 세탁기(100-3)가 제공하는 개인키에 기초하여 세탁기(100-3)의 인증 정보를 블록체인에 등록하고, 추가된 세탁기의 인증 정보에 기초하여 스마트 컨트랙트(110)를 갱신할 수 있다.The washing machine 100-3 provides an encryption key, which may include a private key. The smartphone 100-1 registers authentication information of the washing machine 100-3 in the blockchain based on the private key provided by the washing machine 100-3 to be added to the blockchain node, and authenticates the added washing machine. The smart contract 110 may be updated based on the information.

스마트폰(100-1)은 추가되는 세탁기(100-3)가 블록체인에 추가될 수 있는지 판단할 수 있다. 구체적으로, 추가되는 세탁기(100-3)가 제공하는 개인키가 기존에 생성되어 있던 스마트 컨트랙트(110)와 대응되면, 스마트폰(100-1)은 추가되는 세탁기(100-3)가 블록체인에 추가되도록 인증할 수 있다. The smartphone 100-1 may determine whether the washing machine 100-3 to be added may be added to the blockchain. Specifically, when the private key provided by the additional washing machine 100-3 corresponds to the smart contract 110 that was previously generated, the smartphone 100-1 is added to the washing machine 100-3 in the block chain. You can authorize it to be added to.

즉, 추가되는 세탁기(100-3)의 개인키에 포함된 인증 데이터가 기존에 생성된 스마트 컨트랙트(110)에 부합하면 추가되는 세탁기(100-3)가 블록체인에 추가되는 것으로 인증할 수 있다.That is, if the authentication data included in the private key of the added washing machine 100-3 matches the existing smart contract 110, the additional washing machine 100-3 may be authenticated as being added to the block chain. .

세탁기(100-3)가 블록체인에 등록되는 것으로 인증되면, 스마트폰(100-1)은 추가된 세탁기(100-3)의 인증 정보를 블록체인에 등록할 수 있다.When the washing machine 100-3 is authenticated as being registered in the block chain, the smartphone 100-1 may register authentication information of the added washing machine 100-3 in the block chain.

또한, 추가되는 세탁기(100-3)가 제공하는 개인키와 사물 인터넷 시스템(1)이 생성한 개인키와 일치하면, 스마트폰(100-1)은 추가되는 세탁기(100-3)가 블록체인에 추가되도록 인증할 수 있다.In addition, if the private key provided by the additional washing machine 100-3 and the private key generated by the IoT system 1 match, the smartphone 100-1 may add the washing machine 100-3 to the blockchain. You can authorize it to be added to.

도 8을 참고하면, 세탁기(100-3)가 인증되어 블록체인에 추가되면, 스마트폰(100-1) 내지 세탁기(100-3)는 내부 네트워크를 형성할 수 있다.Referring to FIG. 8, when the washing machine 100-3 is authenticated and added to the block chain, the smartphones 100-1 to the washing machine 100-3 may form an internal network.

또한, 세탁기(100-3)가 인증되어 블록체인에 추가되면, 스마트폰(100-1)은 추가된 세탁기(100-3)의 인증 정보를 블록체인을 구성하는 복수의 디바이스 각각에 대응하는 블록에 저장할 수 있다. 즉, 사물 인터넷 제어 디바이스인 스마트폰(100-1)은 추가된 세탁기(100-3)의 인증 정보를 블록체인에 등록할 수 있다.In addition, when the washing machine 100-3 is authenticated and added to the block chain, the smartphone 100-1 blocks the authentication information of the added washing machine 100-3 corresponding to each of a plurality of devices constituting the block chain. Can be stored in That is, the smartphone 100-1, which is an IoT control device, may register authentication information of the added washing machine 100-3 on the block chain.

복수의 사물 인터넷 디바이스(100), 즉, 스마트폰(100-1), 냉장고(100-2) 및 세탁기(100-3)에 포함된 블록(101)에는 추가된 세탁기(100-3)를 포함하는 복수의 사물 인터넷 디바이스(100)의 인증 정보가 저장된다.The block 101 included in the plurality of IoT devices 100, that is, the smartphone 100-1, the refrigerator 100-2, and the washing machine 100-3 includes an added washing machine 100-3. Authentication information of the plurality of IoT devices 100 is stored.

도 9를 참조하면, 스마트폰(100-1)은 추가된 세탁기(100-3)의 인증 정보에 기초하여 기존의 스마트 컨트랙트(110)를 갱신할 수 있다. 즉, 블록체인에 세탁기(100-3)가 추가되면, 스마트폰(100-1), 냉장고(100-2) 및 세탁기(100-3) 사이에 신뢰할 수 있는 내부 네트워크가 구축되어야 하므로, 세탁기(100-3)의 인증 정보를 포함하여 스마트 컨트랙트(110)를 갱신할 수 있다.Referring to FIG. 9, the smartphone 100-1 may update the existing smart contract 110 based on the authentication information of the added washing machine 100-3. That is, when the washing machine 100-3 is added to the blockchain, a reliable internal network must be established between the smartphone 100-1, the refrigerator 100-2, and the washing machine 100-3. The smart contract 110 may be updated to include the authentication information of 100-3).

갱신된 스마트 컨트랙트(110)는 스마트폰(100-1), 냉장고(100-2) 및 세탁기(100-3) 각각에 포함된 블록(101-1, 101-2, 101-3)에 저장될 수 있다. The updated smart contract 110 may be stored in blocks 101-1, 101-2, and 101-3 included in the smartphone 100-1, the refrigerator 100-2, and the washing machine 100-3, respectively. Can be.

도 9에 도시된 바와 같이, 갱신된 스마트 컨트랙트(110)에는 추가된 디바이스를 포함하여 인증된 사물 인터넷 디바이스 정보(111)가 포함될 수 있다.As illustrated in FIG. 9, the updated smart contract 110 may include IoT device information 111 authenticated including the added device.

즉, 갱신된 스마트 컨트랙트(110)에는 스마트폰(100-1), 냉장고(100-2) 및 새로 추가된 세탁기(100-3)의 디바이스 정보가 포함될 수 있다. That is, the updated smart contract 110 may include device information of the smartphone 100-1, the refrigerator 100-2, and the newly added washing machine 100-3.

또한, 갱신된 스마트 컨트랙트(110)는 추가된 디바이스를 포함하는 사물 인터넷 디바이스(100)의 인증 정보(112)를 포함할 수 있다. 즉, 도 9에서는 갱신된 스마트 컨트랙트(110)에 스마트폰(100-1), 냉장고(100-2) 및 세탁기(100-3)의 제품 정보 및 동작 정보가 포함될 수 있다.In addition, the updated smart contract 110 may include authentication information 112 of the IoT device 100 including the added device. That is, in FIG. 9, the updated smart contract 110 may include product information and operation information of the smartphone 100-1, the refrigerator 100-2, and the washing machine 100-3.

또한 갱신된 스마트 컨트랙트(110)는 추가된 디바이스를 포함하는 사물 인터넷 디바이스(100)의 접속 정보(IP/MAC, 113)를 포함할 수 있다. 즉, 도 9에서는 갱신된 스마트 컨트랙트(110)에 스마트폰(100-1), 냉장고(100-2) 및 세탁기(100-3)의 접속 정보가 포함될 수 있다.In addition, the updated smart contract 110 may include access information (IP / MAC) 113 of the IoT device 100 including the added device. That is, in FIG. 9, the updated smart contract 110 may include connection information of the smartphone 100-1, the refrigerator 100-2, and the washing machine 100-3.

또한, 갱신된 스마트 컨트랙트(110)는 추가된 디바이스를 포함하는 복수의 사물 인터넷 디바이스(100) 중에서 제어 주체가 되는 제어 디바이스의 정보(114) 및 제어 대상이 되는 피 제어 디바이스의 정보(115)를 포함할 수 있다.In addition, the updated smart contract 110 may display information 114 of the control device, which is the control subject, and information 115 of the controlled device, which is the control target, among the plurality of IoT devices 100 including the added device. It may include.

즉, 도 9에서는 사물 인터넷 제어 디바이스 정보(114)는 스마트폰(100-1)이 되고, 사물 인터넷 피제어 디바이스 정보(115)는 냉장고(100-2) 및 세탁기(100-3)가 된다.That is, in FIG. 9, the IoT control device information 114 becomes the smartphone 100-1, and the IoT controlled device information 115 becomes the refrigerator 100-2 and the washing machine 100-3.

이와 같이 갱신된 스마트 컨트랙트(110)는 블록체인을 구성하는 복수의 사물 인터넷 디바이스(100) 각각에 공유되고 전파될 수 있다.The updated smart contract 110 may be shared and propagated to each of the plurality of IoT devices 100 constituting the blockchain.

도 10은 다른 실시예에 따라 사물 인터넷 디바이스가 추가되기 위한 등록 요청을 도시한 것이고, 도 11은 다른 실시예에 따라 인증된 사물 인터넷 디바이스가 추가된 것을 도시한 것이고, 도 12는 다른 실시예에 따라 추가된 사물 인터넷 디바이스의 인증 정보에 기초하여 스마트 컨트랙트를 갱신하는 것을 도시한 것이다. 도 13은 일 실시예에 따라 사물 인터넷 디바이스의 인증 정보가 사물 인터넷 디바이스 각각에 포함된 블록에 블록체인 형태로 저장되는 것을 도시한 것이다.FIG. 10 illustrates a registration request for adding an IoT device according to another embodiment, FIG. 11 illustrates adding an IoT device authenticated according to another embodiment, and FIG. 12 illustrates another embodiment. Accordingly, the smart contract is updated based on the authentication information of the IoT device added accordingly. FIG. 13 illustrates that authentication information of an IoT device is stored in a block chain form in a block included in each IoT device.

도 10을 참조하면, 블록체인을 구성하는 복수의 노드 중 일 노드에 사물 인터넷 디바이스(100-4)가 추가될 수 있다. 즉, 도 7에서 전술한 바와 같이, 스마트폰(100-1), 냉장고(100-2) 및 세탁기(100-3)로 구성된 사물 인터넷 시스템(1)에 새로운 사물 인터넷 디바이스(100-4)가 추가될 수 있다. Referring to FIG. 10, the IoT device 100-4 may be added to one node of a plurality of nodes configuring the blockchain. That is, as described above in FIG. 7, a new IoT device 100-4 is installed in the IoT system 1 including the smartphone 100-1, the refrigerator 100-2, and the washing machine 100-3. Can be added.

이하, 새롭게 추가되는 사물 인터넷 디바이스(100-4)는 TV인 것을 전제로 설명한다. 또한, 사물 인터넷 시스템(1) 내에서 복수의 사물 인터넷 디바이스(100)를 제어하는 주체가 되는 사물 인터넷 제어 디바이스는 도 7에서와 마찬가지로, 스마트폰(100-1)인 것을 전제로 설명한다.Hereinafter, the newly added IoT device 100-4 will be described on the premise that it is a TV. In addition, the IoT control device, which is the subject controlling the plurality of IoT devices 100 in the IoT system 1, will be described on the premise that the smartphone 100-1 is the same as in FIG. 7.

추가되는 TV(100-4)는 스마트폰(100-1), 냉장고(100-2) 및 세탁기(100-3)로 구성된 내부 네트워크에 디바이스 등록 요청을 전송할 수 있고, 사물 인터넷 제어 디바이스로 설정된 스마트폰(100-1)은 등록 요청을 수신할 수 있다. The added TV 100-4 may transmit a device registration request to an internal network including the smartphone 100-1, the refrigerator 100-2, and the washing machine 100-3, and set as a IoT control device. The phone 100-1 may receive a registration request.

등록 요청을 전송하는 TV(100-4)가 블록체인에 등록되기 위해서는 기존에 스마트 컨트랙트(110)를 통해 블록체인을 구성하고 있는 스마트폰(100-1), 냉장고(100-2) 및 세탁기(100-3)와의 신뢰 관계가 형성되어야 한다. In order for the TV 100-4 transmitting a registration request to be registered in the blockchain, the smart phone 100-1, the refrigerator 100-2, and the washing machine ( A trust relationship with 100-3 should be established.

TV(100-4)는 암호키를 제공하는데, 이러한 암호키는 개인키(private key)를 포함할 수 있다. 스마트폰(100-1)은 블록체인 노드에 추가되고자 하는 TV(100-4)가 제공하는 개인키에 기초하여 TV(100-4)의 인증 정보를 블록체인에 등록하고, 추가된 TV의 인증 정보에 기초하여 스마트 컨트랙트(110)를 갱신할 수 있다.The TV 100-4 provides an encryption key, which may include a private key. The smartphone 100-1 registers the authentication information of the TV 100-4 in the blockchain based on the private key provided by the TV 100-4 to be added to the blockchain node, and authenticates the added TV. The smart contract 110 may be updated based on the information.

스마트폰(100-1)은 추가되는 TV(100-4)가 블록체인에 추가될 수 있는지 판단할 수 있다. 구체적으로, 추가되는 TV(100-4)가 제공하는 개인키가 기존에 생성되어 있던 스마트 컨트랙트(110)와 대응되면, 스마트폰(100-1)은 추가되는 TV(100-4)가 블록체인에 추가되도록 인증할 수 있다. The smartphone 100-1 may determine whether the added TV 100-4 may be added to the blockchain. Specifically, when the private key provided by the TV 100-4 to be added corresponds to the smart contract 110 that has been previously generated, the smartphone 100-1 is added to the TV 100-4 as a blockchain. You can authorize it to be added to.

즉, 추가되는 TV(100-4)의 개인키에 포함된 인증 데이터가 기존에 생성된 스마트 컨트랙트(110)에 부합하면 추가되는 TV(100-4)가 블록체인에 추가되는 것으로 인증할 수 있다.That is, if the authentication data included in the private key of the added TV 100-4 matches the smart contract 110 generated previously, the added TV 100-4 may be authenticated as being added to the blockchain. .

TV(100-4)가 블록체인에 등록되는 것으로 인증되면, 스마트폰(100-1)은 추가된 TV(100-4)의 인증 정보를 블록체인에 등록할 수 있다.If the TV 100-4 is authenticated as being registered in the blockchain, the smartphone 100-1 may register authentication information of the added TV 100-4 in the blockchain.

또한, 추가되는 TV(100-4)가 제공하는 개인키와 사물 인터넷 시스템(1)이 생성한 개인키와 일치하면, 스마트폰(100-1)은 TV(100-4)가 블록체인에 추가되도록 인증할 수 있다.In addition, if the private key provided by the TV 100-4 to be added and the private key generated by the IoT system 1 match, the smartphone 100-1 adds the TV 100-4 to the blockchain. You can authenticate as much as possible.

도 11을 참고하면, TV(100-4)가 인증되어 블록체인에 추가되면, 스마트폰(100-1) 내지 TV(100-4)는 내부 네트워크를 형성할 수 있다.Referring to FIG. 11, when the TV 100-4 is authenticated and added to the block chain, the smartphones 100-1 to 100-4 may form an internal network.

또한, TV(100-4)가 인증되어 블록체인에 추가되면, 스마트폰(100-1)은 추가된 TV(100-4)의 인증 정보를 블록체인을 구성하는 복수의 디바이스 각각에 대응하는 블록에 저장할 수 있다. 즉, 사물 인터넷 제어 디바이스인 스마트폰(100-1)은 추가된 TV(100-4)의 인증 정보를 블록체인에 등록할 수 있다.In addition, when the TV 100-4 is authenticated and added to the block chain, the smartphone 100-1 blocks the authentication information of the added TV 100-4 corresponding to each of a plurality of devices constituting the block chain. Can be stored in That is, the smartphone 100-1, which is an IoT control device, may register authentication information of the added TV 100-4 to the blockchain.

복수의 사물 인터넷 디바이스(100), 즉, 스마트폰(100-1), 냉장고(100-2), 세탁기(100-3) 및 TV(100-4)에 포함된 블록(101)에는 추가된 TV(100-4)를 포함하는 복수의 사물 인터넷 디바이스(100)의 인증 정보가 저장된다.TVs added to the plurality of IoT devices 100, that is, blocks 101 included in the smartphone 100-1, the refrigerator 100-2, the washing machine 100-3, and the TV 100-4. Authentication information of the plurality of IoT devices 100 including 100-4 is stored.

도 12를 참조하면, 스마트폰(100-1)은 추가된 TV(100-4)의 인증 정보에 기초하여 기존의 스마트 컨트랙트(110)를 갱신할 수 있다. 즉, 블록체인에 TV(100-4)가 추가되면, 스마트폰(100-1), 냉장고(100-2), 세탁기(100-3) 및 TV(100-4) 사이에 신뢰할 수 있는 내부 네트워크가 구축되어야 하므로, TV(100-4)의 인증 정보를 포함하여 스마트 컨트랙트(110)를 갱신할 수 있다.Referring to FIG. 12, the smartphone 100-1 may update the existing smart contract 110 based on the added authentication information of the TV 100-4. That is, when the TV 100-4 is added to the blockchain, a reliable internal network between the smartphone 100-1, the refrigerator 100-2, the washing machine 100-3, and the TV 100-4 is provided. Since is to be built, the smart contract 110 can be updated to include the authentication information of the TV (100-4).

갱신된 스마트 컨트랙트(110)는 스마트폰(100-1), 냉장고(100-2), 세탁기(100-3) 및 TV(100-4) 각각에 포함된 블록(101-1, 101-2, 101-3, 101-4)에 저장될 수 있다. The updated smart contract 110 includes the blocks 101-1, 101-2, included in the smartphone 100-1, the refrigerator 100-2, the washing machine 100-3, and the TV 100-4, respectively. 101-3, 101-4).

도 12에 도시된 바와 같이, 갱신된 스마트 컨트랙트(110)에는 추가된 디바이스를 포함하여 인증된 사물 인터넷 디바이스 정보(111)가 포함될 수 있다.As illustrated in FIG. 12, the updated smart contract 110 may include IoT device information 111 that is authenticated including the added device.

즉, 갱신된 스마트 컨트랙트(110)에는 스마트폰(100-1), 냉장고(100-2), 세탁기(100-3) 및 새로 추가된 TV(100-4)의 디바이스 정보가 포함될 수 있다. That is, the updated smart contract 110 may include device information of the smartphone 100-1, the refrigerator 100-2, the washing machine 100-3, and the newly added TV 100-4.

또한, 갱신된 스마트 컨트랙트(110)는 추가된 디바이스를 포함하는 사물 인터넷 디바이스(100)의 인증 정보(112)를 포함할 수 있다. 즉, 도 12에서는 갱신된 스마트 컨트랙트(110)에 스마트폰(100-1), 냉장고(100-2), 세탁기(100-3) 및 TV(100-4)의 제품 정보 및 동작 정보가 포함될 수 있다.In addition, the updated smart contract 110 may include authentication information 112 of the IoT device 100 including the added device. That is, in FIG. 12, the updated smart contract 110 may include product information and operation information of the smartphone 100-1, the refrigerator 100-2, the washing machine 100-3, and the TV 100-4. have.

또한 갱신된 스마트 컨트랙트(110)는 추가된 디바이스를 포함하는 사물 인터넷 디바이스(100)의 접속 정보(IP/MAC, 113)를 포함할 수 있다. 즉, 도 12에서는 갱신된 스마트 컨트랙트(110)에 스마트폰(100-1), 냉장고(100-2), 세탁기(100-3) 및 TV(100-4)의 접속 정보가 포함될 수 있다.In addition, the updated smart contract 110 may include access information (IP / MAC) 113 of the IoT device 100 including the added device. That is, in FIG. 12, the updated smart contract 110 may include connection information of the smartphone 100-1, the refrigerator 100-2, the washing machine 100-3, and the TV 100-4.

또한, 갱신된 스마트 컨트랙트(110)는 추가된 디바이스를 포함하는 복수의 사물 인터넷 디바이스(100) 중에서 제어 주체가 되는 제어 디바이스의 정보(114) 및 제어 대상이 되는 피 제어 디바이스의 정보(115)를 포함할 수 있다.In addition, the updated smart contract 110 may display information 114 of the control device, which is the control subject, and information 115 of the controlled device, which is the control target, among the plurality of IoT devices 100 including the added device. It may include.

즉, 도 12에서는 사물 인터넷 제어 디바이스 정보(114)는 스마트폰(100-1)이 되고, 사물 인터넷 피제어 디바이스 정보(115)는 냉장고(100-2), 세탁기(100-3) 및 TV(100-4)가 된다.That is, in FIG. 12, the IoT control device information 114 is a smartphone 100-1, and the IoT controlled device information 115 is a refrigerator 100-2, a washing machine 100-3, and a TV ( 100-4).

이와 같이 갱신된 스마트 컨트랙트(110)는 블록체인을 구성하는 복수의 사물 인터넷 디바이스(100) 각각에 공유되고 전파될 수 있다. The updated smart contract 110 may be shared and propagated to each of the plurality of IoT devices 100 constituting the blockchain.

사물 인터넷 시스템(1)의 기반이 되는 블록체인에 사물 인터넷 디바이스(100)가 추가되면, 추가된 디바이스의 인증 정보는 복수의 사물 인터넷 디바이스(100) 각각이 포함하는 블록(101)에 모두 동일하게 저장될 수 있다. 또한, 추가된 사물 인터넷 디바이스(100)의 인증 정보에 기초하여 스마트 컨트랙트(110)가 갱신될 수 있고, 갱신된 스마트 컨트랙트(110)도 복수의 사물 인터넷 디바이스(100) 각각이 포함하는 블록(101)에 모두 동일하게 저장될 수 있다.When the IoT device 100 is added to the blockchain on which the IoT system 1 is based, the authentication information of the added device is identical to the block 101 included in each of the IoT devices 100. Can be stored. In addition, the smart contract 110 may be updated based on the added authentication information of the IoT device 100, and the updated smart contract 110 may also include a block 101 included in each of the plurality of IoT devices 100. ) Can all be stored identically.

도 13을 참조하면, 사물 인터넷 디바이스 1(100-1) 내지 사물 인터넷 디바이스 4(100-4) 각각에 포함되는 블록(101)에는, 사물 인터넷 디바이스가 추가됨에 따라, 추가되는 디바이스의 인증 정보가 블록체인 형태로 저장될 수 있다. Referring to FIG. 13, in the block 101 included in each of the IoT device 1 100-1 to the IoT device 4 100-4, as the IoT device is added, authentication information of the added device is added. It can be stored in the form of blockchain.

즉, 사물 인터넷 디바이스 1(100-1)만 존재하던 블록체인 상에 사물 인터넷 디바이스 2(100-2)가 추가되면, 추가된 사물 인터넷 디바이스 2(100-2)의 인증 정보가 사물 인터넷 디바이스 1(100-1) 및 사물 인터넷 디바이스 2(100-2)에 일 블록(BC1) 형태로 추가될 수 있다. 따라서, 사물 인터넷 디바이스 1(100-1) 및 사물 인터넷 디바이스 2(100-2)는 추가된 블록(BC1)을 포함하는 블록체인을 포함한다.That is, when the IoT device 2 (100-2) is added to the blockchain where only the IoT device 1 (100-1) existed, the authentication information of the added IoT device 2 (100-2) is the IoT device 1 100-1 and IoT device 2 100-2 may be added in the form of one block BC1. Accordingly, the IoT device 1 100-1 and the IoT device 2 100-2 include a blockchain including an added block BC1.

마찬가지로, 사물 인터넷 디바이스 1(100-1) 및 사물 인터넷 디바이스 2(100-2)가 존재하던 블록체인 상에 사물 인터넷 디바이스 3(100-3)이 추가되면, 추가된 사물 인터넷 디바이스 3(100-3)의 인증 정보가 사물 인터넷 디바이스 1(100-1), 사물 인터넷 디바이스 2(100-2) 및 사물 인터넷 디바이스 3(100-3)에 일 블록(BC2) 형태로 추가될 수 있다. 따라서, 사물 인터넷 디바이스 1(100-1), 사물 인터넷 디바이스 2(100-2) 및 사물 인터넷 디바이스 3(100-3)은 추가된 블록(BC2)을 포함하는 블록체인을 포함한다.Similarly, if IoT device 3 (100-3) is added to the blockchain in which the IoT device 1 (100-1) and the IoT device 2 (100-2) existed, the added IoT device 3 (100-). The authentication information of 3) may be added to the IoT device 1 100-1, the IoT device 2 100-2, and the IoT device 3 100-3 in the form of one block BC2. Accordingly, the IoT device 1 100-1, the IoT device 2 100-2, and the IoT device 3 100-3 include a blockchain including an added block BC2.

마찬가지로, 사물 인터넷 디바이스 1(100-1), 사물 인터넷 디바이스 2(100-2) 및 사물 인터넷 디바이스 3(100-3)가 존재하던 블록체인 상에 사물 인터넷 디바이스 4(100-4)가 추가되면, 추가된 사물 인터넷 디바이스 4(100-4)의 인증 정보가 사물 인터넷 디바이스 1(100-1), 사물 인터넷 디바이스 2(100-2), 사물 인터넷 디바이스 3(100-3) 및 사물 인터넷 디바이스 4(100-4)에 일 블록(BC3) 형태로 추가될 수 있다. 따라서, 사물 인터넷 디바이스 1(100-1), 사물 인터넷 디바이스 2(100-2), 사물 인터넷 디바이스 3(100-3) 및 사물 인터넷 디바이스 4(100-4)는 추가된 블록(BC3)을 포함하는 블록체인을 포함한다.Similarly, if the IoT device 4 (100-4) is added to the blockchain where the IoT device 1 (100-1), the IoT device 2 (100-2) and the IoT device 3 (100-3) existed. The additional authentication information of the IoT device 4 (100-4) is added to the IoT device 1 (100-1), the IoT device 2 (100-2), the IoT device 3 (100-3), and the IoT device 4 It may be added in the form of one block BC3 to (100-4). Accordingly, the IoT device 1 100-1, the IoT device 2 100-2, the IoT device 3 100-3, and the IoT device 4 100-4 include an added block BC3. It includes a blockchain.

즉, 블록체인을 구성하는 복수의 사물 인터넷 디바이스(100)는 모두 인증 정보를 포함하는 블록체인을 포함할 수 있고, 이에 따라 복수의 디바이스 간에 신뢰관계가 형성될 수 있다.That is, the plurality of IoT devices 100 constituting the blockchain may include a blockchain including all authentication information, and thus a trust relationship may be formed between the plurality of devices.

도 14 및 도 15는 일 실시예에 따라 블록체인을 구성하는 사물 인터넷 디바이스들이 상호간에 제어를 수행하는 것을 도시한 것이다.14 and 15 illustrate that the IoT devices constituting the blockchain perform control with each other according to an embodiment.

전술한 바와 같이, 사물 인터넷 시스템(1)을 구성하는 복수의 사물 인터넷 디바이스(100)들은 블록체인을 기반으로 신뢰관계를 형성하고 있다. As described above, the plurality of IoT devices 100 constituting the IoT system 1 form a trust relationship based on the blockchain.

즉, 전술한 방식을 통해 인증된 사물 인터넷 디바이스들만 블록체인에 추가될 수 있고, 추가된 사물 인터넷 디바이스들은 각각이 복수의 사물 인터넷 디바이스(100)들의 인증 정보를 포함하므로, 중앙 서버 없이 상호 간에 제어를 수행할 수 있다.That is, only IoT devices authenticated through the above-described method may be added to the blockchain, and the added IoT devices each include authentication information of the plurality of IoT devices 100, and thus control each other without a central server. Can be performed.

복수의 사물 인터넷 디바이스(100)를 제어할 수 있는 디바이스는 일반적으로 사용자 단말기 또는 음성 명령에 따라 제어를 수행할 수 있는 제어 주체로 구현될 수 있으나, 사물 인터넷 시스템(1)에 포함된 복수의 사물 인터넷 디바이스(100) 중 어떠한 디바이스도 제어 주체가 될 수 있다.A device capable of controlling the plurality of IoT devices 100 may be generally implemented as a control entity capable of performing control according to a user terminal or a voice command, but a plurality of things included in the IoT system 1 may be implemented. Any device in the Internet device 100 may be a controlling entity.

도 14에서는, 스마트폰(100-1)이 사물 인터넷 제어 디바이스로서 다른 디바이스들을 제어하는 제어 주체이며, 도 15에서는 냉장고(100-2)가 사물 인터넷 제어 디바이스로서 다른 디바이스들을 제어하는 제어 주체이다.In FIG. 14, the smartphone 100-1 is a control entity for controlling other devices as the IoT control device, and in FIG. 15, the refrigerator 100-2 is a control entity for controlling other devices as the IoT control device.

즉, 제어 주체가 되는 사물 인터넷 제어 디바이스는 설정에 따라 달라질 수 있으며, 제어 주체가 되는 디바이스는 블록체인에 사물 인터넷 디바이스가 추가되는 경우, 전술한 일련의 인증 과정을 수행하는 주체가 될 수 있다.That is, the IoT control device serving as the control subject may vary according to the setting, and the device serving as the controlling subject may be a subject performing the above-described series of authentication processes when the IoT apparatus is added to the blockchain.

제어 주체가 되는 디바이스는 사물 인터넷 시스템(1)에 포함되는 다른 사물 인터넷 디바이스에 대한 제어 명령을 입력 받을 수 있고, 입력 받은 명령에 기초하여 다른 디바이스를 제어할 수 있다.The device that is the controlling entity may receive a control command for another IoT device included in the IoT system 1, and control another device based on the received command.

도 14에 도시된 바와 같이, 스마트폰(100-1)은 블록체인 기반의 사물 인터넷 시스템(1)에 포함된 냉장고(100-2), 세탁기(100-3) 및 TV(100-4)의 동작을 제어할 수 있고, 이외에 블록체인 인증을 통해 추가되는 다른 사물 인터넷 디바이스의 동작도 제어할 수 있다. As illustrated in FIG. 14, the smartphone 100-1 may be configured to include the refrigerator 100-2, the washing machine 100-3, and the TV 100-4 included in the blockchain-based IoT system 1. The operation can be controlled, and in addition, the operation of other IoT devices added through blockchain authentication can be controlled.

마찬가지로, 도 15에 도시된 바와 같이, 냉장고(100-2)는 블록체인 기반의 사물 인터넷 시스템(1)에 포함된 스마트폰(100-1), 세탁기(100-3) 및 TV(100-4)의 동작을 제어할 수 있고, 이외에 블록체인 인증을 통해 추가되는 다른 사물 인터넷 디바이스의 동작도 제어할 수 있다.Similarly, as shown in FIG. 15, the refrigerator 100-2 includes a smartphone 100-1, a washing machine 100-3, and a TV 100-4 included in the blockchain-based IoT system 1. ), And in addition to the operation of other IoT devices added through blockchain authentication.

도 16은 일 실시예에 따른 사물 인터넷 시스템 제어방법을 도시한 순서도이다.16 is a flowchart illustrating a method of controlling an IoT system, according to an exemplary embodiment.

도 16을 참조하면, 사물 인터넷 시스템(1)의 기반이 되는 블록체인을 구성하는 복수의 블록(101)에는 복수의 사물 인터넷 디바이스(100)의 인증 정보가 저장될 수 있다(1000).Referring to FIG. 16, authentication information of a plurality of IoT devices 100 may be stored in a plurality of blocks 101 constituting a block chain that is the basis of the IoT system 1 (1000).

블록체인을 구성하는 사물 인터넷 디바이스(100)는 상호 인증에 따라 블록체인의 일 노드에 등록된 디바이스이므로, 인증된 사물 인터넷 디바이스(100)의 인증 정보는 디바이스 각각에 대응하는 복수의 블록에 동일하게 저장되고 전파될 수 있다.Since the IoT device 100 constituting the blockchain is a device registered to one node of the blockchain according to mutual authentication, the authentication information of the authenticated IoT device 100 is equally applied to a plurality of blocks corresponding to each device. Can be stored and propagated.

사물 인터넷 제어 디바이스로 설정된 사물 인터넷 디바이스(100)는 블록체인을 구성하는 복수의 사물 인터넷 디바이스 간의 스마트 컨트랙트(110)를 생성할 수 있다(1100). 생성된 스마트 컨트랙트(110)는 복수의 사물 인터넷 디바이스(100) 각각에 포함된 블록(101)에 저장될 수 있다.The IoT device 100 set as the IoT control device may generate a smart contract 110 between a plurality of IoT devices constituting the blockchain (1100). The generated smart contract 110 may be stored in block 101 included in each of the plurality of IoT devices 100.

스마트 컨트랙트(110)에 포함되는 사물 인터넷 디바이스의 인증 정보는 도 6에서 상술했는바, 중복되는 설명은 생략한다.Authentication information of the IoT device included in the smart contract 110 has been described above with reference to FIG. 6, and thus redundant description thereof will be omitted.

복수의 사물 인터넷 디바이스(100)는 블록체인을 구성하는 노드 각각에 대응하여 블록체인에 등록될 수 있고, 디바이스 각각이 포함하는 블록(101)에는 복수의 사물 인터넷 디바이스(100)의 인증 정보가 저장될 수 있다.The plurality of IoT devices 100 may be registered in the block chain corresponding to each node constituting the block chain, and the block information included in each device stores authentication information of the plurality of IoT devices 100. Can be.

블록체인을 구성하는 복수의 노드 중 일 노드에 사물 인터넷 디바이스(100)가 추가될 수 있다. 예를 들어, 스마트폰(100-1)과 냉장고(100-2)로 구성된 사물 인터넷 시스템(1)에 새로운 사물 인터넷 디바이스인 세탁기(100-3)가 추가될 수 있다.The IoT device 100 may be added to one node of the plurality of nodes configuring the blockchain. For example, a new IoT device, the washing machine 100-3, may be added to the IoT system 1 including the smartphone 100-1 and the refrigerator 100-2.

추가되는 사물 인터넷 디바이스는 사물 인터넷 시스템(1)의 내부 네트워크에 디바이스 등록 요청을 전송할 수 있고, 사물 인터넷 제어 디바이스로 설정된 디바이스는 등록 요청을 수신할 수 있다(1200).The IoT apparatus to be added may transmit a device registration request to the internal network of the IoT system 1, and the device configured as the IoT control device may receive a registration request (1200).

사물 인터넷 제어 디바이스는 블록체인에 추가되는 사물 인터넷 디바이스가 제공하는 개인키가 기존에 생성되어 있던 스마트 컨트랙트(110)와 대응되는지 판단할 수 있다(1300). The IoT control device may determine whether the private key provided by the IoT device added to the blockchain corresponds to the smart contract 110 previously generated (1300).

또한, 사물 인터넷 제어 디바이스는 블록체인에 추가되는 사물 인터넷 디바이스가 제공하는 개인키가 사물 인터넷 시스템(1)이 생성한 개인키와 일치하는지 판단할 수 있다(1400).In addition, the IoT control device may determine whether the private key provided by the IoT device added to the blockchain matches the private key generated by the IoT system 1 (1400).

추가되는 사물 인터넷 디바이스가 제공하는 개인키가 스마트 컨트랙트(110)와 대응되고, 사물 인터넷 시스템(1)이 생성한 개인키와 일치하면, 사물 인터넷 제어 디바이스는 추가되는 사물 인터넷 디바이스가 블록체인에 추가되도록 인증할 수 있다(1500).If the private key provided by the IoT device to be added corresponds to the smart contract 110 and matches the private key generated by the IoT system 1, the IoT control device adds the IoT device to the blockchain. It may be authenticated as (1500).

즉, 새로운 사물 인터넷 디바이스가 블록체인에 추가되면, 블록체인을 구성하는 기존의 사물 인터넷 디바이스와 내부 네트워크를 형성할 수 있다.That is, when a new IoT device is added to the blockchain, an internal network may be formed with an existing IoT device constituting the blockchain.

사물 인터넷 제어 디바이스는 블록체인에 추가된 사물 인터넷 디바이스의 인증 정보에 기초하여 스마트 컨트랙트(110)를 갱신할 수 있고(1600), 추가된 사물 인터넷 디바이스의 인증 정보를 블록체인에 등록할 수 있다(1700).The IoT control device may update the smart contract 110 based on the authentication information of the IoT device added to the blockchain (1600), and register the authentication information of the added IoT device to the blockchain ( 1700).

또한, 블록체인에 추가된 사물 인터넷 디바이스를 포함하는 복수의 사물 인터넷 디바이스의 인증 정보는, 디바이스 각각에 대응하는 복수의 블록에 저장될 수 있고(1800), 갱신된 스마트 컨트랙트(110)도 복수의 블록에 저장될 수 있다(1900).In addition, the authentication information of the plurality of IoT devices including the IoT device added to the blockchain may be stored in a plurality of blocks corresponding to each device (1800), and the updated smart contract 110 may also be stored in a plurality of blocks. It may be stored in the block (1900).

이와 같이 사물 인터넷 디바이스가 블록체인에 추가됨으로써 갱신된 스마트 컨트랙트(110)는 블록체인을 구성하는 복수의 사물 인터넷 디바이스(100) 각각에 공유되고 전파될 수 있다.As the IoT device is added to the blockchain as described above, the updated smart contract 110 may be shared and propagated to each of the plurality of IoT devices 100 constituting the blockchain.

사물 인터넷 시스템(1)을 구성하는 복수의 사물 인터넷 디바이스(100)들은 블록체인을 기반으로 신뢰관계를 형성하며, 블록체인에 추가된 사물 인터넷 디바이스(100)들은 각각이 복수의 사물 인터넷 디바이스들의 인증 정보를 포함하므로 상호 간에 제어를 수행할 수 있다(2000).The plurality of IoT devices 100 constituting the IoT system 1 form a trust relationship based on the blockchain, and the IoT devices 100 added to the blockchain are each authenticated by the plurality of IoT devices. Since the information is included, control may be performed with each other (2000).

즉, 블록체인 기술을 이용하여 사물 인터넷 디바이스(100)들 간에 홈 네트워크 시스템을 구축함으로써, 분산화된 사물 인터넷 시스템(1)을 제공하여 중앙 서버에 대한 해킹을 방지하고 익명성과 비밀성을 보장할 수 있다. That is, by building a home network system between the IoT devices 100 using blockchain technology, it is possible to provide a decentralized IoT system 1 to prevent hacking to a central server and to guarantee anonymity and confidentiality. have.

또한, 중앙 서버 없이 각 사물 인터넷 디바이스(100)끼리 신뢰할 수 있는 장치로 등록하고 제어함으로써 각 디바이스를 손쉽게 제어할 수 있고, 제어 명령에 대한 위조 및 변조를 방지하여 투명성을 확보할 수 있는 효과가 있다.In addition, by registering and controlling each IoT apparatus 100 as a reliable device without a central server, it is possible to easily control each device, and to secure transparency by preventing forgery and tampering with control commands. .

또한, 탈 중앙화를 통한 사물 인터넷 시스템(1)을 제공함으로써, 서버 운용 비용 및 관리 비용을 절감할 수 있는 효과가 있다.In addition, by providing the IoT system 1 through decentralization, there is an effect that can reduce the server operating cost and management cost.

한편, 개시된 실시예들은 컴퓨터에 의해 실행 가능한 명령어를 저장하는 기록매체의 형태로 구현될 수 있다. 명령어는 프로그램 코드의 형태로 저장될 수 있으며, 프로세서에 의해 실행되었을 때, 프로그램 모듈을 생성하여 개시된 실시예들의 동작을 수행할 수 있다. 기록매체는 컴퓨터로 읽을 수 있는 기록매체로 구현될 수 있다.On the other hand, the disclosed embodiments may be implemented in the form of a recording medium for storing instructions executable by a computer. Instructions may be stored in the form of program code, and when executed by a processor, may generate a program module to perform the operations of the disclosed embodiments. The recording medium may be implemented as a computer-readable recording medium.

컴퓨터가 읽을 수 있는 기록매체로는 컴퓨터에 의하여 해독될 수 있는 명령어가 저장된 모든 종류의 기록 매체를 포함한다. 예를 들어, ROM(Read Only Memory), RAM(Random Access Memory), 자기 테이프, 자기 디스크, 플래쉬 메모리, 광 데이터 저장장치 등이 있을 수 있다. Computer-readable recording media include all kinds of recording media having stored thereon instructions which can be read by a computer. For example, there may be a read only memory (ROM), a random access memory (RAM), a magnetic tape, a magnetic disk, a flash memory, an optical data storage device, and the like.

이상에서와 같이 첨부된 도면을 참조하여 개시된 실시예들을 설명하였다. 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자는 본 발명의 기술적 사상이나 필수적인 특징을 변경하지 않고도, 개시된 실시예들과 다른 형태로 본 발명이 실시될 수 있음을 이해할 것이다. 개시된 실시예들은 예시적인 것이며, 한정적으로 해석되어서는 안 된다.As described above, the disclosed embodiments have been described with reference to the accompanying drawings. Those skilled in the art will understand that the present invention can be implemented in a form different from the disclosed embodiments without changing the technical spirit or essential features of the present invention. The disclosed embodiments are exemplary and should not be construed as limiting.

1 : 사물 인터넷 시스템
100 : 사물 인터넷 디바이스
101 : 블록
110 : 스마트 컨트랙트
1: IoT system
100: Internet of Things device
101: block
110: Smart Contract

Claims (24)

블록체인을 구성하는 복수의 노드 각각에 대응하는 복수의 사물 인터넷 디바이스;
상기 복수의 사물 인터넷 디바이스 각각에 대응하여, 상기 블록체인을 구성하는 복수의 사물 인터넷 디바이스의 인증 정보를 저장하는 복수의 블록; 및
상기 복수의 사물 인터넷 디바이스 중 일 디바이스로서, 상기 블록체인을 구성하는 복수의 사물 인터넷 디바이스의 동작을 제어하는 사물 인터넷 제어 디바이스;를 포함하고,
상기 사물 인터넷 제어 디바이스는,
상기 복수의 사물 인터넷 디바이스 간의 스마트 컨트랙트(smart contract)를 생성하고, 상기 노드에 추가되는 사물 인터넷 디바이스가 제공하는 암호키에 기초하여 상기 추가되는 사물 인터넷 디바이스의 인증 정보를 상기 블록체인에 등록하고, 상기 추가된 사물 인터넷 디바이스의 인증 정보에 기초하여 상기 생성된 스마트 컨트랙트를 갱신하는 사물 인터넷 시스템.
A plurality of IoT devices corresponding to each of a plurality of nodes constituting the blockchain;
A plurality of blocks for storing authentication information of a plurality of IoT devices constituting the block chain, corresponding to each of the plurality of IoT devices; And
One of the plurality of IoT devices, the IoT control device controlling an operation of a plurality of IoT devices constituting the blockchain;
The IoT control device,
Create a smart contract between the plurality of IoT devices, register authentication information of the IoT apparatus added to the blockchain based on an encryption key provided by the IoT apparatus added to the node, The IoT system for updating the generated smart contract based on the authentication information of the added IoT device.
제 1항에 있어서,
상기 사물 인터넷 시스템은,
상기 복수의 사물 인터넷 디바이스에 대응하는 n(n=자연수)개의 블록을 체인형태로 연계한 n 블록체인을 포함하고, 상기 n 블록체인을 기반으로 상기 복수의 사물 인터넷 디바이스 각각에 대해 고유의 공개키와 개인키를 생성하는 사물 인터넷 시스템.
The method of claim 1,
The IoT system,
A n blockchain in which n (n = natural numbers) blocks corresponding to the plurality of IoT devices are linked in a chain form, and a unique public key for each of the plurality of IoT devices based on the n block chains; Internet of Things system for generating a private key.
제 1항에 있어서,
상기 노드에 추가되는 사물 인터넷 디바이스가 제공하는 암호키는 개인키를 포함하고,
상기 사물 인터넷 제어 디바이스는,
상기 제공된 개인키가 상기 생성된 스마트 컨트랙트와 대응하면, 상기 추가되는 사물 인터넷 디바이스가 상기 블록체인에 추가되도록 인증하고, 상기 추가된 사물 인터넷 디바이스의 인증 정보를 상기 블록체인에 등록하는 사물 인터넷 시스템.
The method of claim 1,
The encryption key provided by the IoT device added to the node includes a private key,
The IoT control device,
And if the provided private key corresponds to the generated smart contract, authenticates the added IoT device to be added to the blockchain, and registers the authentication information of the added IoT device on the blockchain.
제 3항에 있어서,
상기 사물 인터넷 제어 디바이스는,
상기 추가되는 사물 인터넷 디바이스가 제공하는 개인키가 상기 사물 인터넷 시스템이 생성한 개인키와 일치하면, 상기 추가되는 사물 인터넷 디바이스가 상기 블록체인에 추가되도록 인증하는 사물 인터넷 시스템.
The method of claim 3,
The IoT control device,
And if the private key provided by the IoT apparatus to be added coincides with the private key generated by the IoT system, authenticating the IoT apparatus to be added to the blockchain.
제 1항에 있어서,
상기 사물 인터넷 제어 디바이스는,
상기 추가된 사물 인터넷 디바이스의 인증 정보를 상기 블록체인을 구성하는 복수의 사물 인터넷 디바이스 각각에 대응하는 상기 복수의 블록에 저장하여, 상기 추가된 사물 인터넷 디바이스의 인증 정보를 상기 블록체인에 등록하는 사물 인터넷 시스템.
The method of claim 1,
The IoT control device,
A thing that stores the authentication information of the added IoT device in the plurality of blocks corresponding to each of the plurality of IoT devices constituting the blockchain and registers the added authentication information of the IoT device on the blockchain Internet system.
제 1항에 있어서,
상기 복수의 블록은,
상기 추가된 사물 인터넷 디바이스를 포함하는 상기 복수의 사물 인터넷 디바이스의 인증 정보를 저장하는 사물 인터넷 시스템.
The method of claim 1,
The plurality of blocks,
The IoT system storing authentication information of the plurality of IoT devices including the added IoT device.
제 1항에 있어서,
상기 생성된 스마트 컨트랙트는, 상기 복수의 사물 인터넷 디바이스 각각에 대응하는 복수의 블록에 저장되고,
상기 추가된 사물 인터넷 디바이스에 따라 갱신된 상기 스마트 컨트랙트는, 상기 복수의 블록에 저장되는 사물 인터넷 시스템.
The method of claim 1,
The generated smart contract is stored in a plurality of blocks corresponding to each of the plurality of IoT devices,
The smart contract updated according to the added IoT device is stored in the plurality of blocks.
제 2항에 있어서,
상기 사물 인터넷 디바이스가 상기 블록체인에 추가되면, 상기 추가된 사물 인터넷 디바이스에 대응하는 n+1번째 블록은 상기 n 블록체인에 연결 기록되어 n+1 블록체인으로 생성되고, 상기 n+1 블록체인은 상기 블록체인을 구성하는 복수의 노드에 전파되어 상기 n 블록체인이 n+1 블록체인으로 갱신되는 사물 인터넷 시스템.
The method of claim 2,
When the IoT device is added to the blockchain, the n + 1 th block corresponding to the added IoT device is connected to the n blockchain and written to the n + 1 blockchain, and the n + 1 blockchain Is propagated to a plurality of nodes constituting the blockchain, and the n blockchain is updated to an n + 1 blockchain.
제 1항에 있어서,
상기 사물 인터넷 디바이스의 인증 정보는,
상기 복수의 사물 인터넷 디바이스 각각의 제품 정보 및 제품 동작 정보 중 적어도 하나를 포함하는 사물 인터넷 시스템.
The method of claim 1,
Authentication information of the IoT device,
And at least one of product information and product operation information of each of the plurality of IoT devices.
제 1항에 있어서,
상기 사물 인터넷 제어 디바이스는,
모바일 단말을 포함하고, 상기 블록체인을 구성하는 복수의 사물 인터넷 디바이스 각각에 대한 제어 명령을 입력 받는 사물 인터넷 시스템.
The method of claim 1,
The IoT control device,
An IoT system including a mobile terminal and receiving a control command for each of a plurality of IoT devices constituting the blockchain.
제 1항에 있어서,
상기 사물 인터넷 제어 디바이스는,
상기 스마트 컨트랙트에 기초하여, 상기 블록체인에 추가된 사물 인터넷 디바이스를 제어하고,
상기 복수의 사물 인터넷 디바이스는,
상기 스마트 컨트랙트에 기초하여, 상기 블록체인을 구성하는 복수의 사물 인터넷 디바이스 상호간 제어를 수행하는 사물 인터넷 시스템.
The method of claim 1,
The IoT control device,
Based on the smart contract, to control the IoT device added to the blockchain,
The plurality of IoT devices,
Based on the smart contract, the IoT system for performing a control of a plurality of IoT devices constituting the block chain.
제 1항에 있어서,
상기 복수의 노드는, 유선 네트워크 및 무선 네트워크 중 적어도 하나로 상호 연결되고,
상기 사물 인터넷 시스템은, 상기 복수의 노드에 대응하는 상기 복수의 사물 인터넷 디바이스 간에 블록체인 인증을 기반으로, 상기 복수의 사물 인터넷 디바이스 상호간 제어를 수행하는 사물 인터넷 시스템.
The method of claim 1,
The plurality of nodes are interconnected to at least one of a wired network and a wireless network,
The IoT system may control the plurality of IoT devices based on blockchain authentication between the plurality of IoT devices corresponding to the plurality of nodes.
제 1항에 있어서,
상기 복수의 사물 인터넷 디바이스는 통신부;를 포함하는 사물 인터넷 시스템.
The method of claim 1,
The IoT apparatus includes a communication unit.
블록체인을 구성하는 복수의 노드 각각에 대응하는 복수의 사물 인터넷 디바이스의 인증 정보를 저장하고;
상기 복수의 사물 인터넷 디바이스 간의 스마트 컨트랙트를 생성하고;
상기 노드에 추가되는 사물 인터넷 디바이스가 제공하는 암호키에 기초하여 상기 추가되는 사물 인터넷 디바이스의 인증 정보를 상기 블록체인에 등록하고;
상기 추가된 사물 인터넷 디바이스의 인증 정보에 기초하여 상기 생성된 스마트 컨트랙트를 갱신하는 사물 인터넷 시스템 제어방법.
Storing authentication information of the plurality of IoT devices corresponding to each of the plurality of nodes constituting the blockchain;
Create a smart contract between the plurality of IoT devices;
Register authentication information of the added IoT device on the blockchain based on an encryption key provided by the IoT device added to the node;
The IoT system control method for updating the generated smart contract based on the authentication information of the added IoT device.
제 14항에 있어서,
상기 복수의 사물 인터넷 디바이스에 대응하는 n(n=자연수)개의 블록을 체인형태로 연계한 n 블록체인을 포함하고, 상기 n 블록체인을 기반으로 상기 복수의 사물 인터넷 디바이스 각각에 대해 고유의 공개키와 개인키를 생성하는 것;을 포함하는 사물 인터넷 시스템 제어방법.
The method of claim 14,
A n blockchain in which n (n = natural numbers) blocks corresponding to the plurality of IoT devices are linked in a chain form, and a unique public key for each of the plurality of IoT devices based on the n block chains; Generating a private key; IoT system control method comprising a.
제 14항에 있어서,
상기 노드에 추가되는 사물 인터넷 디바이스가 제공하는 암호키는 개인키를 포함하고,
상기 추가되는 사물 인터넷 디바이스의 인증 정보를 상기 블록체인에 등록하는 것은,
상기 제공된 개인키가 상기 생성된 스마트 컨트랙트와 대응하면, 상기 추가되는 사물 인터넷 디바이스가 상기 블록체인에 추가되도록 인증하고;
상기 추가된 사물 인터넷 디바이스의 인증 정보를 상기 블록체인에 등록하는 사물 인터넷 시스템 제어방법.
The method of claim 14,
The encryption key provided by the IoT device added to the node includes a private key,
Registering the authentication information of the IoT apparatus to be added to the blockchain,
If the provided private key corresponds to the generated smart contract, authenticate the added IoT device to be added to the blockchain;
The IoT system control method for registering the added authentication information of the IoT device to the blockchain.
제 16항에 있어서,
상기 추가되는 사물 인터넷 디바이스가 상기 블록체인에 추가되도록 인증하는 것은,
상기 추가되는 사물 인터넷 디바이스가 제공하는 개인키가 상기 사물 인터넷 시스템이 생성한 개인키와 일치하면, 상기 추가되는 사물 인터넷 디바이스가 상기 블록체인에 추가되도록 인증하는 사물 인터넷 시스템 제어방법.
The method of claim 16,
Authenticating the additional IoT device to be added to the blockchain
The IoT system control method for authenticating the added IoT device is added to the blockchain, if the private key provided by the added IoT device matches the private key generated by the IoT system.
제 14항에 있어서,
상기 추가되는 사물 인터넷 디바이스의 인증 정보를 상기 블록체인에 등록하는 것은,
상기 추가된 사물 인터넷 디바이스의 인증 정보를 상기 블록체인을 구성하는 복수의 사물 인터넷 디바이스 각각에 대응하는 복수의 블록에 저장하여, 상기 추가된 사물 인터넷 디바이스의 인증 정보를 상기 블록체인에 등록하는 사물 인터넷 시스템 제어방법.
The method of claim 14,
Registering the authentication information of the IoT apparatus to be added to the blockchain,
The IoT that stores authentication information of the IoT apparatus added in a plurality of blocks corresponding to each of the IoT apparatuses constituting the blockchain and registers the authentication information of the IoT apparatus added to the blockchain. System control method.
제 18항에 있어서,
상기 추가된 사물 인터넷 디바이스를 포함하는 상기 복수의 사물 인터넷 디바이스의 인증 정보를 상기 복수의 블록에 저장하는 것;을 더 포함하는 사물 인터넷 시스템 제어방법.
The method of claim 18,
And storing the authentication information of the plurality of IoT devices including the added IoT device in the plurality of blocks.
제 18항에 있어서,
상기 생성된 스마트 컨트랙트를 상기 복수의 사물 인터넷 디바이스 각각에 대응하는 복수의 블록에 저장하고;
상기 추가된 사물 인터넷 디바이스에 따라 갱신된 상기 스마트 컨트랙트를 상기 복수의 블록에 저장하는 것;을 포함하는 사물 인터넷 시스템 제어방법.
The method of claim 18,
Store the generated smart contract in a plurality of blocks corresponding to each of the plurality of IoT devices;
Storing the updated smart contract in the plurality of blocks according to the added IoT device.
제 15항에 있어서,
상기 사물 인터넷 디바이스가 상기 블록체인에 추가되면, 상기 추가된 사물 인터넷 디바이스에 대응하는 n+1번째 블록은 상기 n 블록체인에 연결 기록되어 n+1 블록체인으로 생성되고;
상기 n+1 블록체인은 상기 블록체인을 구성하는 복수의 노드에 전파되어 상기 n 블록체인이 n+1 블록체인으로 갱신되는 사물 인터넷 시스템 제어방법.
The method of claim 15,
When the IoT device is added to the blockchain, an n + 1th block corresponding to the added IoT device is connected to the n blockchain and recorded in the n + 1 blockchain;
The n + 1 blockchain is propagated to a plurality of nodes constituting the blockchain to update the n blockchain to an n + 1 blockchain.
제 14항에 있어서,
상기 블록체인을 구성하는 복수의 사물 인터넷 디바이스 각각에 대한 제어 명령을 입력 받는 것;을 더 포함하는 사물 인터넷 시스템 제어방법.
The method of claim 14,
And receiving a control command for each of a plurality of IoT devices constituting the blockchain.
제 14항에 있어서,
상기 스마트 컨트랙트에 기초하여, 상기 블록체인에 추가된 사물 인터넷 디바이스를 포함하는 복수의 사물 인터넷 디바이스 상호간 제어를 수행하는 것;을 더 포함하는 사물 인터넷 시스템 제어방법.
The method of claim 14,
Based on the smart contract, performing mutual control between a plurality of IoT devices including an IoT device added to the blockchain.
제 14항에 있어서,
상기 복수의 사물 인터넷 디바이스간의 통신을 제어하는 것;을 더 포함하는 사물 인터넷 시스템 제어방법.
The method of claim 14,
And controlling the communication between the plurality of IoT devices.
KR1020180069757A 2018-06-18 2018-06-18 Block chain-based system of iot and method for the same KR102635038B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020180069757A KR102635038B1 (en) 2018-06-18 2018-06-18 Block chain-based system of iot and method for the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020180069757A KR102635038B1 (en) 2018-06-18 2018-06-18 Block chain-based system of iot and method for the same

Publications (2)

Publication Number Publication Date
KR20200003306A true KR20200003306A (en) 2020-01-09
KR102635038B1 KR102635038B1 (en) 2024-02-13

Family

ID=69154917

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180069757A KR102635038B1 (en) 2018-06-18 2018-06-18 Block chain-based system of iot and method for the same

Country Status (1)

Country Link
KR (1) KR102635038B1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20210107999A (en) * 2020-02-25 2021-09-02 주식회사 더블체인 Blockchain-based rapid access control systems and methods for the iot device
KR20210145415A (en) * 2020-05-25 2021-12-02 한국전자통신연구원 Apparatus and Method for Providing Sensor Data based on Blockchain
CN114598599A (en) * 2020-11-20 2022-06-07 深圳Tcl新技术有限公司 Network distribution method and device of Internet of things equipment, Internet of things equipment and storage medium
CN115001709A (en) * 2022-05-31 2022-09-02 赵瑞 Credible acquisition and privacy protection method suitable for digital medical data
US11671991B2 (en) 2020-07-13 2023-06-06 Samsung Electronics Co., Ltd. Method and system for resource management in blockchain based iot network

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160011470A (en) * 2014-07-22 2016-02-01 울산대학교 산학협력단 Smart context distribution framework based on messaging service for internet of things and control method for the same
KR20160149751A (en) * 2015-06-19 2016-12-28 에스케이텔레콤 주식회사 User terminal device, Internet of Things control method, computer program and storage medium therefor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160011470A (en) * 2014-07-22 2016-02-01 울산대학교 산학협력단 Smart context distribution framework based on messaging service for internet of things and control method for the same
KR20160149751A (en) * 2015-06-19 2016-12-28 에스케이텔레콤 주식회사 User terminal device, Internet of Things control method, computer program and storage medium therefor

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20210107999A (en) * 2020-02-25 2021-09-02 주식회사 더블체인 Blockchain-based rapid access control systems and methods for the iot device
KR20210145415A (en) * 2020-05-25 2021-12-02 한국전자통신연구원 Apparatus and Method for Providing Sensor Data based on Blockchain
US11983160B2 (en) 2020-05-25 2024-05-14 Electronics And Telecommunications Research Institute Apparatus and method for providing sensor data based on blockchain
US11671991B2 (en) 2020-07-13 2023-06-06 Samsung Electronics Co., Ltd. Method and system for resource management in blockchain based iot network
CN114598599A (en) * 2020-11-20 2022-06-07 深圳Tcl新技术有限公司 Network distribution method and device of Internet of things equipment, Internet of things equipment and storage medium
CN114598599B (en) * 2020-11-20 2024-01-19 深圳Tcl新技术有限公司 Network distribution method and device of Internet of things equipment, internet of things equipment and storage medium
CN115001709A (en) * 2022-05-31 2022-09-02 赵瑞 Credible acquisition and privacy protection method suitable for digital medical data
CN115001709B (en) * 2022-05-31 2024-03-12 赵瑞 Trusted acquisition and privacy protection method suitable for digital medical data

Also Published As

Publication number Publication date
KR102635038B1 (en) 2024-02-13

Similar Documents

Publication Publication Date Title
KR102635038B1 (en) Block chain-based system of iot and method for the same
US11849048B2 (en) Mutually authenticated ECDHE key exchange for a device and a network using multiple PKI key pairs
US11038682B2 (en) Communication method, apparatus and system, electronic device, and computer readable storage medium
JP6812421B2 (en) Equipment and methods for mobility procedures involving mobility management entity relocation
US20200259667A1 (en) Distributed management system for remote devices and methods thereof
US11991527B2 (en) Communication method and communication device
JP6072918B2 (en) Establishing a device-to-device communication session
US10250578B2 (en) Internet key exchange (IKE) for secure association between devices
KR101688813B1 (en) Method and system for establishing relationship between iot device and owner
EP3528468B1 (en) Profile information sharing
US20210314293A1 (en) Method and system for using tunnel extensible authentication protocol (teap) for self-sovereign identity based authentication
KR20130077171A (en) Authentication method between server and device
Hou et al. Design and prototype implementation of a blockchain-enabled LoRa system with edge computing
KR101968424B1 (en) System and method for processing an authentication using block chain controller
CN115669022A (en) Method for providing ranging-based service by electronic equipment and electronic equipment
KR101848300B1 (en) METHOD FOR OPERATING COMMUNICATION CLIENT INSTALLED IN IoT DEVICE AND IoT DEVICE INCLUDING THE CLIENT
EP3282639B1 (en) Method for operating server and client, server, and client apparatus
US20210011710A1 (en) Electronic device management
CN114650182B (en) Identity authentication method, system, device, gateway equipment, equipment and terminal
WO2023273279A1 (en) Network authentication system and method for robot
US20230045486A1 (en) Apparatus and Methods for Encrypted Communication
US20220200967A1 (en) Machine to machine communications
CN115438353A (en) User data management method and related equipment
KR20190111748A (en) Method for generating address information used in transaction of cryptocurrency based on blockchain, electronic apparatus and computer readable recording medium
WO2024007855A1 (en) Data processing method and device based on blockchain, and readable storage medium

Legal Events

Date Code Title Description
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant