A data transaction method based on an internet-of-things chain and a PUF
By combining IoT blockchain and PUF technology with proxy nodes and smart contracts, the security and transparency issues of IoT devices in centralized data trading systems are solved, achieving lightweight authentication and transaction behavior monitoring, and optimizing the data trading process for resource-constrained devices.
Patent Information
- Application Number
- CN202310845836.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-11
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-07-11
AI Technical Summary
Centralized data trading systems in the Internet of Things (IoT) suffer from single points of failure, data leakage risks, difficulty in monitoring data quality, and lack of transparency in transactions. Resource-constrained devices also find it difficult to connect to existing systems for data trading.
By employing IoT blockchain and PUF technology, lightweight authentication, data transaction monitoring, and behavior feedback are achieved through proxy node groups, smart contracts, and fuzzy evaluation models. Data is stored using IPFS, and data similarity is used to detect and arbitrate transaction behavior.
It solves the problems of data transaction transparency and security for resource-constrained devices, enables the monitoring and feedback of transaction behavior, optimizes the identity verification of IoT devices, and standardizes the behavior of traders.
Smart Images

Figure CN116882993B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of blockchain technology, and in particular to a data transaction method based on IoT blockchain and PUF. Background Technology
[0002] With the development of the Internet of Things (IoT) and emerging technologies, data sharing and trading are both a trend of the times and an inevitable market demand. In recent years, many centralized data trading systems have emerged, but these systems primarily serve users with large amounts of stored data and strong computing capabilities. However, a significant portion of the data in the IoT originates from devices at the bottom layer of the IoT architecture that have severely limited computing and storage resources. These resource-constrained devices struggle to connect to existing data trading systems to reuse their data.
[0003] Centralized data trading systems typically consist of three parts: buyers, sellers, and trading platforms. Specifically, sellers send data to the trading platform and set prices. Buyers select data products on the trading platform, submit orders, and pay for them. After confirming receipt of payment, the data platform sends the data to the buyer and deducts a handling fee. This centralized trading model suffers from numerous drawbacks, such as single points of failure, data leaks, and a lack of trust. Moreover, if the data sold by the seller is of poor quality and unusable, the buyer cannot hold the seller accountable to protect their legitimate rights. Therefore, existing trading systems have the following problems: (1) Centralized trading systems are highly unstable when attacked; (2) The data storage and trading process is opaque, posing a risk of data leaks; (3) Malicious buyers may modify purchased datasets and resell them; (4) The trading system lacks a monitoring mechanism for sellers who sell low-quality data.
[0004] A blockchain is a chain of millions of serially linked blocks, essentially a distributed ledger where all blocks record transaction information in the form of a Merkel tree. Once transaction information is recorded in the blockchain, it is very difficult to modify or delete. The emergence of blockchain technology provides a solution to the security and trust issues of the Internet of Things (IoT), making it a perfect complement to the IoT. This new paradigm integrating blockchain and IoT is called the IoT Chain. In practical applications, blockchain is often combined with smart contracts. A smart contract is essentially a protocol or contract converted into an executable computer program. When the preset conditions in the program are met, the smart contract executes automatically.
[0005] Physically unclonable functions (PUFs) can be viewed as tools for generating digital fingerprints of electronic components. Due to the imperfections in silicon fabrication technology, each electronic component is physically unique. PUFs leverage this variability to generate a unique identifier for each component. For a given PUF, an input challenge value generates a unique output response, and this operation is repeatable. The same PUF will also generate different responses for different challenge values. Furthermore, PUFs are unidirectional and unpredictable; attackers cannot deduce the challenge value from the response value. Summary of the Invention
[0006] This invention provides a data trading method based on IoT blockchain and PUF to solve the problems of data trading difficulties and lack of transparency for resource-constrained IoT devices. It also ensures that the dataset is not resold within the system and achieves lightweight authentication and monitoring feedback of transaction behavior for resource-constrained devices through a fuzzy evaluation model to monitor the behavior of traders.
[0007] To address the aforementioned technical problems, this invention provides a data transaction method based on IoT blockchain and PUF, which includes the following steps:
[0008] Step 1: Initialization phase: Complete the formation and registration of the proxy node group, select and publish the public parameters of the proxy node group, and the proxy node group contains several proxy nodes.
[0009] Step 2: User Registration Stage
[0010] Step 2.1: Register the device to generate a batch of challenge response pairs via PUF and save them in the agent node for bidirectional authentication communication.
[0011] Step 2.2: In the proxy node, if the challenge response pair of the registered device is unique, it is registered and the smart contract function is invoked to record it. If the response is unique, the proxy node rejects the registration request on the public channel.
[0012] Step 3: Authentication Update
[0013] Step 3.1: After registration, the device that needs to be authenticated sends its pseudo-identity (PID), the masked random number, and the authentication parameters to the proxy node.
[0014] Step 3.2: After receiving the information sent in Step 3.1, the proxy node generates a timestamp and a random number, selects a pair of pre-stored challenge response pairs to construct temporary transmission parameters B2, sets a session key, and transmits the timestamp, random number, and temporary transmission parameters B2 to the authentication device using the encrypted key.
[0015] Step 3.3: After receiving the information sent in Step 3.2, the authentication device generates a timestamp. The difference between the timestamp generated by the authentication device and the timestamp generated by the proxy node is calculated, and the validity of the message is verified using this difference. The device checks the integrity of the information by restoring the session key, then uses a pseudo-random number generator (PRNG) and PUF for iterative calculation to update the authentication parameters for subsequent information checks. Finally, the information is encrypted and sent to the proxy node.
[0016] Step 3.4: After receiving the information sent in Step 3.3, the proxy node generates a timestamp, recovers and verifies the authentication parameters locally, and generates a polynomial point and an iterated challenge-response pair after confirming that there are no errors. The polynomial point and the iterated challenge-response pair are combined to form new information, which is stored and sent to the authentication device.
[0017] Step 3.5: The authentication device receives the information sent in step 3.4 and repeats the verification process in step 3.3. It stores the new information received locally for subsequent verification by the authentication device.
[0018] Step 4: Data for Sale Stage
[0019] Step 4.1: Before the transaction, the seller stores the data to be sold in the Interplanetary File System (IPFS).
[0020] Step 4.2: The seller sends a "Data for Sale" request and a data summary to the agent node, which includes relevant information such as the selling price. Simultaneously, the seller pays a deposit.
[0021] Step 4.3: After the deposit is paid, the proxy node adds the seller to the seller list by calling a function. Then, the proxy node broadcasts detailed description information to other nodes in the blockchain.
[0022] Step 4.4: If no node questions the data, the data is allowed to be traded and the relevant information of the data is recorded on the blockchain.
[0023] Step 5: Data Arbitration Stage
[0024] Step 5.1: If a node believes that the seller has resold data, the node pays a deposit and calls the contract function to apply for arbitration.
[0025] Step 5.2: The arbitration center uses the download credentials transmitted by the smart contract to download two sets of data from IPFS, namely the resale data and the source data that the node considers to be resold. Then, the optimal transportation dataset distance algorithm is used to perform similarity detection on the two sets of data.
[0026] Step 5.3: If the arbitration result returned by the arbitration center to the smart contract is that the data is similar, the seller's deposit will be transferred to the Ethereum address of the node that initiated the arbitration; if the arbitration result returned is that the data is not similar, the deposit of the node that initiated the arbitration will be confiscated and distributed to the entities participating in the arbitration in a certain proportion.
[0027] Step 6: Data Purchase Stage
[0028] Step 6.1: The buyer sends a "purchase data" request to the smart contract and calls the function to make the payment.
[0029] Step 6.2: Upon receiving the request, the smart contract first checks if the buyer's payment amount equals the data price. If they are equal and the payment is made correctly, the smart contract encrypts the data download voucher using the buyer's public key and sends it to the buyer. If they are not equal, the smart contract rejects the buyer's purchase request and rolls back the transaction.
[0030] Step 7: Data Evaluation Stage: The buyer completes the evaluation of the data transaction;
[0031] Step 7.1: After the purchase phase is completed, buyers can evaluate the data from multiple dimensions.
[0032] Step 7.2: Each transaction review a buyer leaves will affect the weight of their next review. All transaction reviews are calculated using a comprehensive weighted average and are recorded in the blockchain accounts of both the buyer and seller.
[0033] Furthermore, the comprehensive weighted calculation in step 7.2 is implemented as follows:
[0034] 1. Determine the evaluation metrics and comment set for the data. The evaluation metrics are divided into three primary metrics: data quality, data size, and data usability. Each primary metric contains several secondary metrics. The comment set is categorized into excellent, good, satisfactory, and unsatisfactory based on the corresponding scores.
[0035] 2. Establish a fuzzy matrix for transaction evaluation using m evaluation objects and n evaluation indicators. ;
[0036] 3. Normalized fuzzy matrix This completes the normalization process for each secondary indicator.
[0037] 4. Calculate the information entropy of each normalized secondary indicator, and determine the weight of the j-th indicator based on the information entropy. .
[0038] 5. Based on the weight of each indicator The fuzzy comprehensive evaluation algorithm is used to obtain a comprehensive evaluation (CE) of the seller's data.
[0039] 6. W pre It's the weight of the buyer's previous review, W. now If the buyer's current rating weight is W, then the next rating weight W... next The calculation method is as follows:
[0040]
[0041] The comprehensive weighted calculation of the evaluation has been completed.
[0042] The data transaction method based on IoT blockchain and PUF of this invention has the following advantages: The addition of IPFS entity and dataset similarity analysis in the system of this invention effectively solves the problems of high storage pressure and chaotic digital copyright in blockchain; it optimizes the identity verification process of IoT devices by using "digital fingerprint" PUF and implementing a more lightweight identity verification protocol, solving the problem of limited resources for underlying IoT devices; and it proposes a comprehensive weighted calculation in the data evaluation stage, where data buyers will evaluate the data quality of data sellers with multiple weights, and the evaluation results will also affect the buyer's evaluation weight in the next evaluation, thereby regulating the behavior of traders. Attached Figure Description
[0043] Figure 1 Flowchart provided for this invention;
[0044] Figure 2 This is a pseudocode diagram illustrating the authentication update process of the present invention. Detailed Implementation
[0045] The process and specific steps of the present invention will be described below with reference to the accompanying drawings.
[0046] Reference Figure 1 This invention provides a data trading method based on IoT blockchain and PUF. This invention is applicable to data trading of resource-constrained devices. The system for implementing the method includes an initialization module, a device registration module, an authentication update module, a data for sale module, a data arbitration module, a data purchase module, and a data evaluation module.
[0047] A data transaction method based on IoT blockchain and PUF includes the following steps:
[0048] Step 1: Initialization Phase: Complete the selection and public disclosure of public parameters for the proxy node group, and the formation and registration of the proxy node group;
[0049] Step 2: User Registration Stage: Complete the registration of IoT devices using PUF technology;
[0050] Step 3: Authentication Update: This includes updating the identity authentication and authentication parameters of registered devices;
[0051] Step 4: Data for Sale Stage: The agent node broadcasts a summary of the user's data for sale;
[0052] Step 5: Data Arbitration Stage: The data arbitration center completes the data similarity detection and feeds back the results to the smart contract;
[0053] Step 6: Data Purchase Stage: This includes buyer payment and transmission of download vouchers;
[0054] Step 7: Data Evaluation Stage: The buyer completes the evaluation of the data transaction.
[0055] Specifically, step 1 includes the following steps:
[0056] The system developers need to organize a group containing n proxy nodes and customize the blockchain. Each proxy node randomly selects an initial parameter 'a'. i , and put a i It is sent to all proxy nodes except itself, and finally each proxy node obtains a polynomial locally: The registration of entities other than traders and the selection of elliptic curves are also completed at this stage.
[0057] Specifically, step 2 includes:
[0058] Step 2.1: Register the device by generating a batch of challenge-response pairs via PUF and storing them in the proxy node for bidirectional authentication communication. The device to be registered uses its physical address (MAC) and pseudo-random generator (PRNG) to generate a PID, and then uses the PID and the actual device ID to register at the proxy node.
[0059] Step 2.2: The proxy node checks the registration cache locally. If the registration information is not duplicated, it registers the information and calls the smart contract function to record it. If the information is duplicated, the proxy node rejects the registration request on the public channel.
[0060] Specifically, step 3 includes the following steps:
[0061] Step 3.1: The device that needs to be authenticated sends its PID and a masked random number to the proxy node.
[0062] Step 3.2: After receiving the information sent in Step 3.1, the proxy node generates a timestamp and a random number, uses the PID to determine whether the user has registered, selects a pair of pre-stored challenge response pairs to construct temporary transmission parameters B2, sets the session key Auth1, and uses the random number and the base point G of the elliptic curve as a mask for transmission.
[0063] Step 3.3: After receiving the information sent in Step 3.2, the device requiring authentication generates a timestamp and checks the validity of the message. The device calculates the challenge value based on elliptic curves, obtains the response value using a PUF element, checks the integrity of the message by restoring the session key, iteratively generates the next challenge value using a PRNG, generates Auth2 using a hash function, and finally XORs the iteratively generated challenge value with a random number and a timestamp and sends it to the proxy node.
[0064] Step 3.4: After receiving the information sent in Step 3.3, the proxy node generates a timestamp, recovers the response value and other parameters locally, verifies the session key, sets a timestamp threshold, and calculates the difference between the timestamp generated by the authentication device and the timestamp generated by the proxy node. When the timestamp threshold is greater than the difference, the message is valid; when the timestamp threshold is less than or equal to the difference, the message is invalid. After verifying the message, it generates a polynomial point and an iterated challenge-response pair, updates these parameters by calling a smart contract function for storage, and finally sends the polynomial point to the device.
[0065] Step 3.5: The authentication device receives the information sent in Step 3.4 and repeats the verification process in Step 3.3, storing the received parameters locally. The entire process is as follows: Figure 2 As shown.
[0066] Specifically, step 4 includes the following steps:
[0067] Step 4.1: Before the transaction, the seller stores the data to be sold in the InterPlanetary File System.
[0068] Step 4.2: The seller sends a "data for sale" request and a data summary to the agent node, which includes relevant information such as the selling price. Simultaneously, the seller calls the Deposit() function to pay a deposit to the smart contract.
[0069] Step 4.3: After the deposit is paid, the proxy node adds the seller to the seller list by calling the AddSeller() function. Then, the proxy node broadcasts detailed description information to other nodes in the blockchain, which forward the information to their respective child nodes.
[0070] Step 4.4: If no node questions the data, the data is allowed to be traded, and the relevant information is recorded on the blockchain. The proxy node will generate a local index table of data information and block headers, which allows newly registered users to easily find the data they need on the chain. After the data on the blockchain has been confirmed by six blocks, the deposit will be automatically refunded by the pre-defined DepositRefund() function.
[0071] Specifically, step 5 includes the following steps:
[0072] Step 5.1: If a node believes that the seller has resold data, the node pays a deposit and calls the contract function to apply for arbitration.
[0073] Step 5.2: The arbitration center uses the download credentials transmitted by the smart contract to download two sets of data from IPFS, namely the resale data and the source data that the node considers to be resold. Then, it uses the Optimal Transport Dataset Distance (OTDD) algorithm to perform similarity detection on the two sets of data, that is: .in and It is the distribution of two datasets. It is the set of all possible joint distributions among them. for and Expectations It is a cost function used to measure the difference between two samples.
[0074] Step 5.3: If the arbitration result returned by the arbitration center to the smart contract is that the data is similar, the seller's deposit will be transferred to the Ethereum address of the node that initiated the arbitration; if the arbitration result returned is that the data is not similar, the deposit of the node that initiated the arbitration will be confiscated and distributed to the entities participating in the arbitration in a certain proportion.
[0075] Specifically, step 6 includes the following steps:
[0076] Step 6.1: The buyer sends a "purchase data" request to the smart contract and calls the DataPurchase() function to make the payment.
[0077] Step 6.2: Upon receiving the request, the smart contract first checks if the buyer's payment amount equals the data price. If they are equal and the payment is made correctly, the smart contract encrypts the data download voucher using the buyer's public key and sends it to the buyer. If they are not equal, the smart contract rejects the buyer's request and rolls back the transaction.
[0078] Specifically, step 7 includes the following steps:
[0079] Step 7.1: After the purchase phase is completed, the buyer can call the Evaluation() function to evaluate the data from multiple dimensions.
[0080] Step 7.2: Each transaction review a buyer leaves will affect the weight of their next review. All transaction reviews are calculated using a comprehensive weighted average and are recorded in the blockchain accounts of both the buyer and seller.
[0081] Furthermore, the comprehensive weighted calculation in step 7.2 is implemented as follows:
[0082] 1. Determine the evaluation metrics and set of comments for the data. Evaluation metrics are divided into data quality, data size, and...
[0083] Data availability is categorized into three primary indicators, each containing several secondary indicators. The evaluation criteria are divided into four levels based on their respective scores: Excellent, Good, Satisfactory, and Unsatisfactory.
[0084] 2. Establish a fuzzy matrix for transaction evaluation using m evaluation objects and n evaluation indicators. ,as follows:
[0085]
[0086] 3. Normalized fuzzy matrix This completes the normalization process for each secondary indicator. This represents the standard value of the j-th evaluation of the i-th indicator; The actual value of the j-th evaluation of the i-th indicator is represented as follows:
[0087]
[0088] 4. Calculate the information entropy of each indicator and determine the weight of the j-th indicator. .
[0089] 5. Calculate the overall evaluation of seller data based on the weight of each indicator. .
[0090] 6. W pre It's the weight of the buyer's previous review, W. now If the buyer's current rating weight is W, then the next rating weight W... next The calculation method is as follows:
[0091]
[0092] This completes the comprehensive weighted calculation of the evaluation.
Claims
1. A data transaction method based on IoT blockchain and PUF, characterized in that, Includes the following steps: Step 1: The formation and registration of the proxy node group, the selection and public disclosure of the public parameters of the proxy node group; the proxy node group contains several proxy nodes; Step 2: Use the Physically Unclonable Function (PUF) to complete the device registration. The specific process is as follows: Step 2.1: Register the batch of challenge response pairs generated by the device via PUF and save them in the agent node; Step 2.2: In the proxy node, if the challenge response pair of the registered device is not duplicated, it is registered and the smart contract function is called to record it; if it is duplicated, the proxy node rejects the registration request on the public channel. Step 3: Register the device's identity authentication and update authentication parameters; Step 4: The agent node broadcasts a summary of the data to be sold. The specific process is as follows: Step 4.1: Before the transaction, the seller stores the data to be sold in the InterPlanetary File System (IPFS); Step 4.2: The seller sends a data sale request and data summary to the agent node, including the selling price information; at the same time, the seller pays a deposit; Step 4.3: After the deposit is paid, the proxy node adds the seller to the seller list by calling a function; then the proxy node broadcasts detailed description information to other nodes in the blockchain; Step 4.4: If no node questions the data, the data is allowed to be traded and the relevant information of the data is recorded on the blockchain; Step 5: The data arbitration center completes the similarity detection of the data to be sold and sends the results back to the smart contract. The specific process is as follows: Step 5.1: If a node believes that the seller has resold data, the node pays a deposit and calls the contract function to apply for arbitration; Step 5.2: The arbitration center uses the download credentials transmitted by the smart contract to download two sets of data from IPFS, namely the resale data and the source data that the node believes to be resold. Then, the optimal transportation dataset distance algorithm is used to perform similarity detection on the two sets of data. Step 5.3: If the arbitration result returned by the arbitration center to the smart contract is that the data is similar, the seller's deposit will be transferred to the address of the node that initiated the arbitration. If the arbitration result returned is that the data is not similar, the deposit of the node that initiated the arbitration will be forfeited and distributed to the entities participating in the arbitration in a certain proportion. Step 6: Transfer of buyer's payment and download voucher; Step 7: The buyer completes the evaluation of the data transaction. All transaction evaluations are calculated through comprehensive weighting and recorded in the blockchain accounts of the buyer and seller.
2. The data transaction method based on IoT blockchain and PUF according to claim 1, characterized in that, Step 3 is as follows: Step 3.1: After registration, the authentication device sends its pseudo-identity, masked random number, and authentication parameters to the proxy node; Step 3.2: After receiving the information sent in Step 3.1, the proxy node generates a timestamp and a random number, selects a pair of pre-stored challenge response pairs to construct temporary transmission parameters B2, sets a session key, and transmits the timestamp, random number, and temporary transmission parameters B2 to the authentication device using the key encryption. Step 3.3: After receiving the information sent in step 3.2, the authentication device generates a timestamp, calculates the difference between the timestamp generated by the authentication device and the timestamp generated by the proxy node, and verifies the validity of the message by the difference; The device restores the integrity of the session key detection information, then uses a pseudo-random generator and PUF for iterative calculation, updates the authentication parameters, and sends them to the proxy node in encrypted form. Step 3.4: After receiving the information sent in Step 3.3, the proxy node generates a timestamp, recovers and verifies the authentication parameters locally, and generates a polynomial point and an iterated challenge-response pair after confirming that there are no errors. The polynomial point and the iterated challenge-response pair are combined into new information, stored and sent to the authentication device. Step 3.5: The authentication device receives the information sent in step 3.4 and repeats the verification process in step 3.3, storing the new information received locally.
3. The data transaction method based on IoT blockchain and PUF according to claim 2, characterized in that, Step 6 is as follows: Step 6.1: The buyer sends a purchase data request to the smart contract and calls the function to make the payment; Step 6.2: After receiving the purchase request, the smart contract first checks whether the buyer's payment amount is equal to the data price. If it is equal and the payment is made correctly, the smart contract encrypts the data download certificate with the buyer's public key and sends it to the buyer. If they are not equal, the smart contract rejects the buyer's purchase request and rolls back the transaction.
4. A data transaction method based on IoT blockchain and PUF according to any one of claims 1 to 3, characterized in that, The specific process for the comprehensive weighted calculation of the transaction evaluation mentioned in step 7 is as follows: Step 7.1: Determine the evaluation indicators and comment set for the data: The evaluation indicators are divided into three primary indicators: data quality, data size, and data usability. Each primary indicator contains several secondary indicators. The comment set is divided into excellent, good, satisfactory, and unsatisfactory according to the corresponding scores. Step 7.2: Establish a fuzzy matrix for transaction evaluation using m evaluation objects and n evaluation indicators. ; Step 7.3: Normalize the fuzzy matrix This completes the normalization process for each secondary indicator; Step 7.4: Calculate the information entropy of each normalized secondary indicator, and determine the weight of the j-th indicator based on the information entropy. ; Step 7.5: Based on the weight of each indicator The fuzzy comprehensive evaluation algorithm is used to derive a comprehensive evaluation of the seller's data. ; Step 7.6: W pre It's the weight of the buyer's previous review, W. now This is the buyer's current rating weight, and the next rating weight W. next The calculation method is as follows: Complete the comprehensive weighted calculation of transaction evaluation.
Citation Information
Patent Citations
Picture-response protocol based on physically unclonable function
CN116235466A
Physical unclonable function storing response values on blockchain
CN116349201A
