Internet of things tariff rule making method, device, equipment and medium
By introducing a multi-party consensus mechanism and smart contracts into the blockchain network, the lack of transparency and credibility of IoT pricing rules has been solved, achieving transparency and credibility of pricing rules, improving billing processing efficiency and protecting privacy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-15
- Publication Date
- 2026-04-14
AI Technical Summary
The pricing rules for the Internet of Things (IoT) are unilaterally set by telecom operators, lacking transparency and credibility. In the event of billing disputes, the centralized system logs are easily tampered with, making it impossible for customers to effectively supervise and verify.
In the blockchain network, the consensus mechanism among operators, enterprise customers and regulatory nodes enables the multi-party consensus formulation and immutable public disclosure of tariff rules. Smart contracts are used to execute billing logic, generate billing results, and combine zero-knowledge proofs for audit verification.
It has made IoT pricing rules transparent and trustworthy, improved the transparency and credibility of rule making, increased billing processing efficiency, reduced operating costs, and ensured the immutability and privacy protection of the billing process.
Smart Images

Figure CN121864508A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of information technology and blockchain application technology, and in particular to a method, apparatus, device and medium for formulating IoT tariff rules based on blockchain. Background Technology
[0002] Currently, Internet of Things (IoT) pricing rules are typically formulated, maintained, and deployed unilaterally by telecom operators within their centralized billing systems. This model presents significant transparency and credibility issues: enterprise customers (such as automakers, meter manufacturers, and shared equipment operators) cannot participate in the rule-making process and lack effective channels for monitoring and verifying rule modifications, billing logic, and data accuracy. When billing disputes arise, customers usually rely solely on backend logs provided by the operator for auditing; however, centralized system logs are susceptible to unilateral tampering, making audit results unreliable. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to provide a method, apparatus, device and medium for formulating Internet of Things (IoT) tariff rules, so as to achieve transparency and credibility in the IoT tariff rule formulating process.
[0004] In a first aspect, the present invention provides a method for formulating IoT tariff rules, applied to a blockchain network containing multiple consensus nodes, wherein the consensus nodes include at least operator nodes, enterprise customer nodes, and regulatory nodes, including: In response to the tariff rule proposal request from the operator node, the target tariff rule is stored in the blockchain network; Based on the consensus mechanism of the blockchain network, each consensus node makes a consensus decision on the target tariff rule and marks it as an effective rule after reaching a consensus; In response to a billing event from an IoT device, a smart contract deployed on the blockchain network is invoked to execute billing logic based on the effective rules and generate a billing result.
[0005] Secondly, the present invention also provides an IoT tariff rule-making device, applied to a blockchain network containing multiple consensus nodes, wherein the consensus nodes include at least operator nodes, enterprise customer nodes, and regulatory nodes, including: The rule proposal module is used to respond to the tariff rule proposal request from the operator node and store the target tariff rule in the blockchain network; The consensus decision module is used to make consensus decisions on the target tariff rules based on the consensus mechanism of the blockchain network, and mark them as effective rules after reaching a consensus. The rule execution module is used to respond to billing events of IoT devices, call the smart contract deployed on the blockchain network to execute billing logic based on the effective rules, and generate billing results.
[0006] Thirdly, the present invention also provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-mentioned method for formulating Internet of Things (IoT) tariff rules.
[0007] Fourthly, the present invention also provides a storage medium storing a computer program, the computer program including program instructions, which, when executed by a processor, can implement the above-mentioned method for formulating IoT tariff rules.
[0008] Compared with existing technologies, this invention solidifies the proposal and decision-making process of tariff rules on an immutable blockchain, achieving full-process traceability, establishing a foundation of trust among operators, enterprise customers, and regulators, and improving the transparency and credibility of rule-making. Furthermore, based on the consensus mechanism of the blockchain network, consensus decisions and rule effectiveness determination are executed, enabling online dynamic adjustment of rules. It also possesses democratic decision-making capabilities and can automatically execute the billing logic of effective rules in response to billing events, improving the efficiency of rule changes and billing processing, and reducing operating costs. Therefore, this invention's IoT tariff rule-making method achieves multi-party consensus-based tariff rule formulation and immutable public disclosure through blockchain smart contracts, establishing a three-party alliance chain among operators, enterprise customers, and regulators. This enables on-chain consensus-based tariff rule formulation, on-chain public disclosure, and on-chain traceability, thereby achieving transparency and credibility in the IoT tariff rule-making process. Attached Figure Description
[0009] Figure 1 A flowchart illustrating an embodiment of the IoT tariff rule formulation method provided by the present invention; Figure 2 For the present invention Figure 1 The diagram shows the specific process flow of S10 in the IoT tariff rule formulation method. Figure 3 For the present invention Figure 1 The diagram shows the specific process flow of S20 in the IoT tariff rule formulation method. Figure 4 For the present invention Figure 1 The diagram shows the specific process flow of S30 in the IoT tariff rule formulation method. Figure 5 A schematic block diagram of an IoT tariff rule formulation device provided in an embodiment of the present invention; Figure 6 A schematic block diagram of a computer device provided for an embodiment of the present invention. Detailed Implementation
[0010] To enable those skilled in the art to more clearly understand the purpose, technical solution, and advantages of the present invention, the present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0011] The IoT tariff rule formulation method of the present invention can run on a consortium blockchain network, the blockchain network includes multiple consensus nodes, and the consensus nodes include at least the operator node as the rule initiator, one or more enterprise customer nodes, and regulatory node (such as the Ministry of Industry and Information Technology / Communications Administration Bureau).
[0012] Reference Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the IoT tariff rule formulation method provided by the present invention. As shown in the figure, the method includes the following steps S10-S50: S10. In response to the tariff rule proposal request from the operator node, the target tariff rule is stored in the blockchain network.
[0013] In this step, the operator node initiates a tariff rule proposal request to generate a new target tariff rule (e.g., a billing policy file in JSON format). The tariff rule proposal request can be a change to the existing on-chain tariff rule or a new tariff rule can be added.
[0014] like Figure 2 As shown, storing the target tariff rules in the blockchain network in step S10 specifically includes the following steps S11-S12: S11. Obtain the rule content of the target tariff rule; S12. Store the hash value of the rule content in the blockchain network, and store the rule content in an off-chain storage system.
[0015] For steps S11-S12 above, in order to protect privacy and save on-chain storage space, the rule content is stored in off-chain trusted storage (such as an off-chain distributed storage system) to obtain its hash value. Subsequently, the operator node calls the rule proposal smart contract deployed on the blockchain to encrypt parameters such as hash value, proposer identifier, and effective conditions (such as effective time or block height) and write them into the contract. The contract generates a unique rule proposal record and stores it on the chain. That is, only the hash value is stored on the chain, and the rule content is stored off-chain, realizing content addressing and immutability.
[0016] The rules can include core parameters of the tariff rules (such as threshold, unit price, discount rate, billing unit, etc.), rule effective time, rule expiration time, and operator public key / identity identifier used to identify the rule proposer and prevent forgery.
[0017] S20. Based on the consensus mechanism of the blockchain network, each consensus node makes a consensus decision on the target tariff rule and marks it as an effective rule after reaching a consensus.
[0018] In this invention, after the rule proposal is publicly recorded on the blockchain, it enters the consensus decision-making stage. According to the preset consensus mechanism, each consensus node (such as enterprise customer nodes and regulatory nodes) votes on the target tariff rules of the proposal.
[0019] Specifically, such as Figure 3 As shown, step S20 includes the following steps S21-S22: S21. Based on the voting consensus mechanism determined by the pre-set rights allocation scheme of each consensus node in the blockchain network, the target tariff rule is voted on.
[0020] In this step, enterprise customer nodes and regulatory nodes can access the rules stored off-chain for review and analysis. On-chain, each node can invoke the multi-party voting contract and use its private key to sign and vote on the target pricing rules.
[0021] In this embodiment, the consensus mechanism is a voting mechanism based on proof of stake, and the voting weight of each consensus node can be associated with the business interests it represents. That is, the preset interest allocation scheme is to pre-allocate the voting weight of each consensus node according to the business interests it represents.
[0022] Furthermore, regulatory nodes can be granted special permissions, such as veto power or expedited approval rights. During voting, the smart contract checks whether the regulatory node has cast a dissenting vote. If the regulator exercises its veto power, the consensus is deemed invalid regardless of the voting results of other nodes.
[0023] S22. When the cumulative weight of the affirmative votes reaches or exceeds the preset threshold, mark it as an effective rule.
[0024] In this embodiment, the preset threshold is a specific percentage threshold of the total weight of all voting consensus nodes. Therefore, when the total weight of the affirmative votes exceeds this specific percentage threshold within the agreed voting window, it is marked as an effective rule. For example, when (the number of affirmative votes from enterprise customer nodes + regulatory nodes) ≥ 2 / 3 (the total number of votes from all consensus nodes), consensus is considered passed. Understandably, the consensus process and results are fully recorded on the blockchain. Once consensus is reached, the smart contract will automatically update the status, marking the target pricing rule as an effective rule for subsequent billing. If consensus fails, the status of the target pricing rule will be updated to rejected.
[0025] Based on the above steps S21-S22, the entire process of multi-party voting, weight calculation, threshold determination and state marking is automatically implemented on the blockchain, ensuring the immutability, non-repudiation and efficient execution of the consensus process.
[0026] S30. In response to a billing event of an IoT device, a smart contract deployed on the blockchain network is invoked to execute the billing logic based on the effective rules and generate a billing result.
[0027] Specifically, such as Figure 4 As shown, step S30 includes the following steps S31-S32: S31. In response to a billing event from an IoT device, obtain an anonymous usage credential.
[0028] In this step, the anonymization of credentials is preferably achieved using zero-knowledge proofs.
[0029] S32. Invoke the smart contract deployed on the blockchain network to verify and calculate the anonymized usage certificate based on the currently effective fee rules, and generate a billing result.
[0030] In this step, the smart contract is a zero-knowledge proof verification contract, which is configured to: verify whether there is original usage data corresponding to the anonymized usage certificate, so that after calculation according to the tariff rule logic corresponding to the tariff rule identifier, the specific billing result can be obtained.
[0031] In this embodiment, a zero-knowledge proof verification contract deployed on the blockchain network is invoked to verify the validity of the zero-knowledge proof, and the verified zero-knowledge proof is calculated based on the effective fee rules to generate a billing result.
[0032] Regarding steps S31-S32 above, these steps are rule execution steps. After an IoT device (such as a smart car or a shared bicycle) uses the service, the associated gateway generates a zero-knowledge proof of the device's usage data. This zero-knowledge proof, along with the device's anonymous ID, is sent to the blockchain network as a billing request. In response to this billing event, the billing execution contract on the blockchain network first verifies the validity of the zero-knowledge proof, then calls the logic corresponding to the currently effective rule to perform calculations, obtains the fee, and stores it on the blockchain to ensure that the billing process is strictly consistent with the effective rule and that there is no possibility of human tampering.
[0033] Furthermore, in this invention, the complete change history of the rules (including the target tariff rule hash value, voting transaction hash, effective block height, etc.) can also be recorded in the blockchain log for each consensus node to trace and query.
[0034] Specifically, in some other embodiments, the IoT tariff rule formulation method may further include: when the target tariff rule is marked as an effective rule, generating and storing a first log record on the blockchain, the first log record containing the on-chain transaction hash that triggered the effectiveness of this target tariff rule; and / or, when the smart contract deployed on the blockchain network is invoked to execute billing logic based on the effective rule, generating and storing a second log record on the blockchain, the second log record containing the on-chain transaction hash that triggered this billing execution. It is understood that the first and second log records may also include an associated tariff rule identifier, the block height at the time of the event, and the relevant consensus node identifier.
[0035] S40. In response to an audit request for a billing result, obtain an anonymous data commitment corresponding to the billing result.
[0036] S50. Invoke the audit verification contract deployed on the blockchain network, and based on the effective rules associated with the billing result, verify whether there is logical consistency between the billing result and the anonymous data commitment, and output the audit verification result.
[0037] Specifically, in this step, an audit verification contract deployed on the blockchain network is invoked to verify whether the following logical consistency exists: The original usage data corresponding to the anonymous data commitment is calculated based on the effectiveness rules associated with the billing result, and the billing result can be obtained. If the result is obtained, the audit verification contract outputs a Boolean value representing the establishment of the logical consistency as the audit verification result, and the verification process does not disclose the original usage data corresponding to the anonymous data commitment.
[0038] In this embodiment, based on the above steps S10-S30, a zero-knowledge audit step (S40-S50) is added. If an enterprise has doubts about a certain billing result, it can initiate an audit request for that billing result. The auditor obtains the on-chain transaction ID corresponding to the fee, the associated anonymous data commitment (i.e., the commitment in the zero-knowledge proof), and the claimed billing result, and calls the on-chain audit verification contract. The anonymous data commitment, the claimed billing result, and the rule identifier are input. The contract runs the effective rule based on the rule identifier to perform billing logic verification, verifying "whether there is a set of original usage data whose commitment is equal to the provided anonymous data commitment, and the result calculated according to the effective rule is exactly equal to the claimed billing result". The contract only outputs a Boolean value of "yes" or "no" as the audit result and stores it on the chain. The entire process does not touch any original usage data, which perfectly protects user data privacy while confirming the correctness of the billing.
[0039] Preferably, in some other embodiments, the IoT tariff rule formulation method of the present invention further includes: in response to an emergency braking command from the regulatory node, the smart contract on the blockchain network suspends or rolls back the specified effective rules within a preset time. Based on this design, the regulatory node is granted special permissions for risk control; for example, in the event of a billing anomaly, the regulator can quickly apply emergency braking to prevent further losses.
[0040] In summary, this invention achieves multi-party consensus-based formulation and immutable public disclosure of pricing rules through blockchain smart contracts. It establishes a three-party alliance chain involving operators, enterprise customers, and regulators, thus solidifying the proposal and decision-making process of pricing rules on an immutable blockchain. This enables full-process traceability, establishes a foundation of trust among operators, enterprise customers, and regulators, and enhances the transparency and credibility of rule formulation. Furthermore, the consensus mechanism based on the blockchain network executes consensus decisions and rule effectiveness determination, enabling dynamic online adjustments to rules. Risk control can be implemented through regulatory nodes, combining democratic decision-making with security safeguards. It can also automatically execute the effective billing logic in response to billing events, improving the efficiency of rule changes and billing processing, reducing operating costs. Moreover, by incorporating cryptographic technologies such as zero-knowledge proofs, third parties can verify the correctness of billing without obtaining original usage data, thus solving audit privacy issues. Therefore, this invention's IoT pricing rule formulation method achieves on-chain consensus-based formulation, on-chain public disclosure, and on-chain traceability of pricing rules, thereby realizing transparency and credibility in the IoT pricing rule formulation process, while also achieving credible audit verification under privacy protection.
[0041] Reference Figure 5 , Figure 5 This is a schematic structural block diagram of an IoT tariff rule-making device according to an embodiment of the present invention. The IoT tariff rule-making device can be applied to a blockchain network containing multiple consensus nodes, wherein the consensus nodes include at least operator nodes, enterprise customer nodes, and regulatory nodes, such as... Figure 5 As shown, the IoT tariff rule-making device includes a rule proposal module 101, a consensus decision module 102, a rule execution module 103, a dynamic log update module 104, and an audit verification module 105.
[0042] The rule proposal module 101 is used to respond to the tariff rule proposal request from the operator node and store the target tariff rule in the blockchain network; The consensus decision module 102 is used to make consensus decisions on the target tariff rule based on the consensus mechanism of the blockchain network, and mark it as an effective rule after reaching a consensus. Rule execution module 103 is used to respond to billing events of IoT devices, call smart contracts deployed on the blockchain network to execute billing logic based on the effective rules, and generate billing results; The dynamic log update module 104 is used to generate and store a first log record on the blockchain when the target pricing rule is marked as an effective rule. The first log record contains the on-chain transaction hash that triggered the effective date of the target pricing rule. And / or, when the smart contract deployed on the blockchain network is called to execute the billing logic based on the effective rule, a second log record is generated and stored on the blockchain. The second log record contains the on-chain transaction hash that triggered the execution of the billing. The audit verification module 105 is used to respond to an audit request for a billing result, obtain the anonymous data commitment corresponding to the billing result, call the audit verification contract deployed on the blockchain network, verify whether there is logical consistency between the billing result and the anonymous data commitment based on the effective rules associated with the billing result, and output the audit verification result.
[0043] In some embodiments, the rule proposal module 101 is specifically used for: Obtain the rule content of the target tariff rule; The hash value of the rule content is stored in the blockchain network, and the rule content is stored in an off-chain storage system.
[0044] In some embodiments, the consensus decision module 102 is specifically used for: Based on the voting consensus mechanism determined by the pre-set rights allocation scheme of each consensus node in the blockchain network, the target tariff rules are voted on. When the cumulative weight of the votes in favor reaches or exceeds a preset threshold, it is marked as an effective rule.
[0045] In some embodiments, the rule execution module 103 is specifically used for: In response to billing events from IoT devices, obtain anonymized usage credentials; The smart contract deployed on the blockchain network is invoked to verify and calculate the anonymized usage certificate based on the currently effective pricing rules, and a billing result is generated.
[0046] In some embodiments, the rule execution module 103 is further configured to: In response to an emergency braking command from the regulatory node, the smart contracts on the blockchain network suspend or roll back the specified effective rules within a preset time.
[0047] In summary, the IoT tariff rule-making device in this embodiment achieves multi-party consensus-based tariff rule formulation and tamper-proof public disclosure through blockchain smart contracts. It establishes a three-party alliance chain among operators, enterprise customers, and regulators. The consensus mechanism design allows each consensus node to vote according to its weight, and a regulator node can be set up for risk control, enabling the system to have both democratic decision-making and security braking capabilities. Furthermore, it incorporates cryptographic technologies such as zero-knowledge proofs, allowing third parties to verify the correctness of billing without obtaining the original usage data, thus solving the audit privacy issue. It realizes on-chain consensus-based tariff rule formulation, on-chain public disclosure, and on-chain traceability, as well as credible audit verification under privacy protection, thereby achieving transparency and credibility in the IoT tariff rule formulation and audit process.
[0048] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned IoT tariff rule-making device and its modules or components can be referred to the corresponding descriptions in the foregoing method embodiments. For the sake of convenience and brevity, these details will not be repeated here.
[0049] The aforementioned IoT tariff rule-making device can be implemented as a computer program, which can, for example... Figure 6 It runs on the computer device shown. Please refer to [link / reference]. Figure 6 , Figure 6 This is a schematic block diagram of a computer device provided in an embodiment of the present invention. The computer device 500 can be a server, which can be a standalone server or a server cluster composed of multiple servers.
[0050] See Figure 6 The computer device 500 includes a processor 502, a memory, and a network interface 505 connected via a system bus 501. The memory may include a non-volatile storage medium 503 and internal memory 504.
[0051] The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions that, when executed, cause the processor 502 to perform an Internet of Things (IoT) tariff rule formulation method.
[0052] The processor 502 provides computing and control capabilities to support the operation of the entire computer device 500.
[0053] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute an Internet of Things (IoT) tariff rule formulation method.
[0054] This network interface 505 is used for network communication with other devices. Those skilled in the art will understand that... Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device 500 to which the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0055] The processor 502 is used to run a computer program 5032 stored in a memory to implement the IoT tariff rule formulation method described in the above embodiments.
[0056] It should be understood that in the embodiments of this application, the processor 502 may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0057] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program includes program instructions and can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.
[0058] Therefore, the present invention also provides a storage medium. This storage medium can be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When executed by a processor, the program instructions can implement the IoT tariff rule formulation method described in the above embodiments.
[0059] The storage medium can be any computer-readable storage medium capable of storing program code, such as a USB flash drive, portable hard drive, read-only memory (ROM), magnetic disk, or optical disk.
[0060] Those skilled in the art will recognize that the modules and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0061] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a client, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0062] Furthermore, it should be understood that the disclosed apparatus and methods can be implemented in other ways, as presented in the several embodiments provided in this invention. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each module is only a logical functional division, and there may be other division methods in actual implementation. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not executed.
[0063] It should be further noted that the descriptions of each embodiment in the above embodiments have different emphases. Parts not described in detail in a certain embodiment can be referred to in the relevant descriptions of other embodiments. For the foregoing method embodiments, for the sake of simplicity, they are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.
[0064] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for formulating IoT tariff rules, applied to a blockchain network containing multiple consensus nodes, characterized in that, The consensus nodes include at least operator nodes, enterprise customer nodes, and regulatory nodes, and the method for formulating IoT tariff rules includes: In response to the tariff rule proposal request from the operator node, the target tariff rule is stored in the blockchain network; Based on the consensus mechanism of the blockchain network, each consensus node makes a consensus decision on the target tariff rule and marks it as an effective rule after reaching a consensus; In response to a billing event from an IoT device, a smart contract deployed on the blockchain network is invoked to execute billing logic based on the effective rules and generate a billing result.
2. The method for formulating IoT tariff rules as described in claim 1, characterized in that, The step of storing the target pricing rules in the blockchain network specifically includes: Obtain the rule content of the target tariff rule; The hash value of the rule content is stored in the blockchain network, and the rule content is stored in an off-chain storage system.
3. The method for formulating IoT tariff rules as described in claim 1, characterized in that, The consensus mechanism based on the blockchain network involves each consensus node making a consensus decision on the target tariff rule and marking it as an effective rule after reaching a consensus. Specifically, this includes: Based on the voting consensus mechanism determined by the pre-set rights allocation scheme of each consensus node in the blockchain network, the target tariff rules are voted on. When the cumulative weight of the votes in favor reaches or exceeds a preset threshold, it is marked as an effective rule.
4. The method for formulating IoT tariff rules as described in claim 1, characterized in that, In response to a billing event from an IoT device, the smart contract deployed on the blockchain network is invoked to execute billing logic based on the effective rules and generate a billing result, specifically including: In response to billing events from IoT devices, obtain anonymized usage credentials; The smart contract deployed on the blockchain network is invoked to verify and calculate the anonymized usage certificate based on the currently effective pricing rules, and a billing result is generated.
5. The method for formulating IoT tariff rules as described in claim 1, characterized in that, The method for formulating IoT tariff rules also includes: When the target pricing rule is marked as an effective rule, a first log record is generated and stored on the blockchain. The first log record contains the on-chain transaction hash that triggered the effectiveness of this target pricing rule; and / or When the smart contract deployed on the blockchain network executes the billing logic based on the effective rules, a second log record is generated and stored on the blockchain. The second log record contains the on-chain transaction hash that triggered this billing execution.
6. The method for formulating IoT tariff rules as described in claim 1, characterized in that, The method for formulating IoT tariff rules also includes: In response to an audit request for a billing result, an anonymous data commitment corresponding to the billing result is obtained; an audit verification contract deployed on the blockchain network is invoked to verify whether there is logical consistency between the billing result and the anonymous data commitment based on the effective rules associated with the billing result, and the audit verification result is output.
7. The method for formulating IoT tariff rules as described in claim 1, characterized in that, The method for formulating IoT tariff rules also includes: in response to an emergency braking command from the regulatory node, the smart contract on the blockchain network suspends or rolls back the specified effective rules within a preset time.
8. An IoT tariff rule setting device, applied to a blockchain network containing multiple consensus nodes, characterized in that, The consensus nodes include at least operator nodes, enterprise customer nodes, and regulatory nodes, and the IoT tariff rule-making device includes: The rule proposal module is used to respond to the tariff rule proposal request from the operator node and store the target tariff rule in the blockchain network; The consensus decision module is used to make consensus decisions on the target tariff rules based on the consensus mechanism of the blockchain network, and mark them as effective rules after reaching a consensus. The rule execution module is used to respond to billing events of IoT devices, call the smart contract deployed on the blockchain network to execute billing logic based on the effective rules, and generate billing results.
9. A computer device, characterized in that, The computer device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, it implements the IoT tariff rule formulation method as described in any one of claims 1-7.
10. A storage medium, characterized in that, The storage medium stores a computer program, which includes program instructions that, when executed by a processor, can implement the IoT tariff rule formulation method as described in any one of claims 1-7.