Data product registration management method based on block chain
By encrypting metadata and embedding hash values on the blockchain, the problem of easy tampering in centralized storage is solved, achieving high security and fast querying of data products, and ensuring the reliable storage and traceability of data throughout its entire lifecycle.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ZHONGDIAN DATA IND CO LTD
- Filing Date
- 2025-12-25
- Publication Date
- 2026-05-01
AI Technical Summary
In existing technologies, metadata of data products is stored on centralized servers, which are easily tampered with and lack a distributed consensus mechanism, resulting in decreased data credibility, low efficiency in certificate generation and querying, and inability to achieve fast and reliable metadata traceability.
Using blockchain technology, metadata is manually verified and then encrypted. The SM2 asymmetric encryption algorithm is used to generate key pairs, and the encrypted data is packaged into the blockchain to generate a unique evidence ID. The hash value is embedded in the certificate to establish a correspondence between the product, the evidence ID, and the hash value, thereby achieving tamper-proof evidence storage and fast query.
It achieves high security and reliable evidence storage for data products, reduces the probability of metadata tampering, improves the efficiency of certificate generation and query, and meets the regulatory need for real-time traceability.
Smart Images

Figure CN121966950A_ABST
Abstract
Description
Blockchain-based data product registration and management method Technical Field
[0001] This application relates to the field of blockchain technology, and in particular to a blockchain-based data product registration and management method. Background Technology
[0002] Currently, data product metadata is stored on centralized servers. A financial data registration platform was hacked, resulting in a large amount of metadata being tampered with, and the on-chain hash was inconsistent with the actual data.
[0003] The reason is that centralized storage relies on a single institution for operation and maintenance, lacks a distributed consensus mechanism, and cannot resist hacker attacks, internal tampering, or server failures; users need to trust the impartiality of the central institution, and when the institution experiences a credit crisis, the credibility of the registered data drops significantly.
[0004] Furthermore, in existing technologies, registration certificates are mostly paper documents issued manually or electronic documents generated by centralized systems. In a copyright registration dispute, many disputes arose from certificate tampering or broken query links. Users need to query metadata through the interface of a central institution, resulting in long response delays.
[0005] The reason is that certificate generation is not directly related to blockchain storage and lacks an immutable digital signature; metadata query relies on a centralized database and cannot achieve "one-click traceability" through hash values, requiring repeated verification when querying across institutions. Summary of the Invention
[0006] In view of this, the present invention provides a data product registration and management method based on blockchain.
[0007] The present invention proposes a blockchain-based data product registration and management method, comprising: in response to manual review and verification, marking data products with compliant metadata as approved; encrypting the metadata of the data products; calling the blockchain upload interface to package the encrypted data into a block to be confirmed; returning a unique evidence ID as an on-chain identifier; obtaining the complete hash value of the corresponding transaction based on the evidence ID; storing the hash value and embedding it in a certificate.
[0008] In one implementation, the metadata of the data product is encrypted, including: performing a structured transformation of the approved metadata according to the JSON Schema specification; generating a 256-bit key pair including a public key and a private key using the SM2 asymmetric encryption algorithm; wherein, during encryption, the data is encrypted using the recipient's public key and can only be decrypted using the corresponding private key; during signing, the data is signed using the private key, and the public key is used for verification to ensure data trustworthiness.
[0009] In one implementation, the step of calling the blockchain upload interface to package the encrypted data into the block to be confirmed includes: initiating an on-chain request, the request including encrypted JSON data and a request address; and the node of the interface further verifying the validity of the transaction signature and the integrity of the data before packaging the transaction into the block to be confirmed.
[0010] In one implementation, the evidence ID is formatted as EVID-block height-transaction index.
[0011] In one implementation, the complete hash value is specifically a 64-bit hexadecimal string, including: block header information and transaction content summary, to ensure that the data cannot be tampered with.
[0012] In one implementation, the storage of the hash value is used to establish a correspondence between the product, the evidence ID, and the hash value.
[0013] In one implementation, the embedding in the certificate specifically includes: calling a certificate generation service to generate a PDF format registration certificate containing basic product information; embedding the hash value into the certificate; and signing the certificate content using the Chang'an Chain node SM2 national cryptographic algorithm to ensure the certificate is tamper-proof.
[0014] In one implementation, the method further includes: a user or a third party inputting the hash value in the certificate, calling Changan Chain to extract the metadata hash, and comparing it with the hash in the certificate; obtaining the returned verification result, namely "data consistent, authentic and valid" or "hash mismatch, data has been tampered with".
[0015] Another aspect of the present invention provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to implement the blockchain-based data product registration and management method as described in any of the preceding claims.
[0016] Another aspect of the present invention provides a computer storage medium, characterized in that the medium stores a computer program, which is executed to implement the blockchain-based data product registration and management method as described in any of the preceding claims.
[0017] By adopting the above technical solution, the present invention has at least the following advantages: The method provided by the present invention utilizes the distributed storage of Chang'an Chain and the improved PBFT consensus mechanism to reduce the probability of metadata tampering to an extremely low level, significantly improving security compared to traditional centralized systems; furthermore, the present invention establishes a blockchain-anchored trusted certificate generation and hash query mechanism. This enables the automatic generation and tamper-proof storage of registration certificates, and the response latency for users to query metadata through transaction hashes is extremely short, meeting the real-time traceability requirements of regulatory authorities. Attached Figure Description
[0018] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 is a schematic flowchart of a blockchain-based data product registration and management method according to an embodiment of the present invention. Detailed Implementation
[0019] To further illustrate the technical means and effects of the present invention in achieving its intended purpose, the present invention will be described in detail below with reference to the accompanying drawings and preferred embodiments.
[0020] While exemplary embodiments of the invention are shown in the accompanying drawings, it should be understood that the invention can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the invention and to fully convey its scope to those skilled in the art. The invention will now be described in detail with reference to the accompanying drawings and embodiments.
[0021] The first embodiment of the present invention provides a data product registration and management method based on blockchain, as shown in Figure 1, comprising the following steps: Step 1, in response to manual review and verification, marking data products with compliant metadata as approved; Step 2, encrypting the metadata of the data product; Step 3, calling the blockchain upload interface to package the encrypted data into the block to be confirmed; Step 4, returning a unique evidence ID as an on-chain identifier; Step 5, obtaining the complete hash value of the corresponding transaction based on the evidence ID; Step 6, storing the hash value and embedding it in the certificate.
[0022] In one embodiment, the metadata of the data product is encrypted, including: converting the approved metadata into a structured form according to the JSON Schema specification; generating a 256-bit key pair including a public key and a private key using the SM2 asymmetric encryption algorithm; wherein, during encryption, the data is encrypted using the recipient's public key and can only be decrypted using the corresponding private key; during signing, the data is signed using the private key and verified using the public key to ensure data trustworthiness.
[0023] In this embodiment, the step of calling the blockchain upload interface to package the encrypted data into the block to be confirmed includes: initiating an on-chain request, the request including encrypted JSON data and a request address; and the node of the interface further verifying the validity of the transaction signature and the integrity of the data before packaging the transaction into the block to be confirmed.
[0024] In this embodiment, the format of the evidence ID is EVID-block height-transaction index.
[0025] In this embodiment, the complete hash value is specifically a 64-bit hexadecimal string, including: block header information and transaction content summary, to ensure that the data cannot be tampered with.
[0026] In this embodiment, storing the hash value is used to establish the correspondence between the product, the evidence ID, and the hash value.
[0027] In this embodiment, the embedding in the certificate specifically includes: calling a certificate generation service to generate a PDF format registration certificate containing basic product information; embedding the hash value into the certificate; and using the Chang'an Chain node SM2 national cryptographic algorithm to sign the certificate content to ensure that the certificate is tamper-proof.
[0028] In this embodiment, the method further includes: the user or a third party inputs the hash value in the certificate, calls Changan Chain to extract the metadata hash, and compares it with the hash in the certificate; and obtains the returned verification result, namely "data consistent, real and valid" or "hash mismatch, data has been tampered with".
[0029] The method provided in this embodiment will be described in detail below.
[0030] 1. After a user or organization submits a data product registration application, the application will be manually reviewed and verified to confirm that the metadata is compliant. The status will then be marked as "Approved (Status Code: 21)".
[0031] Key function: Ensure the legitimacy of data uploaded to the blockchain and prevent invalid operations from consuming blockchain resources.
[0032] 2. Encrypted and Structured Encapsulation of Metadata in JSON: Approved metadata is structurally transformed according to the JSON Schema specification; Encryption Processing: The SM2 asymmetric encryption algorithm is used to generate a 256-bit key pair for the user (the private key is held by the user, and the public key is used for encryption / signature verification). Data is encrypted using the recipient's public key and can only be decrypted using the corresponding private key; signing is done using the private key, and public key verification ensures data trustworthiness. This key separation management ensures data security and non-repudiation.
[0033] Key function: Preventing metadata from being illegally read on the blockchain and meeting the encryption requirements for sensitive information under the Data Security Law.
[0034] 3. Initiate an on-chain request by calling the blockchain upload interface, with parameters including encrypted JSON data and the request address. After verifying the validity of the transaction signature and the integrity of the data, the node packages the transaction into the block awaiting confirmation.
[0035] Key function: Enables trusted data transfer from the local system to the blockchain and generates on-chain credentials.
[0036] 4. After the consensus of Chang'an Chain is reached, a unique evidence ID (evidenceId) is returned to the caller. The format is EVID-block height-transaction index (e.g., EVID-123456-001), which serves as the unique on-chain identifier of the transaction and is used for subsequent hash lookup and status tracing.
[0037] Key function: Establishing a link between local records and on-chain transactions to facilitate data traceability.
[0038] 5. Query the transactionHash using the `queryTxHash(evidenceId)` interface, passing in the `evidenceId` parameter to obtain the complete hash value (transactionHash, a 64-bit hexadecimal string) of the corresponding transaction. This hash contains block header information and a transaction summary, ensuring the data is immutable.
[0039] Key function: Obtain the unique fingerprint of on-chain transactions for certificate generation and authenticity verification.
[0040] 6. Store transactionHash in the database: Store transactionHash along with data such as product ID and evidenceId in a relational database. The table structure includes fields: product_id, evidence_id, and transaction_hash, establishing a triple binding relationship of "product-evidence-hash".
[0041] Key function: Enables the linkage between on-chain data and local systems, supporting fast retrieval and certificate generation.
[0042] 7. TransactionHash Display in Product Registration Certificate: Certificate Generation: Call the certificate generation service to generate a PDF registration certificate containing basic product information (name, ID, creation time); Hash Embedding: Embed the transactionHash in a prominent position in the certificate; Digital Signature: Use the Chang'an Chain node SM2 national cryptographic algorithm to sign the certificate content to ensure the certificate is tamper-proof.
[0043] Key function: Provides users with trusted credentials for on-chain data and supports rapid verification by third parties.
[0044] 8. In the Chang'an Chain, users or third parties can query the metadata hash by inputting the transactionHash in the certificate, which will be called by the Chang'an Chain to extract the hash. The hash will be compared with the hash in the certificate, and the verification result will be returned ("Data is consistent and valid" or "Hash does not match, data has been tampered with").
[0045] Key role: To achieve a closed loop for data products from registration to verification, ensuring traceability throughout the entire lifecycle.
[0046] Compared with existing technologies, this embodiment has at least the following advantages: 1) Full-process blockchain evidence storage architecture. This embodiment of the invention stores metadata directly on the Chang'an Chain, abandoning the traditional "off-chain database + on-chain hash" model, and constructing a three-level anchor of "data-block-transaction"; by utilizing the immutable characteristics of blockchain, the risk of data tampering is eliminated from the technical bottom layer, and true trustworthy evidence storage is achieved.
[0047] 2.) Integration of Chinese Cryptographic Algorithms with On-Chain Ecosystem: This embodiment of the invention deeply integrates the SM2 asymmetric encryption algorithm to achieve integrated management of key generation, data encryption, and on-chain signature; it adopts an independent and controllable cryptographic technology system, which fully complies with the compliance requirements of domestic financial, government, and other scenarios while ensuring security.
[0048] 3.) Dual-hash correlation traceability mechanism: This embodiment of the invention establishes a strong correlation between local data and on-chain transactions through dual identification of evidenceId and transactionHash, supporting rapid traceability from product registration to the entire lifecycle. Data at any stage can be verified in a closed loop through on-chain hashing.
[0049] 4.) Hash-anchored trusted certificate system: This embodiment of the invention embeds on-chain transaction hashes into the registration certificate and achieves real-time verification through the Chang'an connection interface, providing users with directly verifiable on-chain credentials. Third parties can confirm the authenticity of the data without additional system integration.
[0050] 5) On-chain and Off-chain Data Collaboration Mechanism: This embodiment of the invention achieves efficient linkage between "on-chain evidence storage and off-chain retrieval" through hash mapping between the database and the blockchain. It balances the security of the blockchain with the retrieval efficiency of traditional databases, forming a complementary and integrated solution.
[0051] It should be further explained that there is currently no equivalent alternative to "Chang'an Chain full metadata on-chain + product registration certificate display of transaction hash". The specific reasons are as follows: 1) The underlying blockchain cannot replace other consortium chains. They need to deeply modify the national cryptographic algorithm to adapt to domestic compliance requirements. Moreover, Chang'an Chain's consensus mechanism is significantly better than similar technologies in terms of performance and block confirmation speed, and it is impossible to achieve an efficiency balance under the same security level.
[0052] 2) The storage architecture is irreplaceable. The two-layer architecture of "IPFS sharded storage + blockchain index" is currently the optimal solution that balances storage cost and retrieval efficiency. A single storage mode (such as full-chain storage or pure IPFS storage) cannot meet the requirements of performance and cost at the same time. Full-chain storage will lead to a surge in costs, while pure IPFS storage lacks the immutability of on-chain anchoring.
[0053] 3) The certificate hash anchoring mechanism is irreplaceable. The mechanism of embedding transaction hashes in the product registration certificate and realizing real-time on-chain verification relies on the deep integration of Chang'an Chain and the certificate system: Hash uniqueness: The transaction hash is generated by the consensus mechanism of Chang'an Chain and forms an inseparable binding relationship with the metadata. The hash format and verification logic of other blockchain systems cannot be directly adapted; Real-time verification closed loop: The certificate hash is quickly compared with the on-chain metadata through the Chang'an Chain interface. This capability depends on the API design and consensus rules of Chang'an Chain. Cross-chain verification of other chains requires additional relay nodes or protocol conversion, and cannot achieve the same efficiency of closed-loop verification.
[0054] In summary, this solution, through the integrated design of Changan Chain's underlying technology, storage architecture, and certificate hashing mechanism, forms a technical barrier in terms of compliance, performance, and trusted verification, and there is currently no equivalent alternative.
[0055] A second embodiment of the present invention provides an electronic device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the blockchain-based data product registration and management method provided in the first embodiment.
[0056] A third embodiment of the present invention provides a computer storage medium storing a computer program, which is executed to implement the blockchain-based data product registration and management method as described in the first embodiment.
[0057] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims. All of these forms are within the protection scope of this application.
Claims
1. A data product registration and management method based on blockchain, characterized in that, include: In response to manual review and verification, data products with compliant metadata are marked as approved. The metadata of the data product is encrypted; Call the blockchain upload interface to package the encrypted data into the block to be confirmed; Return the unique evidence ID as an on-chain identifier; Based on the evidence ID, obtain the complete hash value of the corresponding transaction; The hash value is stored and embedded in the certificate.
2. The data product registration and management method based on blockchain according to claim 1, characterized in that, The metadata of the data product is encrypted, including: performing a structured transformation of the approved metadata according to the JSON Schema specification; generating a 256-bit key pair including a public key and a private key using the SM2 asymmetric encryption algorithm; wherein, during encryption, the data is encrypted using the recipient's public key and can only be decrypted using the corresponding private key; during signing, the data is signed using the private key and verified using the public key to ensure data trustworthiness.
3. The data product registration and management method based on blockchain according to claim 2, characterized in that, The process of calling the blockchain upload interface to package the encrypted data into the block to be confirmed includes: initiating an on-chain request, the request including encrypted JSON data and a request address; and the node of the interface further verifying the validity of the transaction signature and the integrity of the data before packaging the transaction into the block to be confirmed.
4. The data product registration and management method based on blockchain according to claim 3, characterized in that, The format of the evidence ID is EVID-block height-transaction index.
5. The data product registration and management method based on blockchain according to claim 4, characterized in that, The complete hash value is a 64-bit hexadecimal string, including: block header information and transaction summary, ensuring that the data cannot be tampered with.
6. The data product registration and management method based on blockchain according to claim 5, characterized in that, The hash value is stored to establish the correspondence between the product, the evidence ID, and the hash value.
7. The data product registration and management method based on blockchain according to claim 6, characterized in that, The embedding in the certificate specifically includes: calling the certificate generation service to generate a PDF format registration certificate containing basic product information; embedding the hash value into the certificate; and using the Chang'an Chain node SM2 national cryptographic algorithm to sign the certificate content to ensure that the certificate is tamper-proof.
8. The data product registration and management method based on blockchain according to claim 7, characterized in that, The method further includes: the user or a third party inputs the hash value in the certificate, calls Changan Chain to extract the metadata hash, compares it with the hash in the certificate; and obtains the returned verification result, namely "data consistent, real and valid" or "hash mismatch, data has been tampered with".
9. An electronic device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the blockchain-based data product registration and management method as described in any one of claims 1 to 8.
10. A computer storage medium, characterized in that, The medium stores a computer program that is executed to implement the blockchain-based data product registration and management method as described in any one of claims 1 to 8.