CN110012015A

Internet of Things data sharing method and system based on block chain

Abstract

The invention relates to an Internet of Things data sharing method and system based on a block chain. The system comprises a certificate management module, a gateway module and a channel. The method comprises the steps that Internet of Things equipment applies for registration to a CA through a gateway module, and the CA returns a certificate to the gateway module and stores the certificate in a certificate management module in the gateway module; the gateway module receives and processes the data information and sends the data information to the node through the Fabric SDK; the node carries out endorsement and returns the endorsement to the Fabric SDK; the Fabric SDK sends the collected data information to a sorting service according to an endorsement strategy, and the sorting service sorts the data information according to a time sequence, packages the data information into blocks and broadcasts the blocks to nodes in a channel; and after receiving the block, the node verifies the block and writes the block into a local account book. On the premise that a single credible centralization mechanism is not used, the method helps participants to directly establish trust, guarantees that data can be safely shared, improves the value transmission efficiency, and reduces the risk that the data is tampered through a block chain data structure.

CN110012015A, drawing sheet 1
Sheet 1 of 1

Term

12.5 yearsto projected expiry

Projected expiry 9 April 2039, counted from filing; an application has no term until it is granted.

  1. Priority and filed
  2. Published
  3. Today
  4. Projected expiry

10 claims: 2 independent, 8 dependent

  1. 1
    1 A blockchain-based Internet of Things data sharing method, which is characterized by including the following steps:Step 1: The Internet of Things device applies to a first CA for registration through a gateway module, and the first CA returns a certificate to the gateway module and stores it in The certificate management module in the gateway module;Step 2: The gateway module receives the data information of the Internet of Things device, processes the data information, and sends the processed data information to the nodes in the channel through the Fabric SDK;Step 3: In the channel After the node receives the data information sent by the Fabric SDK, it endorses the data information and returns the endorsed data information to the Fabric SDK;Step 4: Fabric SDK sends the collected endorsed data information to the sorting service according to the endorsement strategy , The sorting service sorts the received data information in chronological order and packs them into blocks, and broadcasts them to the nodes in the channel;Step 5: After the nodes in the channel receive the blocks, they will verify them, and they will pass the verified The block is written into the local ledger. 1 .一种基于区块链的物联网数据共享方法,其特征在于,包括以下步骤: 步骤1:物联网设备通过网关模块向第一CA申请注册,第一CA向网关模块返回证书,并 存储于网关模块内的证书管理模块; 步骤2:网关模块接收物联网设备的数据信息,对数据信息进行处理,并将处理后的数 据信息通过Fabric SDK发送给通道内的节点; 步骤3:通道内的节点收到Fabric SDK发送的数据信息后,对数据信息进行背书,并将 背书后的数据信息返回给Fabric SDK; 步骤4:Fabric SDK根据背书策略将收集到的背书后的数据信息发送给排序服务,排序 服务对收到的数据信息按时间顺序进行排序后打包成区块,广播给通道内的节点; 步骤5:通道内的节点收到区块后,对其进行验证,将通过验证后的区块写入本地账本。
  2. 9
    9 An Internet of Things data sharing system based on the method of any one of claims 1 to 8, characterized by comprising:an Internet of Things device, which is used to send a registration application and data information to a gateway module;and a gateway module, which is used to The registration application of the Internet of Things device applies to the first CA for registration, the certificate management module in the gateway module receives the certificate returned by the first CA;the data receiving and processing module in the gateway module receives the data information of the Internet of Things device, and processes the data information ;The Fabric SDK in the gateway module sends the processed data information to the nodes in the channel, and sends the collected endorsed data information to the sorting service in the channel according to the endorsement strategy;9 .一种基于权利要求1〜8任一项所述方法的物联网数据共享系统,其特征在于,包括: 物联网设备,用于向网关模块发送注册申请以及数据信息; 网关模块,用于根据物联网设备的注册申请向第一CA申请注册,网关模块内的证书管 理模块接收第一CA返回的证书;网关模块内的数据接收与处理模块接收物联网设备的数据 信息,对数据信息进行处理;网关模块内的Fabric SDK将处理后的数据信息发送给通道内 的节点,并根据背书策略将收集到的背书后的数据信息发送给通道内的排序服务; The channel includes several nodes and ordering services. After receiving the data information sent by the Fabric SDK, the node endorses the data information and returns the endorsed data information to the Fabric SDK;the ordering service orders the received data information in chronological order After sorting, they are packed into blocks and broadcast to the nodes in the channel;after the nodes in the channel receive the blocks, they verify them, and write the verified blocks into the local ledger. 通道,包括若干节点和排序服务,其中节点收到Fabric SDK发送的数据信息后,对数据 信息进行背书,并将背书后的数据信息返回给Fabric SDK;排序服务对收到的数据信息按 时间顺序进行排序后打包成区块,广播给通道内的节点;通道内的节点收到区块后,对其进 行验证,将通过验证后的区块写入本地账本。