Data credential transfer method and electronic equipment
By broadcasting signed data in the blockchain network, efficient and secure transfer of data credentials is achieved, the risks and complexity of data credential management and transactions in the prior art are solved, and the stability and reliability of the system are improved.
Patent Information
- Application Number
- CN202411998499.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-05-06
AI Technical Summary
The prior art has problems in the key management of data credentials with low degree of automation, manual operation, lack of unified management specifications and lack of strict role authority control, resulting in increased risk and complexity of data credential management and transactions, especially in the transfer of data credentials between hot and cold storage.
By obtaining the current number of data credentials in the storage module, detecting them based on preset thresholds, signature data containing data credential transfer information is generated, and broadcast on the blockchain network, to achieve efficient and secure transfer of data credentials.
It realizes efficient transfer of data credentials in networked and unnetworked states, reduces the problem of low security of data credentials caused by network status or server maintenance, and improves the stability and reliability of data storage and processing systems.
Smart Images

Figure CN119939673A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data credential storage and blockchain, and in particular to a data credential transfer method and electronic device. Background Art
[0002] At present, the popularity of blockchain technology has promoted the widespread application of data credentials, but its decentralized nature has also brought severe challenges to data credential key management. Once the key is lost or leaked, the data credential will face the risk of being irrecoverable. Especially for systems that manage a large number of user data credentials, the security of the key is directly related to the security of the data credential. At present, most systems adopt a management strategy that combines cold and hot storage, in which cold storage is used to store important data credentials offline, while hot storage is used to process daily data credential transactions online, aiming to balance security and ease of use. However, this model has problems such as low automation, manual operation, lack of unified management specifications, and lax role authority control, which increases the risk and complexity of data credential management and transactions. Especially in the process of transferring data credentials between cold and hot storage, manual operation is not only inefficient, but may also introduce security issues due to human errors.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present invention provide a data credential transfer method and an electronic device to at least solve the technical problem of low security of data credentials in related technologies.
[0005] According to one aspect of an embodiment of the present invention, a method for transferring a data voucher is provided, comprising: obtaining a first current quantity of data vouchers in a first storage module, wherein the first storage module is used to store data vouchers in an online state; detecting the first current quantity based on a preset threshold to obtain a detection result, wherein the detection result is used to indicate whether the data vouchers in the first storage module or the second storage module are to be transferred, and the second storage module is used to store data vouchers in an offline state; in response to the detection result being to transfer the data vouchers in the first storage module or the second storage module, generating signature data containing transfer information of the data vouchers based on the first current quantity and the preset threshold; broadcasting the signature data in a blockchain network to transfer the data vouchers in the first storage module or the second storage module, wherein the blockchain network includes a first server corresponding to the first storage module and a second server corresponding to the second storage module, and the first server and the second server transfer the data vouchers through the blockchain network.
[0006] Optionally, the preset threshold includes a first preset threshold and a second preset threshold, the first preset threshold is less than the second preset threshold; the first current quantity is detected based on the preset threshold to obtain a detection result, including: in response to the first current quantity being less than the first preset threshold, determining that the detection result is to transfer the data voucher in the second storage module; in response to the first current quantity being greater than the second preset threshold, determining that the detection result is to transfer the data voucher in the first storage module; in response to the first current quantity being greater than or equal to the first preset threshold, and the first current quantity being less than or equal to the second preset threshold, determining that the detection result is not to transfer the data voucher in the first storage module or the second storage module.
[0007] Optionally, based on the first current quantity and a preset threshold, signature data containing transfer information of the data voucher is generated, including: in response to the first current quantity being less than the first preset threshold, determining a first target quantity of the data voucher to be transferred into the first storage module based on the first current quantity and the transfer constraint, and generating first signature data containing first transfer information of the data voucher based on the first target quantity, wherein the first transfer information is used to indicate information for transferring the data voucher in the second storage module to the first storage module; in response to the first current quantity being greater than the second preset threshold, determining a second target quantity of the data voucher to be transferred out of the first storage module based on the first current quantity and the transfer constraint, and generating second signature data containing second transfer information of the data voucher based on the second target quantity, wherein the second transfer information is used to indicate information for transferring the data voucher in the first storage module to the second storage module.
[0008] Optionally, the method also includes: signing the first transfer information based on a first preset private key in an offline environment to obtain first signature data; or, signing the second transfer information based on a second preset private key in an offline environment to obtain second signature data.
[0009] Optionally, transfer information is broadcasted in the blockchain network based on the signature data to transfer the data credentials in the first storage module and the second storage module to obtain a transfer result, including: in response to the transfer information being the first transfer information, the first transfer information is broadcasted in the blockchain network based on the first signature data to transfer the data credentials in the second storage module into the first storage module to obtain a transfer result; in response to the transfer information being the second transfer information, the second transfer information is broadcasted in the blockchain network based on the second signature data to transfer the data credentials in the first storage module out to the second storage module to obtain a transfer result.
[0010] Optionally, based on the first signature data, a first transfer information is broadcast in the blockchain network to transfer the data certificate in the second storage module to the first storage module to obtain a transfer result, including: transmitting the first signature data to the target server based on the mobile hard disk, wherein the target server is in an online state; based on the target server, the first transfer information is broadcast in the blockchain network to transfer the data certificate in the second storage module to the first storage module to obtain a transfer result.
[0011] Optionally, after transferring the data vouchers in the first storage module or the second storage module, the method further includes: updating a first current quantity of the first storage module and a second current quantity of the data vouchers in the second storage module to obtain an update result.
[0012] According to one aspect of an embodiment of the present invention, an electronic device is provided, comprising: a memory storing an executable program; and a processor for running the program, wherein the program executes any one of the methods when running.
[0013] According to one aspect of an embodiment of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium including a stored executable program, wherein when the executable program is running, the device where the storage medium is located is controlled to execute any one of the methods in the above embodiments.
[0014] According to a computer program product, including a computer program, the computer program implements the method of executing any one of the above embodiments when executed by a processor.
[0015] In an embodiment of the present invention, a first current number of data vouchers in a first storage module is obtained, wherein the first storage module is used to store data vouchers in an online state; the first current number is detected based on a preset threshold to obtain a detection result, wherein the detection result is used to indicate whether the data vouchers in the first storage module or the second storage module are transferred, and the second storage module is used to store data vouchers in an offline state; in response to the detection result that the data vouchers in the first storage module or the second storage module are transferred, signature data containing transfer information of the data vouchers is generated based on the first current number and the preset threshold; the signature data is broadcasted in a blockchain network to transfer the data vouchers in the first storage module or the second storage module, wherein the blockchain network includes a first server corresponding to the first storage module and a second server corresponding to the second storage module, and the first server and the second server transfer the data vouchers through the blockchain network, and when it is detected that the number of data vouchers in the first storage module exceeds the preset threshold, the system generates signature data containing transfer information and broadcasts the signature data in the blockchain network. Through the distributed verification of the blockchain network, the first server and the second server confirm the security of the transfer, and realize the efficient transfer of the data certificate from the first storage module to the second storage module, thereby solving the problem of low security of the data certificate caused by network status or server maintenance, and further solving the technical problem of low security of the data certificate in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0017] Figure 1 is a flow chart of a method for transferring a data voucher according to an embodiment of the present invention;
[0018] Figure 2 is a schematic diagram of data credential transfer according to an embodiment of the present application;
[0019] Figure 3 is an interactive schematic diagram of a storage module according to an embodiment of the present application;
[0020] Figure 4 is a schematic diagram of a data credential transfer scenario according to an embodiment of the present application;
[0021] Figure 5 is a schematic diagram of a data credential transfer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments 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 should fall within the scope of protection of the present invention.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0024] First, some of the nouns or terms that appear in the description of the embodiments of the present application are applicable to the following explanations:
[0025] Decentralization (blockchain): refers to a distributed database technology that stores data on multiple nodes in the network through encryption algorithms and consensus mechanisms, thereby achieving decentralized management of data.
[0026] Offline signature: refers to the process of signing a transaction in an offline environment. In blockchain transactions, in order to ensure the security and integrity of the transaction, each transaction needs to be digitally signed.
[0027] Cold and hot ends: The cold end is a computer that is offline and disconnected from the Internet, and the hot end is a computer or server that is online.
[0028] According to an embodiment of the present invention, an embodiment of a method for storing data credentials is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0029] Figure 1 is a flow chart of a method for transferring a data voucher according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0030] Step S102, obtaining a first current number of data vouchers in a first storage module;
[0031] Among them, the first storage module is used to store data credentials in a networked state.
[0032] The above-mentioned data credential can be a data record containing specific information, which is used to prove or record the validity of the user's transactions, operations or other data processing activities. Data credentials can be transaction records, operation logs, digital certificates, encrypted information or other types of data, and are key elements in the data processing and verification process.
[0033] In an optional embodiment, the system obtains the number of data vouchers currently stored in the first storage module, i.e., the first current number, in a networked state. This step is the basis for the data voucher transfer decision, and provides the required data basis for subsequent transfer operations by real-time monitoring of the data volume of the first storage module.
[0034] Step S104, detecting the first current quantity based on a preset threshold to obtain a detection result;
[0035] The detection result is used to indicate whether to transfer the data certificate in the first storage module or the second storage module, and the second storage module is used to store the data certificate in an offline state.
[0036] In an optional embodiment, it is detected whether the first current number reaches a preset threshold and a detection result is generated. The setting of the preset threshold takes into account network conditions, storage limitations and data processing efficiency, and is used to determine whether it is necessary to start the data credential transfer process to optimize the utilization of storage resources and the efficiency of data transmission.
[0037] Step S106, in response to the detection result that the data voucher in the first storage module or the second storage module is transferred, based on the first current number and the preset threshold, generating signature data including transfer information of the data voucher;
[0038] The above-mentioned storage module generally refers to a hardware device or software system for storing data, which can be a memory, hard disk, database, cloud storage or any other form of data storage unit. The difference between the first storage module and the second storage module lies in their working states. The first storage module works in a networked state, while the second storage module works in a non-networked state, to ensure the storage and secure transfer of data under different network conditions.
[0039] The above-mentioned preset threshold refers to the numerical standard pre-set by the system according to the needs, which is used to evaluate and trigger specific operations or events. When the actual value exceeds or falls below the threshold, the system will take corresponding measures according to the preset rules, such as alarm, data backup or automatic transfer.
[0040] In an optional embodiment, in response to the detection result, the system generates signature data according to the first current quantity and a preset threshold value, and the signature data includes the transfer information of the data certificate. By signing the data through encryption technology, the security and legality of the data certificate transfer can be ensured, and the data can be prevented from being tampered with or forged during the transfer process.
[0041] Step S108, broadcast the signature data in the blockchain network to transfer the data certificate in the first storage module or the second storage module.
[0042] Among them, the blockchain network includes a first server corresponding to the first storage module and a second server corresponding to the second storage module, and the first server and the second server transfer data certificates through the blockchain network.
[0043] In the field of information security and data verification, the above-mentioned signature data is a data packet that contains data credential transfer information and is signed through encryption technology. It is used to verify the integrity and authenticity of the data, prevent data tampering and forgery during transmission, and ensure the legality of data credential transfer.
[0044] The above-mentioned blockchain network is a decentralized, distributed database that can record and verify all transactions or data operations occurring in the network, and ensure the security, integrity and non-tamperability of data through encryption technology and consensus algorithms. In the blockchain network, multiple servers or nodes jointly maintain the normal operation of the network and the verification of data, wherein the first server and the second server correspond to the first storage module and the second storage module respectively, and are used for the storage and verification of data credentials during the transfer process.
[0045] In an optional embodiment, the signature data is broadcasted in the blockchain network to realize the transfer of data credentials. The distributed nature of the blockchain network ensures the efficiency and security of the data credential transfer. The first server and the second server verify the signature data through the consensus mechanism of the network. Once the verification is passed, the transfer of the data credential will be recorded on the blockchain and become an unalterable record, thereby improving the efficiency and security of data transfer.
[0046] Exemplarily, in the field of material storage system management, the first storage module and the second storage module represent the online database and offline database in the system, respectively. The online database (first storage module) stores all real-time material storage credentials in an online state, including operation records such as material entry, exit, and storage location changes, while the offline database (second storage module) stores these credentials when it is not online or the network is unstable, in case of emergency. When the number of data credentials (such as material operation records) in the online database accumulates to a certain extent (preset threshold), the system will automatically detect and generate signature data containing transfer information for encryption and ensuring the integrity and authenticity of the data. Subsequently, the signature data is broadcast in the blockchain network, and all nodes in the blockchain network (including servers corresponding to the online database and offline database) will verify the validity of the signature data. Once the verification is passed, the data credentials will be transferred from the online database to the offline database to ensure that there are complete and legal data records in the offline database, avoiding the loss or delay of credentials caused by network fluctuations or server maintenance, and improving the stability of the system in complex environments and data processing efficiency.
[0047] The above steps can improve the efficiency of data credential transfer, ensure the security of the transfer process and the validity of the data, and enable the system to maintain normal operation even in the face of challenges such as network instability or server maintenance, ensuring the continuity and integrity of the data, providing a solid technical guarantee for the efficient and safe operation of the material storage system.
[0048] In an optional embodiment, first, the system obtains the number of currently stored data vouchers from the first storage module in a networked state. The first storage module usually operates under normal network conditions and is used to store and manage data vouchers in real time, such as transaction records, operation logs, etc. The system then judges the first current number obtained according to a preset threshold. The preset threshold is determined based on data storage, processing capacity and system performance requirements, and is used to evaluate whether the data vouchers in the first storage module have reached the level that needs to be transferred. If the test result shows that the number of data vouchers exceeds the threshold, this indicates that the storage pressure of the first storage module may increase, and the transfer of data vouchers needs to be considered to maintain the efficiency of system operation. When the test result indicates that the data voucher transfer is required, the system generates signature data containing data voucher transfer information based on the first current number and the preset threshold. The signature data is generated by encryption technology, which ensures the integrity and security of the data during the transfer process and prevents the data from being forged or tampered with. Finally, the system broadcasts the signature data through the blockchain network to realize the transfer of the data voucher from the first storage module to the second storage module. The blockchain network is a decentralized, distributed database system that can record and verify every data operation. Each operation is stored in the network in an encrypted form, ensuring that the data cannot be tampered with. The first server and the second server correspond to the first storage module and the second storage module, respectively. They transfer data credentials through the blockchain network. The second storage module usually runs in an offline state and is used for offline storage of data credentials to meet data protection needs during network anomalies or server maintenance.
[0049] The above-mentioned data credential transfer method of the present application can effectively solve the imbalance of data credential storage in the connected and unconnected states, avoid the data processing delay caused by excessive storage pressure of the first storage module, and ensure that the data credential can be safely and efficiently transferred and stored under any network conditions. At the same time, by utilizing the distributed characteristics and encryption verification mechanism of blockchain technology, this method also significantly enhances the security of the data credential transfer process, prevents any possible tampering or loss of data during the transfer process, thereby improving the stability and reliability of the entire data storage and processing system.
[0050] Exemplarily, in a supply chain management system, the first storage module may be a real-time transaction database located in an enterprise data center, which is responsible for recording all online transaction data and logistics information. The second storage module may be an offline database deployed in a remote warehouse, which is used to save necessary transaction data when the warehouse is disconnected from the network or the data center is under maintenance. When the number of data vouchers accumulated in the real-time transaction database reaches a preset threshold, the system will automatically trigger the data voucher transfer process, generate signature data and broadcast it to the blockchain network. All nodes participating in the network (including the first server and the second server) will verify the signature data. Once the verification is successful, the data voucher will be securely transferred from the real-time transaction database to the offline database, ensuring the continuity of transaction data and the normal operation of warehouse operations even when the warehouse is disconnected from the network. At the same time, the security and tamper-proof nature of the data are guaranteed through blockchain technology.
[0051] Through the above steps, a first current number of data vouchers in the first storage module is obtained, wherein the first storage module is used to store data vouchers in an online state; the first current number is detected based on a preset threshold to obtain a detection result, wherein the detection result is used to indicate whether the data vouchers in the first storage module or the second storage module are transferred, and the second storage module is used to store data vouchers in an offline state; in response to the detection result that the data vouchers in the first storage module or the second storage module are transferred, signature data containing transfer information of the data vouchers is generated based on the first current number and the preset threshold; the signature data is broadcasted in the blockchain network to transfer the data vouchers in the first storage module or the second storage module, wherein the blockchain network includes a first server corresponding to the first storage module and a second server corresponding to the second storage module, and the first server and the second server transfer the data vouchers through the blockchain network, and when it is detected that the number of data vouchers in the first storage module exceeds the preset threshold, the system generates signature data containing transfer information and broadcasts the signature data in the blockchain network. Through the distributed verification of the blockchain network, the first server and the second server confirm the security of the transfer, and realize the efficient transfer of the data certificate from the first storage module to the second storage module, thereby solving the problem of low security of the data certificate caused by network status or server maintenance, and further solving the technical problem of low security of the data certificate in the related technology.
[0052] In the above embodiments of the present application, the preset threshold includes a first preset threshold and a second preset threshold, and the first preset threshold is less than the second preset threshold; the first current quantity is detected based on the preset threshold to obtain a detection result, including: in response to the first current quantity being less than the first preset threshold, determining that the detection result is to transfer the data voucher in the second storage module; in response to the first current quantity being greater than the second preset threshold, determining that the detection result is to transfer the data voucher in the first storage module; in response to the first current quantity being greater than or equal to the first preset threshold, and the first current quantity being less than or equal to the second preset threshold, determining that the detection result is not to transfer the data voucher in the first storage module or the second storage module.
[0053] The above-mentioned preset threshold is divided into a first preset threshold and a second preset threshold in this application, wherein the first preset threshold is less than the second preset threshold. This dual threshold setting strategy is used to determine the storage and transfer behavior of data vouchers under different data levels, ensuring the flexibility and efficiency of data management.
[0054] The above detection result reflects the comparison between the first current number of data vouchers in the first storage module and the preset threshold, which is used to indicate whether the data vouchers should be transferred from the first storage module to the second storage module, or from the second storage module to the first storage module, and in some cases maintain the current storage status.
[0055] In an optional embodiment, if the first current number is less than the first preset threshold, this indicates that the number of data vouchers in the first storage module is relatively small. At this time, the system determines the detection result as transferring the data vouchers in the second storage module (the storage module in the non-networked state) to balance the storage pressure and ensure the real-time availability of important data. If the first current number is greater than the second preset threshold, this means that the data storage of the first storage module is close to or exceeds its processing capacity. The system determines the detection result as transferring the data vouchers in the first storage module (the storage module in the networked state) to avoid data processing delays and reduce storage pressure. If the first current number is between the first preset threshold and the second preset threshold, the system determines the detection result as not transferring the data vouchers and keeping the current storage state unchanged, which helps to avoid unnecessary data transfer operations and improve data processing efficiency.
[0056] Exemplarily, in an inventory control system in supply chain logistics management, the first storage module and the second storage module respectively represent a real-time inventory database in an online state and a backup inventory database in an offline state. When the number of data vouchers (e.g., inbound and outbound operation records) in the real-time inventory database (first storage module) is small and less than the first preset threshold, the system will transfer the data vouchers from the backup inventory database (second storage module) to the real-time inventory database to ensure that the online system has sufficient data for real-time monitoring and operation. - When the number of data vouchers in the real-time inventory database is too large and exceeds the second preset threshold, the system will transfer some of the data vouchers to the backup inventory database to reduce the storage pressure of the real-time inventory database, avoid data processing delays, and ensure efficient operation of the system. If the number of data vouchers is between the first preset threshold and the second preset threshold, the system will not transfer the data vouchers to avoid unnecessary data operations, maintain the stability of system operation and the reasonable allocation of resources.
[0057] By setting dual thresholds to dynamically adjust the storage and transfer behavior of data credentials, this method improves the efficiency of data processing and the utilization of storage resources, while ensuring the security and integrity of data. Especially in supply chain logistics management, this method can effectively deal with special situations such as network fluctuations and server maintenance, ensure the real-time update of inventory data and the complete preservation of historical records, and provide technical support for the efficient operation of the supply chain.
[0058] Exemplarily, it is assumed that in supply chain logistics management, the real-time inventory database (first storage module) is used to store all online inventory operation records, while the backup inventory database (second storage module) is used to store data credentials when the network is unstable or the database is maintained. When the number of operation records in the real-time inventory database is too small (less than the first preset threshold), the system will automatically transfer some operation records from the backup inventory database to ensure that the online system has sufficient historical data for real-time analysis and monitoring; when the number of operation records in the real-time inventory database is too large (exceeding the second preset threshold), the system will start to transfer the newly generated operation records to the backup inventory database to avoid excessive storage pressure on the real-time inventory database, affecting the data processing speed and system response time; when the number of operation records is moderate (between the first preset threshold and the second preset threshold), the system will maintain the current data storage state, avoid unnecessary data transfer operations, and ensure the efficiency and stability of the system operation. In this way, the supply chain logistics management system can intelligently adjust the data storage and transfer strategy according to the network conditions and system status, improve the efficiency of data processing and the utilization of storage resources, and at the same time ensure the security and integrity of the data, laying a solid foundation for the efficient and safe operation of the supply chain.
[0059] In the above embodiment of the present application, signature data containing transfer information of data vouchers is generated based on the first current quantity and a preset threshold, including: in response to the first current quantity being less than the first preset threshold, determining the first target quantity of data vouchers to be transferred into the first storage module based on the first current quantity and the transfer constraint, and generating first signature data containing first transfer information of the data vouchers based on the first target quantity, wherein the first transfer information is used to indicate information for transferring the data vouchers in the second storage module to the first storage module; in response to the first current quantity being greater than the second preset threshold, determining the second target quantity of data vouchers to be transferred out of the first storage module based on the first current quantity and the transfer constraint, and generating second signature data containing second transfer information of the data vouchers based on the second target quantity, wherein the second transfer information is used to indicate information for transferring the data vouchers in the first storage module to the second storage module.
[0060] The first target number and the second target number are specific numbers of data vouchers to be transferred, determined based on the system status and the preset threshold. The first target number and the second target number correspond to the number of data vouchers transferred from the second storage module to the first storage module, and the number of data vouchers transferred from the first storage module to the second storage module, respectively.
[0061] The above-mentioned transfer constraints refer to the rules or restrictions that need to be followed during the data credential transfer process. These constraints may include data integrity, security requirements, transfer frequency, time window, and system storage and processing capabilities, etc., to ensure the efficiency and security of data credential transfer.
[0062] In an optional embodiment, if the first current number is less than the first preset threshold, this indicates that the number of data vouchers in the first storage module (storage unit in a networked state) is relatively insufficient, and the system will determine the first target number of data vouchers to be transferred from the second storage module (storage unit in a non-networked state) to the first storage module based on the first current number and the transfer constraint. Subsequently, based on this target number, the system generates first transfer information, and based on this, generates first signature data, wherein the first transfer information describes in detail the transfer instruction of the data voucher, including information such as the number, time, and destination storage module of the transfer.
[0063] If the first current number is greater than the second preset threshold, it means that the number of data vouchers in the first storage module is too large and may have reached or exceeded the upper limit of its storage and processing capacity. At this time, the system also determines the second target number of data vouchers to be transferred from the first storage module based on the first current number and the transfer constraint to balance the storage pressure. The system will generate second transfer information to indicate that the data voucher is transferred from the first storage module to the second storage module, and generate second signature data based on this information to ensure the security and legality of the data transfer.
[0064] Exemplarily, such as a financial transaction system or an inventory control system for supply chain logistics management, the first storage module and the second storage module correspond to a real-time database in an online state and an offline database in an offline state, respectively. The system will continuously monitor the number of data vouchers in the real-time database, and dynamically determine the transfer behavior of the data vouchers according to the set dual threshold strategy. For example, when the number of data vouchers in the real-time database is lower than the first preset threshold, the system will transfer part of the data vouchers (the first target number) from the offline database to the real-time database to ensure that the online system can continue to provide stable services. On the contrary, if the number of data vouchers in the real-time database exceeds the second preset threshold, the system will transfer part of the data vouchers (the second target number) from the real-time database to the offline database to reduce the storage pressure of the real-time database and improve data processing efficiency.
[0065] When generating signature data, the system will take into account transfer constraints, such as data security, the timing and restrictions of transfer, and the availability of system resources, to ensure that the decision to transfer data credentials is both reasonable and secure. This process not only includes determining the number of data credentials to be transferred, but also generates detailed data credential transfer information to describe the specific details of the transfer, and generates signature data through encryption technology to prevent any possible tampering or forgery of data during the transfer process, ensuring the security and effectiveness of the entire data credential transfer process.
[0066] The data credential transfer method in the embodiment of the present application realizes the intelligent and secure transfer of data credentials in the connected and unconnected states by dynamically determining the number of transfer targets of the data credential and generating signature data in combination with the transfer constraint conditions. This method can effectively balance the amount of data between storage modules, avoid data processing delays or system performance degradation caused by uneven storage pressure, and at the same time, use signature data and blockchain technology to ensure the security and irreversibility of data credential transfer, providing efficient and secure data management solutions for industries such as finance and logistics.
[0067] Exemplarily, in the inventory control system of supply chain logistics management, the real-time database (first storage module) is responsible for managing all online inventory operation records, while the offline database (second storage module) is used to store data credentials during network anomalies or database maintenance. Assuming that the number of operation records in the real-time database is lower than the first preset threshold, the system will determine to transfer a part of the operation records (first target number) from the offline database to the real-time database to ensure the data processing capacity of the online system. The system will generate a first signature data containing the transfer information of these operation records and broadcast it in the blockchain network to achieve safe and legal data credential transfer. On the contrary, if the number of operation records in the real-time database exceeds the second preset threshold, the system will determine to transfer a part of the operation records (second target number) from the real-time database to the offline database to reduce the storage pressure of the real-time database and improve data processing efficiency. The system will also generate a second signature data containing the operation record transfer information, and broadcast it through the blockchain network to complete the transfer process of the data credential. In this way, the supply chain logistics management system can intelligently and efficiently adjust the storage and transfer strategy of the data credential according to the storage and processing status of the real-time database, ensure the security, integrity and timely availability of the data, and provide strong technical support for the continuous and stable operation of the supply chain.
[0068] In the above embodiments of the present application, the method also includes: signing the first transfer information based on the first preset private key in an offline environment to obtain first signature data; or, signing the second transfer information based on the second preset private key in an offline environment to obtain second signature data.
[0069] The above-mentioned offline environment refers to a state in which the device or system can still run independently and perform specific tasks under the condition of network interruption or instability. In this environment, data processing and storage usually rely on local resources, and may need to be synchronized or transferred with the online environment after the network connection is restored.
[0070] In the field of cryptography and information security, the private key mentioned above is a confidential key, which is usually used in pair with the public key to form an asymmetric encryption system. The private key is used to sign and decrypt data to ensure the integrity and security of the data. The private key is usually held by the owner or authorized party of the data and is used to generate signature data in an offline environment to prove the source and validity of the data.
[0071] In an optional embodiment, the data credential transfer method also includes a process of signing the data credential transfer information based on a preset private key in an offline environment. Specifically, if the data credential of the first storage module needs to be transferred from the second storage module (in an offline environment), the system will use the first preset private key to sign the first transfer information and generate first signature data to ensure the legitimacy of the data credential transfer. Conversely, if the data credential of the first storage module needs to be transferred out to the second storage module, the system will use the second preset private key to sign the second transfer information and generate second signature data to ensure that the transfer of the data credential is still safe and controllable in an offline state.
[0072] In the above embodiments of the present application, transfer information is broadcasted in the blockchain network based on signature data to transfer data credentials in the first storage module and the second storage module to obtain a transfer result, including: in response to the transfer information being the first transfer information, the first transfer information is broadcasted in the blockchain network based on the first signature data to transfer the data credentials in the second storage module to the first storage module to obtain a transfer result; in response to the transfer information being the second transfer information, the second transfer information is broadcasted in the blockchain network based on the second signature data to transfer the data credentials in the first storage module to the second storage module to obtain a transfer result.
[0073] The above-mentioned system continuously monitors the data voucher balance of the first storage module (hot wallet), and when the balance is lower than the preset first threshold or exceeds the second threshold, the transfer process is triggered. According to the monitoring results and preset rules, the system generates corresponding transfer information (first or second transfer information), and signs the transfer information using the private key in an offline environment (second storage module, i.e., cold wallet) to generate first signature data or second signature data. The signed data is transmitted from the cold wallet to the networked hot wallet server via a secure physical transmission method (such as an encrypted USB flash drive). After receiving the signature data, the hot wallet server broadcasts the corresponding transfer information in the blockchain network and verifies the transaction using the consensus mechanism of the blockchain. After the transaction is confirmed by the blockchain network, the system receives the transfer result, updates the data voucher balance of the cold and hot wallets according to the result, and completes the transfer process.
[0074] Through automated mechanisms and offline signature technology, data credentials are transferred in a balance between security and liquidity. When there are insufficient or excessive data credentials in the hot wallet (first storage module), the system can automatically identify this state and generate and sign transfer information based on preset thresholds and rules. The signed data is physically transferred to the hot wallet server for transaction broadcast, thereby realizing the automatic transfer of data credentials between hot and cold wallets. This process eliminates the need for human intervention and improves the security and efficiency of asset transfer.
[0075] Exemplarily, when the funds in the hot wallet are lower than the minimum limit required to process daily transactions of the user, the system will automatically generate a "first transfer information" to instruct the transfer of data credentials from the cold wallet (second storage module) to the hot wallet (first storage module). The administrator signs the first transfer information using the private key stored in the cold wallet in an offline environment to generate "first signature data". Subsequently, the first signature data is transmitted to the hot wallet server via a secure physical medium such as an encrypted USB flash drive. The server broadcasts the first signature data in the blockchain network, triggering the transfer of the data credentials from the cold wallet to the hot wallet. After the transaction is completed and confirmed by the blockchain network, the system updates the data certificate balances of the cold and hot wallets to complete the transfer process.
[0076] On the contrary, if the data vouchers in the hot wallet exceed the safety limit, the system will generate a "second transfer information" to instruct the transfer of excess data vouchers in the hot wallet to the cold wallet. The administrator uses the corresponding private key to sign in the cold wallet environment to generate "second signature data". The second signature data is transmitted to the hot wallet server in a secure manner, and the server broadcasts the second signature data in the blockchain network to realize the automatic transfer of data vouchers from the hot wallet to the cold wallet.
[0077] Through automated detection, transfer information generation, offline signature and secure transmission, combined with the broadcast and confirmation of the blockchain network, efficient and secure transfer of data credentials between hot and cold wallets is achieved. By setting the first and second preset thresholds, the system can dynamically adjust the distribution of funds to ensure that the hot wallet has sufficient liquidity to handle user transactions, while safely storing a large number of data credentials in the cold wallet, reducing the risk of network attacks. In addition, multi-role permission control enhances the security of the process and ensures the legality and controllability of each transfer operation. This invention is not only applicable to the field of blockchain technology, but especially for platforms that manage a large number of user data credentials, such as the blockchain-based digital asset trading platform described in the briefing book, it can significantly improve the security and efficiency of asset management, reduce human errors and risks, and provide a more stable and reliable trading environment.
[0078] In the above embodiment of the present application, first transfer information is broadcasted in the blockchain network based on the first signature data to transfer the data certificate in the second storage module to the first storage module to obtain a transfer result, including: transmitting the first signature data to the target server based on the mobile hard disk, wherein the target server is in a networked state; broadcasting the first transfer information in the blockchain network based on the target server to transfer the data certificate in the second storage module to the first storage module to obtain a transfer result.
[0079] The target server mentioned above in this application refers to a server with a blockchain node, which is used to receive signature data from an offline environment and broadcast it to the blockchain network. The server here may be a dedicated server within the company, or it may be a cloud service node connected to multiple blockchain networks. Its main function is to act as an intermediary for data certificate transfer and ensure that transaction information can be accurately broadcast on the blockchain network.
[0080] In a secure offline environment, the transfer information is signed with a private key to generate the first signature data. Subsequently, the first signature data is securely transmitted to the target server, i.e., the hot wallet server in an online state, through the physical medium of the mobile hard disk. After receiving the first signature data in the mobile hard disk, the target server converts it into a transaction format recognizable by the blockchain network and broadcasts the first transfer information in the blockchain network. This broadcast process triggers the consensus mechanism of the blockchain network to verify and confirm the transaction, and finally transfers the data certificate in the second storage module (cold wallet) to the first storage module (hot wallet), and feedbacks the transfer result.
[0081] The specific process of transferring data credentials from a cold wallet to a hot wallet under preset conditions (such as insufficient funds in a hot wallet). First, the administrator signs the transfer information in the offline environment of the cold wallet to generate the first signature data with verification effect, and then securely transmits the signature data to the target server through the physical medium of a mobile hard disk. After receiving the signature data, the target server, that is, the networked server where the hot wallet is located, broadcasts it to the blockchain network to trigger the transaction process. Through the consensus mechanism of the blockchain network, the transaction will be verified and confirmed, and finally the transfer of data credentials from the cold wallet to the hot wallet will be realized. The whole process ensures the security of the transaction and the accuracy of the data credentials.
[0082] Exemplarily, when the platform finds that the balance of data vouchers in the hot wallet (first storage module) is lower than the preset first threshold, the system will automatically calculate and generate the first transfer information, instructing to transfer a certain number of data vouchers from the cold wallet (second storage module) to the hot wallet. In the disconnected cold wallet environment, the administrator starts the cold wallet program, enters the program password, signs the first transfer information, and generates the first signature data. Then, the administrator uses an encrypted mobile hard drive to copy the first signature data and securely transmit it to the hot wallet server. After receiving the signature data, the hot wallet server broadcasts it to the blockchain network. The nodes in the network confirm the transaction through a consensus mechanism, and the data voucher is transferred from the cold wallet to the hot wallet. The system updates the balance of the data voucher according to the transfer result.
[0083] Through offline signatures and secure delivery of physical media, the risks of transmitting sensitive information in the Internet environment are avoided. At the same time, the broadcasting capability of the target server on the blockchain network is used to ensure the efficiency and credibility of the transaction. In this way, even when the network is disconnected, the data credentials in the cold wallet can be safely transferred to the hot wallet, meeting the platform transaction requirements while ensuring asset security.
[0084] Through the above process, the present invention realizes the automatic and secure transfer of data vouchers between cold and hot wallets, effectively solving the problems of complex operation, great security risks and low efficiency in the management of traditional cold and hot wallets. The offline signature and the secure transmission method of the mobile hard disk significantly reduce the risk of network attacks during the data voucher transfer process and protect the security of assets. The automated detection and triggering mechanism reduces manual operations, improves the efficiency of data voucher transfer, and ensures that the hot wallet has sufficient data voucher balance during peak trading periods. Clear steps and rules standardize the data voucher transfer process, facilitate management and monitoring, and reduce operational risks.
[0085] In the field of blockchain applications, especially in scenarios involving the management of a large number of user data credentials, it provides a more efficient and secure solution, which has important practical value for improving the platform's asset management and transaction processing capabilities. It can ensure that the platform can respond quickly even in the face of large-scale user transaction needs. At the same time, by safely storing most data credentials in cold wallets, it effectively prevents the risk of fund theft and provides users with a safer trading environment.
[0086] Exemplarily, the balance of digital certificates stored in the hot wallet (first storage module) is insufficient to meet the subsequent large-scale user transaction needs. At this time, the system automatically triggers the cold-to-hot process and calculates the number of data certificates that need to be transferred from the cold wallet (second storage module) to the hot wallet. In the offline cold wallet environment, the administrator uses the private key to sign this transfer information and generate the first signature data. Subsequently, the administrator securely transmits the first signature data to the hot wallet server (target server) by encrypting the mobile hard disk. After receiving the signature data, the hot wallet server converts it into transaction information on the blockchain network and broadcasts it to the blockchain network. The network confirms the transaction through a consensus mechanism to realize the transfer of data certificates from the cold wallet to the hot wallet. After the transaction is completed, the system updates the data certificate balances of the cold and hot wallets according to the transfer results, ensuring the smoothness of platform transactions and the security of core assets.
[0087] Through the above steps, not only the security of data credential management is ensured, but also the transaction efficiency and platform stability are improved, which provides strong support for the application of blockchain technology in the field of digital asset management and reflects the practicality and innovation of the present invention in the market.
[0088] In the above embodiment of the present application, after transferring the data vouchers in the first storage module or the second storage module, the method also includes: updating the first current quantity of the first storage module and the second current quantity of the data vouchers in the second storage module to obtain an update result.
[0089] The above update result is that after the data voucher transfer is completed, the system adjusts the number of data vouchers in the first storage module (hot wallet) and the second storage module (cold wallet) to reflect the latest storage status. This update ensures the real-time accuracy of the number of data vouchers in the hot and cold wallets, which facilitates subsequent asset management and monitoring.
[0090] In the blockchain network, when the data voucher transfer transaction is verified by the network node and confirmed by the consensus mechanism, the system receives feedback that the transaction is completed, i.e., the transfer result. Based on the transfer result, the system automatically adjusts the data voucher balances of the first storage module (hot wallet) and the second storage module (cold wallet) to ensure the correctness of the quantitative relationship between the two. After the system completes the balance update, it generates an update result, which reflects the latest data voucher storage status of the hot and cold wallets, and provides accurate data basis for subsequent asset management, monitoring, and decision-making.
[0091] After the data voucher is transferred from a cold wallet to a hot wallet or from a hot wallet to a cold wallet, the system needs to update the balance of the data voucher in the two wallets in real time to ensure the accuracy of the internal accounts of the system. This update process is automated and is operated by the system based on the transfer results fed back by the blockchain network, avoiding errors that may be caused by human operations and improving the efficiency and accuracy of asset management.
[0092] Exemplarily, when the balance of digital assets in the hot wallet is lower than the preset first threshold, the system automatically triggers the process of transferring digital assets from the cold wallet to the hot wallet. After the transfer transaction is completed and confirmed by the blockchain network, the system receives feedback that the transaction is completed, that is, the transfer result. At this time, the system automatically updates the number of digital assets in the hot and cold wallets to ensure that the hot wallet has sufficient assets to support subsequent transactions. At the same time, the number of assets in the cold wallet decreases, reflecting the actual transfer of assets. After the update is completed, the system generates an update result, which serves as a record of the latest status of the hot and cold wallets, providing a basis for the company's internal asset management and monitoring.
[0093] After the data voucher transfer is completed, the system will update the number of data vouchers in the cold and hot wallets in real time. This process ensures the accuracy of the internal accounts of the system and facilitates subsequent asset management and monitoring. Through automated updates, delays and errors caused by human operations are avoided, and the efficiency and accuracy of asset management are improved.
[0094] The automated update mechanism reduces delays and errors in manual operations, improves the efficiency of asset management, and enables the company to quickly respond to market changes and optimize asset allocation. Real-time updates of the storage status of hot and cold wallets ensure the accuracy of the system's internal accounts, provide a reliable basis for subsequent asset management and auditing, and enhance the company's financial transparency. The update results reflect the latest storage status, which helps the company's management make decisions based on accurate data, such as adjusting the strategy of hot and cold wallets, and quickly adjusting asset distribution to protect the security of core assets when facing external threats.
[0095] Exemplarily, the administrator manually transfers assets from the cold wallet to the hot wallet based on the detection result of insufficient funds in the hot wallet. After a series of processes such as offline signature, physical transmission of signature data, online broadcast transaction, blockchain network consensus confirmation, etc., the hot wallet receives the digital assets transferred from the cold wallet. At this time, the system automatically updates the balance of digital assets in the cold and hot wallets to reflect the latest storage status. The updated results are recorded as a basis for subsequent asset management, monitoring and decision-making. For example, the finance department can adjust the allocation strategy of cold and hot wallets in a timely manner based on the update results to ensure that the platform has sufficient digital asset support during peak trading periods. At the same time, by safely storing most digital assets in cold wallets, the risk of fund theft is effectively prevented, and the asset security and user trust of the platform are enhanced.
[0096] The data voucher storage method of the present application involves three links, including an administrator, a cold wallet and a hot wallet, wherein the cold wallet is the second storage module and the hot wallet is the first storage module. The cold wallet is not connected to the network and is mainly used for collecting accounts, that is, receiving data vouchers, and manual transfer of data vouchers is required.
[0097] Figure 2 is a schematic diagram of data credential transfer according to an embodiment of the present application, such as Figure 2 As shown, when the data voucher in the first storage module on the platform side is insufficient, the administrator needs to be notified, and the administrator performs manual transfer through the first storage module in the offline disconnected environment, that is, in the second storage module in the connected network environment sent through the offline private key and signature transfer, when the data voucher in the second storage module exceeds the carrying limit, the data transfer can be automatically constructed to transfer the data voucher to the first storage module so that the data voucher can be collected.
[0098] Figure 3 is a schematic diagram of an interaction of a storage module according to an embodiment of the present application, such as Figure 3As shown, in the transfer scenario from the second storage module to the first storage module, when the data voucher in the first storage module is insufficient, the administrator manually operates the data voucher in the second storage module, and constructs an authorized data voucher through the private key of the data voucher by offline signing. The authorized data voucher can be binary data, and the binary data here is only for example and not limited. The administrator copies and transmits it to the networked server through the secure hard disk. Optionally, it can be broadcasted or confirmed through the server with the relevant blockchain public chain. After confirmation through the consensus mechanism, the transfer information of the data voucher can be queried in the relevant public chain. In the transfer scenario from the first storage module to the second storage module, when the data voucher of the first storage module exceeds the set threshold, a data transfer can be constructed through the private key, broadcasted or confirmed through the server with the relevant blockchain. After confirmation through the consensus mechanism, the transfer information of the data voucher can be queried in the relevant public chain.
[0099] Figure 4 is a schematic diagram of a data voucher transfer scenario according to an embodiment of the present application, such as Figure 4 As shown, data credential service, data credential administrator, data credential supervisor, second storage module program, verification code module and public network are involved. In the data credential service, multiple constraints can be formed by adding administrators, supervisors, etc. The private key can be saved on a computer disconnected from the Internet and obtained through a password to prevent the loss of the private key. Verification codes can be added to broadcast transactions. The data credential administrator can master the account private key of the first storage module. The first storage module is mainly used to store the data credentials required for daily withdrawals. Excess data credentials can be automatically transferred to the second storage module. When it is detected that the data credentials in the first storage module are insufficient, it calculates how many data credentials should be imported from the second storage module, and notifies the data credential administrator by email. The second storage module can also be manually triggered to transfer to the first storage module. After the data credential administrator checks the documents to be signed, they can be submitted to the data credential supervisor. The data credential supervisor can review the data credential and take out the storage device of the second storage module. In the second storage module program, the data credential can be copied through the hard disk, and the data transfer can be signed by entering the program password. In the verification code module, the verification code required for broadcast data transfer can be provided to the data credential administrator to manage the broadcast data transfer in the background. The data transfer operation can be performed in the public network. The data credential supervisor can verify the data transfer in the background, and the data credential administrator can verify the data transfer on the public network. The data credential service can synchronize the public chain at regular intervals to learn about the transfer of data credentials.
[0100] According to another aspect of an embodiment of the present invention, a data credential transfer device is also provided, which can execute the engine control method in the above embodiment. The specific implementation method and preferred application scenario are the same as those in the above embodiment and will not be repeated here.
[0101] Figure 5 is a schematic diagram of a data credential transfer device according to an embodiment of the present invention, such as Figure 5 As shown, the device 500 may include the following parts: an acquisition module 502 , a detection module 504 , a generation module 506 , and a transfer module 508 .
[0102] Among them, the acquisition module is used to obtain the first current number of data certificates in the first storage module, wherein the first storage module is used to store data certificates in an online state; the detection module is used to detect the first current number based on a preset threshold to obtain a detection result, wherein the detection result is used to indicate whether the data certificates in the first storage module or the second storage module are transferred, and the second storage module is used to store data certificates in an offline state; the generation module is used to generate signature data containing transfer information of the data certificate based on the first current number and the preset threshold in response to the detection result that the data certificates in the first storage module or the second storage module are transferred; the transfer module is used to broadcast the signature data in the blockchain network to transfer the data certificates in the first storage module or the second storage module, wherein the blockchain network includes a first server corresponding to the first storage module and a second server corresponding to the second storage module, and the first server and the second server transfer the data certificate through the blockchain network.
[0103] Optionally, the detection module is used to determine that the detection result is to transfer the data vouchers in the second storage module in response to the first current number being less than a first preset threshold; to determine that the detection result is to transfer the data vouchers in the first storage module in response to the first current number being greater than a second preset threshold; and to determine that the detection result is not to transfer the data vouchers in the first storage module or the second storage module in response to the first current number being greater than or equal to the first preset threshold and the first current number being less than or equal to the second preset threshold.
[0104] Optionally, the detection module is used to determine a first target quantity of data vouchers to be transferred into the first storage module based on the first current quantity and transfer constraints in response to the first current quantity being less than a first preset threshold, and generate first signature data containing first transfer information of the data vouchers based on the first target quantity, wherein the first transfer information is used to indicate information for transferring the data vouchers in the second storage module to the first storage module; in response to the first current quantity being greater than a second preset threshold, determine a second target quantity of data vouchers to be transferred out of the first storage module based on the first current quantity and transfer constraints, and generate second signature data containing second transfer information of the data vouchers based on the second target quantity, wherein the second transfer information is used to indicate information for transferring the data vouchers in the first storage module to the second storage module.
[0105] Optionally, the device is also used to sign the first transfer information based on a first preset private key in an offline environment to obtain first signature data; or, to sign the second transfer information based on a second preset private key in an offline environment to obtain second signature data.
[0106] Optionally, the device is also used to, in response to the transfer information being the first transfer information, broadcast the first transfer information in the blockchain network based on the first signature data to transfer the data certificate in the second storage module to the first storage module to obtain a transfer result; in response to the transfer information being the second transfer information, broadcast the second transfer information in the blockchain network based on the second signature data to transfer the data certificate in the first storage module to the second storage module to obtain a transfer result.
[0107] Optionally, the device is also used to transmit the first signature data to a target server based on a mobile hard disk, wherein the target server is in an online state; based on the target server, the first transfer information is broadcast in the blockchain network to transfer the data certificate in the second storage module to the first storage module to obtain a transfer result.
[0108] Optionally, the device is also used to update a first current quantity of data vouchers in the first storage module and a second current quantity of data vouchers in the second storage module to obtain an update result.
[0109] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0110] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0111] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0112] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0113] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0114] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0115] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for transferring a data certificate, characterized in that: include: Obtaining a first current number of data credentials in a first storage module, wherein the first storage module is used to store data credentials in a networked state; Detecting the first current quantity based on a preset threshold to obtain a detection result, wherein the detection result is used to indicate whether to transfer the data voucher in the first storage module or the second storage module, and the second storage module is used to store the data voucher in an offline state; In response to the detection result that the data voucher in the first storage module or the second storage module is transferred, based on the first current number and the preset threshold, generating signature data including transfer information of the data voucher; The signature data is broadcasted in a blockchain network to transfer the data certificate in the first storage module or the second storage module, wherein the blockchain network includes a first server corresponding to the first storage module and a second server corresponding to the second storage module, and the first server and the second server transfer the data certificate through the blockchain network.
2. The method for transferring a data voucher according to claim 1, characterized in that: The preset threshold includes a first preset threshold and a second preset threshold, and the first preset threshold is smaller than the second preset threshold; The first current quantity is detected based on a preset threshold to obtain a detection result, including: In response to the first current number being less than the first preset threshold, determining that the detection result is to transfer the data voucher in the second storage module; In response to the first current number being greater than the second preset threshold, determining that the detection result is to transfer the data voucher in the first storage module; In response to the first current number being greater than or equal to the first preset threshold and the first current number being less than or equal to the second preset threshold, determining that the detection result is not to transfer the data voucher in the first storage module or the second storage module.
3. The method for transferring a data voucher according to claim 2, characterized in that: Based on the first current quantity and the preset threshold, generating signature data containing transfer information of the data voucher, including: In response to the first current number being less than the first preset threshold, determining a first target number of the data vouchers to be transferred to the first storage module based on the first current number and a transfer constraint, and generating first signature data including first transfer information of the data vouchers based on the first target number, wherein the first transfer information is used to indicate information for transferring the data vouchers in the second storage module to the first storage module; In response to the first current quantity being greater than the second preset threshold, a second target quantity of the data voucher to be transferred out of the first storage module is determined based on the first current quantity and the transfer constraint, and second signature data containing second transfer information of the data voucher is generated based on the second target quantity, wherein the second transfer information is used to indicate information for transferring the data voucher in the first storage module to the second storage module.
4. The method for transferring a data voucher according to claim 3, characterized in that: The method further comprises: Signing the first transfer information based on a first preset private key in an offline environment to obtain the first signature data; or, The second transfer information is signed based on a second preset private key in the offline environment to obtain the second signature data.
5. The method for transferring a data voucher according to claim 4, characterized in that: Broadcasting the transfer information in the blockchain network based on the signature data to transfer the data credentials in the first storage module and the second storage module to obtain a transfer result, including: In response to the transfer information being the first transfer information, broadcasting the first transfer information in the blockchain network based on the first signature data, so as to transfer the data certificate in the second storage module to the first storage module, and obtaining the transfer result; In response to the transfer information being the second transfer information, the second transfer information is broadcast in the blockchain network based on the second signature data to transfer the data certificate in the first storage module to the second storage module to obtain the transfer result.
6. The method for transferring a data voucher according to claim 5, characterized in that: Broadcasting the first transfer information in the blockchain network based on the first signature data to transfer the data certificate in the second storage module to the first storage module, and obtaining the transfer result, includes: Transmitting the first signature data to a target server based on a mobile hard disk, wherein the target server is in a networked state; Based on the target server, the first transfer information is broadcasted in the blockchain network to transfer the data certificate in the second storage module to the first storage module to obtain the transfer result.
7. The method for transferring a data voucher according to claim 1, characterized in that: After transferring the data voucher in the first storage module or the second storage module, the method further includes: The first current quantity of the first storage module and the second current quantity of the data voucher in the second storage module are updated to obtain an update result.
8. An electronic device, characterized in that: include: A memory storing an executable program; A processor, configured to run the program, wherein the program executes the method according to any one of claims 1 to 7 when running.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is run, the device where the storage medium is located is controlled to execute the method according to any one of claims 1 to 7.
10. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Intelligent contract verification method based on block chain, participation node and medium
CN110796448A
Virtual asset hosting and payment system and method based on block chain bottom layer
CN113763158A
Network data storage management system based on block chain and management method thereof
CN114372110A
Scalable reconciliation of crypto assets in a blockchain network
US20200027080A1
Contingent payments for virtual currencies
US20210383334A1