Blockchain wallet transaction verification method and device based on multi-party secure computation
The blockchain wallet transaction verification method based on multi-party secure computing solves the problem of insufficient security in blockchain transaction settlement, ensures the completeness and accuracy of transaction record information, and improves the security of transaction settlement.
Patent Information
- Application Number
- CN202511113460.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-11
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2045-08-11
AI Technical Summary
The existing blockchain-based transaction settlement technology has the problem of insufficient security.
The blockchain wallet transaction verification method adopts multi-party secure computing, which ensures the consistency of transaction records by configuring transaction strategies, generating local wallet accounts, obtaining the number of synchronized nodes, encrypting wallet transactions and multi-party signatures, generating transaction record information, and performing multi-party computation verification.
It realizes the integrity and accuracy verification of blockchain wallet transactions and improves the security of transaction settlement.
Smart Images

Figure CN120612086B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a blockchain wallet transaction verification method and device based on multi-party secure computing. Background Art
[0002] To ensure transaction security, existing technologies typically build blockchain networks for transaction settlement, enabling distributed storage of transaction information and improving transaction security. However, these existing methods lack verification of transaction settlement information during the settlement process, leading to security risks. Therefore, existing blockchain-based transaction settlement methods suffer from insufficient security. Summary of the Invention
[0003] The embodiments of the present invention provide a blockchain wallet transaction verification method and device based on multi-party secure computing, aiming to solve the problem of insufficient security in blockchain-based transaction settlement in existing technical methods.
[0004] In a first aspect, an embodiment of the present invention provides a blockchain wallet transaction verification method based on multi-party secure computing. The method is configured in a blockchain node, and the blockchain node establishes a network connection with a management node and other nodes in the blockchain network to realize data information transmission, wherein the method includes:
[0005] If network configuration information is received, configure the trading strategy according to the network configuration information;
[0006] Sending node identity information to the management node and other nodes in the blockchain network according to the networking configuration information;
[0007] If registration feedback information is received from the management node, a corresponding local wallet account is generated according to the registration feedback information;
[0008] If wallet transaction information of the local wallet account is received, the number of synchronization nodes corresponding to the current time is obtained according to the node determination rule in the transaction strategy;
[0009] Encrypt the wallet transaction information according to the registration feedback information, obtain the wallet transaction encrypted information and send it to other nodes for multi-party signature;
[0010] If node signature information is received from other nodes equal to the number of synchronized nodes based on the wallet transaction encryption information, transaction record information corresponding to the wallet transaction information and the node signature information is generated according to the transaction record rules in the transaction strategy;
[0011] The transaction record information, node ranking, and aggregated signature information of the current node are encrypted according to the registration feedback information and sent to each node; the node ranking is the order in which the node signature information is received;
[0012] Receive the computational feedback results of the multi-party computations performed by each node and verify whether they are consistent with the transaction record information;
[0013] If the verification is consistent, the transaction record information is stored to complete the transaction settlement.
[0014] In a second aspect, an embodiment of the present invention further provides a blockchain wallet transaction verification device based on multi-party secure computing, wherein the device is configured in a blockchain node, and the blockchain node establishes a network connection with the management node and other nodes in the blockchain network to realize the transmission of data information. The device is used to execute the blockchain wallet transaction verification method based on multi-party secure computing as described in the first aspect above, and the device includes:
[0015] A transaction strategy configuration unit, configured to configure a transaction strategy according to the network configuration information upon receiving the network configuration information;
[0016] A node identity information sending unit, configured to send the node identity information to the management node and other nodes in the blockchain network according to the networking configuration information;
[0017] An account generating unit, configured to generate a corresponding local wallet account according to the registration feedback information received from the management node;
[0018] a synchronization node number acquisition unit, configured to, upon receiving wallet transaction information of the local wallet account, acquire the synchronization node number corresponding to the current time according to the node determination rule in the transaction policy;
[0019] A wallet transaction encryption information sending unit, configured to encrypt the wallet transaction information according to the registration feedback information, obtain the wallet transaction encryption information, and send it to other nodes for multi-party signature;
[0020] A transaction record information generating unit, configured to generate transaction record information corresponding to the wallet transaction information and the node signature information according to the transaction record rules in the transaction policy upon receiving node signature information fed back by other nodes equal to the number of synchronized nodes based on the wallet transaction encryption information;
[0021] a sending unit, configured to encrypt the transaction record information, the node ranking, and the aggregated signature information of the current node according to the registration feedback information, and send the encrypted information to each node; the node ranking is the order in which the node signature information is received;
[0022] A verification unit, configured to receive feedback from the multi-party computation performed by each node and verify whether the feedback is consistent with the transaction record information;
[0023] The storage unit is used to store the transaction record information to complete the transaction settlement if the verification is consistent.
[0024] In a third aspect, an embodiment of the present invention further provides a computer device, wherein the device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0025] Memory for storing computer programs;
[0026] The processor is configured to implement the steps of the blockchain wallet transaction verification method based on multi-party secure computing described in the first aspect when executing the program stored in the memory.
[0027] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the blockchain wallet transaction verification method based on multi-party secure computing as described in the first aspect above are implemented.
[0028] An embodiment of the present invention provides a blockchain wallet transaction verification method and device based on multi-party secure computation. The method includes: configuring a transaction strategy based on network configuration information and sending node identity information to a management node and other nodes; generating a local wallet account based on received registration feedback information; receiving wallet transaction information from the local wallet account, obtaining the number of synchronized nodes corresponding to the current time; sending encrypted wallet transaction information corresponding to the wallet transaction information to other nodes; receiving node signature information feedback from other nodes equal to the number of synchronized nodes, and generating transaction record information accordingly; encrypting the transaction record information, node ranking, and the node signature information of the current node and sending it to each node; receiving the computation feedback results of the multi-party computation performed by each node and verifying whether they are consistent with the transaction record information; if consistent, storing the transaction record information to complete transaction settlement. The above technical method can verify the consistency of transaction record information based on multi-party computation, that is, realize transaction verification of blockchain wallets, thereby ensuring the completeness and accuracy of transaction record information, and significantly improving the security of transaction settlement through the blockchain network. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0030] Figure 1 A flowchart of a blockchain wallet transaction verification method based on multi-party secure computing provided by an embodiment of the present invention;
[0031] Figure 2 A schematic diagram of an application scenario of a blockchain wallet transaction verification method based on multi-party secure computing provided by an embodiment of the present invention;
[0032] Figure 3 A schematic block diagram of a blockchain wallet transaction verification device based on multi-party secure computing provided by an embodiment of the present invention;
[0033] Figure 4 It is a schematic block diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0034] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0035] It will be understood that when used in this specification and the appended claims, the terms “comprises” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0036] It should also be understood that the terms used in the present specification are only for the purpose of describing particular embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0037] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0038] See also Figure 1 and Figure 2 As shown in the figure, an embodiment of the present invention provides a blockchain wallet transaction verification method based on multi-party secure computation. This method is applied to a blockchain node 101, which establishes a network connection with a management node 102 and other nodes 103 in a blockchain network 10 to enable data transmission. This application primarily describes the method steps performed by blockchain node 101; in actual application, any node 103 can also perform the above method steps as blockchain node 101. Blockchain node 101 and other nodes 103 are each equipped with a node terminal. The method is executed through application software installed in the node terminal. The node terminal is a terminal device used to execute the above method to verify blockchain wallet transactions and complete transaction settlement, such as a desktop computer, laptop computer, tablet computer, or mobile phone. The management node 102 is equipped with a management server, which is a server configured within the blockchain network 10 for node management. One or more management nodes 102 can be configured in a blockchain network 10. The management server can be a large server or server cluster. In this embodiment, the blockchain network 10 may be a distributed data processing network built based on the consortium chain (Hyperledger Fabric). Figure 1 As shown, the method includes steps S110 to S190.
[0039] S110: If the networking configuration information is received, configure a transaction strategy according to the networking configuration information.
[0040] If network configuration information is received, transaction policies are configured based on the network configuration information. Users can input network configuration information into the node terminal, or they can input network requests into the node terminal. The node terminal sends the network request to the management server corresponding to the management node, which then feeds back the network configuration information to the node terminal. The node terminal configures transaction policies based on the network configuration information, which includes a blockchain group identifier and distributed ledger rules. The node terminal can choose to network with any blockchain group, becoming a node in that blockchain group. Different blockchain group identifiers correspond to different blockchain groups, allowing a node terminal to simultaneously access different blockchain groups and function as a node in different blockchain groups. The blockchain group identifier can be used to distinguish between different blockchain groups. For example, a node terminal can network with nodes within the blockchain group "S0001" based on the blockchain group identifier "S0001." Later, the node terminal can network with nodes within the blockchain group "S0002" based on the blockchain group identifier "S0002." Transactions can then be conducted with different wallet accounts in different blockchain groups.
[0041] Distributed accounting rules, that is, specific rules used for distributed accounting transactions, can configure corresponding transaction strategies based on the distributed accounting rules.
[0042] S120. Send the node identity information to the management node and other nodes in the blockchain network according to the networking configuration information.
[0043] The node identity information is sent to the management node and other nodes within the blockchain network based on the networking configuration information. Node identity information corresponding to the current node is generated and sent to the management node and other nodes within the blockchain network corresponding to the blockchain group based on the networking configuration information. The node identity information includes the identity information of the current node. Sending the node identity information to the management node and other nodes synchronizes the node identity information of the current node, thereby registering the current node with the corresponding blockchain group.
[0044] In a specific embodiment, step S120 includes the steps of: obtaining the node address and node identification information of the current node; generating a node key corresponding to the node address according to the key generation strategy in the networking configuration information; encrypting the node address and the node identification information according to the node key to obtain corresponding encrypted information; combining the encrypted information and the node key into node identity information and sending it to the management node and other nodes.
[0045] Specifically, the node address and node identification information of the current node can be obtained. The node address is also the IP address of the current node terminal. The corresponding information can be sent to the node terminal through the node address; the node identification information can be used to uniquely identify the current node terminal. For example, the node identification information can be a MAC (Media Access Control Address) address or a device identity document (ID).
[0046] A node key corresponding to the node address can be generated based on the key generation strategy in the networking configuration information. For example, the node address and node identification information are sequentially combined to form a composite string. This composite string is then hashed to obtain the corresponding digest information. That is, Hash (combined string) = Digest information. This means that hashing the composite string yields a digest information. For information of any length (in bits), SHA256 (Secure Hash Algorithm 256) always generates 32-byte data. SHA256 always treats information as a bit string.
[0047] The digest information is then used as the order k'. Since the order k' is a positive integer, the corresponding calculation formula can be determined based on the elliptic curve equation in the key generation strategy: P' = [k'] × G. Point P' is a point on the elliptic curve equation. A tangent line can be drawn along point G to obtain a tangent line with point G as its point of intersection. A perpendicular line can be drawn through point G to this tangent line. The intersection of the perpendicular line and the k'-th order elliptic curve equation is point P'. The coordinates of point P' are converted into a hexadecimal string as the node public key, and the order k' is converted into a hexadecimal string as the node private key. The node public key and the node private key are combined to obtain the corresponding node key.
[0048] The node address and node identification information are encrypted using the node key. Specifically, the combined string is encrypted using the public key in the node key, for example, using a national encryption algorithm, to generate an encrypted message. This encrypted message is combined with the public key in the node key to generate the node identification information, which is then sent to the management node and other nodes in the same blockchain group. The management node and other nodes can then use the same elliptic curve equation to obtain the private key corresponding to the public key in the node identification information. These private keys are then used to decrypt the encrypted information in the node identification information, thereby restoring the node address and node identification information.
[0049] S130: If registration feedback information fed back by the management node is received, a corresponding local wallet account is generated according to the registration feedback information.
[0050] Upon receiving registration feedback from the management node, a corresponding local wallet account is generated based on the registration feedback information. After receiving the node identity information sent by the blockchain node and recovering the node address and node identification information, the management node can register and network the node, thereby updating the node information included in the blockchain group. After receiving the node identity information, other nodes synchronize and store the node identity information. After completing registration, the management node can send the corresponding registration feedback information back to the node terminal, which then generates a corresponding local wallet account.
[0051] In a specific embodiment, step S130 includes the steps of: decrypting the registration feedback information according to the node secret key to obtain a group encryption public key; encrypting the account holder information according to the group encryption public key to obtain a corresponding account identifier; and binding the account identifier with the account holder information, the node address of the current node, and the node identifier information to generate a corresponding local wallet account.
[0052] The management node calculates the group encryption public key based on the public key of each node, encrypts the group encryption public key and the total number of group nodes using the encryption public key corresponding to the node identity information, and obtains the corresponding registration feedback information and sends it to the node terminal. The calculation process of the group encryption public key is as follows: ; Among them, S i is the encryption public key of the i-th node, j i is the group serial number corresponding to the i-th node, Q is the calculated group encryption public key, and m is the total number of nodes included in the blockchain group (excluding the number of management nodes)
[0053] After receiving the registration feedback information, the node terminal can decrypt it using the node private key within the node secret key to restore the group encryption public key. The account holder information is then encrypted using the group encryption public key to generate a corresponding account identifier, which can then be used to uniquely identify the wallet account. Furthermore, to distinguish wallet accounts in different blockchain groups, the encrypted information obtained by encrypting the account holder information using the group encryption public key can be combined with the corresponding blockchain group identifier to obtain the account identifier. The account holder information refers to the applicant information currently applying to register an account wallet, and includes information such as the holder's name, ID number, and gender. The holder's name is converted to pinyin characters, and the holder's gender is converted to the corresponding gender identifier (e.g., M for male, W for female). The pinyin characters corresponding to the holder's name, the holder's ID number, and the gender identifier are combined to obtain a combined information. Each character contained in the combined information is converted to ASCII to obtain a hexadecimal string as the account holder information.
[0054] By binding the account ID with the corresponding account holder information, the node address of the current node, and the node ID information, a local wallet account can be constructed. The local wallet account can record the wallet balance accordingly.
[0055] S140: If wallet transaction information of the local wallet account is received, the number of synchronization nodes corresponding to the current time is obtained according to the node determination rule in the transaction policy.
[0056] If a node terminal receives wallet transaction information from a local wallet account, it can obtain the number of synchronized nodes corresponding to the current time based on the node determination rules. Wallet transaction information refers to the information recorded during transactions using a wallet account. It can include information such as the transaction amount, transaction account identifier, and post-transaction balance. For example, a set of wallet transaction information might include "-35," "53AC4B62EFA7...", and "3,257." A transaction amount of "-35" indicates that the current wallet account paid 35 yuan to "53AC4B62EFA7...", resulting in a post-transaction balance of "3,257." The number of synchronized nodes corresponding to the current time can be obtained based on the node determination rules. Since not all node terminals in a blockchain network are online, to improve node computation efficiency, the number of synchronized nodes can be obtained and multi-party computation can be performed based on the node terminals corresponding to the synchronized node number. If the total number of nodes in a blockchain group is m, then the number of synchronized nodes n is less than m.
[0057] In a specific embodiment, step S140 includes the steps of: obtaining the time period in which the current time is located in the node determination rule; obtaining the time coefficient corresponding to the time period; calculating the time coefficient and the total number of nodes according to the node number calculation formula in the node determination rule to obtain the corresponding calculated value; rounding the calculated value to obtain the corresponding number of synchronization nodes.
[0058] Node determination rules include multiple time periods, each with a corresponding time coefficient. You can obtain the time period that the current time falls within and the corresponding time coefficient for that time period. For example, if the time period is "06:00-08:59" and the corresponding time coefficient is 2, and the current time is "07:35," then the current time corresponds to that time period, and the corresponding time coefficient is determined to be 2.
[0059] Furthermore, the node coefficient and the total number of nodes are calculated according to the node number calculation formula in the node determination rule. The node number calculation formula can be: ; where r is the time coefficient (e.g. r=1,2,3,4…), e is the base of the natural logarithm, and n r is the calculated value. For example, when r=2, m=100, the corresponding calculated value n r It is 16.3.
[0060] The calculated value is rounded to an integer to obtain the number of synchronization nodes. For example, by rounding up 16.3, the number of synchronization nodes n is determined to be 17.
[0061] S150: Encrypt the wallet transaction information according to the registration feedback information, obtain the wallet transaction encrypted information, and send it to other nodes for multi-party signature.
[0062] The wallet transaction information is encrypted based on the registration feedback information to obtain encrypted wallet transaction information, which is then sent to other nodes for multi-party signature. Furthermore, the wallet transaction information can be encrypted based on the group encryption public key in the registration feedback information to obtain encrypted wallet transaction information; the obtained encrypted wallet transaction information is then sent to other nodes for multi-party signature.
[0063] S160: If node signature information fed back by other nodes equal to the number of synchronization nodes based on the wallet transaction encryption information is received, transaction record information corresponding to the wallet transaction information and the node signature information is generated according to the transaction record rules in the transaction policy.
[0064] After receiving the encrypted wallet transaction information, other nodes re-encrypt it using their own public keys to sign the encrypted wallet transaction information. Consequently, the node signature information obtained by each node differs. Once a node generates its signature information, it can broadcast it within the blockchain group, allowing all currently online nodes within the group to receive it. The node terminal can then sequentially receive the node signature information fed back by other nodes and further determine whether the number of received node signatures equals the number of synchronized nodes calculated above. If the number of received node signatures equals the number of synchronized nodes, transaction records corresponding to the wallet transaction information and node signature information are generated according to the transaction record rules in the transaction policy.
[0065] In a specific embodiment, step S160 includes the steps of: signing the wallet transaction information according to the node secret key of the current node to obtain the node signature information of the current node; recording the order of receiving the node signature information to obtain the corresponding node ranking; performing aggregation calculation on the node signature information to obtain the corresponding aggregate signature information; performing superposition and remainder calculation on the node public keys corresponding to each node signature information in turn according to the aggregate signature information and the node ranking to determine the node coefficient corresponding to each node; performing combined calculation on the node signature information of each node according to the transaction record rule and the node coefficient to obtain the corresponding transaction record information.
[0066] When generating transaction records, the locally stored wallet transaction information is first signed using the public key in the current node's node secret key, generating the current node's node signature information. The order in which the node signature information is received is recorded to generate a node ranking, which is the order in which the node signature information is received. The current node is ranked first in the node ranking, with the corresponding sequence number being "1." Other nodes are ranked sequentially based on the order in which their node signature information is received, with the last node having the sequence number "n+1."
[0067] The node signature information can be aggregated to obtain the aggregate signature information. The calculation process of the aggregate calculation can be expressed as ; Where F is the aggregate signature information obtained, F i The node signature information corresponding to the node with sequence number i.
[0068] Furthermore, according to the transaction record rules and the aggregated signature information, the node public keys corresponding to the signature information of each node are superimposed and the remainder is calculated. First, the aggregated signature information is divided by the node public key of the node with serial number "1" (the current node). The remainder is the node coefficient corresponding to the node with serial number "1". The node coefficient calculation formula of subsequent nodes is ;in, is the node coefficient corresponding to the node with serial number “i”, F is the aggregate signature information, the value range of i is [2, n+1], P Gi is the node public key corresponding to the node number "i", and "%" is the remainder calculation symbol. According to the above method, the node coefficients corresponding to each of the n+1 nodes can be calculated separately.
[0069] According to the transaction record rules and node coefficients, the node signature information of each node is combined and calculated to obtain the corresponding transaction record information, which also includes the transaction time and account identification. Among them, the transaction record rules can be expressed as The transaction record rule is to multiply the node coefficient of the same node with the node signature information, and then accumulate the product results to obtain the corresponding transaction record information.
[0070] S170. Encrypt the transaction record information, node ranking, and aggregate signature information of the current node according to the registration feedback information and send them to each node.
[0071] The transaction record information, node ranking and aggregate signature information of the current node are encrypted according to the registration feedback information and sent to each node; the node ranking is the order in which the node signature information is received.
[0072] In a specific embodiment, step S170 includes the steps of: combining the transaction record information, node sorting and the aggregate signature information to obtain corresponding basic combination information; encrypting the basic combination information according to the group encryption public key in the registration feedback information and sending it to each node.
[0073] The transaction record information, node ranking and aggregate signature information obtained by the current node can be combined to obtain a set of basic combination information; the basic combination information is encrypted according to the group encryption public key, and the encrypted basic combination information is sent to each node.
[0074] S180: Receive the computation feedback results of the multi-party computation performed by each node and verify whether they are consistent with the transaction record information.
[0075] Receive the computational feedback results of the multi-party computation performed by each node and verify whether they are consistent with the transaction record information. Specifically, after receiving the encrypted basic combination information, other nodes can decrypt the encrypted basic combination information to restore the transaction record information, node ranking, and aggregate signature information therein. The specific process of performing the multi-party computation within the node based on the decrypted information is as follows: other nodes also perform a superposition modulus calculation on the node public key of each node based on the node ranking and aggregate signature information to determine the node coefficient corresponding to each node. Because the node ranking determines the order of the superposition modulus calculation, if the information transmission is consistent, the node coefficient calculated by the other nodes is the same as the node coefficient calculated in the blockchain node in the above step. Other nodes can also perform a combination calculation on the node signature information of the corresponding node based on the transaction record rules and node coefficient to obtain the corresponding transaction record verification information; determine whether the transaction record verification information is consistent with the transaction record information. If the other nodes verify that the transaction record verification information is consistent with the transaction record information, they can feedback the computational feedback result to the node terminal and store the transaction record verification information within the node. If the transaction record information is inconsistent with the transaction record verification information, the node does not feedback the computational feedback result. The operation feedback result is the encrypted information obtained by the node encrypting the transaction record information using the group encryption public key.
[0076] In a specific embodiment, step S180 includes the steps of: encrypting the transaction record information according to the group encryption public key in the registration feedback information to obtain corresponding transaction record encryption information; judging whether each of the operation feedback results is consistent with the transaction record encryption information, thereby verifying whether the operation feedback results are consistent with the transaction record information.
[0077] If the node terminal receives the operation feedback result, it can encrypt the transaction record information according to the group encryption public key to obtain the transaction record encrypted information, and further determine whether the received operation feedback results are consistent with the transaction record encrypted information; if they are consistent, it is verified that the operation feedback result is consistent with the transaction record information; if they are not consistent, it is verified that the operation feedback result is inconsistent with the transaction record information.
[0078] S190: If the verification is consistent, the transaction record information is stored to complete the transaction settlement.
[0079] If the verification is consistent, the transaction record information is stored to complete the transaction settlement. If the verification is consistent, the transaction record information is stored, and the node terminal sends the transaction record information to the management node for synchronous storage within the management node. The node then performs the corresponding settlement operation (account balance change) to complete the transaction settlement. During the transaction settlement process, the node terminal submits the wallet transaction information to the management node, which then sends a corresponding set of wallet transaction information to the counterparty wallet account with which the current wallet account has transacted. At this point, the counterparty wallet account can also execute steps S130 through S190 accordingly, thereby achieving bidirectional recording of the transaction process (increases in one wallet account's balance correspond to one set of wallet transaction information, and decreases in the other wallet account's balance correspond to another set of wallet transaction information).
[0080] The blockchain wallet transaction verification method based on multi-party secure computation disclosed in the above embodiment includes: configuring a transaction strategy based on network configuration information and sending node identity information to the management node and other nodes; generating a local wallet account based on received registration feedback information; obtaining the number of synchronized nodes corresponding to the current time upon receiving wallet transaction information from the local wallet account; sending encrypted wallet transaction information corresponding to the wallet transaction information to other nodes; generating transaction record information corresponding to the received node signature information from other nodes equal to the number of synchronized nodes; encrypting the transaction record information, node ranking, and the node signature information of the current node and sending them to each node; receiving the computation feedback results of the multi-party computation performed by each node and verifying whether they are consistent with the transaction record information; if they are consistent, storing the transaction record information to complete the transaction settlement. The above technical method can verify the consistency of transaction record information based on multi-party computation, that is, realize transaction verification of blockchain wallets, thereby ensuring the completeness and accuracy of transaction record information, and significantly improving the security of transaction settlement through the blockchain network.
[0081] The embodiment of the present invention also provides a blockchain wallet transaction verification device based on multi-party secure computing, which can be configured in a blockchain node and is used to execute any embodiment of the aforementioned blockchain wallet transaction verification method based on multi-party secure computing. Figure 3 , Figure 3 A schematic block diagram of a blockchain wallet transaction verification device based on multi-party secure computing provided by an embodiment of the present invention.
[0082] like Figure 3As shown, the blockchain wallet transaction verification device 100 based on multi-party secure computing includes a transaction strategy configuration unit 110, a node identity information sending unit 120, an account generation unit 130, a synchronization node number acquisition unit 140, a wallet transaction encryption information sending unit 150, a transaction record information generation unit 160, a sending unit 170, a verification unit 180 and a storage unit 190.
[0083] The transaction strategy configuration unit 110 is configured to configure a transaction strategy according to the network configuration information if the network configuration information is received.
[0084] The node identity information sending unit 120 is used to send the node identity information to the management node and other nodes in the blockchain network according to the networking configuration information.
[0085] The account generation unit 130 is configured to generate a corresponding local wallet account according to the registration feedback information received from the management node.
[0086] The synchronization node number acquisition unit 140 is configured to, upon receiving wallet transaction information of the local wallet account, acquire the synchronization node number corresponding to the current time according to the node determination rule in the transaction policy.
[0087] The wallet transaction encryption information sending unit 150 is used to encrypt the wallet transaction information according to the registration feedback information, obtain the wallet transaction encryption information and send it to other nodes for multi-party signature.
[0088] The transaction record information generating unit 160 is configured to generate transaction record information corresponding to the wallet transaction information and the node signature information according to the transaction record rules in the transaction policy upon receiving node signature information fed back by other nodes equal to the number of synchronization nodes based on the wallet transaction encryption information.
[0089] The sending unit 170 is used to encrypt the transaction record information, node ranking and the aggregate signature information of the current node according to the registration feedback information and send them to each node; the node ranking is the order of receiving the node signature information.
[0090] The verification unit 180 is used to receive the operation feedback results of the multi-party operation performed by each node and verify whether they are consistent with the transaction record information.
[0091] The storage unit 190 is used to store the transaction record information to complete the transaction settlement if the verification is consistent.
[0092] The blockchain wallet transaction verification device based on multi-party secure computing provided in an embodiment of the present invention applies the above-mentioned blockchain wallet transaction verification method based on multi-party secure computing. It configures a transaction strategy based on network configuration information and sends node identity information to the management node and other nodes. It generates a local wallet account based on the received registration feedback information. After receiving wallet transaction information of the local wallet account, it obtains the number of synchronized nodes corresponding to the current time. It sends encrypted wallet transaction information corresponding to the wallet transaction information to other nodes. After receiving node signature information feedback from other nodes equal to the number of synchronized nodes, it generates transaction record information accordingly. The transaction record information, node ranking, and node signature information of the current node are encrypted and sent to each node. The calculation feedback results of each node performing multi-party calculations are received and verified to be consistent with the transaction record information. If they are consistent, the transaction record information is stored to complete the transaction settlement. The above-mentioned technical method can verify the consistency of transaction record information based on multi-party computing, that is, it realizes transaction verification of blockchain wallets, thereby ensuring the completeness and accuracy of transaction record information, and significantly improving the security of transaction settlement through the blockchain network.
[0093] The blockchain wallet transaction verification device based on multi-party secure computing can be implemented in the form of a computer program. The computer program can be used in Figure 4 Runs on the computer device shown.
[0094] See also Figure 4 , Figure 4 is a schematic block diagram of a computer device provided by an embodiment of the present invention. The computer device may be a terminal device for executing a blockchain wallet transaction verification method based on multi-party secure computing to implement transaction verification on a blockchain wallet and thereby complete transaction settlement.
[0095] See Figure 4 The computer device 500 includes a processor 502 , a memory, and a network interface 505 connected via a communication bus 501 , wherein the memory may include a storage medium 503 and an internal memory 504 .
[0096] The storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can perform a blockchain wallet transaction verification method based on multi-party secure computing. The storage medium 503 can be a volatile storage medium or a non-volatile storage medium.
[0097] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.
[0098] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the blockchain wallet transaction verification method based on multi-party secure computing.
[0099] The network interface 505 is used for network communication, such as providing data information transmission. Those skilled in the art will understand that Figure 4 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied. The specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0100] The processor 502 is configured to execute a computer program 5032 stored in the memory to implement the corresponding functions of the aforementioned blockchain wallet transaction verification method based on multi-party secure computing.
[0101] Those skilled in the art will understand that Figure 4 The embodiment of the computer device shown in the figure does not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, in some embodiments, the computer device may only include a memory and a processor. In such an embodiment, the structure and function of the memory and processor are the same as those in the figure. Figure 4 The embodiments shown are consistent and will not be described again here.
[0102] It should be understood that in the embodiment of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0103] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be volatile or non-volatile. The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps included in the aforementioned blockchain wallet transaction verification method based on multi-party secure computation.
[0104] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0105] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, or units with the same function may be combined into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.
[0106] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
[0107] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0108] If the integrated unit is implemented as 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, or the portion that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a computer-readable storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned computer-readable storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a magnetic disk, or an optical disk.
[0109] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and such modifications or substitutions are intended to be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. A blockchain wallet transaction verification method based on multi-party secure computing, characterized in that: The method is configured in a blockchain node, and the blockchain node establishes a network connection with a management node and other nodes in the blockchain network to realize the transmission of data information. The method includes: If network configuration information is received, configure the trading strategy according to the network configuration information; Sending node identity information to the management node and other nodes in the blockchain network according to the networking configuration information; If registration feedback information is received from the management node, a corresponding local wallet account is generated according to the registration feedback information; If wallet transaction information of the local wallet account is received, the number of synchronization nodes corresponding to the current time is obtained according to the node determination rule in the transaction strategy; Encrypt the wallet transaction information according to the registration feedback information, obtain the wallet transaction encrypted information and send it to other nodes for multi-party signature; If node signature information is received from other nodes equal to the number of synchronized nodes based on the wallet transaction encryption information, transaction record information corresponding to the wallet transaction information and the node signature information is generated according to the transaction record rules in the transaction strategy; The transaction record information, node ranking, and aggregated signature information of the current node are encrypted according to the registration feedback information and sent to each node; the node ranking is the order in which the node signature information is received; Receive the computational feedback results of the multi-party computations performed by each node and verify whether they are consistent with the transaction record information; If the verification is consistent, the transaction record information is stored to complete the transaction settlement; The acquiring the number of synchronization nodes corresponding to the current time according to the node determination rule in the transaction strategy includes: Obtain the time period in which the current time falls within the node determination rule; Obtaining a time coefficient corresponding to the time period; Calculate the time coefficient and the total number of nodes according to the node number calculation formula in the node determination rule to obtain corresponding calculated values; Rounding the calculated value to obtain the corresponding number of synchronization nodes; The generating, according to the transaction record rules in the transaction policy, transaction record information corresponding to the wallet transaction information and the node signature information includes: Sign the wallet transaction information according to the node secret key of the current node to obtain the node signature information of the current node; Recording the order in which the node signature information is received to obtain a corresponding node ranking; Performing aggregation calculation on the node signature information to obtain corresponding aggregate signature information; According to the aggregate signature information and the node ranking, the node public keys corresponding to the node signature information are sequentially superimposed and modulo-calculated to determine the node coefficient corresponding to each node; The node signature information of each node is combined and calculated according to the transaction record rule and the node coefficient to obtain the corresponding transaction record information.
2. The blockchain wallet transaction verification method based on multi-party secure computing according to claim 1 is characterized in that: The sending of node identity information to the management node and other nodes in the blockchain network according to the networking configuration information includes: Get the node address and node identification information of the current node; Generate a node key corresponding to the node address according to the key generation strategy in the networking configuration information; Encrypting the node address and the node identification information according to the node secret key to obtain corresponding encrypted information; The encrypted information and the node secret key are combined into node identity information and sent to the management node and other nodes.
3. The blockchain wallet transaction verification method based on multi-party secure computing according to claim 1 is characterized in that: Generating a corresponding local wallet account according to the registration feedback information includes: Decrypt the registration feedback information according to the node secret key to obtain the group encryption public key; Encrypting the account holder information according to the group encryption public key to obtain a corresponding account identifier; The account identifier is bound to the account holder information, the node address and node identifier information of the current node to generate a corresponding local wallet account.
4. The blockchain wallet transaction verification method based on multi-party secure computing according to claim 1 is characterized in that: The transaction record information, node ranking, and aggregate signature information of the current node are encrypted according to the registration feedback information and sent to each node, including: Combining the transaction record information, node ranking, and aggregate signature information to obtain corresponding basic combination information; The basic combination information is encrypted according to the group encryption public key in the registration feedback information and sent to each node.
5. The blockchain wallet transaction verification method based on multi-party secure computing according to claim 1 is characterized in that: The receiving of the operation feedback results of the multi-party operation performed by each node and verifying whether the results are consistent with the transaction record information includes: Encrypting the transaction record information according to the group encryption public key in the registration feedback information to obtain corresponding transaction record encrypted information; Determine whether each of the operation feedback results is consistent with the transaction record encryption information, thereby verifying whether the operation feedback result is consistent with the transaction record information.
6. A blockchain wallet transaction verification device based on multi-party secure computing, characterized in that: The device is configured in a blockchain node, and the blockchain node establishes a network connection with a management node and other nodes in the blockchain network to realize the transmission of data information. The device is used to perform the blockchain wallet transaction verification method based on multi-party secure computing according to any one of claims 1 to 5, and the device includes: A transaction strategy configuration unit, configured to configure a transaction strategy according to the network configuration information upon receiving the network configuration information; A node identity information sending unit, configured to send the node identity information to the management node and other nodes in the blockchain network according to the networking configuration information; An account generating unit, configured to generate a corresponding local wallet account according to the registration feedback information received from the management node; a synchronization node number acquisition unit, configured to, upon receiving wallet transaction information of the local wallet account, acquire the synchronization node number corresponding to the current time according to the node determination rule in the transaction policy; A wallet transaction encryption information sending unit, configured to encrypt the wallet transaction information according to the registration feedback information, obtain the wallet transaction encryption information, and send it to other nodes for multi-party signature; A transaction record information generating unit, configured to generate transaction record information corresponding to the wallet transaction information and the node signature information according to the transaction record rules in the transaction policy upon receiving node signature information fed back by other nodes equal to the number of synchronized nodes based on the wallet transaction encryption information; a sending unit, configured to encrypt the transaction record information, the node ranking, and the aggregated signature information of the current node according to the registration feedback information, and send the encrypted information to each node; the node ranking is the order in which the node signature information is received; A verification unit, configured to receive feedback from the multi-party computation performed by each node and verify whether the feedback is consistent with the transaction record information; The storage unit is used to store the transaction record information to complete the transaction settlement if the verification is consistent.
7. A computer device, characterized in that: The device includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory for storing computer programs; The processor is configured to implement the steps of the blockchain wallet transaction verification method based on multi-party secure computing according to any one of claims 1 to 5 when executing the program stored in the memory.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the blockchain wallet transaction verification method based on multi-party secure computing are implemented as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Block chain account management method and system and storage medium
CN118051895A
Digital Asset Delivery Network
US20210049600A1