A Blockchain Data Transmission Method and System Based on Keyless Signatures
The aggregation of the plaintext data through the trusted sensor component and the aggregation server, combined with the hierarchical aggregation of blockchain nodes, solves the problem of excessive data storage in the blockchain system, realizes the authenticity and validity verification of the data, and reduces storage requirements.
Patent Information
- Application Number
- CN202211427186.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-15
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2042-11-15
AI Technical Summary
While ensuring the authenticity and effectiveness of data, the existing technology has led to excessive use of data storage resources in the blockchain system.
The plaintext data is aggregated through the trusted sensor component and the aggregation server, and the blockchain nodes are layered together to store the root node information of the hash calendar, and the authenticity and validity verification of the data are achieved using the immutability of the hash calendar and the integrity verification characteristics of the upper layer for the lower layer data.
It reduces the data storage needs of blockchain systems, while ensuring the authenticity and validity of data, and can perform recursive verification of nodes at each layer of the hash calendar to ensure the authenticity and effectiveness of the digest hash value.
Smart Images

Figure CN115694811B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of blockchain, and particularly to a blockchain data transmission method and system based on keyless signature. Background Art
[0002] Blockchain technology has been widely used nowadays. For blockchain technology, how to ensure the authenticity and validity of data sources is a continuously popular research topic. Existing technologies generally calculate hash values for each piece of data to verify the data, but this leads to the need to store hash values corresponding to the number of data pieces in the blockchain, thus occupying more resources. How to reduce the data storage of the blockchain system while ensuring the authenticity and validity of the data is the problem to be solved currently. Summary of the Invention
[0003] The technical problem to be solved by the present invention is: to provide a blockchain data transmission method and system based on keyless signature, which can reduce the data storage of the blockchain system while ensuring the authenticity and validity of the data.
[0004] To solve the above technical problem, the technical solution adopted by the present invention is:
[0005] A blockchain data transmission method based on keyless signature, comprising the steps of:
[0006] S1. The trusted sensor component receives the plaintext data collected and transmitted by the sensor at a preset time interval as a cycle, calculates the digest of the plaintext data within the cycle, and obtains a digest hash value;
[0007] S2. The trusted sensor component aggregates the digest hash values, uploads the current globally aggregated hash tree information to the aggregation server for hierarchical aggregation, and the blockchain node performs the aggregation calculation of the topmost node in the hierarchical aggregation to obtain and store the root node information of the global hash calendar.
[0008] To solve the above technical problem, another technical solution adopted by the present invention is:
[0009] A blockchain data transmission system based on keyless signature, comprising a trusted sensor component, where the trusted sensor component includes a first processor, a first memory, and a first computer program stored in the first memory and executable on the first processor. When the first processor executes the first computer program, the following steps are implemented:
[0010] S1. Receive the plaintext data collected and transmitted by the sensor at a preset time interval as a cycle, calculate the digest of the plaintext data within the cycle, and obtain a digest hash value;
[0011] S2. Aggregate the said digest hash values, and upload the currently aggregated global hash tree information to the aggregation server for hierarchical aggregation. The blockchain node performs the aggregation calculation for the topmost node in the hierarchical aggregation to obtain and store the root node information of the hash calendar.
[0012] The beneficial effects of the present invention are as follows: A blockchain data transmission method and system based on key - less signature of the present invention aggregates the digest hash values via a trusted sensor component and an aggregation server, and the blockchain node completes the top - most aggregation to obtain the hash calendar of the digest hash values and stores its root node information. Since the data of the hash calendar cannot be changed once aggregated, it ensures the authenticity and validity of the data. Moreover, the hash calendar has the characteristic of upper - layer verification of the integrity of lower - layer data. Therefore, based on the root node information stored at the top - most layer of the blockchain, it is possible to recursively verify each layer node of the hash calendar to ensure the authenticity and validity of the digest hash values therein, and the plaintext data can be verified based on the digest hash values. At the same time, only the root node information of the hash calendar needs to be stored on the blockchain, effectively reducing the data storage of the blockchain system. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 It is a flowchart of a blockchain data transmission method based on key - less signature according to an embodiment of the present invention;
[0014] Figure 2 It is a structural diagram of a blockchain data transmission system based on key - less signature according to an embodiment of the present invention;
[0015] Figure 3 It is an example diagram of the data aggregation process of the trusted sensor component in a blockchain data transmission method based on key - less signature according to an embodiment of the present invention;
[0016] Figure 4 It is an example diagram of the aggregation process of the aggregation server in a blockchain data transmission method based on key - less signature according to an embodiment of the present invention;
[0017] Reference Numeral Explanation:
[0018] 1. A blockchain data transmission system based on key - less signature; 2. Trusted sensor component; 3. First processor; 4. First memory; 5. Aggregation server; 6. Third processor; 7. Third memory; 8. Blockchain node. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0019] To describe in detail the technical content, achieved objectives and effects of the present invention, the following is described in conjunction with the embodiments and accompanied by the drawings.
[0020] Hash Calendar: A one-way growing hash tree. Every second (UTC time), a new hash tree will be aggregated to the existing hash tree on the left to generate a new highest hash value. In the hash calendar, requests cannot be added to the already aggregated hash tree, thus ensuring the one-way property and anti-collision property of the hash tree in the hash calendar and the security of backtracking.
[0021] Please refer to Figure 1 、 Figure 3 and Figure 4 , a blockchain data transmission method based on key-less signature, including the steps:
[0022] S1. The trusted sensor component receives the plaintext data collected and transmitted by the sensor with a preset duration as a cycle, calculates the digest of the plaintext data within the cycle to obtain a digest hash value;
[0023] S2. The trusted sensor component aggregates the digest hash values and uploads the current globally aggregated hash tree information to the aggregation server for hierarchical aggregation. The blockchain node performs the aggregation calculation of the topmost node in the hierarchical aggregation to obtain and store the root node information of the global hash calendar.
[0024] From the above description, the beneficial effects of the present invention are as follows: A blockchain data transmission method and system based on key-less signature of the present invention aggregates the digest hash values through the trusted sensor component and the aggregation server, and the blockchain node completes the topmost aggregation to obtain the hash calendar of the digest hash value and stores its root node information; Since the data in the hash calendar cannot be changed once aggregated, the authenticity and validity of the data are guaranteed, and the hash calendar has the characteristic of upper-layer verification of the integrity of lower-layer data. Therefore, based on the root node information stored at the topmost layer of the blockchain, the nodes of each layer of the hash calendar can be recursively verified to ensure the authenticity and validity of the digest hash values therein, and the plaintext data can be verified based on the digest hash values. At the same time, only the root node information of the hash calendar needs to be stored on the blockchain, effectively reducing the data storage of the blockchain system.
[0025] Further, the step S2 includes the steps:
[0026] S21. The trusted sensor component performs aggregation calculation according to the digest hash values to generate a global first hash calendar and sends an aggregation request to the aggregation server;
[0027] S22. The aggregation server performs hierarchical aggregation and storage on the first hash calendar information uploaded by each trusted sensor component, and uploads it to the blockchain node for the aggregation calculation of the topmost node in the hierarchical aggregation to obtain a global second hash calendar and stores its root node information.
[0028] As described above, the trusted sensor components aggregate to generate the first hash calendar. The aggregation server aggregates the first hash calendars uploaded by each trusted sensor, and the blockchain node performs the aggregation calculation of the topmost node in the hierarchical aggregation to obtain the second hash calendar, and stores the root node in the blockchain.
[0029] Further, the step S21 includes the steps of:
[0030] 211. In the first cycle, the trusted sensor components create a global first hash calendar according to the digest hash value, and in each subsequent cycle, aggregate the digest hash value with the root node of the stored first hash calendar to generate a new root node and obtain a new first hash calendar;
[0031] 212. The trusted sensor components send an aggregation request to the aggregation server.
[0032] As described above, in the first cycle, since there is no already created global hash calendar, the trusted sensor needs to create a new hash calendar, and the data in each subsequent cycle is aggregated with the root node of the existing hash calendar to generate a new hash calendar and root node.
[0033] Further, a smart contract is configured on the blockchain node, and the aggregation calculation of the topmost node is completed by the smart contract.
[0034] As described above, a smart contract is configured on the blockchain node for the aggregation calculation of the topmost node.
[0035] Please refer to Figure 2 , a blockchain data transmission system based on key-less signature, includes trusted sensor components. The trusted sensor components include a first processor, a first memory, and a first computer program stored in the first memory and executable on the first processor. When the first processor executes the first computer program, the following steps are implemented:
[0036] S1. Taking a preset duration as a cycle, receiving the plaintext data collected and transmitted by the sensor, performing digest calculation on the plaintext data within the cycle to obtain a digest hash value;
[0037] S2. Aggregating the digest hash value, uploading the current aggregated global hash tree information to the aggregation server for hierarchical aggregation, and the blockchain node performs the aggregation calculation of the topmost node in the hierarchical aggregation to obtain and store the root node information of the hash calendar.
[0038] As can be seen from the above description, the beneficial effects of the present invention are as follows: A blockchain data transmission method and system based on keyless signature of the present invention aggregates the digest hash values via a trusted sensor component and an aggregation server, and the blockchain node completes the top-level aggregation to obtain a hash calendar of the digest hash values and stores the root node information thereof; since the data of the hash calendar cannot be changed once aggregated, the authenticity and validity of the data are guaranteed, and the hash calendar has the characteristic of upper-layer verification of the integrity of lower-layer data. Therefore, based on the top-level root node information stored in the blockchain, recursive verification can be performed on each layer node of the hash calendar to ensure the authenticity and validity of the digest hash values therein, and the plaintext data can be verified based on the digest hash values. At the same time, only the root node information of the hash calendar needs to be stored on the blockchain, effectively reducing the data storage of the blockchain system.
[0039] Further, it further includes an aggregation server. The aggregation server includes a second processor, a second memory, and a second computer program stored in the second memory and executable on the second processor. When the first processor executes the first computer program, step S2 includes the steps:
[0040] S21. According to the digest hash value, perform aggregation calculation to generate a global first hash calendar, and send an aggregation request to the aggregation server;
[0041] When the second processor executes the second computer program, step S2 includes the steps:
[0042] S22. Perform hierarchical aggregation on the first hash calendars uploaded by each of the trusted sensor components, and then upload them to the blockchain node for aggregation calculation of the top-level node in the hierarchical aggregation to obtain a second hash calendar.
[0043] As can be seen from the above description, the trusted sensor component aggregates to generate a first hash calendar, the aggregation server aggregates the first hash calendars uploaded by each trusted sensor, and the blockchain node performs aggregation calculation on the top-level node in the hierarchical aggregation to obtain a second hash calendar, and stores the root node in the blockchain.
[0044] When the first processor executes the first computer program, step S21 includes the steps:
[0045] 211. In the first cycle, create a global first hash calendar according to the digest hash value, and in each subsequent cycle, aggregate the digest hash value with the root node of the stored first hash calendar to generate a new root node and obtain a new first hash calendar;
[0046] 212. Send an aggregation request to the aggregation server.
[0047] As described above, in the first cycle, since there is no globally created hash calendar for the trusted sensor, a new hash calendar needs to be created. Subsequently, the data in each subsequent cycle is aggregated with the root node of the existing hash calendar to generate a new hash calendar and root node.
[0048] Furthermore, a smart contract is configured on the blockchain node, and the aggregation calculation of the topmost node is completed by the smart contract.
[0049] As described above, a smart contract is configured on the blockchain node for the aggregation calculation of the topmost node.
[0050] A blockchain data transmission method and system based on keyless signature of the present invention are applicable to the data transmission of the blockchain.
[0051] Please refer to Figure 1 、 Figure 3 and Figure 4 , the first embodiment of the present invention is:
[0052] A blockchain data transmission method based on keyless signature, comprising the steps of:
[0053] S1. The trusted sensor component takes a preset duration as a cycle, receives the plaintext data collected and transmitted by the sensor, and performs a digest calculation on the plaintext data within the cycle to obtain a digest hash value.
[0054] In this embodiment, the cycle time is set to T. After the sensor collects data, it transmits the data to the trusted sensor component TM in the form of plaintext data {M1, M2, M3,..., M n} through the bus. TM calculates the digest of the plaintext data to obtain the digest hash value {m1, m2, m3,..., m n}.
[0055] Among them, m i = h(M i ), (i = 1, 2,..., n), and h() is a hash function.
[0056] S2. The trusted sensor component aggregates the digest hash values and uploads the currently aggregated global hash tree information to the aggregation server for hierarchical aggregation. The blockchain node performs the aggregation calculation of the topmost node in the hierarchical aggregation to obtain and store the root node information of the global hash calendar;
[0057] The step S2 includes the steps of:
[0058] S21. The trusted sensor component performs an aggregation calculation based on the digest hash values to generate a global first hash calendar, and sends an aggregation request to the aggregation server;
[0059] The step S21 includes the steps of:
[0060] 211. In the first cycle, the trusted sensor component creates a global first hash calendar according to the digest hash value, and in each subsequent cycle, aggregates the digest hash value with the root node of the stored first hash calendar to generate a new root node, obtaining a new first hash calendar;
[0061] 212. The trusted sensor component sends an aggregation request to the aggregation server;
[0062] S22. The aggregation server performs hierarchical aggregation and storage on the first hash calendar information uploaded by each trusted sensor component, and uploads it to the blockchain node for aggregation calculation of the topmost node in the hierarchical aggregation, obtaining a global second hash calendar, and storing the root node information thereof.
[0063] An intelligent contract is configured on the blockchain node, and the aggregation calculation of the topmost node is completed by the intelligent contract.
[0064] In this embodiment, in the first time cycle, after receiving the plaintext data, the trusted sensor component creates a global temporary hash tree hash tree (in the structure of a hash calendar) according to the digest hash value.
[0065] In each subsequent cycle, after aggregating the data signature with the root node of the current hash tree, the trusted sensor component TM will send a request to the aggregation server. The aggregation process is as Figure 3 shown, where M represents the plaintext data, m i =h(M), top i represents the newly aggregated root hash within time T, and T represents the set time cycle for data upload.
[0066] In this embodiment, the request content includes <ID,M,top n ,St,top n-1 >, where ID is the identity of the component, St is the timestamp, top n is the root (hash tree root) of the temporary hash tree created for this round of aggregation, top n-1 is the root of the temporary hash tree after the previous round of aggregation. If the current aggregation is the first round, then top n-1 is null.
[0067] The number of aggregation servers is multiple. These multiple aggregation servers perform hierarchical aggregation calculation on the temporary hash tree, and the aggregation calculation calculates the aggregation result according to the top-level hash algorithm of the hash calendar. The aggregation process can be referred to Figure 4As shown in the figure. Among them, hr1 - hr4 represent the temporary hash trees generated by node a (a certain trusted sensor component), and hr'1 - hr'4 represent the temporary hash trees generated by node b. t, t + 1, t + 2 represent different cycle times, where t is the t-th cycle, t + 1 is the next cycle of the t-th cycle, and so on. At the same time, the core cluster of the aggregation server is deployed in the blockchain server (blockchain node). The smart contract completes the top-level aggregation calculation and publishes the root of the hash calendar to the blockchain endorsement. The blockchain node, as the core aggregation layer (the top-level aggregation, the executor of the last aggregation within the current large cycle), aggregates the roots of the temporary hash trees uploaded by other nodes to the right end of the left hash tree to generate a new global hash tree. The root of this new global hash tree will be recorded on the blockchain.
[0068] In this embodiment, the blockchain node at the top of the aggregation stores the complete data (including the original data and the complete hash calendar). The hash calendar has the characteristic of verifying the integrity of the upper-layer data by the lower layer. According to this characteristic, the blockchain node can verify the digest hash values of each layer of the hash calendar and the corresponding plaintext data.
[0069] For example, when the blockchain wants to verify whether the sensor data is complete, it hashes the plaintext data (i.e., performs digest calculation) m i ' = h(M i ),(i = 1, 2,..., n) to obtain the digest hash value m i '. Then, it performs the first aggregation on the digest hash value to obtain top1'. It compares top1' with top1 in the hash calendar. If they are the same, the verification passes; if they are different, the verification fails, and there is a risk that the data has been tampered with. Subsequently, it can be aggregated layer by layer upwards and compared to complete the verification of the data.
[0070] In specific use, the blockchain can store the verified plaintext data and the hash calendar according to requirements.
[0071] Please refer to Figure 2 , Embodiment 2 of the present invention is:
[0072] A blockchain data transmission system 1 based on keyless signature includes a trusted sensor component 2 and a preset number of aggregation servers 5. The trusted sensor component includes a first processor 3, a first memory 4, and a computer program stored in the first memory 4 and executable on the first processor 3. The aggregation server 5 includes a second processor 6, a second memory 7, and a second computer program stored in the second memory 7 and executable on the second processor 6. When the first processor 3 executes the first computer program and when the second processor 6 executes the second computer program, they jointly implement the steps in a blockchain data transmission method based on keyless signature in the first embodiment above.
[0073] In summary, for the blockchain data transmission method and system provided by the present invention, the summary hash values are aggregated by the trusted sensor component and the aggregation server, and the top-level aggregation is completed by the blockchain node to obtain the hash calendar of the summary hash values, and the root node information thereof is stored; since the data of the hash calendar cannot be changed once aggregated, the authenticity and validity of the data are guaranteed, and the hash calendar has the characteristic of integrity verification of the upper-layer data by the lower-layer data. Therefore, based on the top-level root node information stored in the blockchain, the nodes of each layer of the hash calendar can be recursively verified to ensure the authenticity and validity of the summary hash values therein, and the plaintext data can be verified based on the summary hash values. At the same time, only the root node information of the hash calendar needs to be stored on the blockchain, effectively reducing the data storage of the blockchain system.
[0074] The above are only the embodiments of the present invention, and do not limit the patent scope of the present invention accordingly. Any equivalent transformation made by using the content of the specification and drawings of the present invention, or directly or indirectly applied in the related technical fields, shall be similarly included in the patent protection scope of the present invention.
Claims
1. A blockchain data transmission method based on keyless signature, characterized in that, Including the steps: S1. The trusted sensor component receives the plaintext data collected and transmitted by the sensor with a preset duration as a cycle, calculates the digest of the plaintext data within the cycle, and obtains the digest hash value. S2. The trusted sensor component aggregates the digest hash values, uploads the currently aggregated global hash tree information to the aggregation server for hierarchical aggregation, and the blockchain node performs the aggregation calculation of the topmost node in the hierarchical aggregation to obtain and store the root node information of the hash calendar. The step S2 includes the steps: S21. The trusted sensor component performs aggregation calculation according to the digest hash value to generate a global first hash calendar, and sends an aggregation request to the aggregation server. S22. The aggregation server performs hierarchical aggregation and storage on the first hash calendar information uploaded by each trusted sensor component, uploads it to the blockchain node for the aggregation calculation of the topmost node in the hierarchical aggregation to obtain a global second hash calendar, and stores its root node information.
2. The blockchain data transmission method based on keyless signature according to claim 1, wherein The step S21 includes the steps:
211. In the first cycle, the trusted sensor component creates a global first hash calendar according to the digest hash value, and in each subsequent cycle, aggregates the digest hash value with the root node of the stored first hash calendar to generate a new root node and obtain a new first hash calendar.
212. The trusted sensor component sends an aggregation request to the aggregation server.
3. A blockchain data transmission method based on keyless signature according to claim 1, characterized in that, The blockchain node is configured with a smart contract, and the aggregation calculation of the topmost node is completed by the smart contract.
4. A blockchain data transmission system based on keyless signature, comprising a trusted sensor component, the trusted sensor component including a first processor, a first memory, and a first computer program stored in the first memory and executable on the first processor, characterized in that, When the first processor executes the first computer program, the following steps are implemented: S1. With a preset duration as a cycle, receive the plaintext data collected and transmitted by the sensor, calculate the digest of the plaintext data within the cycle, and obtain the digest hash value. S2. Aggregate the digest hash values, upload the currently aggregated global hash tree information to the aggregation server for hierarchical aggregation, and the blockchain node performs the aggregation calculation of the topmost node in the hierarchical aggregation to obtain and store the root node information of the hash calendar. The step S2 includes the steps: S21. The trusted sensor component performs aggregation calculation according to the digest hash value to generate a global first hash calendar, and sends an aggregation request to the aggregation server. It further includes an aggregation server, which includes a second processor, a second memory, and a second computer program stored in the second memory and operable on the second processor. When the second processor executes the second computer program, the step S2 includes the steps: S22. Perform hierarchical aggregation on the first hash calendars uploaded by each trusted sensor component, and then upload it to the blockchain node for the aggregation calculation of the topmost node in the hierarchical aggregation to obtain a second hash calendar.
5. A blockchain data transmission system based on keyless signature according to claim 4, characterized in that When the first processor executes the first computer program, the step S21 includes the steps:
211. In the first cycle, create a global first hash calendar according to the digest hash value, and in each subsequent cycle, aggregate the digest hash value with the root node of the stored first hash calendar to generate a new root node and obtain a new first hash calendar.
212. Send an aggregation request to the aggregation server.
6. A blockchain data transmission system based on keyless signature according to claim 4, characterized in that, A smart contract is configured on the blockchain node, and the aggregation calculation of the topmost node is completed by the smart contract.
Citation Information
Patent Citations
Method and system for providing primitiveness and integrity proof for multimedia data
CN110830259A