A Blockchain-Based Digital Resource Full Lifecycle Management Method and Device
By introducing quantum communication and blockchain technology into the digital resource management system and building a smart contract model with machine learning algorithms, the problems of insufficient security of traditional encryption algorithms and insufficient flexibility of smart contract models are solved, and efficient and secure full-life cycle management of digital resources are achieved.
Patent Information
- Application Number
- CN202510305006.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-14
- Publication Date
- 2025-07-01
- Estimated Expiration
- 2045-03-14
AI Technical Summary
Traditional encryption algorithms lack security in the face of high-level cyber attacks, smart contract models lack flexibility, and cannot dynamically adjust resource configuration strategies, and existing digital resource management systems have poor user experience when dealing with complex and variable user needs.
By establishing a quantum communication link to use quantum key to generate a shared key, digital resources are encrypted AES-256 and recorded on the blockchain; encrypted data is transmitted using the TLS protocol and data integrity is verified through SHA-256; historical data is collected and LSTM machine learning algorithm is used to build a smart contract model, dynamically adjust resource configuration strategies; monitor the running status of smart contracts in real time and adjust parameters based on feedback information.
It realizes highly secure data transmission and tamper-free data storage, enhances overall security and reliability; optimizes resource configuration strategies, improves service efficiency and user experience; through self-optimization and continuous improvement, improves response speed and flexibility.
Smart Images

Figure CN119834957B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical fields of information security and blockchain, and particularly to a method and device for managing the entire life cycle of digital resources based on blockchain. Background Art
[0002] With the rapid development of information technology, the secure management and efficient utilization of digital resources have become an increasingly important research field. Traditional digital resource management methods mainly rely on centralized database systems and ensure data security and privacy through access control lists (ACL) or role-based access control (RBAC) mechanisms. However, with the application of emerging technologies such as cloud computing, big data, and the Internet of Things, traditional methods have gradually revealed their limitations, especially in terms of data transmission security and integrity verification. Existing technologies often struggle to provide sufficient guarantees. In addition, the dynamic management of digital resources also faces challenges. For example, how to optimize resource allocation strategies based on user behavior patterns and historical data has become a problem to be solved. In recent years, blockchain technology has gradually been applied to digital resource management due to its decentralized, immutable, and transparent characteristics, providing new solutions. However, there are still many challenges in the practical application of blockchain technology, such as slow transaction processing speed and limited smart contract functions.
[0003] Although existing blockchain technologies have been able to enhance the security and traceability of digital resources to a certain extent, there are still deficiencies in encrypted communication and dynamic resource allocation. First, during data transmission, although traditional encryption algorithms can provide certain security guarantees, their security still needs to be improved in the face of high-level network attacks. Second, existing smart contract models usually lack flexibility and cannot dynamically adjust resource allocation strategies based on real-time feedback information. Especially when dealing with large-scale data sets, how to effectively use historical data for predictive analysis and generate optimal strategies remains a difficult problem. In addition, existing digital resource management systems often struggle to meet complex and changing user needs, resulting in a poor user experience. Therefore, developing a method that can ensure data transmission security and achieve intelligent resource management is of great significance for improving the overall management level of digital resources. Summary of the Invention
[0004] In view of the above existing problems, the present invention is proposed.
[0005] Therefore, the present invention provides a method for managing the entire life cycle of digital resources based on blockchain to solve the problem that although traditional encryption algorithms can provide certain security guarantees during data transmission, their security still needs to be improved in the face of high-level network attacks.
[0006] To solve the above technical problems, the present invention provides the following technical solutions:
[0007] In a first aspect, the present invention provides a method for managing the entire life cycle of digital resources based on blockchain, which includes
[0008] Establish a quantum communication link between users and use quantum key distribution (QKD) to generate a shared quantum key;
[0009] The sending user encrypts the digital resources it owns using the quantum key and records the encrypted digital resources on the blockchain;
[0010] The sending user sends the encrypted digital resources to other users through a secure channel. After receiving them, the other users decrypt the digital resources on the blockchain using the shared quantum key and verify their integrity;
[0011] Collect historical digital resource data on digital resource access, build an intelligent contract model based on the historical data using machine learning algorithms, input the historical digital resource data into the intelligent contract model for training, and simultaneously output dynamic policy values;
[0012] Deploy the trained intelligent contract into the blockchain environment, monitor the running state in real time, and adjust the parameters of the intelligent contract model according to the feedback information.
[0013] As a preferred solution of the method for managing the entire life cycle of digital resources based on blockchain according to the present invention, wherein: the steps of establishing a quantum communication link between users and using quantum key distribution (QKD) to generate a shared quantum key are as follows:
[0014] Establish a quantum communication link between users by sending quantum state photons using a quantum key distributor;
[0015] Adopt the BB84 protocol for the generation and distribution of quantum keys;
[0016] The sending user selects a set of polarization angles and the corresponding measurement bases , where represents the th quantum state photon. For each quantum state photon, the sending user sets the quantum state according to the polarization state of the single quantum state photon and sends the quantum state photon to other users through an optical fiber;
[0017] The sending user selects a measurement basis through the quantum key distributor and prepares the polarization state of the quantum state photon according to the selected measurement basis;
[0018] After receiving the quantum state photon, the other users randomly select a measurement basis to perform the measurement;
[0019] When other users select the same measurement basis as the sending user for measurement, the initial polarization state of the quantum state photon is determined; otherwise, the measurement result is random;
[0020] After the sending and receiving of the quantum state photon are completed, the sending user and other users disclose their measurement basis selections. When both parties select the same measurement basis, the corresponding measurement results are retained as the shared quantum key.
[0021] As a preferred solution of the blockchain-based digital resource full life cycle management method described in the present invention, wherein: the sending user encrypts the digital resources it owns using the quantum key and records the encrypted digital resources on the blockchain. The specific steps are as follows:
[0022] The digital resources refer to document data, image data, audio data, and video data;
[0023] The sending user uses the shared quantum key generated during the quantum key distribution process as the key for AES-256 to encrypt the digital resources owned by the sending user, and each type of digital resource is encrypted according to the same process.
[0024] Set the set of encrypted digital resources as , indicating the th encrypted digital resource, indicating belonging to;
[0025] After the encryption process is completed, the sending user generates corresponding metadata for each encrypted digital resource. The expression is:
[0026] ;
[0027] Among them, indicates the metadata generated by the th encrypted digital resource, indicates the resource ID generated by the th encrypted digital resource, indicates the ownership attribution information generated by the th encrypted digital resource, indicates the timestamp generated by the th encrypted digital resource;
[0028] Use the blockchain technology Ethereum to record the encrypted digital resources and their metadata.
[0029] As a preferred solution of the blockchain-based digital resource full life cycle management method of the present invention, wherein: the sending user sends the encrypted digital resource to other users through a secure channel. After receiving it, the other users use the shared quantum key to decrypt the digital resource on the blockchain and verify its integrity. The specific steps are as follows:
[0030] A secure channel is established between the sending user and other users through the TLS protocol;
[0031] The sending user sends the encrypted digital resource and its metadata to other users through the TLS secure channel;
[0032] Other users receive the encrypted digital resource and metadata and then use the shared quantum key generated by QKD as the key for AES-256 decryption;
[0033] Set the hash value of the original digital resource as ;
[0034] Use the SHA-256 hash algorithm to calculate the hash value of the decrypted digital resource and compare it with the hash value provided by the sending user;
[0035] Other users compare the hash value of the original digital resource with the hash value of the decrypted digital resource When the two are equal, it means that the data is complete and has not been tampered with; otherwise, the data is damaged or tampered with.
[0036] As a preferred solution of the blockchain-based digital resource full life cycle management method of the present invention, wherein: collect historical digital resource data regarding digital resource access, and construct an intelligent contract model based on historical data by applying machine learning algorithms. Specifically:
[0037] After completing digital resource encryption, transmission, and decryption verification, obtain historical digital resource data from the blockchain log, and extract key feature vectors from the historical digital resource data ;
[0038] Select to use the long short-term memory network LSTM as the machine learning algorithm to construct the intelligent contract model;
[0039] Take the key feature vector as the input. The input layer of the intelligent contract model receives the key feature vector and captures the time dependence in the key feature vector through multiple hidden layers, and the output layer generates dynamic policy values.
[0040] As a preferred solution of the blockchain-based digital resource full life cycle management method of the present invention, wherein: inputting the historical digital resource data into the intelligent contract model for training and outputting the dynamic policy value at the same time means inputting the key feature vector into the intelligent contract model, and the expression is:
[0041] ;
[0042] ;
[0043] ;
[0044] ;
[0045] ;
[0046] ;
[0047] ;
[0048] wherein, represents the output of the input gate, and are respectively the weight matrix and bias term of the input gate, represents the output of the forget gate, and are respectively the weight matrix and bias term of the forget gate, represents the hidden state at time , represents the activation function Sigmoid, represents the output of the output gate, and are respectively the weight matrix and bias term of the output gate, represents the memory state of the LSTM cell at time , represents the memory state of the LSTM cell at time , and are respectively the weight matrix and bias term of the memory state, represents the hidden state at time , represents the hyperbolic tangent function, and represent the weight matrix and bias term of the policy value at time , represents the dynamic policy value at time , represents the weight coefficient of the immediate policy, denotes the policy value at time , denotes the decay rate, denotes the integral variable, denotes each time point within the integral interval for the policy value, denotes the baseline value of the minimum resource allocation.
[0049] As a preferred solution of the blockchain-based digital resource full life cycle management method described in the present invention, wherein: deploying the trained smart contract model into the blockchain environment, monitoring the running state in real time, and adjusting the parameters of the smart contract model according to the feedback information, the specific steps are as follows:
[0050] Set the user's access frequency and user satisfaction score as feedback information, continuously collect the user's access frequency and user satisfaction score, and the user satisfaction score is obtained by filling out a questionnaire;
[0051] Calculate the dynamic adjustment amount according to the feedback information, and the expression is:
[0052] ;
[0053] wherein, denotes the parameter adjustment amount at time , denotes the sample size, denotes the index variable of time, denotes the th actual satisfaction score at time, denotes the th target satisfaction score at time, denotes the adjustment coefficient, denotes the base of the natural logarithm, denotes the forgetting factor, denotes the access frequency at time , denotes the integral variable;
[0054] According to update the parameters of the smart contract model, and the expression is:
[0055] ;
[0056] wherein, denotes the th parameter at time, denotes the th learning rate of the parameter.
[0057] Second aspect, the present invention provides a blockchain-based digital resource full life cycle management device, including a quantum key distribution module, a digital resource encryption module, a digital resource decryption module, an intelligent contract model construction module, and a dynamic adjustment module:
[0058] The quantum key distribution module is responsible for establishing a quantum communication link between users and generating a shared quantum key through quantum key distribution (QKD) technology. It uses the BB84 protocol to ensure the security of the key and prevent eavesdropping;
[0059] The digital resource encryption module is used to perform AES-256 encryption processing on the digital resources owned by users using the quantum key, and record the encrypted digital resources and their metadata on the blockchain;
[0060] Once the encrypted digital resources are sent to other users through a secure channel, the digital resource decryption module is responsible for decrypting them using the shared quantum key and verifying the integrity of the decrypted data through the SHA-256 hash algorithm;
[0061] The intelligent contract model construction module is responsible for extracting historical data on digital resource access from the blockchain log and applying machine learning algorithms to construct an intelligent contract model;
[0062] The dynamic adjustment module is used to continuously collect the access frequency and satisfaction ratings of users as feedback information, calculate the dynamic adjustment amount, and update the parameters of the intelligent contract model accordingly.
[0063] Third aspect, the present invention provides a computer device, including a memory and a processor. The memory stores a computer program, wherein: when the computer program is executed by the processor, any step of the blockchain-based digital resource full life cycle management method described in the first aspect of the present invention is implemented.
[0064] Fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, wherein: when the computer program is executed by the processor, any step of the blockchain-based digital resource full life cycle management method described in the first aspect of the present invention is implemented.
[0065] The beneficial effects of the present invention are as follows: By establishing a quantum communication link and using quantum key distribution (QKD) to generate a shared key, the present invention realizes a highly secure data transmission channel, effectively preventing eavesdropping and data leakage. The digital resources are encrypted using AES-256 with the quantum key, and the encrypted resources are recorded on the blockchain, ensuring the confidentiality and immutability of the data, enhancing the overall security and reliability. The encrypted data is transmitted through a secure channel of the TLS protocol, and SHA-256 is used to verify the data integrity, guaranteeing the security and consistency during the data transmission process. The historical data of digital resource access is collected, and the LSTM machine learning algorithm is applied to construct an intelligent contract model, realizing the optimization of the dynamic resource allocation strategy, improving the service efficiency and user experience. Finally, by real-time monitoring the running state of the intelligent contract and adjusting parameters according to the feedback information, self-optimization and continuous improvement are achieved, enhancing the response speed and flexibility. These measures jointly ensure the efficient, secure management and optimized allocation of digital resources throughout their life cycle. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0067] Figure 1 It is a flowchart of the method for managing the entire life cycle of digital resources based on blockchain in Embodiment 1.
[0068] Figure 2 It is a schematic diagram of the device for managing the entire life cycle of digital resources based on blockchain in Embodiment 1. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0069] To make the above objects, features, and advantages of the present invention more obvious and understandable, the following will give a detailed description of the specific embodiments of the present invention in conjunction with the drawings in the specification.
[0070] In the following description, many specific details are set forth to fully understand the present invention. However, the present invention can also be implemented in other ways different from those described herein. Those skilled in the art can make similar extensions without departing from the connotation of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed below.
[0071] Second, the "one embodiment" or "embodiment" referred to herein means a specific feature, structure, or characteristic that may be included in at least one implementation manner of the present invention. The phrase "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor is it an individual or alternative embodiment that is mutually exclusive with other embodiments.
[0072] Embodiment 1, referring to Figure 1 and Figure 2 , is the first embodiment of the present invention. This embodiment provides a blockchain-based digital resource full-life cycle management method, including the following steps:
[0073] S1. Establish a quantum communication link between users and generate a pair of shared quantum keys using quantum key distribution (QKD);
[0074] Establish a quantum communication link between users by sending quantum state photons using a quantum key distributor;
[0075] Adopt the BB84 protocol for the generation and distribution of quantum keys. The BB84 protocol is one of the classical protocols in quantum key distribution. It utilizes the basic properties of quantum mechanics, such as the no-cloning theorem and the Heisenberg uncertainty principle, to ensure the security of the key. It does not rely on a specific hardware system and can be implemented only by following the protocol, making it applicable to a wide range of scenarios;
[0076] Users prepare quantum key distribution devices (QKD devices). The quantum key distribution devices can generate and detect the quantum states of single photons and need to have the ability to adjust the polarization angle in order to select an appropriate basis for the preparation and measurement of quantum states according to the BB84 protocol;
[0077] The sending user selects a set of polarization angles and corresponding measurement bases , where represents the th quantum state photon. For each quantum state photon, the sending user sets the quantum state according to the polarization state of the single quantum state photon and sends the photon of this quantum state to other users through an optical fiber;
[0078] The quantum state represents the polarization state of a single quantum state photon, and the measurement bases include the rectilinear basis and the diagonal basis;
[0079] Rectilinear basis: It includes horizontal polarization and vertical polarization. If the sender selects this basis to prepare photons, the receiver must also use the same basis to measure in order to accurately identify the polarization direction;
[0080] Diagonal basis: It includes +45-degree polarization and -45-degree polarization. Similarly, only when the sender and the receiver use the same type of basis can the polarization information of the photon be correctly decoded;
[0081] The sending user randomly selects a measurement basis (rectilinear basis or diagonal basis) through a quantum key distributor, and then prepares the polarization state of photons according to the selected measurement basis;
[0082] After other users receive the quantum state photons, they will also randomly select a measurement basis to perform measurements;
[0083] When other users select the same measurement basis as the sending user for measurement, the initial polarization state of the quantum state photons can be determined; otherwise, the measurement results are random;
[0084] After the sending and receiving of the quantum state photons are completed, the sending user and other users disclose their measurement basis selections (but do not disclose the specific measurement results). Only when both parties select the same measurement basis, the corresponding measurement results will be retained as the shared quantum key;
[0085] In this way, the sending user and other users can obtain a shared quantum key. This key is generated through the exchange and comparison of quantum states, and due to the basic properties of quantum mechanics, any eavesdropping behavior will be detected.
[0086] S2. The sending user uses the quantum key to encrypt the digital resources it owns and records the encrypted digital resources on the blockchain;
[0087] Digital resources refer to document data, image data, audio data, and video data;
[0088] The sending user uses the shared quantum key generated during the quantum key distribution process as the key for AES-256 to encrypt the digital resources owned by the sending user. Each type of digital resource is encrypted according to the same process;
[0089] Set the set of encrypted digital resources as , indicating the th encrypted digital resource, indicating belongs to;
[0090] By using the quantum key for AES-256 encryption of the digital resources owned by the sending user, high-strength data security is achieved. As a widely used symmetric encryption standard, AES-256 is selected for its high-strength security and relatively fast operation speed. This step not only ensures the confidentiality during data transmission but also prevents unauthorized access. Especially when dealing with highly sensitive data such as financial transaction records or personal privacy information, AES-256 encryption can significantly enhance data security and reduce the risk of leakage;
[0091] After the encryption process is completed, the sending user generates corresponding metadata for each encrypted digital resource, and the expression is:
[0092] ;
[0093] Wherein, represents the metadata generated from the th encrypted digital resource, represents the resource ID generated from the th encrypted digital resource, which is implemented using the UUID generation algorithm, represents the ownership attribution information generated from the th encrypted digital resource, represents the timestamp generated from the th encrypted digital resource;
[0094] After the encryption process is completed, the sending user generates corresponding metadata for each encrypted digital resource and records it on the blockchain. This process not only enhances the traceability and transparency of the data but also simplifies the management and audit processes. For example, during the internal audit process, the metadata provides detailed information support, enabling each record to be accurately traced and verified. In addition, using the UUID generation algorithm to generate the resource ID ensures the uniqueness of each resource and avoids problems of duplicate records or confusion;
[0095] The metadata refers to the resource ID, ownership attribution information, and timestamp. The AES-256 is selected as the encryption algorithm. AES-256 is a widely used symmetric encryption standard and is selected because of its high security and relatively fast operation speed;
[0096] The ownership attribution information refers to the user name and organization name;
[0097] The Ethereum blockchain technology is used to record the encrypted digital resources and their metadata. Ethereum is an open-source blockchain platform that supports smart contract functions and is very suitable for implementing complex business logic and data management requirements;
[0098] Using Ethereum to record the encrypted digital resources and their metadata further enhances the security and reliability. As an open-source blockchain platform, Ethereum supports smart contract functions and is very suitable for implementing complex business logic and data management requirements. The immutability and decentralization characteristics of blockchain technology ensure the consistency and integrity of the data and prevent malicious tampering behavior, which is particularly important for application scenarios that require a high degree of trust and transparency, such as supply chain management and intellectual property protection fields.
[0099] S3. The sending user sends the encrypted digital resources to other users through a secure channel. After receiving them, the other users use the shared quantum key to decrypt the digital resources on the blockchain and verify their integrity;
[0100] The sending user has already used quantum key distribution (QKD) to generate a pair of shared quantum keys, and used this key as the key of AES-256 to encrypt the digital resources it owns;
[0101] The sending user also generates metadata for each encrypted digital resource and records it on the Ethereum blockchain;
[0102] A secure channel is established between the sending user and other users through the TLS protocol. The TLS protocol provides end-to-end encrypted communication to ensure that data cannot be eavesdropped on and tampered with during transmission;
[0103] The sending user sends the encrypted digital resources and their metadata to other users through the TLS secure channel. Let the encrypted digital resource be C and the metadata be ;
[0104] After the other users receive the encrypted digital resource C and the metadata they use the shared quantum key generated through QKD as the key of AES-256 for decryption. The expression is:
[0105] ;
[0106] Among them, represents using the AES-256 decryption function to decrypt C. The decryption function refers to the process of decrypting using the AES-256 (Advanced Encryption Standard, 256-bit key length) symmetric encryption algorithm. represents the decrypted digital resource, represents the shared quantum key generated through QKD;
[0107] Let the hash value of the original digital resource be ;
[0108] Calculate the hash value of the decrypted digital resource using the SHA-256 hash algorithm and compare it with the hash value provided by the sending user to verify whether the decrypted digital resource is complete and has not been tampered with. The expression is:
[0109] ;
[0110] Among them, represents the hash value of the received decrypted data, Indicates calculating the hash value of the decrypted data using the SHA-256 hash function;
[0111] Other users will compare the hash value of the original digital resource with the hash value of the decrypted digital resource When the two are equal, it indicates that the data is complete and has not been tampered with; otherwise, the data is damaged or tampered with.
[0112] S4. Collect historical digital resource data on digital resource access, apply machine learning algorithms based on the historical data to construct an intelligent contract model, input the historical digital resource data into the intelligent contract model for training, and output dynamic policy values at the same time;
[0113] After completing digital resource encryption, transmission, and decryption verification, obtain historical digital resource data from the blockchain's log, and extract key feature vectors from the historical digital resource data , the expression is:
[0114] ;
[0115] Among them, represents time, represents the user ID at time , represents the resource type at time , represents the access time at time , represents the access frequency at time ;
[0116] The resource type refers to four resource types: document data, image data, audio data, and video data;
[0117] Select to use the long short-term memory network LSTM as the machine learning algorithm to construct an intelligent contract model. LSTM is a special recurrent neural network RNN, which is very suitable for processing and predicting time series data. Take the key feature vector as the input. The input layer of the intelligent contract model receives the key feature vector , captures the time dependence in the key feature vector through multiple hidden layers, and the output layer generates dynamic policy values to guide subsequent resource allocation decisions;
[0118] Inputting the historical digital resource data into the intelligent contract model for training and outputting dynamic policy values at the same time means inputting the key feature vector into the intelligent contract model, and the expression is:
[0119] ;
[0120] ;
[0121] ;
[0122] ;
[0123] ;
[0124] ;
[0125] ;
[0126] wherein, represents the output of the input gate, and are the weight matrix and bias term of the input gate respectively, represents the output of the forget gate, and are the weight matrix and bias term of the forget gate respectively, represents the hidden state at time , represents the activation function Sigmoid, represents the output of the output gate, and are the weight matrix and bias term of the output gate respectively, represents the memory state of the LSTM cell at time , represents the memory state of the LSTM cell at time , and are the weight matrix and bias term of the memory state respectively, represents the hidden state at time , represents the hyperbolic tangent function, and represent the weight matrix and bias term of the policy value at time , represents the dynamic policy value at time , represents the weight coefficient of the immediate policy, represents the policy value at time , represents the decay rate, represents the integration variable, represents the policy value at each time point in the integration interval, where is a variable used to describe the time from time 0 to the current time at all time points within, represents the baseline value of the minimum resource allocation;
[0127] By obtaining historical digital resource data from the blockchain log and extracting key feature vectors from it, the accurate capture of user behavior patterns is achieved. This time-series-based data processing method can effectively reflect the usage of different types of digital resources at different time periods. For example, in the document management scenario, by analyzing the user access time and frequency, peak and trough periods can be identified, thereby optimizing the server load allocation. This not only improves the response speed but also reduces resource waste.
[0128] S5. Deploy the trained smart contract into the blockchain environment, monitor the running status in real time, and adjust the parameters of the smart contract model according to the feedback information;
[0129] Set the user access frequency and user satisfaction score as feedback information, continuously collect the user access frequency and user satisfaction score. The user satisfaction score is obtained by filling out a questionnaire;
[0130] Calculate the dynamic adjustment amount according to the feedback information. The expression is:
[0131] ;
[0132] where, represents the parameter adjustment amount at time ; represents the number of samples; represents the index variable of time; represents the actual satisfaction score at the th time; represents the target satisfaction score at the th time; represents the adjustment coefficient; represents the base of the natural logarithm; represents the forgetting factor, which determines the influence degree of the historical access frequency when calculating the dynamic adjustment amount; represents the access frequency at time ;
[0133] According to update the parameters of the smart contract model. The expression is:
[0134] ;
[0135] where, represents the th a parameter, indicating the learning rate of the parameter;
[0136] Calculate the dynamic adjustment amount based on the feedback information. This process comprehensively considers the difference between the actual satisfaction score and the target satisfaction score, as well as the impact of historical access frequency. The introduction of the forgetting factor and the adjustment coefficient enables rapid response to user needs in the short term while maintaining long-term stable performance;
[0137] Update the parameters of the smart contract model according to the calculated dynamic adjustment amount to achieve self-optimization of the smart contract model. The learning rate determines the amplitude of each adjustment. A reasonable setting can accelerate the convergence process and avoid overfitting. For example, in a financial trading system, by dynamically adjusting the trading strategy parameters, it can better adapt to market changes and improve the trading success rate. This adaptive adjustment mechanism not only improves flexibility but also enhances its ability to cope with complex environments.
[0138] This embodiment also provides a blockchain-based digital resource full-life cycle management device, including: a quantum key distribution module, a digital resource encryption module, a digital resource decryption module, a smart contract model construction module, and a dynamic adjustment module:
[0139] The quantum key distribution module is responsible for establishing a quantum communication link between users and generating a shared quantum key through quantum key distribution (QKD) technology. It uses the BB84 protocol to ensure the security of the key and prevent eavesdropping;
[0140] The digital resource encryption module is used to perform AES-256 encryption processing on the digital resources owned by users using the quantum key and record the encrypted digital resources and their metadata on the blockchain;
[0141] Once the encrypted digital resources are sent to other users through a secure channel, the digital resource decryption module is responsible for decrypting them using the shared quantum key and verifying the integrity of the decrypted data through the SHA-256 hash algorithm;
[0142] The smart contract model construction module is responsible for extracting historical data on digital resource access from the blockchain log and applying machine learning algorithms to construct a smart contract model;
[0143] The dynamic adjustment module is used to continuously collect the access frequency and satisfaction score of users as feedback information, calculate the dynamic adjustment amount, and update the parameters of the smart contract model accordingly.
[0144] This embodiment also provides a computer device applicable to the case of the full life cycle management method of digital resources based on blockchain, including: a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions to implement the full life cycle management method of digital resources based on blockchain as proposed in the above embodiment.
[0145] The computer device can be a terminal. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a carrier network, NFC (Near Field Communication), or other technologies. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the outer shell of the computer device, or an external keyboard, a touchpad, or a mouse, etc.
[0146] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, it implements the full life cycle management method of digital resources based on blockchain as proposed in the above embodiment; the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM for short), Electrically Erasable Programmable Read-Only Memory (EEPROM for short), Erasable Programmable Read-Only Memory (EPROM for short), Programmable Read-Only Memory (PROM for short), Read-Only Memory (ROM for short), magnetic memory, flash memory, a magnetic disk, or an optical disc.
[0147] In summary, the present invention achieves a highly secure data transmission channel by establishing a quantum communication link and using quantum key distribution (QKD) to generate a shared key, effectively preventing eavesdropping and data leakage. It encrypts digital resources using the quantum key with AES-256 and records the encrypted resources on the blockchain to ensure data confidentiality and immutability, enhancing overall security and reliability. It transmits the encrypted data through a secure channel of the TLS protocol and uses SHA-256 to verify data integrity, ensuring security and consistency during data transmission. It collects historical data on digital resource access, applies the LSTM machine learning algorithm to construct an intelligent contract model, realizes the optimization of dynamic resource allocation strategies, improves service efficiency and user experience. Finally, by monitoring the running state of the intelligent contract in real time and adjusting parameters according to feedback information, it realizes self-optimization and continuous improvement, enhancing response speed and flexibility. These measures jointly ensure the efficient, secure management and optimized allocation of digital resources throughout their life cycle.
[0148] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present invention, and they should all be covered within the scope of the claims of the present invention.
Claims
1. A digital resource full life cycle management method based on blockchain, characterized by: include: Establish a quantum communication link between users and use quantum key distribution (QKD) to generate a shared quantum key. The sending user uses the quantum key to encrypt the digital resources it owns and records the encrypted digital resources on the blockchain; The sending user sends the encrypted digital resources to other users through a secure channel. After receiving the digital resources, other users use the shared quantum key to decrypt the digital resources on the blockchain and verify their integrity. Collect historical digital resource data about digital resource access and apply machine learning algorithms to build smart contract models based on historical data, specifically: After completing the encryption, transmission and decryption verification of digital resources, obtain the historical digital resource data from the blockchain log and extract the key feature vector from the historical digital resource data. ; Choose to use the long short-term memory network LSTM as the machine learning algorithm to build the smart contract model; The key feature vector As input, the input layer of the smart contract model receives the key feature vector , through multiple hidden layers to capture the time dependency in the key feature vector, the output layer produces a dynamic policy value; Inputting historical digital resource data into the smart contract model for training and outputting dynamic strategy values at the same time means converting the key feature vector Enter the smart contract model, the expression is: ; ; ; ; ; ; ; in, represents the output of the input gate, and are the weight matrix and bias term of the input gate respectively, represents the output of the forget gate, and are the weight matrix and bias term of the forget gate respectively, Indicates at time The hidden state of represents the activation function Sigmoid, represents the output of the output gate, and are the weight matrix and bias term of the output gate respectively, Indicates at time The memory state of the LSTM unit is Indicates at time The memory state of the LSTM unit is and are the weight matrix and bias term of the memory state respectively, Indicates at time The hidden state of represents the hyperbolic tangent function, and Indicates at time The weight matrix and bias term of the policy value, Indicates at time The dynamic policy value of represents the weight coefficient of the real-time strategy, Indicates at time The strategy value of represents the attenuation rate, represents the integral variable, Represents each time point in the integration interval The strategy value on A baseline value representing a minimum resource allocation; Deploy the trained smart contract to the blockchain environment, monitor the running status in real time, and adjust the parameters of the smart contract model based on the feedback information.
2. The blockchain-based digital resource full life cycle management method according to claim 1, characterized in that: The specific steps of establishing a quantum communication link between users and using quantum key distribution QKD to generate a shared quantum key are as follows: Establishing a quantum communication link between users by sending quantum state photons using a quantum key distributor; Use BB84 protocol for quantum key generation and distribution; Send the user to select a set of polarization angles and the corresponding measurement basis ,in, Indicates For each quantum state photon, the sending user sets the quantum state according to the polarization state of the single quantum state photon and sends the quantum state photon to other users through the optical fiber; The sending user selects a measurement basis through a quantum key distributor, and prepares the polarization state of the quantum state photon according to the selected measurement basis; After receiving the quantum state photons, other users randomly select a measurement basis to perform measurement; When other users choose the same measurement basis as the sending user to perform measurement, the initial polarization state of the quantum state photon is determined; otherwise, the measurement result is random; After completing the sending and receiving of quantum state photons, the sending user and other users publicly disclose their measurement basis choices. When both parties choose the same measurement basis, the corresponding measurement results are retained as a shared quantum key.
3. The blockchain-based digital resource full life cycle management method according to claim 2, characterized in that: The sending user uses the quantum key to encrypt the digital resources it owns, and records the encrypted digital resources on the blockchain. The specific steps are: The digital resources refer to document data, image data, audio data and video data; The sending user uses the shared quantum key generated in the quantum key distribution process as the AES-256 key to encrypt the digital resources owned by the sending user. Each type of digital resource is encrypted according to the same process; Set the encrypted digital resource collection to , Indicates An encrypted digital resource, Indicates belonging to; After the encryption process is completed, the sending user generates corresponding metadata for each encrypted digital resource, expressed as: ; in, Indicates The metadata generated by the encrypted digital resource, Indicates The resource ID generated by the encrypted digital resource, Indicates The ownership information generated by the encrypted digital resource, Indicates The timestamp generated by the encrypted digital resource; Use blockchain technology Ethereum to record encrypted digital resources and their metadata.
4. The blockchain-based digital resource full life cycle management method according to claim 3, characterized in that: The sending user sends the encrypted digital resources to other users through a secure channel. After receiving the digital resources, other users use the shared quantum key to decrypt the digital resources on the blockchain and verify their integrity. The specific steps are as follows: A secure channel is established between the sending user and other users through the TLS protocol; The sending user sends the encrypted digital resources and their metadata to other users through the TLS secure channel; Other users receive encrypted digital resources and metadata Finally, the shared quantum key generated by QKD is used as the key of AES-256 for decryption; Set the hash value of the original digital resource to ; Use the SHA-256 hash algorithm to calculate the hash value of the decrypted digital resource , and compare it with the hash value provided by the sending user; Other users will use the hash value of the original digital resource and the hash value of the decrypted digital resource Compare them. When the two are equal, it means the data is complete and has not been tampered with; otherwise, the data is damaged or tampered with.
5. The blockchain-based digital resource full life cycle management method according to claim 1, characterized in that: The trained smart contract model is deployed to the blockchain environment, the running status is monitored in real time, and the parameters of the smart contract model are adjusted according to the feedback information. The specific steps are as follows: Set the user's access frequency and user satisfaction score as feedback information, and continuously collect the user's access frequency and user satisfaction score. The user satisfaction score is obtained by filling out the questionnaire; The dynamic adjustment amount is calculated based on the feedback information, and the expression is: ; in, Indicates at time The parameter adjustment amount, represents the number of samples, An index variable representing time, Indicates The actual satisfaction rating at that time, Indicates The target satisfaction score at that time, represents the adjustment coefficient, represents the base of natural logarithms, represents the forgetting factor, Indicates at time The frequency of visits, represents the integral variable; according to Update the parameters of the smart contract model, the expression is: ; in, Indicates at time No. parameters, Indicates The learning rate of the parameters.
6. A digital resource full life cycle management device based on blockchain, based on the digital resource full life cycle management method based on blockchain according to any one of claims 1 to 5, characterized in that: Including quantum key distribution module, digital resource encryption module, digital resource decryption module, smart contract model building module and dynamic adjustment module: The quantum key distribution module is responsible for establishing quantum communication links between users and generating shared quantum keys through quantum key distribution (QKD) technology. It uses the BB84 protocol to ensure the security of the key and prevent eavesdropping. The digital resource encryption module is used to use the quantum key to perform AES-256 encryption processing on the digital resources owned by the user, and record the encrypted digital resources and their metadata on the blockchain; The digital resource decryption module is responsible for decrypting the encrypted digital resource using the shared quantum key once it is sent to other users through a secure channel, and verifying the integrity of the decrypted data using the SHA-256 hash algorithm; The smart contract model building module is responsible for extracting historical data about digital resource access from blockchain logs and applying machine learning algorithms to build a smart contract model; The dynamic adjustment module is used to continuously collect users' access frequencies and satisfaction scores as feedback information, calculate dynamic adjustment amounts, and update the parameters of the smart contract model accordingly.
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the blockchain-based digital resource full life cycle management method described in any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the blockchain-based digital resource full life cycle management method described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Information security protection method and system based on block chain
CN118631434A
Financial artificial intelligence integration method based on block chain
CN119475414A