Data credential generation and verification method and system based on blockchain
By using watermark embedding and hybrid encryption algorithms on the blockchain to generate data credentials, combined with the zero-knowledge proof protocol, the problems of traditional data credentials are solved, and high data security and credibility are achieved.
Patent Information
- Application Number
- CN202411067287.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-08-06
AI Technical Summary
The traditional data credential generation and verification methods have disadvantages such as centralization, easy tampering, and privacy leakage, which cannot meet the high requirements of modern society for data security, integrity and credibility.
Using blockchain-based data credential generation and verification methods, the data is watermark embedded and encrypted through watermark embedding algorithm and hybrid encryption algorithm, and the hash function algorithm is used to generate data credentials, and the data is ensured through zero-knowledge proof protocol and watermark verification. security and integrity.
It improves the security, integrity and credibility of data credentials, ensures the decentralization and tampering characteristics of data on the blockchain, and further ensures the security and high credibility of data.
Smart Images

Figure CN118585972B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data credential generation and verification, and in particular to a blockchain-based data credential generation and verification method and system. Background Art
[0002] With the advent of the digital age, data has become an important means of production and value carrier. However, data security and credibility have always been key issues that plague data transactions and applications. Data credentialing provides a new data carrying method that uses cryptographic technology to integrate specific data content, the business processing logic of the data, processing behavior records, data processing results, etc. to form an independent data object with credential security and verifiable characteristics. This data carrying method with credential characteristics is called a digital credential. Traditional data credential generation and verification methods have disadvantages such as centralization, easy tampering, and privacy leakage, and cannot meet the high requirements of modern society for data security, integrity, and credibility. Summary of the invention
[0003] The present invention provides a data credential generation and verification method based on blockchain, performs watermark embedding and encryption processing on data through a watermark embedding algorithm and a hybrid encryption algorithm, generates a data credential from the processed data on the blockchain through a hash function algorithm, verifies the data credential using a zero-knowledge proof protocol, a hash function algorithm and watermark verification, and uses multiple encryption and multiple verification methods, combined with the decentralization and tamper-resistant characteristics of blockchain, to improve the security, integrity and credibility of data credentials, and further ensure data security, integrity and high credibility.
[0004] In order to solve the above technical problems, an embodiment of the present invention provides a data credential generation and verification method based on blockchain, including:
[0005] Acquire the data to be uploaded to the chain; wherein the data to be uploaded to the chain includes original data and metadata; the metadata includes data creation time, data type and size;
[0006] Using a watermark embedding algorithm adapted to the data type of the metadata of the data to be uploaded, watermark information is embedded into the original data of the data to be uploaded, so as to obtain the original data with watermark and the original watermark information;
[0007] The original data with watermark is encrypted according to the hybrid encryption algorithm to generate the original encrypted data and encryption key. The original encrypted data, encryption key and original watermark information are stored on the chain according to the data creation time of the metadata of the data to be uploaded to the chain as the timestamp to obtain the uploaded data.
[0008] According to the hash function algorithm, the original encrypted data and the encryption key in the data uploaded to the chain are respectively hashed to obtain the first hash value and the second hash value, the original encrypted data, the encryption key, the original watermark information, the first hash value and the second hash value are packaged to generate a data voucher, and the data voucher is uploaded to the chain for storage;
[0009] The data certificate is sent to the verifier, and the verifier verifies the data certificate based on the original encrypted data, encryption key, original watermark information, first hash value and second hash value in the data certificate using a zero-knowledge proof protocol, hash function algorithm and watermark extraction algorithm.
[0010] Furthermore, the watermark embedding algorithm adapted to the data type of the metadata of the data to be uploaded to the chain is used to embed watermark information into the original data of the data to be uploaded to the chain to obtain the original data with the watermark, including:
[0011] When the data type of the metadata of the data to be uploaded is an image type, the image watermark embedding algorithm is used to embed watermark information into the original image data of the data to be uploaded to obtain the original image data with watermark;
[0012] When the data type of the metadata of the data to be uploaded is audio type, the audio watermark embedding algorithm is used to embed watermark information into the original audio data of the data to be uploaded to obtain the original audio data with watermark;
[0013] When the data type of the metadata of the data to be uploaded is a video type, a video watermark embedding algorithm is used to embed watermark information into the original video data of the data to be uploaded to obtain the original video data with a watermark;
[0014] When the data type of the metadata of the data to be uploaded is a text type, a text watermark embedding algorithm is used to embed watermark information into the original text data of the data to be uploaded to the chain to obtain the original text data with a watermark.
[0015] Furthermore, the original data with watermark is encrypted according to the hybrid encryption algorithm to generate original encrypted data and encryption key, and the original encrypted data, encryption key and original watermark information are stored on the chain according to the data creation time of the metadata of the data to be chained as the timestamp, to obtain the data after chaining, including:
[0016] Encrypt the original data with watermark using a symmetric encryption algorithm to generate original encrypted data and a symmetric key;
[0017] Generate a public key and a private key according to an asymmetric encryption algorithm, and encrypt the symmetric key using the public key pair generated by the asymmetric encryption algorithm to generate an encryption key;
[0018] The original encrypted data, encryption key and original watermark information are stored on the chain according to the data creation time of the metadata of the data to be uploaded to the chain as the timestamp.
[0019] Furthermore, the method of performing hash value calculations on the original encrypted data and the encryption key in the data uploaded to the chain according to the hash function algorithm to obtain a first hash value and a second hash value, packaging the original encrypted data, the encryption key, the original watermark information, the first hash value and the second hash value to generate a data voucher, and storing the data voucher on the chain includes:
[0020] Performing hash value calculation on the original encrypted data by using a hash function algorithm to generate a first hash value;
[0021] Performing hash value calculation on the encryption key by using a hash function algorithm to generate a second hash value;
[0022] The original encrypted data, encryption key, original watermark information, first hash value and second hash value are packaged to generate a data certificate, and the data certificate is stored on the chain.
[0023] Furthermore, the data voucher is sent to the verifier, and the verifier verifies the data voucher according to the original encrypted data, encryption key, original watermark information, first hash value and second hash value in the data voucher using a zero-knowledge proof protocol, a hash function algorithm and a watermark extraction algorithm, including:
[0024] Using any one of the original encrypted data, the encryption key, the original watermark information, the first hash value, and the second hash value in the data voucher as a proof condition, verifying the proof condition through a zero-knowledge proof protocol to generate a first verification result;
[0025] When the first verification result is that the zero-knowledge proof protocol verification proof condition is correct, the original encrypted data and the encryption key in the data voucher are respectively calculated by using a hash function algorithm to obtain a third hash value and a fourth hash value, and the third hash value and the fourth hash value are compared with the first and second hash values to generate a second verification result;
[0026] When the second verification result is that the third Hash value is equal to the first Hash value and the fourth Hash value is equal to the second Hash value, the encryption key is decrypted to obtain a decrypted symmetric key, the original encrypted data is decrypted according to the decrypted symmetric key to obtain decrypted data, watermark extraction is performed on the decrypted data using a watermark extraction algorithm to obtain extracted watermark information, and the extracted watermark information is compared with the original watermark information to generate a third verification result;
[0027] When the third verification result is that the extracted watermark information is consistent with the original watermark information, the data voucher and the original data are returned; otherwise, the data voucher and the original data are returned incorrectly.
[0028] Furthermore, after obtaining the data to be uploaded, the method further includes:
[0029] Write the rules and conditions of the smart contract, and deploy the written smart contract on the blockchain. According to the rules and conditions of the smart contract, automatically encrypt the data on the chain, generate and verify data certificates and store them on the chain.
[0030] Furthermore, after the rules and conditions of the smart contract are written and the written smart contract is deployed on the blockchain, according to the rules and conditions of the smart contract, the data on the chain is automatically encrypted, data certificates are generated and verified, and the data is stored on the chain, it also includes:
[0031] The consensus algorithm is deployed on the blockchain, and each node of the blockchain is managed and verified according to the consensus algorithm.
[0032] Furthermore, after the consensus algorithm is deployed on the blockchain and each node of the blockchain is managed and verified according to the consensus algorithm, it also includes:
[0033] Establish a permission management mechanism, deploy the permission management mechanism on the blockchain, and determine data access and modification permissions based on the permission management mechanism.
[0034] Based on the above method embodiment, the present invention provides a corresponding system embodiment;
[0035] An embodiment of the present invention provides a data voucher generation and verification system based on blockchain, including: a data acquisition module, a watermark information embedding module, a data encryption module, a data voucher generation module and a data voucher verification module;
[0036] The data acquisition module is used to acquire the data to be uploaded to the chain; wherein the data to be uploaded to the chain includes original data and metadata; the metadata includes data creation time, data type and size;
[0037] The watermark information embedding module is used to embed watermark information into the original data of the data to be uploaded using a watermark embedding algorithm adapted to the data type of the metadata of the data to be uploaded, so as to obtain the original data with watermark and the original watermark information;
[0038] The data encryption module is used to encrypt the original data with watermark according to the hybrid encryption algorithm, generate original encrypted data and encryption key, and store the original encrypted data, encryption key and original watermark information on the chain according to the data creation time of the metadata of the data to be chained as the timestamp, so as to obtain the data after chaining;
[0039] The data voucher generation module is used to calculate the hash values of the original encrypted data and the encryption key in the data after being uploaded to the chain according to the hash function algorithm, obtain the first hash value and the second hash value, package the original encrypted data, the encryption key, the original watermark information, the first hash value and the second hash value to generate a data voucher, and store the data voucher on the chain;
[0040] The data voucher verification module is used to send the data voucher to the verifier, and the verifier verifies the data voucher based on the original encrypted data, encryption key, original watermark information, first hash value and second hash value in the data voucher using a zero-knowledge proof protocol, a hash function algorithm and a watermark extraction algorithm.
[0041] Furthermore, after the data acquisition module, it also includes: a smart contract module is used to write the rules and conditions of the smart contract, and deploy the written smart contract on the blockchain. According to the rules and conditions of the smart contract, it automatically encrypts the data on the chain, generates and verifies data certificates and stores them on the chain.
[0042] Furthermore, after the smart contract module, it also includes: a consensus algorithm module is used to deploy the consensus algorithm on the blockchain, and perform node management and verification on each node of the blockchain according to the consensus algorithm.
[0043] Furthermore, after the consensus algorithm module, it also includes: a permission management module is used to establish a permission management mechanism, deploy the permission management mechanism on the blockchain, and determine the access and modification permissions of the data according to the permission management mechanism.
[0044] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: the technical solution of the present invention performs watermark embedding and multiple encryption processing on data through a watermark embedding algorithm and a hybrid encryption algorithm, calculates a hash value for the processed data on the blockchain by using a hash function algorithm, generates a data certificate by packaging the encrypted data, encryption key, watermark information and hash value, performs multiple verifications on the data certificate by using a zero-knowledge proof protocol, a hash function algorithm and watermark verification, and uses multiple encryption and multiple verification methods, combined with the decentralization and tamper-resistant characteristics of blockchain, to improve the security, integrity and credibility of data certificates, and further ensure data security, integrity and high credibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 : A flowchart of the steps of the blockchain-based data credential generation and verification method provided in an embodiment of the present invention;
[0046] Figure 2 : System structure diagram of the blockchain-based data credential generation and verification system provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0047] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] In the description of the present invention, it should be understood that the terms "first", "second", "third" and "fourth" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features.
[0049] Please refer to Figure 1 , is a flowchart of the steps of the blockchain-based data credential generation and verification method provided by an embodiment of the present invention; the method includes steps S1 to S2, each step is as follows:
[0050] Step S1, obtaining data to be uploaded to the chain; wherein the data to be uploaded to the chain includes original data and metadata; the metadata includes data creation time, data type and size;
[0051] Step S2: using a watermark embedding algorithm adapted to the data type of the metadata of the data to be uploaded, embed watermark information into the original data of the data to be uploaded, and obtain the original data with watermark and the original watermark information;
[0052] Step S3: Encrypt the original data with watermark according to the hybrid encryption algorithm to generate original encrypted data and encryption key, and use the data creation time of the metadata of the data to be uploaded as the timestamp to store the original encrypted data, encryption key and original watermark information on the chain to obtain the uploaded data;
[0053] Step S4: Calculate the hash values of the original encrypted data and the encryption key in the data uploaded to the chain according to the hash function algorithm to obtain the first hash value and the second hash value, package the original encrypted data, the encryption key, the original watermark information, the first hash value and the second hash value to generate a data voucher, and store the data voucher on the chain;
[0054] Step S5: Send the data certificate to the verifier, which verifies the data certificate based on the original encrypted data, encryption key, original watermark information, first hash value and second hash value in the data certificate using a zero-knowledge proof protocol, a hash function algorithm and a watermark extraction algorithm.
[0055] In this embodiment, the watermark embedding algorithm adapted to the data type of the metadata of the data to be uploaded is used to embed watermark information into the original data of the data to be uploaded to obtain the original data with watermark, specifically:
[0056] When the data type of the metadata of the data to be uploaded is an image type, the image watermark embedding algorithm is used to embed watermark information into the original image data of the data to be uploaded to obtain the original image data with watermark;
[0057] In this embodiment, image preprocessing is performed on the original image data and the watermark image of the image type to obtain the processed original image data and the watermark image, and the processed watermark image is embedded into the processed original image data by using the image watermark embedding algorithm to obtain the original image data with watermark; wherein the image preprocessing includes but is not limited to: image resizing, graying and binarization; the image watermark embedding algorithm includes but is not limited to: least significant bit watermark embedding algorithm, discrete cosine transform watermark embedding algorithm and discrete wavelet transform watermark embedding algorithm; taking the least significant bit watermark embedding algorithm as an example, the original image data and the watermark image are binary converted to obtain the converted original image data and the watermark image, the converted watermark image is resized to match the image size of the original image data, the image pixels of the converted original image data are traversed, the least significant bit of each image pixel is replaced by the value of the corresponding pixel of the converted watermark image, until the converted watermark image is completely embedded in the converted original image data, and the binary original image data with watermark is converted into decimal, and image reconstruction is performed to finally obtain the original image data with watermark;
[0058] When the data type of the metadata of the data to be uploaded is audio type, the audio watermark embedding algorithm is used to embed watermark information into the original audio data of the data to be uploaded to obtain the original audio data with watermark;
[0059] In this embodiment, audio preprocessing is performed on raw audio data of audio data type to obtain processed raw audio data, and watermark information is embedded in the processed raw audio data using an audio watermark embedding algorithm to obtain raw audio data with watermark; wherein the audio preprocessing includes but is not limited to: filtering and denoising; the audio watermark embedding algorithm includes but is not limited to: least significant bit replacement algorithm, spread spectrum algorithm, phase encoding algorithm, echo hiding algorithm and audio transform domain algorithm; the audio transform domain algorithm includes but is not limited to discrete Fourier transform algorithm, discrete cosine transform algorithm and discrete wavelet transform algorithm; taking the discrete wavelet transform algorithm as an example, discrete wavelet transform is performed on the raw audio data to obtain wavelet coefficients of each layer, a watermark embedding position is selected according to the wavelet coefficients of each layer, the watermark information is converted into binary and then embedded in the watermark embedding position, and finally the wavelet coefficients embedded with the watermark information are inversely transformed and reconstructed to generate the raw audio data with watermark;
[0060] When the data type of the metadata of the data to be uploaded is a video type, a video watermark embedding algorithm is used to embed watermark information into the original video data of the data to be uploaded to obtain the original video data with a watermark;
[0061] In this embodiment, the original video data of the video type is decoded and segmented to obtain a series of independent video frames, and the watermark information is embedded in each video frame using a video watermark embedding algorithm and then the video is reassembled to obtain the original video data with watermark; wherein the video watermark embedding algorithm includes but is not limited to: a spatial domain algorithm, a video transform domain algorithm and a compression domain algorithm; the video transform domain algorithm includes but is not limited to a discrete cosine transform algorithm, a discrete wavelet transform algorithm and a singular value decomposition algorithm; taking the discrete cosine transform algorithm as an example, the original video data is decoded and segmented into a series of independent video frames, and a two-dimensional discrete cosine transform is performed on each video frame to obtain a series of discrete cosine transform coefficients of each video frame, and a watermark embedding position is selected according to a series of discrete cosine transform coefficients of each video frame, the watermark information is converted into binary and then embedded in the watermark embedding position, and a two-dimensional discrete inverse transform is performed on the discrete cosine transform coefficients with the embedded watermark information to obtain a series of video frames with watermarks, and finally the series of video frames with watermarks are reassembled to generate the original video data with watermarks;
[0062] When the data type of the metadata of the data to be uploaded is text type, the watermark information is embedded into the original text data of the data to be uploaded using the text watermark embedding algorithm to obtain the original text data with watermark;
[0063] In this embodiment, the text watermark information is determined and the text watermark embedding position is selected for the original text data of the text type, and the determined text watermark is embedded into the determined text watermark embedding position of the original text data using a text watermark embedding algorithm to obtain the original text data with watermark; wherein the text watermark embedding algorithm includes but is not limited to a fine-tuning algorithm based on document structure, a replacement algorithm based on text content, and an algorithm based on text encoding; taking the replacement algorithm based on text content as an example, the original text data is segmented to obtain the original text data after segmentation, and the text watermark is embedded into the original text data using a text watermark embedding algorithm. The watermark information is converted into a binary sequence to obtain the binary bits of the watermark information, and a synonym library is constructed. The synonyms in the synonym library are matched with the binary bits of the watermark information. According to the binary bits of the watermark information, the synonyms in the synonym library are used to replace the original text data after word segmentation. That is, when a certain bit of the binary bit of the watermark information is 1, the synonym corresponding to the bit in the synonym library is used to replace the word or phrase in the original text data. Otherwise, the word or phrase in the original text data is kept unchanged. Finally, all the replaced words or phrases are recombined to generate the original text data with watermark.
[0064] In this embodiment, the original data with watermark is encrypted according to the hybrid encryption algorithm to generate original encrypted data and encryption key, and the original encrypted data, encryption key and original watermark information are stored on the chain according to the data creation time of the metadata of the data to be chained as the timestamp, and the data after chaining is obtained, which is specifically:
[0065] Encrypt the original data with watermark using a symmetric encryption algorithm to generate original encrypted data and a symmetric key;
[0066] In this embodiment, the symmetric encryption algorithm includes but is not limited to: AES, Blowfish and Twofish; taking the AES encryption algorithm as an example, a random number generator is used to randomly generate a symmetric key of a length that meets the length of the AES encryption algorithm, an encryption mode of the AES encryption algorithm is determined, and an AES encryptor of the AES encryption algorithm is initialized according to the symmetric key and the encryption mode, and the length of the original data with watermark is adjusted so that the data length of the original data with watermark meets the data length requirement of the AES encryption algorithm, and finally the AES encryptor is used to encrypt the original data with watermark after the length adjustment according to the encryption mode and the symmetric key to generate original encrypted data and a symmetric key;
[0067] Generate a public key and a private key according to an asymmetric encryption algorithm, and encrypt the symmetric key using the public key pair generated by the asymmetric encryption algorithm to generate an encryption key;
[0068] In this embodiment, the asymmetric encryption algorithm includes but is not limited to: RSA algorithm, ECC algorithm, ElGamal algorithm and DSA algorithm; taking the RSA asymmetric encryption algorithm as an example, the public key and private key of the RSA asymmetric encryption algorithm are determined, and the format and length of the symmetric key are adjusted so that the public key of the RSA asymmetric encryption algorithm encrypts the symmetric key to generate an encryption key; according to the data creation time of the metadata of the data to be uploaded to the chain as a timestamp, the original encrypted data, encryption key and original watermark information are stored on the chain.
[0069] In this embodiment, the hash value calculation is performed on the original encrypted data and the encryption key in the data after being uploaded to the chain according to the hash function algorithm to obtain the first hash value and the second hash value, the original encrypted data, the encryption key, the original watermark information, the first hash value and the second hash value are packaged to generate a data voucher, and the data voucher is uploaded to the chain for storage, specifically:
[0070] Performing hash value calculation on the original encrypted data by using a hash function algorithm to generate a first hash value;
[0071] Performing hash value calculation on the encryption key by using a hash function algorithm to generate a second hash value;
[0072] The original encrypted data, encryption key, original watermark information, first hash value and second hash value are packaged to generate a data certificate, and the data certificate is stored on the chain.
[0073] In this embodiment, the hash function algorithm includes but is not limited to: MD5, SHA-1, SHA-2 series (including SHA-224, SHA-256, SHA-384, SHA-512, etc.) and SHA-3 series; taking the SHA-256 hash function algorithm to perform hash value calculation on the original encrypted data as an example, the original encrypted data is converted into a byte string, and the SHA-256 hash function algorithm is used to perform hash value calculation on the converted original encrypted data, and a 256-bit (i.e., 32-byte) hash value is output as the first hash value; taking the SHA-256 hash function algorithm to perform hash value calculation on the encryption key as an example, the encryption key is converted into a byte string, and the SHA-256 hash function algorithm is used to perform hash value calculation on the converted encryption key, and a 256-bit (i.e., 32-byte) hash value is output as the second hash value.
[0074] In this embodiment, the data voucher is sent to the verifier, and the verifier verifies the data voucher according to the original encrypted data, encryption key, original watermark information, first hash value and second hash value in the data voucher using a zero-knowledge proof protocol, a hash function algorithm and a watermark extraction algorithm, specifically:
[0075] Using any one of the original encrypted data, the encryption key, the original watermark information, the first hash value, and the second hash value in the data voucher as a proof condition, verifying the proof condition through a zero-knowledge proof protocol to generate a first verification result;
[0076] In this embodiment, the zero-knowledge proof protocol includes but is not limited to: zk-SNARKs, zk-STARKs, Schnorr protocol, zk-PoK and interactive zero-knowledge proof protocol; taking zk-SNARKs as an example, any data is selected from the data certificate as a proof condition, a proof key and a verification key are generated by the Setup algorithm of zk-SNARKs, a proof is generated according to the proof key and the proof condition by the Prover algorithm of zk-SNARKs, and the generated proof is verified according to the verification key and the proof condition by the Verifier algorithm of zk-SNARKs. The data voucher is verified to generate a first verification result. When the first verification result is correct, it proves that the data voucher is safe and complete during storage and transmission in the blockchain, and the next hash value verification operation is performed. Otherwise, it proves that the data voucher is not safe and complete during storage and transmission in the blockchain, and the verification ends. When the first verification result is that the zero-knowledge proof protocol verification proof condition is correct, the hash value calculation is performed on the original encrypted data and the encryption key in the data voucher by using a hash function algorithm to obtain a third hash value and a fourth hash value, and the third hash value and the fourth hash value are compared with the first and second hash values to generate a second verification result.
[0077] In this embodiment, the hash function algorithm used to generate the first and second hash values is used to calculate the hash values of the original encrypted data and the encryption key in the data voucher, respectively, to obtain a third hash value and a fourth hash value, and the third hash value and the fourth hash value are compared with the first and second hash values to generate a second verification result. When the second verification result is that the third hash value is equal to the first hash value and the fourth hash value is equal to the second hash value, it is proved that the original encrypted data and the encryption key of the data voucher are safe and complete during storage and transmission in the blockchain, and the next step of watermark information verification operation is performed. Otherwise, it is proved that the original encrypted data and the encryption key of the data voucher are not safe and complete during storage and transmission in the blockchain, and the verification ends.
[0078] When the second verification result is that the third Hash value is equal to the first Hash value and the fourth Hash value is equal to the second Hash value, the encryption key is decrypted to obtain a decrypted symmetric key, the original encrypted data is decrypted according to the decrypted symmetric key to obtain decrypted data, watermark extraction is performed on the decrypted data using a watermark extraction algorithm to obtain extracted watermark information, and the extracted watermark information is compared with the original watermark information to generate a third verification result;
[0079] In this embodiment, a corresponding watermark extraction algorithm is selected according to the data type of the decrypted data to perform watermark extraction, and the extracted watermark information is obtained, and the extracted watermark information is compared with the original watermark information to generate a third verification result, and the third verification result is used to verify whether the decrypted original data is safe and complete during storage and transmission in the blockchain; wherein, the watermark extraction algorithm includes but is not limited to an image watermark extraction algorithm, an audio watermark extraction algorithm, a video watermark extraction algorithm, and a text watermark extraction algorithm; the image watermark extraction algorithm includes but is not limited to a least significant bit extraction algorithm, a transform domain extraction algorithm, and a spatial domain extraction algorithm; the audio watermark extraction algorithm includes but is not limited to a least significant bit extraction algorithm, a transform domain extraction algorithm, a digital signal processing algorithm, and a time-frequency analysis algorithm ; The video watermark extraction algorithm includes but is not limited to an inter-frame difference algorithm, a spatial domain extraction algorithm, a compression domain extraction algorithm and a transform domain extraction algorithm; the text watermark extraction algorithm includes but is not limited to a string matching algorithm, a keyword extraction algorithm and a natural language processing algorithm; taking the least significant bit extraction algorithm of the image watermark extraction algorithm as an example for watermark image extraction, the original image data with the watermark is converted into binary, and each pixel point of the original image data with the watermark is traversed and the least significant bit of each pixel point is extracted, and the value of the corresponding pixel point of the watermark image embedded in each pixel point is extracted according to the least significant bit, and a series of values of the corresponding pixel points of the watermark image are obtained, and the values of the corresponding pixel points of the series of watermark images are arranged and combined in sequence and the image is reconstructed to obtain the watermark image;
[0080] When the third verification result is that the extracted watermark information is consistent with the original watermark information, the data voucher and the original data are returned; otherwise, the data voucher and the original data are returned incorrectly;
[0081] In this embodiment, when the third verification result is that the extracted watermark information is consistent with the original watermark information, it proves that the decrypted original data is safe and complete during storage and transmission in the blockchain, and the returned data certificate and original data are normal; otherwise, it proves that the decrypted original data is insecure and incomplete during storage and transmission in the blockchain, and the returned data certificate and original data are wrong.
[0082] In this embodiment, after obtaining the data to be uploaded, the method further includes:
[0083] Write the rules and conditions of the smart contract, and deploy the written smart contract on the blockchain. According to the rules and conditions of the smart contract, automatically encrypt the data on the chain, generate and verify data certificates and store them on the chain.
[0084] In this embodiment, after the rules and conditions of the smart contract are written and the written smart contract is deployed on the blockchain, according to the rules and conditions of the smart contract, the data on the chain is automatically encrypted, data vouchers are generated and verified, and the data is stored on the chain, it also includes:
[0085] The consensus algorithm is deployed on the blockchain, and each node of the blockchain is managed and verified according to the consensus algorithm.
[0086] In this embodiment, after the consensus algorithm is deployed on the blockchain and node management and verification are performed on each node of the blockchain according to the consensus algorithm, the following further includes:
[0087] Establish a permission management mechanism, deploy the permission management mechanism on the blockchain, and determine data access and modification permissions based on the permission management mechanism.
[0088] Please refer to Figure 2 , which is a system structure diagram of a blockchain-based data voucher generation and verification system provided by an embodiment of the present invention; the system includes: a data acquisition module, a watermark information embedding module, a data encryption module, a data voucher generation module and a data voucher verification module;
[0089] In this embodiment, the data acquisition module is used to acquire the data to be uploaded to the chain; wherein the data to be uploaded to the chain includes original data and metadata; the metadata includes data creation time, data type and size;
[0090] In this embodiment, the watermark information embedding module is used to embed watermark information into the original data of the data to be uploaded using a watermark embedding algorithm adapted to the data type of the metadata of the data to be uploaded, so as to obtain the original data with watermark and the original watermark information, specifically:
[0091] When the data type of the metadata of the data to be uploaded is an image type, the image watermark embedding algorithm is used to embed watermark information into the original image data of the data to be uploaded to obtain the original image data with watermark;
[0092] In this embodiment, image preprocessing is performed on metadata and watermark images of image data type to obtain processed image metadata and watermark images, and the processed watermark images are embedded into the processed image metadata using an image watermark embedding algorithm to obtain original image data with watermarks; wherein the image preprocessing includes but is not limited to: image resizing, graying and binarization; the image watermark embedding algorithm includes but is not limited to: least significant bit watermark embedding algorithm, discrete cosine transform watermark embedding algorithm and discrete wavelet transform watermark embedding algorithm; taking the least significant bit watermark embedding algorithm as an example, binary conversion is performed on the original image data and the watermark image to obtain converted original image data and watermark images, the converted watermark image is resized to match the image size of the original image data, the image pixels of the converted original image data are traversed, the least significant bit of each image pixel is replaced with the value of the corresponding pixel of the converted watermark image, until the converted watermark image is completely embedded in the converted original image data, the binary original image data with watermarks is converted into decimal, and image reconstruction is performed to finally obtain the original image data with watermarks;
[0093] When the data type of the metadata of the data to be uploaded is audio type, the audio watermark embedding algorithm is used to embed watermark information into the original audio data of the data to be uploaded to obtain the original audio data with watermark;
[0094] In this embodiment, audio preprocessing is performed on raw audio data of audio data type to obtain processed raw audio data, and watermark information is embedded in the processed raw audio data using an audio watermark embedding algorithm to obtain raw audio data with watermark; wherein the audio preprocessing includes but is not limited to: filtering and denoising; the audio watermark embedding algorithm includes but is not limited to: least significant bit replacement algorithm, spread spectrum algorithm, phase encoding algorithm, echo hiding algorithm and audio transform domain algorithm; the audio transform domain algorithm includes but is not limited to discrete Fourier transform algorithm, discrete cosine transform algorithm and discrete wavelet transform algorithm; taking the discrete wavelet transform algorithm as an example, discrete wavelet transform is performed on the raw audio data to obtain wavelet coefficients of each layer, a watermark embedding position is selected according to the wavelet coefficients of each layer, the watermark information is converted into binary and then embedded in the watermark embedding position, and finally the wavelet coefficients embedded with the watermark information are inversely transformed and reconstructed to generate the raw audio data with watermark;
[0095] When the data type of the metadata of the data to be uploaded is a video type, a video watermark embedding algorithm is used to embed watermark information into the original video data of the data to be uploaded to obtain the original video data with a watermark;
[0096] In this embodiment, the original video data of the video type is decoded and segmented to obtain a series of independent video frames, and the watermark information is embedded in each video frame using a video watermark embedding algorithm and then the video is reassembled to obtain the original video data with watermark; wherein the video watermark embedding algorithm includes but is not limited to: a spatial domain algorithm, a video transform domain algorithm and a compression domain algorithm; the video transform domain algorithm includes but is not limited to a discrete cosine transform algorithm, a discrete wavelet transform algorithm and a singular value decomposition algorithm; taking the discrete cosine transform algorithm as an example, the original video data is decoded and segmented into a series of independent video frames, and a two-dimensional discrete cosine transform is performed on each video frame to obtain a series of discrete cosine transform coefficients of each video frame, and a watermark embedding position is selected according to a series of discrete cosine transform coefficients of each video frame, the watermark information is converted into binary and then embedded in the watermark embedding position, and a two-dimensional discrete inverse transform is performed on the discrete cosine transform coefficients with the embedded watermark information to obtain a series of video frames with watermarks, and finally the series of video frames with watermarks are reassembled to generate the original video data with watermarks;
[0097] When the data type of the metadata of the data to be uploaded is text type, the watermark information is embedded into the original text data of the data to be uploaded using the text watermark embedding algorithm to obtain the original text data with watermark;
[0098] In this embodiment, the text watermark information is determined and the text watermark embedding position is selected for the original text data of the text type, and the determined text watermark is embedded into the determined text watermark embedding position of the original text data using a text watermark embedding algorithm to obtain the original text data with watermark; wherein the text watermark embedding algorithm includes but is not limited to a fine-tuning algorithm based on document structure, a replacement algorithm based on text content, and an algorithm based on text encoding; taking the replacement algorithm based on text content as an example, the original text data is segmented to obtain the original text data after segmentation, and the text watermark is embedded into the original text data using a text watermark embedding algorithm. The watermark information is converted into a binary sequence to obtain the binary bits of the watermark information, and a synonym library is constructed. The synonyms in the synonym library are matched with the binary bits of the watermark information. According to the binary bits of the watermark information, the synonyms in the synonym library are used to replace the original text data after word segmentation. That is, when a certain bit of the binary bit of the watermark information is 1, the synonym corresponding to the bit in the synonym library is used to replace the word or phrase in the original text data. Otherwise, the word or phrase in the original text data is kept unchanged. Finally, all the replaced words or phrases are recombined to generate the original text data with watermark.
[0099] In this embodiment, the data encryption module is used to encrypt the original data with watermark according to the hybrid encryption algorithm, generate original encrypted data and encryption key, and store the original encrypted data, encryption key and original watermark information on the chain according to the data creation time of the metadata of the data to be chained as the timestamp, and obtain the data after chaining, which is specifically:
[0100] Encrypt the original data with watermark using a symmetric encryption algorithm to generate original encrypted data and a symmetric key;
[0101] In this embodiment, the symmetric encryption algorithm includes but is not limited to: AES, Blowfish and Twofish; taking the AES encryption algorithm as an example, a random number generator is used to randomly generate a symmetric key of a length that meets the length of the AES encryption algorithm, an encryption mode of the AES encryption algorithm is determined, and an AES encryptor of the AES encryption algorithm is initialized according to the symmetric key and the encryption mode, and the length of the original data with watermark is adjusted so that the data length of the original data with watermark meets the data length requirement of the AES encryption algorithm, and finally the AES encryptor is used to encrypt the original data with watermark after the length adjustment according to the encryption mode and the symmetric key to generate original encrypted data and a symmetric key;
[0102] Generate a public key and a private key according to an asymmetric encryption algorithm, and encrypt the symmetric key using the public key pair generated by the asymmetric encryption algorithm to generate an encryption key;
[0103] In this embodiment, the asymmetric encryption algorithm includes but is not limited to: RSA algorithm, ECC algorithm, ElGamal algorithm and DSA algorithm; taking the RSA asymmetric encryption algorithm as an example, the public key and private key of the RSA asymmetric encryption algorithm are determined, and the format and length of the symmetric key are adjusted so that the public key of the RSA asymmetric encryption algorithm encrypts the symmetric key to generate an encryption key;
[0104] The original encrypted data, encryption key and original watermark information are stored on the chain according to the data creation time of the metadata of the data to be uploaded to the chain as the timestamp.
[0105] In this embodiment, the data voucher generation module is used to perform hash value calculations on the original encrypted data and the encryption key in the data after being uploaded to the chain according to the hash function algorithm, obtain the first hash value and the second hash value, package the original encrypted data, the encryption key, the original watermark information, the first hash value and the second hash value to generate a data voucher, and store the data voucher on the chain, specifically:
[0106] Performing hash value calculation on the original encrypted data by using a hash function algorithm to generate a first hash value;
[0107] Performing hash value calculation on the encryption key by using a hash function algorithm to generate a second hash value;
[0108] The original encrypted data, encryption key, original watermark information, first hash value and second hash value are packaged to generate a data certificate, and the data certificate is stored on the chain.
[0109] In this embodiment, the hash function algorithm includes but is not limited to: MD5, SHA-1, SHA-2 series (including SHA-224, SHA-256, SHA-384, SHA-512, etc.) and SHA-3 series; taking the SHA-256 hash function algorithm to perform hash value calculation on the original encrypted data as an example, the original encrypted data is converted into a byte string, and the SHA-256 hash function algorithm is used to perform hash value calculation on the converted original encrypted data, and a 256-bit (i.e., 32-byte) hash value is output as the first hash value; taking the SHA-256 hash function algorithm to perform hash value calculation on the encryption key as an example, the encryption key is converted into a byte string, and the SHA-256 hash function algorithm is used to perform hash value calculation on the converted encryption key, and a 256-bit (i.e., 32-byte) hash value is output as the second hash value.
[0110] In this embodiment, the data voucher verification module is used to send the data voucher to the verifier, and the verifier verifies the data voucher based on the original encrypted data, encryption key, original watermark information, first hash value and second hash value in the data voucher using a zero-knowledge proof protocol, a hash function algorithm and a watermark extraction algorithm, specifically:
[0111] Using any one of the original encrypted data, the encryption key, the original watermark information, the first hash value, and the second hash value in the data voucher as a proof condition, verifying the proof condition through a zero-knowledge proof protocol to generate a first verification result;
[0112] In this embodiment, the zero-knowledge proof protocol includes but is not limited to: zk-SNARKs, zk-STARKs, Schnorr protocol, zk-PoK and interactive zero-knowledge proof protocol; taking zk-SNARKs as an example, any data is selected from the data voucher as a proof condition, a proof key and a verification key are generated by the Setup algorithm of zk-SNARKs, a proof is generated according to the proof key and the proof condition by the Prover algorithm of zk-SNARKs, the generated proof is verified according to the verification key and the proof condition by the Verifier algorithm of zk-SNARKs, and a first verification result is generated. When the first verification result is correct, it proves that the data voucher is safe and complete during storage and transmission in the blockchain, and the next step of hash value verification operation is performed. Otherwise, it proves that the data voucher is not safe and complete during storage and transmission in the blockchain, and the verification ends;
[0113] When the first verification result is that the zero-knowledge proof protocol verification proof condition is correct, the original encrypted data and the encryption key in the data voucher are respectively calculated by using a hash function algorithm to obtain a third hash value and a fourth hash value, and the third hash value and the fourth hash value are compared with the first and second hash values to generate a second verification result;
[0114] In this embodiment, the hash function algorithm used to generate the first and second hash values is used to calculate the hash values of the original encrypted data and the encryption key in the data voucher, respectively, to obtain a third hash value and a fourth hash value, and the third hash value and the fourth hash value are compared with the first and second hash values to generate a second verification result. When the second verification result is that the third hash value is equal to the first hash value and the fourth hash value is equal to the second hash value, it is proved that the original encrypted data and the encryption key of the data voucher are safe and complete during storage and transmission in the blockchain, and the next step of watermark information verification operation is performed. Otherwise, it is proved that the original encrypted data and the encryption key of the data voucher are not safe and complete during storage and transmission in the blockchain, and the verification ends.
[0115] When the second verification result is that the third Hash value is equal to the first Hash value and the fourth Hash value is equal to the second Hash value, the encryption key is decrypted to obtain a decrypted symmetric key, the original encrypted data is decrypted according to the decrypted symmetric key to obtain decrypted data, watermark extraction is performed on the decrypted data using a watermark extraction algorithm to obtain extracted watermark information, and the extracted watermark information is compared with the original watermark information to generate a third verification result;
[0116] In this embodiment, a corresponding watermark extraction algorithm is selected according to the data type of the decrypted data to perform watermark extraction, and the extracted watermark information is obtained, and the extracted watermark information is compared with the original watermark information to generate a third verification result, and the third verification result is used to verify whether the decrypted original data is safe and complete during storage and transmission in the blockchain; wherein, the watermark extraction algorithm includes but is not limited to an image watermark extraction algorithm, an audio watermark extraction algorithm, a video watermark extraction algorithm and a text watermark extraction algorithm; the image watermark extraction algorithm includes but is not limited to a least significant bit extraction algorithm, a transform domain extraction algorithm, and a spatial domain extraction algorithm; the audio watermark extraction algorithm includes but is not limited to a least significant bit extraction algorithm, a transform domain extraction algorithm, a digital signal processing algorithm and a time-frequency analysis algorithm; the video watermark extraction algorithm includes but is not limited to an inter-frame difference algorithm, a spatial domain extraction algorithm, and a text watermark extraction algorithm. algorithm, compression domain extraction algorithm and transform domain extraction algorithm; the text watermark extraction algorithm includes but is not limited to a string matching algorithm, a keyword extraction algorithm and a natural language processing algorithm; taking the least significant bit extraction algorithm of the image watermark extraction algorithm for watermark image extraction as an example, the original image data with the watermark is converted into binary, and each pixel point of the original image data with the watermark is traversed and the least significant bit of each pixel point is extracted, and the value of the corresponding pixel point of the watermark image embedded in each pixel point is extracted according to the least significant bit, and a series of values of the corresponding pixel points of the watermark image are obtained, and the values of the corresponding pixel points of the series of watermark images are arranged and combined in sequence and the image is reconstructed to obtain the watermark image; when the third verification result is that the extracted watermark information is consistent with the original watermark information, the data voucher and the original data are returned; otherwise, the data voucher and the original data are returned incorrectly;
[0117] In this embodiment, when the third verification result is that the extracted watermark information is consistent with the original watermark information, it proves that the decrypted original data is safe and complete during storage and transmission in the blockchain, and the returned data certificate and original data are normal; otherwise, it proves that the decrypted original data is insecure and incomplete during storage and transmission in the blockchain, and the returned data certificate and original data are wrong.
[0118] In this embodiment, after the data acquisition module, it also includes: a smart contract module is used to write the rules and conditions of the smart contract, and deploy the written smart contract on the blockchain. According to the rules and conditions of the smart contract, it automatically encrypts the data on the chain, generates and verifies data certificates and stores them on the chain.
[0119] In this embodiment, after the smart contract module, it also includes: a consensus algorithm module for deploying the consensus algorithm on the blockchain, and performing node management and verification on each node of the blockchain according to the consensus algorithm.
[0120] In this embodiment, after the consensus algorithm module, it also includes: a permission management module for establishing a permission management mechanism, deploying the permission management mechanism on the blockchain, and determining data access and modification permissions based on the permission management mechanism.
[0121] It should be noted that the system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the system embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without creative work.
[0122] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
[0123] Those skilled in the art can understand that all or part of the processes in the above embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes in the above embodiments. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
Claims
1. A data credential generation and verification method based on blockchain, characterized in that: include: Acquire the data to be uploaded to the chain; wherein the data to be uploaded to the chain includes original data and metadata; the metadata includes data creation time, data type and size; Using a watermark embedding algorithm adapted to the data type of the metadata of the data to be uploaded, embed watermark information into the original data of the data to be uploaded, and obtain the original data with watermark and the original watermark information; The original data with watermark is encrypted using a symmetric encryption algorithm to generate original encrypted data and a symmetric key; a public key and a private key are generated using an asymmetric encryption algorithm, and the symmetric key is encrypted using the public key pair generated by the asymmetric encryption algorithm to generate an encryption key; the original encrypted data, encryption key and original watermark information are stored on the chain using the data creation time of the metadata of the data to be uploaded as a timestamp to obtain the uploaded data; According to the hash function algorithm, the original encrypted data and the encryption key in the data uploaded to the chain are respectively hashed to obtain the first hash value and the second hash value, the original encrypted data, the encryption key, the original watermark information, the first hash value and the second hash value are packaged to generate a data voucher, and the data voucher is uploaded to the chain for storage; The data voucher is sent to the verification party, and the verification party uses any one of the original encrypted data, encryption key, original watermark information, first hash value and second hash value in the data voucher as the proof condition, verifies the proof condition through the zero-knowledge proof protocol, and generates a first verification result; when the first verification result is that the proof condition is verified to be correct by the zero-knowledge proof protocol, the hash value of the original encrypted data and the encryption key in the data voucher is calculated by using the hash function algorithm to obtain a third hash value and a fourth hash value, and the third hash value and the fourth hash value are compared with the first and second hash values to generate a second verification result; when the second verification result is that the third hash value is equal to the first hash value and the fourth hash value is equal to the second hash value, the encryption key is decrypted to obtain a decrypted symmetric key, the original encrypted data is decrypted according to the decrypted symmetric key to obtain decrypted data, the decrypted data is watermark extracted by the watermark extraction algorithm to obtain the extracted watermark information, and the third verification result is generated by comparing the extracted watermark information with the original watermark information; when the third verification result is that the extracted watermark information is consistent with the original watermark information, the data voucher and the original data are returned; otherwise, the data voucher and the original data are returned incorrectly.
2. The method for generating and verifying data credentials based on blockchain according to claim 1, characterized in that: The method of using a watermark embedding algorithm adapted to the data type of the metadata of the data to be uploaded to the chain to embed watermark information into the original data of the data to be uploaded to the chain to obtain the original data with the watermark includes: When the data type of the metadata of the data to be uploaded is an image type, the image watermark embedding algorithm is used to embed watermark information into the original image data of the data to be uploaded to obtain the original image data with watermark; When the data type of the metadata of the data to be uploaded is audio type, the audio watermark embedding algorithm is used to embed watermark information into the original audio data of the data to be uploaded to obtain the original audio data with watermark; When the data type of the metadata of the data to be uploaded is a video type, a video watermark embedding algorithm is used to embed watermark information into the original video data of the data to be uploaded to obtain the original video data with a watermark; When the data type of the metadata of the data to be uploaded is a text type, a text watermark embedding algorithm is used to embed watermark information into the original text data of the data to be uploaded to the chain to obtain the original text data with a watermark.
3. The method for generating and verifying data credentials based on blockchain according to claim 1 is characterized in that: After obtaining the data to be uploaded, the method further includes: Write the rules and conditions of the smart contract, and deploy the written smart contract on the blockchain. According to the rules and conditions of the smart contract, automatically encrypt the data on the chain, generate and verify data certificates and store them on the chain.
4. The method for generating and verifying data credentials based on blockchain according to claim 3 is characterized in that: After the rules and conditions of the smart contract are written and deployed on the blockchain, the data on the blockchain is automatically encrypted, data certificates are generated and verified, and stored on the blockchain according to the rules and conditions of the smart contract, and the following is also included: The consensus algorithm is deployed on the blockchain, and each node of the blockchain is managed and verified according to the consensus algorithm.
5. The method for generating and verifying data credentials based on blockchain according to claim 4 is characterized in that: After the consensus algorithm is deployed on the blockchain and each node of the blockchain is managed and verified according to the consensus algorithm, the following steps are also included: Establish a permission management mechanism, deploy the permission management mechanism on the blockchain, and determine data access and modification permissions based on the permission management mechanism.
6. The data certificate generation and verification system based on blockchain is characterized by: include: Data acquisition module, watermark information embedding module, data encryption module, data voucher generation module and data voucher verification module; The data acquisition module is used to acquire the data to be uploaded to the chain; wherein the data to be uploaded to the chain includes original data and metadata; the metadata includes data creation time, data type and size; The watermark information embedding module is used to embed watermark information into the original data of the data to be uploaded using a watermark embedding algorithm adapted to the data type of the metadata of the data to be uploaded, so as to obtain the original data with watermark and the original watermark information; The data encryption module is used to encrypt the original data with watermark using a symmetric encryption algorithm to generate original encrypted data and a symmetric key; generate a public key and a private key according to an asymmetric encryption algorithm, and encrypt the symmetric key using the public key pair generated by the asymmetric encryption algorithm to generate an encryption key; The original encrypted data, encryption key and original watermark information are stored on the chain according to the data creation time of the metadata of the data to be uploaded as the timestamp, and the uploaded data is obtained; The data voucher generation module is used to calculate the hash values of the original encrypted data and the encryption key in the data after being uploaded to the chain according to the hash function algorithm, obtain the first hash value and the second hash value, package the original encrypted data, the encryption key, the original watermark information, the first hash value and the second hash value to generate a data voucher, and store the data voucher on the chain; The data voucher verification module is used to send the data voucher to the verifier, and the verifier verifies the proof condition through a zero-knowledge proof protocol based on any one of the original encrypted data, encryption key, original watermark information, first Hash value and second Hash value in the data voucher as a proof condition, and generates a first verification result; when the first verification result is that the zero-knowledge proof protocol verifies that the proof condition is correct, the hash function algorithm is used to calculate the hash values of the original encrypted data and the encryption key in the data voucher respectively to obtain a third Hash value and a fourth Hash value, and the third Hash value and the fourth Hash value are compared with the first and second Hash values to generate a third Hash value. Second verification result; when the second verification result is that the third hash value is equal to the first hash value and the fourth hash value is equal to the second hash value, the encryption key is decrypted to obtain the decrypted symmetric key, the original encrypted data is decrypted according to the decrypted symmetric key to obtain the decrypted data, the watermark is extracted from the decrypted data by the watermark extraction algorithm to obtain the extracted watermark information, and the third verification result is generated by comparing the extracted watermark information with the original watermark information; when the third verification result is that the extracted watermark information is consistent with the original watermark information, the data voucher and the original data are returned; otherwise, the returned data voucher and the original data are wrong.
Citation Information
Patent Citations
Digital product secure transaction method and system based on blockchain technology
CN111369248A
Digital product secure transaction system and method based on blockchain technology
CN112702158A
Data transmission method, system and device based on block chain commitment and medium
CN115664769A
Two-dimensional code offline verification method and system, and storage medium
CN117857060A
System and method for security suite concatenating validation elements for blockchain binding operations
US11954215B1
