Digital currency transaction circulation management method, system and storage medium
By identifying and securely encrypting transactions of digital currencies, and synchronizing and verifying transaction data in the blockchain network, the problem of digital currency transaction security threats is solved, and intelligent circulation management and security improvement is achieved.
Patent Information
- Application Number
- CN202411796529.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2044-12-09
AI Technical Summary
In the prior art, digital currency transactions face diverse security threats and insufficient encryption measures, resulting in poor security of currency circulation management.
By identifying the status of the digital currency to be traded for secure encryption, building a blockchain network to synchronize transaction data, broadcasting encrypted transaction information for verification, and monitoring the transaction status in real time to generate feedback data, and adjusting management strategies based on feedback data.
It realizes intelligent circulation management of digital currency transactions, improves the security of digital currency circulation management, and reduces asset losses.
Smart Images

Figure CN119273354B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of currency circulation management, and in particular to a circulation management method, system and storage medium for digital currency transactions. Background Art
[0002] The circulation management of digital currency transactions refers to the orderly management of the issuance, transaction, clearing and recovery of digital currency in the transaction network to ensure the security of transactions, circulation efficiency and system stability. Many existing digital currency transaction records are usually stored on public blockchains. Although the transaction itself is anonymous, the real identity of the user may still be traced through data analysis, posing a threat to user privacy, especially in scenarios involving sensitive transactions. How to protect user privacy while maintaining transaction transparency is a technical challenge. There are many security threats in the digital currency transaction process, such as transaction data tampering, double payment, private key leakage, transaction fraud, etc., especially in the absence of effective encryption protection and verification mechanisms, transaction information is easily tampered or attacked maliciously, resulting in user asset loss or transaction failure.
[0003] In summary, the existing technology has technical problems in which the security of currency circulation management is poor due to the various security threats faced by digital currency transactions and insufficient encryption measures. Summary of the invention
[0004] The purpose of this application is to provide a circulation management method, system and storage medium for digital currency transactions, so as to solve the technical problems in the prior art that digital currency transactions face various security threats and insufficient encryption measures, resulting in poor security of currency circulation management.
[0005] In view of the above problems, the present application provides a circulation management method, system and storage medium for digital currency transactions.
[0006] In a first aspect, the present application provides a circulation management method for digital currency transactions, which is implemented by a circulation management system for digital currency transactions, wherein the circulation management method for digital currency transactions includes: traversing the digital currency to be traded for transaction identification, obtaining a first transaction status, securely encrypting the digital currency to be traded based on the first transaction status, and generating a key pair, wherein the key pair includes a digital cryptocurrency information pair and transaction encryption information; constructing a blockchain network, synchronizing the digital currency to be traded to the blockchain network for transaction query, and obtaining historical currency transaction record data; broadcasting the transaction encryption information to the blockchain network according to the historical currency transaction record data for transaction verification, generating transaction confirmation information, updating the first transaction status based on the transaction confirmation information, and obtaining a second transaction status; monitoring the digital cryptocurrency information pair according to the second transaction status, and generating transaction feedback data; responding to the second transaction status according to the transaction feedback data, generating a transaction response result, executing a transaction management strategy based on the transaction response result, and performing intelligent circulation management on digital currency transactions.
[0007] In the second aspect, the present application also provides a circulation management system for digital currency transactions, which is used to execute the circulation management method for digital currency transactions as described in the first aspect, wherein the circulation management system for digital currency transactions includes: a transaction encryption module, which is used to traverse the digital currency to be traded for transaction identification, obtain a first transaction status, and securely encrypt the digital currency to be traded based on the first transaction status to generate a key pair, wherein the key pair includes a digital cryptocurrency information pair and transaction encryption information; a transaction query module, which is used to build a blockchain network, synchronize the digital currency to be traded to the blockchain network for transaction query, and obtain historical currency transaction record data; An easy verification module, the transaction verification module is used to broadcast the transaction encryption information to the blockchain network according to the historical currency transaction record data for transaction verification, generate transaction confirmation information, update the first transaction status based on the transaction confirmation information, and obtain a second transaction status; a transaction monitoring module, the transaction monitoring module is used to monitor the transaction of the digital cryptocurrency information pair according to the second transaction status and generate transaction feedback data; a response management module, the response management module is used to respond to the second transaction status according to the transaction feedback data, generate a transaction response result, execute a transaction management strategy based on the transaction response result, and perform intelligent circulation management on digital currency transactions.
[0008] In a third aspect, a computer-readable storage medium stores a computer program, and when the computer program is executed, the steps of the circulation management method for digital currency transactions described in any one of the first aspects are implemented.
[0009] One or more technical solutions provided in this application have at least the following technical effects or advantages:
[0010] Traverse the digital currency to be traded for transaction identification, obtain a first transaction status, securely encrypt the digital currency to be traded based on the first transaction status, generate a key pair, the key pair includes a digital cryptocurrency information pair and transaction encryption information; build a blockchain network, synchronize the digital currency to be traded to the blockchain network for transaction query, and obtain historical currency transaction record data; broadcast the transaction encryption information to the blockchain network according to the historical currency transaction record data for transaction verification, generate transaction confirmation information, update the first transaction status based on the transaction confirmation information, and obtain a second transaction status; monitor the digital cryptocurrency information pair according to the second transaction status, and generate transaction feedback data; respond to the second transaction status according to the transaction feedback data, generate a transaction response result, execute a transaction management strategy based on the transaction response result, and perform intelligent circulation management on digital currency transactions. That is to say, by identifying the status of the digital currency to be traded, its initial transaction status is determined and securely encrypted; a blockchain is built to synchronize the digital currency to be traded to the blockchain network for transaction queries; the encrypted transaction information is broadcast to the blockchain network for verification; the transaction status is monitored in real time and feedback data is generated, and management strategies are adjusted according to real-time transaction conditions, thereby reducing asset losses, realizing intelligent circulation management of digital currency transactions, and improving the security of digital currency circulation management.
[0011] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented according to the contents of the specification, and in order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are specifically cited below. It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easy to understand through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0013] Figure 1 A flowchart of the circulation management method for digital currency transactions for this application;
[0014] Figure 2 This is a structural diagram of the circulation management system for digital currency transactions in this application.
[0015] Explanation of the reference numerals: transaction encryption module 11 , transaction query module 12 , transaction verification module 13 , transaction monitoring module 14 , response management module 15 . DETAILED DESCRIPTION
[0016] This application solves the technical problem of poor security of currency circulation management in the prior art by providing a circulation management method, system and storage medium for digital currency transactions, which is caused by the various security threats faced by digital currency transactions and insufficient encryption measures. The initial transaction status of the digital currency to be traded is determined by identifying its status and encrypting it securely; a blockchain is constructed, and the digital currency to be traded is synchronized to the blockchain network for transaction query; the encrypted transaction information is broadcast to the blockchain network for verification; the transaction status is monitored in real time and feedback data is generated, and the management strategy is adjusted according to the real-time transaction situation, which reduces asset losses, realizes intelligent circulation management of digital currency transactions, and improves the security of digital currency circulation management.
[0017] Below, the technical solutions in the present application will be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments of the present application. It should be understood that the present application is not limited to the example embodiments described herein. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application. It should also be noted that, for the convenience of description, only the parts related to the present application are shown in the accompanying drawings, rather than all of them.
[0018] For example, please refer to the attached Figure 1 The present application provides a circulation management method for digital currency transactions, wherein the circulation management method for digital currency transactions is applied to a circulation management system for digital currency transactions, and the circulation management method for digital currency transactions specifically includes the following steps:
[0019] Step 1: Traverse the digital currency to be traded to perform transaction identification, obtain a first transaction status, securely encrypt the digital currency to be traded based on the first transaction status, and generate a key pair, wherein the key pair includes a digital cryptocurrency information pair and transaction encryption information.
[0020] Specifically, the pending digital currency transactions are traversed to identify the status of these digital currencies. Each digital currency to be traded has its specific transaction status, including whether it is a legal transaction, whether it has been used, whether it meets the current transaction conditions, etc. By traversing these digital currencies, the legitimacy of the digital currency is checked (such as whether there is a risk of double payment, whether it meets the transaction conditions, etc.), and the initial transaction state, that is, the first transaction state, is obtained. According to the first transaction state, the digital currency to be traded is securely encrypted, the encryption algorithm or the key generation method is dynamically adjusted, and the digital currency information is encrypted using symmetric encryption or asymmetric encryption to ensure the security of the transaction. Secure encryption is an encryption technology that encrypts transaction data according to the status and related information of the transaction. During the encryption process, a key pair is generated, which includes a digital cryptocurrency information pair and transaction encryption information. The digital cryptocurrency information pair includes the encrypted digital currency amount, sender and receiver information, and the transaction encryption information includes status information related to the transaction execution process, transaction operation records and other information. By traversing the digital currency to be traded, identifying its initial state (the first transaction state), and then securely encrypting the legitimate transaction based on this state, a key pair is generated to protect the transaction data. The digital cryptocurrency information pair protects the core currency data in the transaction, and the transaction encryption information protects the operational information in the transaction process, thereby ensuring the legitimacy of the transaction, the security of the data and the integrity of the process.
[0021] Step 2: Build a blockchain network, synchronize the digital currency to be traded to the blockchain network for transaction query, and obtain historical currency transaction record data.
[0022] Specifically, by deploying nodes, setting up consensus mechanisms, configuring network communications and other steps, a blockchain network capable of carrying digital currency transactions and synchronization queries is constructed. The blockchain network includes a digital currency trading platform, which not only provides conventional transaction functions, but also directly participates in the synchronization and consensus process of the blockchain. The trading platform can act as a node to maintain the distributed ledger of the blockchain. The digital currency information to be traded is synchronized to the blockchain network, including transaction party information, transaction amount, transaction time, unique identification of the digital currency, etc. After the digital currency to be traded is synchronized to the blockchain network, the transaction query usually involves checking the transaction history and obtaining the historical transaction record data of the currency. These historical transaction records will show all transaction tracks of the digital currency to ensure its legitimacy. The historical currency transaction record data includes detailed information on all past transactions of the digital currency, such as when and in which transactions it has been used, whether it has been completed, and whether there are double payments. By querying the historical transaction records of the digital currency, it is determined whether the currency to be traded has been used before, and whether there are any abnormalities, such as double payments or unfinished transactions, and the legitimacy and transparency of each transaction are ensured by tracing the historical records.
[0023] Step 3: Broadcast the encrypted transaction information to the blockchain network according to the historical currency transaction record data for transaction verification, generate transaction confirmation information, update the first transaction status based on the transaction confirmation information, and obtain the second transaction status.
[0024] Specifically, the encrypted transaction information is broadcast to all nodes in the blockchain network through the P2P network. After receiving the encrypted transaction information, each node will verify it according to its own transaction history, and add it to the memory pool to prepare for the next round of block verification. The historical transaction record data is combined during the broadcast process to ensure the legitimacy and traceability of the transaction information and prevent problems such as double payment. Each node will generate a hash value according to the requirements of the consensus mechanism, and the network will verify the nodes based on these hash values to ensure the correctness of the node behavior and the consistency of the network. After the verification is passed, the transaction confirmation information is generated. The transaction confirmation information is a sign that the transaction is recognized by the blockchain network, indicating that the transaction has been verified and can be recorded in the blockchain. Through the generation of transaction confirmation information, it is confirmed that the transaction has been verified by the majority of nodes in the network to prevent invalid transactions or illegal entry into the blockchain.
[0025] According to the generated transaction confirmation information, the first transaction status of the transaction is updated, that is, the initial status at the beginning of the transaction is updated. According to the verification results received from each node, it is determined whether these nodes have reached the predetermined transaction status, and the nodes that have reached the expected transaction status are selected, and their related transaction data are added to the valid transaction data group. The nodes that have not reached the expected transaction status are eliminated, and the corresponding state change instructions are triggered to update the status of the transaction, and the first transaction status is updated to the second transaction status to ensure that the transaction status reflects the latest progress and results of the transaction. The second transaction status indicates that the transaction has been formally confirmed through verification. Through the automatic update of the status and the state synchronization of the blockchain network, it is ensured that all nodes have a consistent transaction status and reflect the latest status of the transaction in a timely manner.
[0026] Step 4: Monitor the transaction of the digital cryptocurrency information pair according to the second transaction status and generate transaction feedback data.
[0027] Specifically, according to the transaction life cycle, the digital cryptocurrency information is tracked according to the second transaction state, and it is monitored in real time to obtain the transaction timing information, including the data of each transaction at each time point in the life cycle, such as the transaction initiation time, confirmation time, propagation time, etc. The digital cryptocurrency information pairs are traversed, and risk monitoring is performed based on the transaction timing information to determine multiple risk factors in the transaction, such as transaction delays, network problems, double payment risks, etc., and generate corresponding risk data. According to the risk data, the liquidity of the digital cryptocurrency information pairs is analyzed, the flow efficiency of funds and their circulation in the network are evaluated, the flow of digital currency is tracked, the path of funds in the blockchain network is monitored, the transfer process of funds from one node to another is identified, and a flow network diagram is constructed to show the flow path of funds in the network and the node connection. The generated flow network diagram and multiple transaction risk data are added to the transaction feedback data to form a complete feedback system, providing more comprehensive transaction feedback, including detailed information of the transaction, such as transaction time, participating nodes, potential problems in the execution process, etc. By continuously monitoring the digital cryptocurrency information pairs in the second transaction state, the smooth execution of the transaction is ensured, and detailed transaction feedback data is generated. Feedback data not only provides a complete and transparent record of transactions, but also helps identify and resolve potential transaction issues.
[0028] Step 5: Respond to the second transaction status according to the transaction feedback data, generate a transaction response result, execute a transaction management strategy based on the transaction response result, and perform intelligent circulation management on digital currency transactions.
[0029] Specifically, the flow analysis of the second transaction state is carried out according to the flow graph in the transaction feedback data, the flow bottleneck of funds in the network is identified, and the flow path of funds is optimized; the risk analysis of the second transaction state is carried out according to the transaction risk data in the transaction feedback data, the possible risks in the transaction are discovered in advance, and measures are taken to reduce or avoid the impact of these risks on the transaction. Combined with the flow analysis and risk analysis results, the scheduling mechanism is activated to select the optimal scheduling path to avoid congested or high-risk nodes, thereby improving the execution efficiency and security of the transaction. After the scheduling path is determined, the transaction execution on the path is controlled and checked to ensure the correctness of the transaction path and whether the execution is in line with expectations. Based on the inspection results, the final transaction response result is generated to indicate whether the transaction is successful or whether further adjustments are required.
[0030] According to the generated transaction response results, the corresponding transaction management strategy is executed, including readjusting the transaction path, confirming the success of the transaction, or triggering the fault handling process. The management strategy is dynamically adjusted according to different transaction response results, and intelligent transaction optimization is performed. For example, switch to the backup path when encountering network delays; suspend the transaction process and review it when abnormal transactions are detected. By executing the transaction management strategy, the intelligent circulation management of digital currency transactions is realized, the problems in the transaction process are automatically identified, the transaction execution path is optimized, the efficient and safe circulation of digital currency in the blockchain network is ensured, the efficiency of transactions is improved, the risks in the transaction process are reduced, and the funds can be circulated in the network in the fastest and safest way. By analyzing the transaction feedback data, generating the transaction response results, and executing the corresponding transaction management strategy, the intelligent circulation management of digital currency transactions is realized, the efficiency and security of the transaction process are ensured, and measures can be taken quickly to correct and optimize when problems are encountered.
[0031] Furthermore, step one of this application includes:
[0032] Extract the transaction data to be processed based on the digital currency transaction pool and scan it to determine the digital currency to be traded; traverse the digital currency to be traded to verify the data integrity and obtain the transaction key field information; perform double payment detection according to the transaction key field information, identify the state according to the detection result, and generate the first transaction state; traverse the digital currency to be traded and dynamically encrypt it according to the first transaction state to obtain a digital cryptocurrency information pair; traverse the digital currency to be traded and dynamically encrypt it according to the transaction key field information to obtain the transaction encryption information; associate the digital cryptocurrency information pair with the transaction encryption information to generate a key pair.
[0033] Specifically, all pending transaction data are extracted from the digital currency trading pool, and a preliminary scan is performed to identify which digital currencies are about to be traded. The digital currency trading pool is a data set that stores all pending transaction records, including information about the buyer and seller, transaction amount, transaction currency type, etc. Each digital currency to be traded is traversed, the integrity of the transaction data is verified, and the key transaction field information is extracted. The purpose of data integrity verification is to ensure that the data in each transaction (such as transaction amount, sender, receiver, etc.) is complete, has not been tampered with, and meets the standards of the transaction agreement. Data integrity verification usually includes checking whether the fields of the transaction are complete, whether the digital signature is valid, whether the transaction amount is correct, and whether the identities of the two parties to the transaction are correct. The key transaction field information usually includes transaction ID, sender address, receiver address, transaction amount, digital currency type, transaction timestamp, etc.
[0034] Based on the extracted transaction key field information, double payment detection is performed to ensure that no transaction attempts to use the same digital currency for multiple payments. Double payment detection is to check whether the same digital currency is used in two or more transactions, which is an important security issue in digital currency transactions. According to the results of the double payment detection, the status of each transaction is marked to identify the legality and processing progress of each transaction, such as valid, invalid, and pending confirmation, reflecting the legality, validity and current processing progress of the transaction. Legal transactions are marked as valid, and illegal transactions or transactions that attempt double payment will be marked as invalid. The status of the transaction is identified according to the test results, and the first transaction status is generated.
[0035] According to the first transaction status, the legal digital currency to be traded is dynamically encrypted to generate a digital cryptocurrency information pair. Dynamic encryption is an encryption technology that applies different encryption algorithms or keys according to the specific status or attributes of the transaction, which can provide a higher level of security because it makes the encryption of each transaction unique. Even if the encryption algorithm is cracked, it will not affect the security of other transactions. The digital cryptocurrency information pair refers to the digital currency transaction data that has been dynamically encrypted, which contains the data of the digital currency itself, such as the sender, receiver, amount, timestamp, etc. It protects the content data of the transaction itself, ensuring the security and confidentiality of the transaction parties and the amount information.
[0036] According to the key field information of the transaction, the digital currency to be traded is dynamically encrypted, that is, the key information in the transaction is encrypted to ensure the integrity of the transaction data. Compared with the digital cryptocurrency information pair, the transaction encryption information focuses on the encryption of metadata related to the transaction operation and process itself, such as transaction status, operation records, signatures, etc. What is protected is the status and process of the transaction operation to ensure the legitimacy of the transaction process and the integrity of the operation. The generated digital cryptocurrency information pair is associated with the transaction encryption information, and they are associated together through a hash or association algorithm to ensure that each transaction has a unique encryption key pair, and a key pair is generated for encrypting and decrypting transaction data. In cryptography, a key pair consists of two related keys, including a public key and a private key, which are used to encrypt and decrypt transaction data to ensure the security and uniqueness of each transaction. The key pair here contains the digital cryptocurrency information pair and the transaction encryption information, which respectively contain the core information related to the transaction (such as the sender, the receiver, the transaction amount, the timestamp, etc.) and the status information related to the transaction execution process, the transaction operation record, etc. The double payment detection mechanism effectively prevents the problem of the same digital currency being reused, and the encryption of key transaction fields and digital currency information ensures the privacy and security of both parties to the transaction.
[0037] Further, step 2 of this application includes:
[0038] Based on the application scenario, the key field information of the transaction is analyzed to generate a demand analysis result, and a fault tolerance assessment is performed based on the demand analysis result to generate a fault tolerance coefficient; the application scenario is integrated according to the fault tolerance coefficient to determine the consensus mechanism; the network is initialized based on the network protocol to generate network communication parameters, and a network architecture is built according to the network communication parameters to obtain a network node list; based on the network node list, node synchronous communication is performed to determine the node structure; according to the node structure, the network node list and the consensus mechanism are deployed for data to build the blockchain network.
[0039] Specifically, according to the specific application scenarios of digital currency transactions (financial transactions, logistics management, transactions between IoT devices, etc.), the key field information related to the transaction (such as transaction amount, timestamp, sender / receiver address, etc.) is analyzed to generate demand analysis results for specific application scenarios. The demand analysis results refer to the requirements that the blockchain network needs to meet, such as performance requirements, security requirements, privacy protection requirements, etc., derived according to the specific application scenarios. According to the demand analysis results, the fault tolerance capabilities that the system needs to have are evaluated to cope with situations such as node failure, data errors, or network instability. Fault tolerance evaluation is a process of evaluating the stability and reliability of a system in the face of errors or abnormal situations, taking into account the system's ability to continue to operate when problems occur. Based on the results of the fault tolerance evaluation, a fault tolerance coefficient is generated. The fault tolerance coefficient refers to the fault tolerance range allowed by the blockchain network when a failure or error occurs, reflecting the stability and reliability of the blockchain network in the face of errors or abnormal situations.
[0040] According to the fault tolerance coefficient and application scenarios, the appropriate consensus mechanism is selected according to different fault tolerance requirements and scenario requirements to ensure that the selected consensus mechanism can match the assessed fault tolerance, ensuring both the security of the network and maintaining efficiency. The consensus mechanism is a key concept in blockchain technology, ensuring that all nodes in the network have a common recognition of the transaction history, including proof of work (PoW), proof of stake (PoS), delegated proof of stake (DPoS), etc.
[0041] Initialize the network according to the network protocol, which is a set of rules, standards or conventions for data exchange in a computer network. Configure the network environment according to specific network protocols (such as TCP / IP, HTTP, WebSocket, etc.), including communication rules, data formats, node connections, etc., to ensure that data can be sent and received correctly in the network. Generate network communication parameters according to the network protocol and configuration, including IP address, port, connection timeout, transmission encryption standard, etc. Use the generated network communication parameters to build the network architecture, including setting up network devices such as servers, routers, switches, and configuring the network topology (such as mesh). Obtain a list of all nodes participating in the network according to the established network architecture, including information about all nodes participating in the blockchain network. Synchronous communication between nodes is carried out through the network node list. Synchronous communication refers to exchanging information between nodes in the network to ensure that all nodes have the same copy of the data. Determine the node structure according to network requirements and node performance, contribution, etc., including the role of the node (such as miner node, verification node, storage node, full node, etc.), the connection method of the node (such as direct connection or connection through an intermediary node), and the geographical distribution of the node.
[0042] According to the node structure, the nodes in the network node list are configured into the blockchain network. Each node will be assigned specific roles and responsibilities, and the corresponding data will be stored and processed according to these roles. According to the deployed consensus mechanism, ensure that each node can participate in the consensus process of the blockchain network and verify the data through consensus. By binding the node list with the consensus mechanism, a blockchain network with consistency, security and fault tolerance is formed. By analyzing the key field information of the transaction, generating fault tolerance evaluation, integrating the consensus mechanism, and through network initialization, node synchronization and other steps, a blockchain network with security, fault tolerance and adaptability to specific application scenarios that can handle market transactions is constructed.
[0043] Further, step three of this application includes:
[0044] Based on the node structure, the transaction encryption information is combined with the historical currency transaction record data to perform a full-node coverage traversal to generate a broadcast path; the transaction encryption information is broadcast to the blockchain network according to the broadcast path to generate broadcast transaction data; multiple node hash values are extracted through the consensus mechanism in combination with the broadcast transaction data, and multiple nodes are multi-dimensionally verified based on the multiple node hash values to generate multiple node verification results; node confirmation is performed according to the multiple node verification results to obtain the transaction confirmation information.
[0045] Specifically, all nodes are traversed according to the structure of the nodes (such as the connection relationship between nodes and the network topology), and all nodes in the blockchain network are traversed in combination with the encrypted transaction information and the historical currency transaction record data. By traversing all nodes, the most effective broadcast path is determined to ensure that the encrypted transaction information can be received by all nodes in the shortest time. According to the broadcast path, the encrypted transaction information is broadcast to all nodes in the blockchain network through the peer-to-peer (P2P) network. After receiving the encrypted transaction information, the full node stores it in the memory pool as data to be used for the next round of block verification. The consensus mechanism is used to extract the hash values of multiple nodes from the broadcast transaction data. The hash value is a fixed-length string calculated from the transaction data of the node and is used to uniquely identify the data.
[0046] Based on multiple node hash values, multiple nodes in the network are verified in multiple dimensions, including verifying the legitimacy of transaction data, whether the node status is consistent, whether the node is operating normally, etc., to ensure the legitimacy and consistency of transaction encryption information and node operations. During the verification process, a verification result for each node will be generated, indicating whether the node has successfully passed the verification. Multi-dimensional verification refers to verifying nodes from different angles and dimensions to ensure that the behavior and status of the nodes comply with network rules. Confirming the node based on multiple node verification results means that the node's status and behavior comply with network rules and standards.
[0047] When most nodes reach a consensus and confirm the transaction, the final transaction confirmation information is generated, indicating that the transaction is recognized by the blockchain network. Transaction confirmation information usually includes transaction hash, confirmation time, confirmation node list, etc., which is used to prove that the transaction has been verified and accepted by multiple nodes in the network. By traversing all nodes in the blockchain network and broadcasting data, it is ensured that the encrypted transaction information can be quickly propagated and received by all nodes. The consensus mechanism extracts the node hash value and performs multi-dimensional verification, confirms the node, and finally generates the transaction confirmation information, which ensures the consistency, security and legitimacy of the encrypted transaction information in the distributed network and improves the efficiency and reliability of the blockchain network.
[0048] Furthermore, the present application also includes the following steps:
[0049] Based on the verification results of the multiple nodes, determine whether the multiple nodes have reached the expected transaction state; extract the nodes that have reached the expected transaction state, add them to the valid transaction data group, confirm the transaction through the valid transaction data group, and generate a first queue to be confirmed; extract the nodes that have not reached the expected transaction state, add them to the invalid transaction data group, move the nodes corresponding to the invalid transaction data group out of the first queue to be confirmed, and generate a second queue to be confirmed; trigger a state change instruction according to the second queue to be confirmed, update the first transaction state according to the transaction life cycle through the state change instruction, and determine the second transaction state.
[0050] Specifically, based on the verification results of multiple nodes, the transaction status of the nodes is evaluated to determine whether these nodes have reached the expected transaction status. The expected transaction status usually refers to the state that meets the requirements of the consensus mechanism and the transaction data is legal and consistent, that is, the state in which the transaction is accepted and confirmed by most nodes in the network. In different blockchain networks, the specific definition of the expected transaction status may be different, but it usually involves a certain proportion of nodes approving the transaction. Nodes that have reached the expected transaction status are extracted from all nodes, and the transaction data of these nodes are classified into valid transaction data groups. The valid transaction data group contains all nodes that have passed verification and are ready for transaction confirmation. The data in the valid transaction data group is used to confirm the transaction, and the first queue to be confirmed is obtained, which contains all transactions that have passed preliminary confirmation but have not yet been finally confirmed.
[0051] For those nodes that fail to reach the expected transaction status, the data of these nodes are classified as invalid transaction data groups. The data of these nodes may fail to pass consensus verification due to illegal transactions, verification failures or network problems. The corresponding nodes in the invalid transaction data group are removed from the first queue to be confirmed to ensure that the transactions of these nodes no longer participate in the confirmation process. After removing the invalid nodes, a second queue to be confirmed is generated, which only contains those valid nodes to ensure that the remaining transactions can be confirmed smoothly. The second queue to be confirmed is the valid transactions remaining in the first queue to be confirmed after the invalid transactions are removed. According to the transaction information in the second queue to be confirmed, the corresponding state change instructions are triggered to update the status of the transaction. These instructions are usually issued based on the consensus results to ensure that the transaction status is correctly updated at different life cycle stages. The state change instructions are used to update the first transaction status, and the transaction status is automatically updated, so that the transaction process can proceed automatically and smoothly, thereby determining the second transaction status and ensuring that the transaction status reflects the latest progress and results of the transaction. By analyzing the verification results of multiple nodes, the nodes that have reached the expected transaction status are extracted, the valid and invalid transaction data are classified, and the transaction status is updated according to the state change instructions. This process ensures the legitimacy and consistency of transactions in the blockchain network. At the same time, it realizes automatic status updates through the management of the transaction life cycle, and finally generates a second transaction status. It effectively solves the screening of invalid transaction data, efficient processing of transaction confirmation, and automation of status updates, thereby improving the security and efficiency of blockchain transactions.
[0052] Further, step 4 of this application includes:
[0053] Based on the second transaction state, the blockchain network is synchronized to generate block synchronization parameters; according to the transaction life cycle, the digital cryptocurrency information pair is tracked to perform real-time transaction analysis to obtain transaction timing information; based on the transaction timing information, the digital cryptocurrency information pair is traversed to perform risk monitoring to determine multiple transaction risk data; based on the multiple transaction risk data, the transaction liquidity of the digital cryptocurrency information pair is analyzed, the flow direction is tracked according to the analysis results, and a flow network diagram is constructed; the flow network diagram and the multiple transaction risk data are added to the transaction feedback data.
[0054] Specifically, according to the second transaction status, it is synchronized to all nodes of the blockchain network to ensure that all nodes have consistent transaction data and update the current blockchain status. Block synchronization parameters refer to the data used to synchronize various nodes in the blockchain network, including the latest block information, transaction status, transaction timestamp, transaction hash, etc. According to the life cycle of the transaction from occurrence to completion, the state changes of the digital cryptocurrency information pair are tracked, including the initiation, verification, confirmation and final recording of the transaction on the blockchain. In the tracking process, the state changes of the digital cryptocurrency information pair and the impact of these changes on the overall transaction process are analyzed in real time, and the timing information of the transaction is obtained, including the data of each transaction at various time points in the life cycle, such as the transaction initiation time, confirmation time, propagation time, etc.
[0055] Using transaction timing information, traverse digital cryptocurrency information pairs to identify potential transaction risks. Risk monitoring may include detecting abnormal transaction patterns, large transactions, high-frequency transactions, etc., which may be signs of improper trading behavior, and identifying transactions that do not conform to conventional transaction patterns. Based on the analysis, multiple transaction risk data are determined, including multiple risk factors in the transaction, such as transaction delays, network problems, double payment risks, etc. Based on the multiple transaction risk data generated, the liquidity of digital cryptocurrency information pairs is analyzed to evaluate the flow efficiency of funds and their circulation in the network. Based on liquidity analysis, including calculating indicators such as transaction volume, transaction frequency, and currency residence time, the execution efficiency of transactions, the flow speed of funds, and the interaction between nodes are analyzed to evaluate the liquidity of funds in the blockchain network. Using timing information and transaction history data, the flow of digital currencies is tracked, the path of funds in the blockchain network is monitored, and the transfer process of funds from one node to another is identified.
[0056] Based on the tracked flow information, a flow network diagram is constructed to show the flow path and node connection of funds in the network. The network diagram can intuitively show the complexity and dynamics of capital flow, helping users and regulators to better understand market conditions. The generated flow network diagram and multiple transaction risk data are added to the transaction feedback data, including transaction timing information, risk data, flow network diagram, etc., to form a complete feedback system. By synchronizing the state of the blockchain network based on the second transaction state, tracking transaction timing information in real time, and monitoring transaction liquidity and risks, a flow network diagram is finally constructed, and this information is included in the transaction feedback data, which improves the security, transparency and traceability of transactions and ensures that the flow of funds in the blockchain network is effectively monitored.
[0057] Further, step five of this application includes:
[0058] Based on the flow network diagram, flow analysis is performed on the second transaction state to generate a first analysis result; based on the multiple transaction risk data, risk analysis is performed on the second transaction state to generate a second analysis result; according to the first analysis result and the second analysis result, a scheduling mechanism is activated to perform transaction scheduling and a scheduling path is generated; based on the scheduling path, a transaction control check is performed, and a response is made according to the check result to generate the transaction response result.
[0059] Specifically, the flow network diagram represents the flow path of funds or digital cryptocurrency in the blockchain network and the interaction between nodes. By analyzing the flow network diagram, the flow of funds in the network can be visualized and understood, and high-flow nodes of transactions, major fund flows, and possible congestion points can be identified. The second transaction state is analyzed for flow, the flow of digital currency in the blockchain network is analyzed, and its flow efficiency and flow path are evaluated. Based on the flow analysis, the first analysis result is obtained, including the speed of fund flow, delays between nodes, congestion of the flow path, etc., providing a basis for the next step of transaction optimization.
[0060] Through risk monitoring of digital cryptocurrency information pairs, multiple transaction risk data are obtained, and the second transaction status is deeply analyzed to analyze the distribution, trend and correlation of risk data, identify potential transaction risks and unstable factors, and obtain the second analysis results, including specific risk points, risk types, risk levels, countermeasures, etc. Combined with the flow analysis and risk analysis results, the scheduling mechanism is activated to determine the priority and execution order of transactions based on the flow of funds and risk levels. The optimal scheduling path is selected and the execution path of the transaction is rearranged to ensure efficient flow of funds and avoid nodes or links that may be at risk.
[0061] After the scheduling path is determined, the transaction execution on the path is controlled and checked to ensure the correctness of the transaction path and whether the execution is in line with expectations. The content of the inspection may include the execution order of the transaction, the status of the transaction, the behavior of the transaction participants, etc., to verify whether the node works as expected, whether the capital flow meets the requirements, etc., and obtain the inspection results, including whether the path is unobstructed, whether new risks or abnormal situations appear, etc. Based on the inspection results, the final transaction response result is generated to indicate whether the transaction is successful or whether further adjustments are required. The transaction response result is feedback on the inspection result, which can be a transaction confirmation, a transaction rejection, or the triggering of additional security measures. For example, if everything is normal, the transaction is confirmed to be successful; if there is a problem, the corresponding correction or alarm mechanism is triggered. The second transaction state is comprehensively evaluated through flow analysis and risk analysis, and the transaction execution path is optimized in combination with the scheduling mechanism to ensure the liquidity and security of the transaction.
[0062] In summary, the circulation management method for digital currency transactions provided by this application has the following technical effects:
[0063] Traverse the digital currency to be traded for transaction identification, obtain a first transaction status, securely encrypt the digital currency to be traded based on the first transaction status, generate a key pair, the key pair includes a digital cryptocurrency information pair and transaction encryption information; build a blockchain network, synchronize the digital currency to be traded to the blockchain network for transaction query, and obtain historical currency transaction record data; broadcast the transaction encryption information to the blockchain network according to the historical currency transaction record data for transaction verification, generate transaction confirmation information, update the first transaction status based on the transaction confirmation information, and obtain a second transaction status; monitor the digital cryptocurrency information pair according to the second transaction status, and generate transaction feedback data; respond to the second transaction status according to the transaction feedback data, generate a transaction response result, execute a transaction management strategy based on the transaction response result, and perform intelligent circulation management on digital currency transactions. That is to say, by identifying the status of the digital currency to be traded, its initial transaction status is determined and securely encrypted; a blockchain is built to synchronize the digital currency to be traded to the blockchain network for transaction queries; the encrypted transaction information is broadcast to the blockchain network for verification; the transaction status is monitored in real time and feedback data is generated, and management strategies are adjusted according to real-time transaction conditions, thereby reducing asset losses, realizing intelligent circulation management of digital currency transactions, and improving the security of digital currency circulation management.
[0064] Embodiment 2: Based on the same inventive concept as the circulation management method of digital currency transactions in the aforementioned embodiment, this application also provides a circulation management system for digital currency transactions. Figure 2 , the circulation management system of the digital currency transaction includes:
[0065] The transaction encryption module 11 is used to traverse the digital currency to be traded to perform transaction identification, obtain a first transaction status, securely encrypt the digital currency to be traded based on the first transaction status, and generate a key pair, wherein the key pair includes a digital cryptocurrency information pair and transaction encryption information.
[0066] The transaction query module 12 is used to build a blockchain network, synchronize the digital currency to be traded to the blockchain network for transaction query, and obtain historical currency transaction record data.
[0067] The transaction verification module 13 is used to broadcast the encrypted transaction information to the blockchain network according to the historical currency transaction record data for transaction verification, generate transaction confirmation information, and update the first transaction status based on the transaction confirmation information to obtain a second transaction status.
[0068] The transaction monitoring module 14 is used to monitor the transaction of the digital cryptocurrency information pair according to the second transaction state and generate transaction feedback data.
[0069] The response management module 15 is used to respond to the second transaction status according to the transaction feedback data, generate a transaction response result, execute a transaction management strategy based on the transaction response result, and perform intelligent circulation management on the transaction of digital currency.
[0070] Furthermore, the transaction encryption module 11 in the circulation management system of the digital currency transaction is also used for:
[0071] Extract the transaction data to be processed based on the digital currency transaction pool and scan it to determine the digital currency to be traded; traverse the digital currency to be traded to verify the data integrity and obtain the transaction key field information; perform double payment detection according to the transaction key field information, identify the state according to the detection result, and generate the first transaction state; traverse the digital currency to be traded and dynamically encrypt it according to the first transaction state to obtain a digital cryptocurrency information pair; traverse the digital currency to be traded and dynamically encrypt it according to the transaction key field information to obtain the transaction encryption information; associate the digital cryptocurrency information pair with the transaction encryption information to generate a key pair.
[0072] Furthermore, the transaction query module 12 in the circulation management system of the digital currency transaction is also used for:
[0073] Based on the application scenario, the key field information of the transaction is analyzed to generate a demand analysis result, and a fault tolerance assessment is performed based on the demand analysis result to generate a fault tolerance coefficient; the application scenario is integrated according to the fault tolerance coefficient to determine the consensus mechanism; the network is initialized based on the network protocol to generate network communication parameters, and a network architecture is built according to the network communication parameters to obtain a network node list; based on the network node list, node synchronous communication is performed to determine the node structure; according to the node structure, the network node list and the consensus mechanism are deployed for data to build the blockchain network.
[0074] Furthermore, the transaction verification module 13 in the circulation management system of the digital currency transaction is also used for:
[0075] Based on the node structure, the transaction encryption information is combined with the historical currency transaction record data to perform a full-node coverage traversal to generate a broadcast path; the transaction encryption information is broadcast to the blockchain network according to the broadcast path to generate broadcast transaction data; multiple node hash values are extracted through the consensus mechanism in combination with the broadcast transaction data, and multiple nodes are multi-dimensionally verified based on the multiple node hash values to generate multiple node verification results; node confirmation is performed according to the multiple node verification results to obtain the transaction confirmation information.
[0076] Furthermore, the transaction verification module 13 in the circulation management system of the digital currency transaction is also used for:
[0077] Based on the verification results of the multiple nodes, determine whether the multiple nodes have reached the expected transaction state; extract the nodes that have reached the expected transaction state, add them to the valid transaction data group, confirm the transaction through the valid transaction data group, and generate a first queue to be confirmed; extract the nodes that have not reached the expected transaction state, add them to the invalid transaction data group, move the nodes corresponding to the invalid transaction data group out of the first queue to be confirmed, and generate a second queue to be confirmed; trigger a state change instruction according to the second queue to be confirmed, update the first transaction state according to the transaction life cycle through the state change instruction, and determine the second transaction state.
[0078] Furthermore, the transaction monitoring module 14 in the circulation management system of the digital currency transaction is also used for:
[0079] Based on the second transaction state, the blockchain network is synchronized to generate block synchronization parameters; according to the transaction life cycle, the digital cryptocurrency information pair is tracked to perform real-time transaction analysis to obtain transaction timing information; based on the transaction timing information, the digital cryptocurrency information pair is traversed to perform risk monitoring to determine multiple transaction risk data; based on the multiple transaction risk data, the transaction liquidity of the digital cryptocurrency information pair is analyzed, the flow direction is tracked according to the analysis results, and a flow network diagram is constructed; the flow network diagram and the multiple transaction risk data are added to the transaction feedback data.
[0080] Furthermore, the response management module 15 in the circulation management system of the digital currency transaction is also used for:
[0081] Based on the flow network diagram, flow analysis is performed on the second transaction state to generate a first analysis result; based on the multiple transaction risk data, risk analysis is performed on the second transaction state to generate a second analysis result; according to the first analysis result and the second analysis result, a scheduling mechanism is activated to perform transaction scheduling and a scheduling path is generated; based on the scheduling path, a transaction control check is performed, and a response is made according to the check result to generate the transaction response result.
[0082] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. Figure 1 The circulation management method and specific examples of digital currency transactions in the first embodiment are also applicable to the circulation management system of digital currency transactions in this embodiment. Through the detailed description of the circulation management method of digital currency transactions, those skilled in the art can clearly understand the circulation management system of digital currency transactions in this embodiment, so for the sake of brevity of the specification, it will not be described in detail here. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0083] Embodiment 3, based on the same inventive concept as the circulation management method for digital currency transactions in the aforementioned embodiment 1, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the steps of the circulation management method for digital currency transactions described in any one of the aforementioned embodiments 1 are implemented.
[0084] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
[0085] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application belong to the scope of the present application and its equivalent technology, the present application is also intended to include these modifications and variations.
Claims
1. A circulation management method for digital currency transactions, characterized in that: include: Traversing the digital currency to be traded to perform transaction identification, obtaining a first transaction status, securely encrypting the digital currency to be traded based on the first transaction status, and generating a key pair, wherein the key pair includes a digital cryptocurrency information pair and transaction encryption information; Constructing a blockchain network, synchronizing the digital currency to be traded to the blockchain network for transaction query, and obtaining historical currency transaction record data; Broadcasting the encrypted transaction information to the blockchain network according to the historical currency transaction record data for transaction verification, generating transaction confirmation information, and updating the first transaction status based on the transaction confirmation information to obtain a second transaction status; Performing transaction monitoring on the digital cryptocurrency information pair according to the second transaction state to generate transaction feedback data; Responding to the second transaction status according to the transaction feedback data, generating a transaction response result, executing a transaction management strategy based on the transaction response result, and performing intelligent circulation management on the transaction of digital currency; The process of traversing the digital currency to be traded to perform transaction identification, obtaining a first transaction status, securely encrypting the digital currency to be traded based on the first transaction status, and generating a key pair includes: Extracting the transaction data to be processed based on the digital currency transaction pool and scanning it to determine the digital currency to be traded; Traversing the digital currency to be traded to perform data integrity verification and obtain transaction key field information; Perform double payment detection according to the transaction key field information, identify the status according to the detection result, and generate the first transaction status; Traversing the digital currency to be traded and dynamically encrypting it according to the first transaction state to obtain a digital cryptocurrency information pair; Traversing the digital currency to be traded, dynamically encrypting it according to the key field information of the transaction, and obtaining the encrypted transaction information; Associating the digital cryptocurrency information pair with the transaction encryption information to generate a key pair; Wherein, the blockchain network includes: Analyze the key field information of the transaction based on the application scenario to generate a demand analysis result, perform a fault tolerance evaluation based on the demand analysis result, and generate a fault tolerance coefficient; Integrate the fault tolerance coefficient and the application scenario to determine the consensus mechanism; Initialize the network based on the network protocol, generate network communication parameters, build a network architecture according to the network communication parameters, and obtain a list of network nodes; Perform node synchronization communication based on the network node list to determine the node structure; According to the node structure, the network node list and the consensus mechanism are deployed for data deployment to build the blockchain network.
2. The circulation management method for digital currency transactions according to claim 1, characterized in that: Broadcasting the encrypted transaction information to the blockchain network according to the historical currency transaction record data for transaction verification, and generating transaction confirmation information, including: Based on the node structure, the encrypted transaction information is combined with the historical currency transaction record data to perform a full node coverage traversal to generate a broadcast path; Broadcasting the encrypted transaction information to the blockchain network according to the broadcast path to generate broadcast transaction data; Extracting multiple node hash values by combining the consensus mechanism with the broadcast transaction data, performing multi-dimensional verification on multiple nodes based on the multiple node hash values, and generating multiple node verification results; Node confirmation is performed according to the multiple node verification results to obtain the transaction confirmation information.
3. The circulation management method for digital currency transactions according to claim 2, characterized in that: The first transaction state is updated based on the transaction confirmation information to obtain a second transaction state, including: Determining whether the multiple nodes have reached the expected transaction state based on the multiple node verification results; Extracting nodes that have reached the expected transaction state, adding them to a valid transaction data group, performing transaction confirmation through the valid transaction data group, and generating a first queue to be confirmed; Extracting nodes that have not reached the expected transaction status, adding them to the invalid transaction data group, removing the nodes corresponding to the invalid transaction data group from the first queue to be confirmed, and generating a second queue to be confirmed; A state change instruction is triggered according to the second to-be-confirmed queue, and the first transaction state is updated according to the transaction life cycle through the state change instruction to determine the second transaction state.
4. The circulation management method for digital currency transactions according to claim 3, characterized in that: The transaction of the digital cryptocurrency information pair is monitored according to the second transaction state to generate transaction feedback data, including: Synchronize the state of the blockchain network based on the second transaction state and generate block synchronization parameters; According to the transaction life cycle, the digital cryptocurrency information is tracked to perform real-time transaction analysis to obtain transaction timing information; Based on the transaction timing information, the digital cryptocurrency information is traversed to perform risk monitoring to determine a plurality of transaction risk data; Performing a transaction liquidity analysis of the digital cryptocurrency information pair according to the plurality of transaction risk data, tracking the flow direction according to the analysis results, and constructing a flow network diagram; The flow network diagram and the plurality of transaction risk data are added to the transaction feedback data.
5. The circulation management method for digital currency transactions according to claim 4, characterized in that: Responding to the second transaction state according to the transaction feedback data to generate a transaction response result includes: Performing flow analysis on the second transaction state based on the flow network diagram to generate a first analysis result; Performing risk analysis on the second transaction status based on the plurality of transaction risk data to generate a second analysis result; activating a scheduling mechanism to perform transaction scheduling according to the first analysis result and the second analysis result, and generating a scheduling path; A transaction control check is performed based on the scheduling path, and a response is made according to the check result to generate the transaction response result.
6. A circulation management system for digital currency transactions, characterized in that: The steps for implementing the circulation management method of digital currency transactions according to any one of claims 1 to 5, wherein the circulation management system of digital currency transactions comprises: A transaction encryption module, the transaction encryption module is used to traverse the digital currency to be traded to perform transaction identification, obtain a first transaction status, securely encrypt the digital currency to be traded based on the first transaction status, and generate a key pair, the key pair including a digital cryptocurrency information pair and transaction encryption information; A transaction query module, which is used to build a blockchain network, synchronize the digital currency to be traded to the blockchain network for transaction query, and obtain historical currency transaction record data; A transaction verification module, the transaction verification module is used to broadcast the encrypted transaction information to the blockchain network according to the historical currency transaction record data for transaction verification, generate transaction confirmation information, and update the first transaction state based on the transaction confirmation information to obtain a second transaction state; A transaction monitoring module, the transaction monitoring module is used to monitor the transaction of the digital cryptocurrency information pair according to the second transaction state and generate transaction feedback data; A response management module, wherein the response management module is used to respond to the second transaction status according to the transaction feedback data, generate a transaction response result, execute a transaction management strategy based on the transaction response result, and perform intelligent circulation management on the transaction of digital currency.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed, implements the steps of the circulation management method for digital currency transactions described in any one of claims 1 to 5.
Citation Information
Patent Citations
Transaction verification method and system based on block chain
CN106548330A
Private transaction method based on block chain and related product
CN115131018A