Non-time-series data link construction method and system based on block chain

Through the non-time sequence data link construction method based on blockchain, problems such as data storage security, consistency, and access efficiency in the existing technology are solved, and efficient, secure and trustworthy data management is realized to meet the needs of modern data management.

CN119917562APending Publication Date: 2025-05-02成都旺小宝科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411982285.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

The existing technology has shortcomings in data storage security, data consistency, data access efficiency, transparency, permission management and data management process, and it is difficult to meet the needs of modern data management.

Method used

Using a non-time sequence data link construction method based on blockchain, an efficient, secure and trustworthy non-time sequence data processing solution is built through data acquisition, modeling and structured processing, data blocking and chaining, development and execution of smart contracts, and improved permission management mechanisms.

Benefits of technology

It improves the security, reliability and consistency of data, improves data access efficiency and management flexibility, realizes decentralized storage and processing of data, and enhances transparency and user trust.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119917562A_ABST
    Figure CN119917562A_ABST
Patent Text Reader

Abstract

The invention discloses a non-time-series data link construction method and system based on a block chain, and belongs to the technical field of block chains, and the method comprises the steps: S1, data collection, modeling and structured processing: collecting non-time-series data from different data sources, then carrying out the format conversion of the collected data, carrying out the modeling of the non-time-series data through setting a modeling rule, and carrying out the structural processing of the non-time-series data; and finally, carrying out structured processing and then storing. S2, data blocking and uplink: blocking the data, then generating and verifying a hash value, and then executing data block uplink; and S3, developing and executing the smart contract: after the data is linked, associating the smart contract, and synchronously performing the operation of the smart contract. The invention provides an efficient, safe and credible non-time-series data processing solution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and more specifically, to a method and system for constructing a non-temporal data link based on blockchain. Background Art

[0002] In today's data-driven era, the security, reliability and traceability of information have become increasingly important. As an emerging distributed ledger technology, blockchain technology provides innovative solutions for information management through its decentralization, transparency and immutability. Although blockchain was initially applied in the field of digital currency, its potential in non-time-series data management has gradually been discovered, especially in scenarios where data integrity and credibility need to be ensured.

[0003] Non-sequential data link refers to a method of storing and transmitting data that does not rely on time sequence. Unlike traditional sequential data link, this method focuses on the content and relationship of data rather than the time when the data was generated. This feature makes non-sequential data link superior in complex data structure, relational data and multidimensional data analysis.

[0004] In summary, the non-temporal data link construction method based on blockchain technology shows great potential and value in the fields of data management, storage and application, has broad application prospects and market demand, and provides a practical technical solution to the challenges facing current data management.

[0005] At present, the existing technology has the following technical problems:

[0006] (1) Poor data storage security: Traditional databases are usually based on a centralized architecture and are easily targeted by hackers. In addition, when data is leaked or tampered with, it is difficult to trace the source of the data and the change records.

[0007] (2) Data consistency is difficult to maintain: In a multi-node environment, data synchronization and consistency maintenance is a difficult point. Data between different nodes may be inconsistent, which brings difficulties in management and analysis.

[0008] (3) Low data access efficiency: Traditional database queries often rely on complex SQL query languages, and query performance will drop significantly when the data volume is large or the structure is complex.

[0009] (4) Lack of transparency: In a centralized system, users often cannot clearly understand the data processing flow and its change history, and lack the necessary transparency and traceability.

[0010] (5) Inflexible and insecure permission management: Data access often lacks flexible permission control, which may result in sensitive data being accessed or tampered with by unauthorized users.

[0011] (6) The data management process is cumbersome: The traditional non-time series data management process often requires a lot of manual intervention and complex process design, which is inefficient. Summary of the invention

[0012] The purpose of the present invention is to overcome the shortcomings of the prior art, provide a method and system for constructing a non-sequential data link based on blockchain, and provide an efficient, secure and reliable non-sequential data processing solution.

[0013] The object of the present invention is achieved through the following solutions:

[0014] A method for constructing a non-temporal data link based on blockchain, comprising the following steps:

[0015] S1, data collection, modeling and structured processing: collect non-time series data from different data sources, then convert the collected data into different formats, model the non-time series data by setting modeling rules, and finally perform structured processing and store it;

[0016] S2, data block and chain: divide the data into blocks, generate and verify hash values, and then upload the data blocks to the chain;

[0017] S3, development and execution of smart contracts: After the data is uploaded to the chain, the smart contract is associated and the smart contract operations are performed synchronously.

[0018] Furthermore, in step S1, the non-time series data is modeled by setting modeling rules, which specifically includes the following sub-steps: modeling is performed using a multi-entity and multi-relationship definition method, in which data relationships are abstracted using graph theory methods, attributes are defined using dynamic structures for data entities, and for association relationships, association relationships between attributes are described in the form of edges.

[0019] Furthermore, in step S1, the storage after structured processing specifically includes the following sub-steps: after establishing a relationship network for non-time series data using graph theory methods, the data is stored in a "node + relationship" mode through a graph database, where the node represents the data entity and the edge describes the relationship between the data.

[0020] Furthermore, in step S2, the data segmentation specifically includes the following sub-steps:

[0021] First, split the data by size, then block it by logical units. Take multiple related data in a certain type of transaction as a logical data block, label each logical data block, record metadata and block attributes, number the logical data blocks, and use block numbers to ensure the order of data blocks.

[0022] Furthermore, in step S2, the generation and verification of the hash value specifically includes the following sub-steps:

[0023] First, a hash algorithm is used to generate a unique hash value for each data block. During data transmission and storage, potential tampering operations are detected by comparing the hash values.

[0024] Then a block chain dependency structure is established, and the data of subsequent blocks are recorded incrementally based on the hash value of the previous block, and the block information is bound to the hash.

[0025] Furthermore, in step S2, the execution data block is uploaded to the chain, which specifically includes the following sub-steps:

[0026] First, choose a consensus mechanism based on network characteristics and application requirements;

[0027] Then, timestamp confirmation is performed, and a timestamp is generated each time data is written;

[0028] Then, the hash value of the newly added data block is broadcast to the network through consensus node voting, and the consensus node that reaches the set value completes the verification and writes the data;

[0029] Then, data writing and network protection are performed;

[0030] Then, using the hierarchical storage idea, when writing a data block, the block only contains the hash value and block summary information of the data block, and the main data is still stored in the hierarchical storage;

[0031] Finally, the chain integrity is verified. Network nodes rotate regularly to verify the integrity of the chain. If any block hash is detected to be inconsistent with the data in the record, it is judged as a suspicious node and isolated, otherwise it is judged to be normal.

[0032] Furthermore, in step S3, after the data is uploaded to the chain, it is associated with the smart contract and the operation of the smart contract is performed synchronously, which specifically includes the following sub-steps:

[0033] First, establish a consortium chain architecture, with full nodes storing main chain data and light nodes providing fast verification and user access services; adjust the transparency and privacy of on-chain data according to industry needs;

[0034] The smart contract then performs double authority verification based on the designed authority management mechanism to ensure compliance with the operating rules.

[0035] Furthermore, the smart contract performs dual authority verification according to the designed authority management module, which specifically includes the following sub-steps:

[0036] First, role definition and permission matching: assign each user to the corresponding role group and set permission ranges for different roles; refine the operational scope of each role through the permission table ACL, and restrict users to perform operations within the specified scope; support dynamic expansion at the same time, quickly adjust role permission configuration according to new user needs or business needs, design RBAC model according to user needs, and assign each user to the corresponding role group;

[0037] Then, implement the following two-factor authentication mechanism:

[0038] Authentication: Authentication confirms the identity of the requester based on a digital signature or encryption key. Identity authentication is completed through the user's encryption key to ensure that the access request comes from a legitimate user. When sending a request, the user signs the request content with a private key, and the system verifies the signature with a public key to ensure the authenticity and integrity of the request.

[0039] Authorization verification: Authorization verification checks the scope of user permissions and verifies the legitimacy of user requests through the permission table of the permission model, including whether the request is within the scope of permissions of the user's current role and whether the requested operation complies with the system's predefined rules and security restrictions.

[0040] Furthermore, after step S3, the following steps are also included:

[0041] Step 1: User initiates a query request: The user submits a data query request through the user interface or API interface;

[0042] Step 2, authority verification: the system calls the authority management module again to double-verify the user's identity and authority to ensure that the user has the corresponding access rights;

[0043] Step 3, data query: the smart contract performs query operations from the blockchain or related storage based on the request content;

[0044] Step 4, result return: The system processes the query results and displays them in a user-friendly format.

[0045] A blockchain-based non-temporal data link construction system includes a computer device, characterized in that a computer program is stored in the memory of the computer device, and when the computer program is loaded by the processor of the computer device, any method described above is executed.

[0046] The beneficial effects of the present invention include:

[0047] (1) The present invention constructs a safe and efficient management method for non-sequential data links in an orderly manner through five main steps: data collection, modeling and structuring, data segmentation and chaining, smart contract execution, improved permission management mechanism, and data query and access. This method not only improves the security, reliability and consistency of data, but also improves the access efficiency and management flexibility of data. It has significant technical advantages and wide application value, and is suitable for various industry scenarios that require high data security and high transparency.

[0048] (2) The present invention innovatively applies blockchain technology to the management of non-time series data, realizes data segmentation, hash verification and on-chain storage, and automatically processes data operations in combination with smart contracts to ensure data consistency, security and non-tamperability. In addition, the present invention improves the adaptability of the system through flexible data modeling and storage structure, and enhances the security and privacy protection of data access through an improved permission management mechanism. The overall solution covers the entire process from data collection to storage, processing, and query, solves multiple challenges in traditional data management, and provides an efficient, secure, and reliable non-time series data processing solution. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0050] Figure 1 The data collection and structured flow chart of the embodiment of the present invention;

[0051] Figure 2 A customer trajectory search graph according to an embodiment of the present invention;

[0052] Figure 3 This is a flowchart of smart contract execution according to an embodiment of the present invention;

[0053] Figure 4 A flowchart of data query and access according to an embodiment of the present invention;

[0054] Figure 5 This is a flowchart of the rights management of an embodiment of the present invention;

[0055] Figure 6 The figure is a flow chart of the steps of the method of the present invention. DETAILED DESCRIPTION

[0056] All features disclosed in all embodiments in this specification, or steps in all methods or processes implicitly disclosed, except for mutually exclusive features and / or steps, can be combined and / or expanded or replaced in any manner.

[0057] like Figures 1 to 6 As shown, the specific implementation process of the present invention is as follows:

[0058] In a preferred embodiment, the present invention proposes a method for constructing a non-time-series data link based on blockchain, aiming to achieve safe, reliable and efficient management of non-time-series data. The method organically combines multiple technical steps and utilizes the decentralized, tamper-proof and smart contract automation characteristics of blockchain to construct a complete non-time-series data management system. The specific steps of the method of the present invention are described in detail below.

[0059] Step 1: Data collection, modeling and structured processing. In order to achieve comprehensive management of non-time series data, it is first necessary to effectively collect and structure the data. Among them, the data collection module collects non-time series data from different data sources (such as sensors, databases, API interfaces, etc.) to ensure wide coverage of data sources and to fully acquire data of different types and sources. At the same time, the data collection module needs to have high concurrent processing capabilities to cope with the influx of large amounts of real-time data. The collected data is then converted into a unified format (such as JSON, XML) for subsequent processing. During the formatting process, the data needs to be pre-processed according to business needs, such as data cleaning, filtering and verification, to ensure data quality.

[0060] After data collection and formatting are completed, non-time series data is modeled by setting modeling rules. In view of the complexity of non-time series data, flexible modeling rules are designed to adapt to a variety of application scenarios and avoid situations that traditional time series modeling cannot effectively describe. For example, in e-commerce platforms, for manufacturers and products, assets and personnel in enterprise management, a multi-entity and multi-relationship definition method is adopted, and graph theory methods are used to abstract data relationships. Specifically, for data entities (nodes), dynamic structures are used to define attributes, such as roles (user information), settings, information, etc. For association relationships (edges), the association relationships between attributes are described in the form of edges, such as attribution relationships, transaction record relationships, etc.

[0061] After using graph theory methods to establish a relationship network for non-time series data, the data can be stored in a "node + relationship" mode through a graph database (such as Neo4j). The nodes represent data entities (such as roles, device information), improve the efficiency of read and write queries, and lay a structured foundation for subsequent processing. The edges describe the associations between data (such as ownership relationships or transaction records). In database management, the embodiment of the present invention specifically uses NoSQL tools (such as MongoDB or Cassandra) to achieve flexible writing and management of non-fixed format data, which can meet diverse data storage needs, and in the data import stage, it can analyze data characteristics in real time, such as classification analysis, correlation weight calculation, etc., to provide data foundation support for subsequent data segmentation and fast query.

[0062] Step 2: Data segmentation and chaining. After completing the modeling and structured processing of the data, the data cannot be directly operated, so there is a big bottleneck in the data performance. Therefore, the present invention conceives to process the data in blocks and then store it on the chain. Specifically, in the data segmentation processing, the following segmentation mechanism is designed: first split according to the size of the data, for example, divide the data into a data block of 1024 bytes, and then block it according to logical units. According to multiple related data in a certain type of transaction as a logical block, each data block is labeled, and metadata and block attributes are recorded, where block attributes include file source, timestamp, summary information of block content, etc. The block number is used to ensure the order of data segmentation, so as to be compatible with scenarios that require sequential operations.

[0063] After block division, hash value generation and verification are performed. A highly secure hash algorithm (such as SHA-256) is used to generate a unique hash value for each data block to ensure data integrity and immutability. During data transmission and storage, potential tampering operations are detected by comparing hash values. A block chain dependency structure is established, and the data of subsequent blocks is recorded incrementally based on the hash value of the previous block, thereby ensuring the logical dependency of the data, and binding the block information with the hash for subsequent rapid retrieval and block processing.

[0064] After the hash value is generated and verified, the data block is uploaded to the chain. First, a consensus mechanism is selected, and an appropriate consensus mechanism is selected according to the network characteristics and application requirements. The Byzantine Fault Tolerant Algorithm (PBFT) is preferred in the present invention, which can efficiently handle data writing speed and consensus accuracy in the non-sequential data management of the alliance chain.

[0065] The chain-up process executes the following process: timestamp confirmation is performed, and a timestamp is generated each time data is written to ensure the uniqueness of data timeliness; secondly, the hash value of the newly added data block is broadcast to the network through consensus node voting. Data can only be written after at least 2 / 3 of the consensus nodes have completed verification to improve anti-attack capabilities; then data is written and network protection is performed; and the hierarchical storage idea is used. When writing data blocks, the blocks only contain the hash value and block summary information of the data blocks, and the main data is still stored in the hierarchical storage (such as the database or cloud storage in the figure); finally, chain integrity verification is performed, and network nodes rotate regularly to verify the integrity of the chain. If any block hash is detected to be inconsistent with the data in the record, it is judged as a suspicious node and isolated.

[0066] Step 3: Development and execution of smart contracts. As a key component in the blockchain, smart contracts realize the automated processing of data operations. After the data is processed and uploaded to the chain, it is necessary to associate the smart contract and synchronize the operation of the smart contract. Specifically, it includes the following process: In the design of the blockchain network, the present invention is based on the alliance chain architecture and is implemented using technologies such as Hyperledger Fabric. The full node stores the main chain data to ensure complete data storage. The light node provides fast verification and user access services to improve performance.

[0067] The transparency and privacy of on-chain data are adjusted according to industry needs to support optimization of scenarios such as electronic evidence storage and security auditing. In terms of consensus mechanism selection and process, the Byzantine Fault Tolerant Algorithm (PBFT) is adopted because it can provide efficient consensus on non-time-series data in the alliance chain.

[0068] In timestamp verification, a timestamp is generated for the written data block to ensure uniqueness.

[0069] After the newly added data block hash is broadcast to the entire network using the node voting mechanism, it can be written into the chain only after verification by at least 2 / 3 of the consensus nodes.

[0070] Users submit operation requests (such as data insertion and query) through the application interface or API. The request contains key information such as operation type, data content, and user identity.

[0071] The smart contract first performs double permission verification (identity authentication and authorization verification): identity authentication confirms the identity of the requester based on a digital signature or encryption key; authorization verification checks the scope of user permissions to ensure compliance with operating rules.

[0072] Operation logic check and data processing: Check whether the request meets the conditions according to the operation type (CRUD). For example:

[0073] Insertion: Verify data structure and rules, generate new data blocks and calculate hash values.

[0074] Query: After matching the conditions, partial data that the user has permission to view is returned.

[0075] Update: locate the target data block, update the valid fields and regenerate the hash value.

[0076] Deletion: Checks whether there are associated references to ensure that deletion does not destroy the integrity of the data chain.

[0077] Result writing and feedback: After the operation is completed, the result is written to the blockchain network and the following information is fed back:

[0078] Success feedback: Contains metadata such as block ID and hash value.

[0079] Failure feedback: Provide the reason for the error (such as insufficient permissions, logical conditions not met).

[0080] Operation log and extended functions: All operation records are written into the on-chain log, including operation type, user ID, timestamp, etc., to ensure transparency and traceability.

[0081] In response to industry needs, it supports extended functions such as data expiration and destruction, full operation record traceability, and complex related queries.

[0082] In the above technical solution of the present invention, the data and smart contract are created. In order to ensure the security of the system and the compliance of the data, the present invention improves the traditional rights management mechanism, which specifically includes the following contents:

[0083] Role definition and permission matching: The system assigns each user to a specific role group (such as administrator, ordinary user or auditor) and sets permission ranges for different roles:

[0084] Administrator: Has the highest authority, including data deletion, system configuration management, and permission allocation.

[0085] User role: can only read, query or update the data managed by oneself to avoid invalid and unauthorized behavior.

[0086] Auditor: Used to audit historical operations and verify the integrity of on-chain data, but cannot change the data.

[0087] The Access Control List (ACL) is used to refine the operational scope of each role, thereby restricting users to perform operations within the specified scope and effectively preventing abuse of permissions.

[0088] Flexible matching mechanism: The permission system supports dynamic expansion, can quickly adjust role permission configuration according to new user needs or business needs, adapt to different scenario applications, design RBAC model according to user needs, and assign each user to a specific role group.

[0089] Double verification mechanism: To ensure the legitimacy and security of user access to data, the present invention adopts the following two layers of protection in permission verification:

[0090] Authentication: The system completes identity authentication through the user's encryption key (such as a public / private key pair) to ensure that the access request comes from a legitimate user.

[0091] When sending a request, the user signs the request content with a private key, and the system verifies the signature with a public key to ensure the authenticity and integrity of the request.

[0092] Authorization verification: In addition to identity authentication, the system also verifies the legitimacy of user requests through the permission table of the permission model, including: whether the request is within the scope of the user's current role; whether the requested operation complies with the system's predefined rules and security restrictions (such as update permissions are limited to specific data fields). Through a two-layer verification mechanism, the legitimacy of each user's operation is ensured, while being able to resist malicious behavior (such as impersonation or forged requests).

[0093] Secure data transmission: PGP technology encrypts sensitive data. In the process of data transmission from the client to the blockchain network, the present invention implements field-level encryption based on PGP (Pretty Good Privacy) technology: the data content is encrypted into ciphertext before transmission to prevent interception or tampering during transmission; the decryption operation can only be completed by users with specific permissions (such as the corresponding private key holder), thereby effectively realizing user-level access control.

[0094] All data interactions are conducted through secure communication protocols (such as TLS / SSL), combined with PGP technology to further enhance confidentiality and prevent data packets from being leaked to third parties during transmission.

[0095] This improved verification mechanism can solve the following problems:

[0096] 1) Prevent unauthorized access and abuse: The operation restriction mechanism based on the RBAC model and permission table ensures that users can only perform operations within the authorized scope, eliminating the risk of unauthorized access caused by improper permission allocation.

[0097] 2) Improve the system's ability to resist attacks: The dual verification mechanism double checks the user identity and operation logic, combined with transmission encryption protection, to effectively resist common attack behaviors (such as man-in-the-middle attacks, malicious tampering requests, etc.).

[0098] 3) Improve the integrity and confidentiality of data transmission: Data is fully encrypted during transmission to protect sensitive data from being stolen or tampered with, and ensure the consistency and integrity of on-chain storage and client request data.

[0099] 4) Refined permission control supports business expansion: The permission management mechanism is flexibly designed, and permissions can be adjusted according to user classification or new business scenarios to meet the needs of multiple industry scenarios (such as electronic auditing, data sharing, etc.), thereby improving the scalability and compliance of the system.

[0100] After completing data modeling, block storage and blockchain network construction, the system of the present invention builds a safe and efficient data query and access mechanism, making full use of the data transparency and tamper-proof characteristics of blockchain to ensure that users can quickly and safely obtain the required information. The following is the specific implementation process of the data query and access function:

[0101] Step 1: User initiates a query request: The user submits a data query request through the user interface or API interface.

[0102] Step 2, authority verification: The system calls the authority management module again to verify the user's identity and authority to ensure that the user has the corresponding access rights.

[0103] Step 3, data query: The smart contract executes query operations from the blockchain or related storage based on the request content, and uses the data link structure to improve query efficiency.

[0104] Step 4, result return: The system processes the query results and displays them in a user-friendly format to ensure that users can clearly obtain the required information.

[0105] Through the above technical solution of the present invention, non-time-sequential data construction with high data security can be achieved.

[0106] In summary, the method of the present invention has the following advantages: by constructing a non-sequential data link based on blockchain technology, decentralized storage and processing of data can be achieved, thereby improving data security, access efficiency and authenticity. Specifically, the method for constructing a non-sequential data link based on blockchain can effectively solve the following key problems:

[0107] Data consistency: Through the consensus mechanism of blockchain, data consistency between different nodes is ensured, avoiding data silos and synchronization problems caused by centralized storage.

[0108] Data immutability: Once written, all non-time-sequential data recorded on the blockchain cannot be modified or deleted, thus ensuring the authenticity and integrity of the data.

[0109] Smart contract automation: Use smart contracts to automatically trigger data operations, improve the automation and efficiency of non-time-series data processing, and reduce the risk of human intervention.

[0110] Secure permission management: The encryption technology provided by blockchain can achieve fine-grained permission control over sensitive data, ensuring the security and privacy protection of data sharing.

[0111] Flexible data association: The construction of non-time series data allows more flexible data association and query methods, providing support for complex data analysis and decision-making.

[0112] Furthermore, the method of the embodiment of the present invention has the following advantages:

[0113] (1) The method of the embodiment of the present invention ensures that non-time-series data is stored in a distributed manner on multiple nodes through the decentralized characteristics of blockchain, thereby reducing the risk of data being attacked and tampered with.

[0114] (2) The method of the embodiment of the present invention ensures the recognition and consistency of data by all nodes through a consensus mechanism, thereby solving the problem of data inconsistency in a multi-port environment.

[0115] (3) The method of the embodiment of the present invention utilizes smart contracts to realize automated processing of data management, thereby enhancing the speed and efficiency of data query and improving the user's access experience.

[0116] (4) The method of the embodiment of the present invention records the complete history of each piece of data through blockchain, making all data changes traceable, enhancing transparency, and improving users' trust in data.

[0117] (5) The method of the embodiment of the present invention implements role-based permission management and ensures that only authorized users can access and operate sensitive data through encryption, thereby enhancing data security.

[0118] (6) The method of the embodiment of the present invention realizes automated data operations through the design of smart contracts, simplifies management processes, and reduces the occurrence of human errors.

[0119] The units involved in the embodiments of the present invention may be implemented by software or hardware, and the units described may also be arranged in a processor. The names of these units do not, in some cases, limit the units themselves.

[0120] According to one aspect of an embodiment of the present invention, a computer program product or a computer program is provided, the computer program product or the computer program includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in the above various optional implementations.

[0121] As another aspect, an embodiment of the present invention further provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.

Claims

1. A method for constructing a non-temporal data link based on blockchain, characterized in that: The following steps are involved: S1, data collection, modeling and structured processing: collect non-time series data from different data sources, then convert the collected data into different formats, model the non-time series data by setting modeling rules, and finally perform structured processing and store it; S2, data block and chain: divide the data into blocks, generate and verify hash values, and then upload the data blocks to the chain; S3, development and execution of smart contracts: After the data is uploaded to the chain, the smart contract is associated and the smart contract operations are performed synchronously.

2. The method for constructing a non-temporal data link based on blockchain according to claim 1 is characterized in that: In step S1, the non-time series data is modeled by setting modeling rules, which specifically includes the following sub-steps: modeling is performed using a multi-entity and multi-relationship definition method, in which data relationships are abstracted using graph theory methods, attributes are defined using dynamic structures for data entities, and for association relationships, the association relationships between attributes are described in the form of edges.

3. The method for constructing a non-temporal data link based on blockchain according to claim 2 is characterized in that: In step S1, the storage after structured processing specifically includes the following sub-steps: after establishing a relationship network for non-time series data using graph theory methods, the data is stored in a "node + relationship" mode through a graph database, where the node represents the data entity and the edge describes the relationship between the data.

4. The method for constructing a non-temporal data link based on blockchain according to claim 1 is characterized in that: In step S2, the data is divided into blocks, which specifically includes the following sub-steps: First, split the data by size, then block it by logical units. Take multiple related data in a certain type of transaction as a logical data block, label each logical data block, record metadata and block attributes, number the logical data blocks, and use block numbers to ensure the order of data blocks.

5. The method for constructing a non-temporal data link based on blockchain according to claim 1 is characterized in that: In step S2, the hash value generation and verification specifically includes the following sub-steps: First, a hash algorithm is used to generate a unique hash value for each data block. During data transmission and storage, potential tampering operations are detected by comparing the hash values. Then a block chain dependency structure is established, and the data of subsequent blocks are recorded incrementally based on the hash value of the previous block, and the block information is bound to the hash.

6. The method for constructing a non-temporal data link based on blockchain according to claim 1 is characterized in that: In step S2, the execution data block is uploaded to the chain, which specifically includes the following sub-steps: First, choose a consensus mechanism based on network characteristics and application requirements; Then, timestamp confirmation is performed, and a timestamp is generated each time data is written; Then, the hash value of the newly added data block is broadcast to the network through consensus node voting, and the consensus node that reaches the set value completes the verification and writes the data; Then, data writing and network protection are performed; Then, using the hierarchical storage idea, when writing a data block, the block only contains the hash value and block summary information of the data block, and the main data is still stored in the hierarchical storage; Finally, the chain integrity is verified. Network nodes rotate regularly to verify the integrity of the chain. If any block hash is detected to be inconsistent with the data in the record, it is judged as a suspicious node and isolated, otherwise it is judged to be normal.

7. The method for constructing a non-temporal data link based on blockchain according to claim 1 is characterized in that: In step S3, after the data is uploaded to the chain, it is associated with the smart contract and the operation of the smart contract is performed synchronously, which specifically includes the following sub-steps: First, establish a consortium chain architecture, with full nodes storing main chain data and light nodes providing fast verification and user access services; adjust the transparency and privacy of on-chain data according to industry needs; The smart contract then performs double authority verification based on the designed authority management mechanism to ensure compliance with the operating rules.

8. The method for constructing a non-temporal data link based on blockchain according to claim 7 is characterized in that: The smart contract performs dual authority verification according to the designed authority management module, which specifically includes the following sub-steps: First, role definition and permission matching: assign each user to the corresponding role group and set permission ranges for different roles; refine the operational scope of each role through the permission table ACL, and restrict users to perform operations within the specified scope; support dynamic expansion at the same time, quickly adjust role permission configuration according to new user needs or business needs, design RBAC model according to user needs, and assign each user to the corresponding role group; Then, implement the following two-factor authentication mechanism: Authentication: Authentication confirms the identity of the requester based on a digital signature or encryption key. Identity authentication is completed through the user's encryption key to ensure that the access request comes from a legitimate user; When sending a request, the user signs the request content with a private key, and the system verifies the signature with a public key to ensure the authenticity and integrity of the request; Authorization verification: Authorization verification checks the scope of user permissions and verifies the legitimacy of user requests through the permission table of the permission model, including whether the request is within the scope of permissions of the user's current role and whether the requested operation complies with the system's predefined rules and security restrictions.

9. The method for constructing a non-temporal data link based on blockchain according to claim 8 is characterized in that: After step S3, the following steps are also included: Step 1: User initiates a query request: The user submits a data query request through the user interface or API interface; Step 2, authority verification: the system calls the authority management module again to double-verify the user's identity and authority to ensure that the user has the corresponding access rights; Step 3, data query: the smart contract performs query operations from the blockchain or related storage based on the request content; Step 4, result return: The system processes the query results and displays them in a user-friendly format.

10. A non-temporal data link construction system based on blockchain, including a computer device, characterized in that: A computer program is stored in the memory of the computer device, and when the computer program is loaded by the processor of the computer device, the method according to any one of claims 1 to 9 is executed.