Digital asset management method, device and electronic equipment
By introducing the device identification and public key binding mechanism of the management node into the blockchain technology, combined with multi-level verification and biometric verification, the problem of low security of digital asset transactions caused by the anonymity of the blockchain is solved, and a better High transaction security and traceability.
Patent Information
- Application Number
- CN202311788732.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-23
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-12-23
AI Technical Summary
Blockchain technology has low security due to anonymity in digital asset transactions, and lacks effective traceability and verification mechanisms, leading to potential transaction fraud and illegal operations.
By obtaining the server device identification and public key in the management node, establishing a mapping relationship, performing multi-level verification and hash operations to ensure that the public key is bound to the device, recording transaction information to provide traceability, and introducing biometric verification to ensure legality trade.
It improves the security of digital assets, prevents transaction fraud, enhances the traceability and legality of transactions, and ensures the credibility and robustness of digital asset transactions.
Smart Images

Figure CN117764584B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of blockchain, and specifically to a digital asset management method, device and electronic device. Background Art
[0002] Digital assets refer to non-monetary assets that exist in the form of electronic data and are held for sale or in the production process in daily activities, and are any text or media resources that are binary-coded and authorized for use. Digital assets include websites and their content, domain names, application software, codes, electronic documents, image content, media content, electronic currency, emails, game accounts, accounts and their content, social network accounts and their relationships and content, cloud service accounts and their data, etc. From an economic perspective, digital assets are liquid assets owned or controlled by individuals or companies, exist in the form of data, and are produced, operated or held for sale in daily activities. Digital assets belong to network property.
[0003] The process of buying, selling and exchanging digital assets through online platforms is called digital asset trading, which includes the trading of digital assets such as electronic currency, digital stocks, and digital artworks. First, participants create a digital asset wallet, then register an account on the selected trading platform, complete identity verification, and select the required digital assets for trading. After the transaction is completed, the digital assets will be transferred to or removed from the participant's wallet.
[0004] Blockchain technology can achieve decentralization, transparency and security in digital asset transactions. Blockchain technology eliminates centralized intermediaries such as banks or stock exchanges, making transactions more direct and transparent. Blockchain uses encryption technology to ensure the security of transactions. Each block is linked to the previous block to form an unalterable chain, which improves the security and integrity of data. However, due to the excessive anonymity of blockchain, transactions can be carried out as long as the transaction party's key is possessed, and the transaction process does not require other verification, resulting in low security of digital assets. Therefore, a method is needed to improve the security of digital assets. Summary of the invention
[0005] The present application provides a digital asset management method, device and electronic device, which can improve the security of digital assets.
[0006] In a first aspect of the present application, a digital asset management method is provided, which is applied to a first management node, wherein the first management node is any one of a plurality of interconnected management nodes, wherein the plurality of management nodes constitute a transaction management system, and the transaction management system is connected to a first server and a second server, wherein the method comprises:
[0007] Obtain a first device identifier of the first server and a second device identifier of the second server;
[0008] Obtaining a sender public key sent by the first server and a receiver public key sent by the second server;
[0009] According to a preset method, determine the sender address corresponding to the sender public key, and determine the receiver address corresponding to the receiver public key;
[0010] Determine whether there is a mapping relationship between the sender address and the first device identifier, and whether there is a mapping relationship between the receiver address and the second device identifier;
[0011] If it is determined that there is a mapping relationship between the sender address and the first device identifier, and it is determined that there is a mapping relationship between the receiver address and the second device identifier, then after the digital asset transaction between the first server and the second server is completed, first transaction information is recorded, and the first transaction information includes the first device identifier, the second device identifier, the sender public key, and the receiver public key.
[0012] By adopting the above technical solution, if a digital asset transaction is required, in addition to the public key provided by the transaction party, the first management node will also determine the corresponding address based on the public key, and determine whether the address has a mapping relationship with the device identification of the server conducting the transaction, which is equivalent to determining whether the public key for the transaction is bound to the server conducting the transaction. This prevents others from directly conducting digital asset transactions after the public key or private key is leaked, thereby limiting potential transaction fraud and improving the overall security of digital assets. Furthermore, after the digital asset transaction is completed, the first transaction information is recorded, including key information such as device identification and public key. This provides traceability and recording of transactions, facilitates auditing, security monitoring and other management operations, increases the traceability of transactions, and reduces potential illegal operations.
[0013] Optionally, determining the sender address corresponding to the sender public key according to a preset method specifically includes:
[0014] Using a preset first hash algorithm, performing a hash operation on the sender public key to obtain a first calculation result;
[0015] Using a preset second hash algorithm, performing a hash operation on the first calculation result to obtain a second calculation result;
[0016] Add a preset main network version prefix to the second calculation result to obtain a first intermediate result;
[0017] Using the preset first hash algorithm, performing a hash operation on the first intermediate result to obtain a second intermediate result;
[0018] Taking the first preset number of characters of the second intermediate result to obtain a checksum;
[0019] A preset encoding is performed on a combination of the preset main network version prefix, the second calculation result, and the checksum to obtain the sender address.
[0020] By adopting the above technical solution, the address can be inferred from the public key, but the public key cannot be inferred from the address, thus ensuring the security of the public key. The public key is first hashed twice to increase the security of the public key because the hash function is irreversible. A version prefix is added to the hashed result to distinguish different networks (mainnet, testnet, etc.) and address types. The role of the checksum is to increase the integrity of the address and make it more difficult to enter incorrectly. Finally, the preset encoding is to obtain an address identifier for receiving digital assets in a human-readable encoding method.
[0021] Optionally, obtaining the sender public key sent by the first server specifically includes:
[0022] Acquire biometric data input by the asset sender to the first server;
[0023] Performing a hash operation on the biometric data to obtain a sender's private key;
[0024] An asymmetric encryption algorithm is used to generate the sender's public key based on the sender's private key.
[0025] By adopting the above technical solution, by obtaining the biometric data of the asset sender, a hash operation can be performed on it to generate a unique sender private key. This process realizes biometric identity authentication and ensures that only the legitimate asset sender can generate the corresponding private key and public key.
[0026] Optionally, after determining whether a mapping relationship exists between the sender address and the first device identifier, and whether a mapping relationship exists between the receiver address and the second device identifier, the method further includes:
[0027] If it is determined that there is no mapping relationship between the sender address and the first device identifier, or there is no mapping relationship between the receiver address and the second device identifier, the digital asset transaction is terminated.
[0028] By adopting the above technical solution, by judging whether there is a mapping relationship between the sender address and the first device identifier, and the receiver address and the second device identifier, it is ensured that there is a legal mapping relationship between the addresses participating in the transaction and the corresponding device identifiers. This enhances the security of digital asset transactions and prevents the participation of illegal devices or addresses. If it is judged that there is no mapping relationship between the sender address and the first device identifier or the receiver address and the second device identifier, measures are taken to terminate the digital asset transaction. This effectively curbs potential fraud and prevents the occurrence of illegal digital asset transactions.
[0029] Optionally, before obtaining the sender public key sent by the first server and the receiver public key sent by the second server, the method further includes:
[0030] Reading device identification information, where the device identification information is information about the device identification of the first management node;
[0031] Sending device identification information to multiple second management nodes, where the second management nodes are management nodes other than the first management node among the multiple management nodes;
[0032] receiving verification information for the device identification information sent by a plurality of the second management nodes, wherein the verification information includes the device identification information of the second management node;
[0033] Packing a plurality of the verification pass information to obtain an information package;
[0034] Sending the information packet to a target management node, where the target management node is any one of the plurality of second management nodes;
[0035] After the target management node verifies that the information packet has passed, the target management node receives the transaction verification authority for the information packet sent by the target management node, so that the first management node participates in the digital asset transaction verification.
[0036] By adopting the above technical solution, the device identification information is sent to multiple second management nodes, and the verification information is received, forming a multi-level management node verification mechanism. This decentralized verification process ensures the legitimacy of the device identification and improves the robustness of the entire transaction management system. By introducing multi-level management node verification, a multi-level verification system is constructed from the legitimacy of the device identification to the verification authority of the information package. This helps prevent the participation of unauthorized devices, improves the security of information transmission, and ensures the credibility and legitimacy of digital asset transactions.
[0037] Optionally, after acquiring the first device identifier of the first server and the second device identifier of the second server, the method further includes:
[0038] Verifying whether the first device identifier is a registered device identifier included in the transaction management system, and verifying whether the second device identifier is the registered device identifier;
[0039] If it is determined that the first device identifier is the registered device identifier, and if it is determined that the second device identifier is the registered device identifier, a transaction permission authority is sent to the first server and the second server.
[0040] By adopting the above technical solution, by verifying whether the first and second device identifiers are registered device identifiers, it is ensured that the devices of the transaction participants are legal and credible. This helps prevent the participation of unauthorized devices and improves the overall security of digital asset transactions. When both the first device identifier and the second device identifier are verified as registered device identifiers, transaction permission permissions will be sent to the first server and the second server. This allows registered devices to participate in digital asset transactions, ensuring the smooth transaction operation of legitimate devices.
[0041] Optionally, after determining that a mapping relationship exists between the sender address and the first device identifier, and determining that a mapping relationship exists between the receiver address and the second device identifier, the method further includes:
[0042] During the digital asset transaction, verify whether each second transaction information meets the preset conditions, wherein the second transaction information includes the transaction amount, the first device IP and the second device IP, wherein the first device IP is the IP address of the first server, and the second device IP is the IP address of the second server;
[0043] If each of the second transaction information meets the preset conditions, including that the transaction amount is less than or equal to the preset amount, and the first device IP and the second device IP are both in the preset IP whitelist, the digital asset transaction is allowed.
[0044] By adopting the above technical solution, the transaction amount is verified to ensure that the transaction amount meets the preset conditions, and the first device IP and the second device IP meet the preset IP whitelist conditions, thereby preventing the participation of unauthorized devices. This effectively improves the level of device access control for digital asset transactions and enhances overall security. By verifying the preset conditions of the second transaction information, the control of the legitimacy and integrity of the information of all parties in the digital asset transaction process is strengthened, thereby improving the overall security and credibility of digital asset transactions.
[0045] In a second aspect of the present application, a digital asset management device is provided. The device is a first management node, including an acquisition module, an identification module, a judgment module, and a processing module, wherein:
[0046] The acquisition module is used to acquire a first device identifier of the first server and a second device identifier of the second server;
[0047] The acquisition module is used to acquire the sender public key sent by the first server and the receiver public key sent by the second server;
[0048] The identification module is used to determine the sender address corresponding to the sender public key and the receiver address corresponding to the receiver public key according to a preset method;
[0049] The judgment module is used to judge whether there is a mapping relationship between the sender address and the first device identifier, and whether there is a mapping relationship between the receiver address and the second device identifier;
[0050] The processing module is used to record first transaction information after the digital asset transaction between the first server and the second server is completed if it is determined that there is a mapping relationship between the sender address and the first device identifier, and it is determined that there is a mapping relationship between the receiver address and the second device identifier. The first transaction information includes the first device identifier, the second device identifier, the sender public key, and the receiver public key.
[0051] Optionally, the processing module is used to use a preset first hash algorithm to perform a hash operation on the sender public key to obtain a first calculation result;
[0052] The processing module is used to use a preset second hash algorithm to perform a hash operation on the first calculation result to obtain a second calculation result;
[0053] The processing module is used to add a preset main network version prefix to the front of the second calculation result to obtain a first intermediate result;
[0054] The processing module is used to perform a hash operation on the first intermediate result by using the preset first hash algorithm to obtain a second intermediate result;
[0055] The processing module is used to take the first preset number of characters of the second intermediate result to obtain a checksum;
[0056] The processing module is used to perform preset encoding on a combination of the preset main network version prefix, the second calculation result and the checksum to obtain the sender address.
[0057] Optionally, the acquisition module is used to acquire biometric data input by the asset sender to the first server;
[0058] The processing module is used to perform a hash operation on the biometric data to obtain a sender private key;
[0059] The processing module is used to generate the sender public key according to the sender private key by adopting an asymmetric encryption algorithm.
[0060] Optionally, the judgment module is used to terminate the digital asset transaction if it is determined that there is no mapping relationship between the sender address and the first device identifier, or there is no mapping relationship between the receiver address and the second device identifier.
[0061] Optionally, the identification module is used to read device identification information, where the device identification information is information of the device identification of the first management node;
[0062] The processing module is used to send device identification information to multiple second management nodes, where the second management nodes are management nodes other than the first management node among the multiple management nodes;
[0063] The acquisition module is used to receive verification information for the device identification information sent by multiple second management nodes, where the verification information includes the device identification information of the second management node;
[0064] The processing module is used to package the plurality of verification pass information to obtain an information package;
[0065] The processing module is used to send the information packet to a target management node, where the target management node is any one of the plurality of second management nodes;
[0066] The acquisition module is used to receive the transaction verification authority for the information packet sent by the target management node after the target management node verifies that the information packet has passed, so that the first management node can participate in the digital asset transaction verification.
[0067] Optionally, the judgment module is used to verify whether the first device identifier is a registered device identifier included in the transaction management system, and verify whether the second device identifier is the registered device identifier;
[0068] The processing module is configured to send a transaction permission to the first server and the second server if it is determined that the first device identifier is the registered device identifier and the second device identifier is the registered device identifier.
[0069] Optionally, the processing module is used to verify whether each second transaction information meets a preset condition during the digital asset transaction, the second transaction information including a transaction amount, a first device IP, and a second device IP, the first device IP is an IP address of the first server, and the second device IP is an IP address of the second server;
[0070] The judgment module is used to allow the digital asset transaction if each of the second transaction information meets preset conditions, including that the transaction amount is less than or equal to a preset amount, and the first device IP and the second device IP are both in a preset IP whitelist.
[0071] In the third aspect of the present application, an electronic device is provided, including a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes any one of the methods described above.
[0072] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any of the methods described above is executed.
[0073] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0074] If a digital asset transaction is required, in addition to the public key provided by the transaction party, the first management node will also determine the corresponding address based on the public key, and determine whether there is a mapping relationship between the address and the device identification of the server conducting the transaction, which is equivalent to determining whether the public key for the transaction is bound to the server conducting the transaction. This prevents others from directly conducting digital asset transactions after the public key or private key is leaked, thereby limiting potential transaction fraud and improving the overall security of digital assets. Furthermore, after the digital asset transaction is completed, the first transaction information is recorded, including key information such as device identification and public key. This provides traceability and recording of transactions, facilitates auditing, security monitoring and other management operations, increases the traceability of transactions, and reduces potential illegal operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] Figure 1 It is a flowchart of a digital asset management method disclosed in an embodiment of the present application;
[0076] Figure 2 It is a schematic diagram of an application scenario of a digital asset management method disclosed in an embodiment of the present application;
[0077] Figure 3 It is a structural diagram of a digital asset management device disclosed in an embodiment of the present application;
[0078] Figure 4 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application.
[0079] Explanation of the accompanying drawings: 201, first management node; 202, second management node; 203, first server; 204, second server; 301, acquisition module; 302, identification module; 303, judgment module; 304, processing module; 501, processor; 502, communication bus; 503, user interface; 504, network interface; 505, memory. DETAILED DESCRIPTION
[0080] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0081] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.
[0082] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0083] Digital assets refer to non-monetary assets that exist in the form of electronic data and are held for sale or in the production process in daily activities, and are any text or media resources that are binary-coded and authorized for use. Digital assets include websites and their content, domain names, application software, codes, electronic documents, image content, media content, electronic currency, emails, game accounts, accounts and their content, social network accounts and their relationships and content, cloud service accounts and their data, etc. From an economic perspective, digital assets are liquid assets owned or controlled by individuals or companies, exist in the form of data, and are produced, operated or held for sale in daily activities. Digital assets belong to network property.
[0084] The process of buying, selling and exchanging digital assets through online platforms is called digital asset trading, which includes the trading of digital assets such as electronic currency, digital stocks, and digital artworks. First, participants create a digital asset wallet, then register an account on the selected trading platform, complete identity verification, and select the required digital assets for trading. After the transaction is completed, the digital assets will be transferred to or removed from the participant's wallet.
[0085] Blockchain technology can achieve decentralization, transparency and security of digital asset transactions. Blockchain technology eliminates centralized intermediaries such as banks or stock exchanges, making transactions more direct and transparent. Blockchain uses encryption technology to ensure the security of transactions. Each block is linked to the previous block to form an unalterable chain, which improves the security and integrity of data. However, due to the excessive anonymity of blockchain, almost all data in the transaction process cannot be traced, including transaction participants, digital asset wallets involved in the transaction, etc. If the user's private key is lost and the digital asset is traded maliciously, it cannot be traced through the information of the transaction process. Therefore, a method is needed to achieve traceability of digital asset transactions.
[0086] This embodiment discloses a digital asset management method. Figure 1 , including the following steps S110-S150:
[0087] A digital asset management method disclosed in an embodiment of the present application is applied to a first management node 201, and is applied to the first management node 201. The first management node 201 is any one of a plurality of interconnected management nodes, and the plurality of management nodes further include a second management node 202. The second management node 202 is a management node other than the first management node 201 among the plurality of management nodes. Figure 2, multiple management nodes form a transaction management system, and multiple management nodes are in a peer state. The transaction management system is connected to a first server 203 and a second server 204. The first management node 201, the second management node 202, the first server 203 and the second server 204 are all conventional servers, including but not limited to electronic devices such as mobile phones, tablet computers, wearable devices, PCs (Personal Computers), etc., and can also be a background server running a digital asset management method. The server can be implemented as an independent server or a server cluster consisting of multiple servers.
[0088] S110, obtaining the sender public key sent by the first server 203 and the receiver public key sent by the second server 204.
[0089] Before the asset sender needs to conduct digital asset transactions with the asset receiver, multiple verifications are required. First, as a device participating in transaction verification, the first management node 201 needs to be verified by multiple second management nodes 202 before it has the authority to participate in transaction verification. Secondly, the first server 203 and the second server 204 participating in the transaction need to be verified as registered devices in the transaction management system before subsequent transactions can be carried out.
[0090] In the first management node 201, the device identification information of the device is read, and the device identification information includes the device identification of the device.
[0091] The device identification is information used to uniquely identify and distinguish various electronic devices. It usually exists in the form of numbers, letters or symbols, and can be a fixed code inside the hardware, a unique serial number assigned by the device manufacturer, or other unique identifiers. The main purpose of the device identification is to ensure the uniqueness and recognition of the device in the network, system or application, so as to realize the identification, management and security control of the device. This identification plays an important role in the fields of device management, security verification and digital asset trading. Then the first management node 201 sends the device identification information to other second management nodes 202. After each second management node 202 receives the device identification information, it verifies it, including checking the authenticity and legality of the device identification information, and determining whether the first management node 201 is a registered management node in the transaction management system. If the verification is passed, the second management node 202 will send a verification pass information, which includes the device identification information of the node. The first management node 201 collects the verification pass information sent by multiple second management nodes 202 and packages them into an information package. The information package can be a data structure containing each verification pass information. The first management node 201 randomly selects any second management node 202 from among the plurality of second management nodes 202 as the target management node, and sends the packaged information packet to the target management node. After receiving the information packet, the target management node verifies the verification pass information therein. The verification may include checking whether the device identification information of each second management node 202 is valid, ensuring the integrity of the information packet, etc. If the information packet passes the verification, the target management node will send the transaction verification authority to the first management node 201, so that the first management node 201 can participate in the subsequent digital asset transaction verification.
[0092] The device identification information is sent to multiple second management nodes 202, and the verification information is received, forming a multi-level management node verification mechanism. This decentralized verification process ensures the legitimacy of the device identification and improves the robustness of the entire transaction management system. By introducing multi-level management node verification, a multi-level verification system is constructed from the legitimacy of the device identification to the verification authority of the information package. This helps prevent the participation of unauthorized devices, improves the security of information transmission, and ensures the credibility and legitimacy of digital asset transactions.
[0093] If the asset sender needs to conduct a digital asset transaction with the asset receiver's second server 204 through the first server 203, the first server 203 sends the first device identifier to the first management node 201, and the second server 204 sends the second device identifier to the first management node 201. The first device identifier is the device identifier of the first server 203, and the second device identifier is the device identifier of the second server 204. The first management node 201 verifies whether the first device identifier and the second device identifier are registered device identifiers, which is done by looking up the device identifiers in the registration database of the device identifiers. If both the first device identifier and the second device identifier are confirmed to be registered device identifiers, proceed to the next step. Otherwise, the process is terminated. Once it is verified that both the first device identifier and the second device identifier are registered device identifiers, the transaction management system will send transaction permission to the first server 203 and the second server 204. This means that the two devices are granted the authority to participate in digital asset transactions.
[0094] By verifying whether the first and second device identifiers are registered device identifiers, it is ensured that the devices of the transaction participants are legitimate and credible. This helps prevent the participation of unauthorized devices and improves the overall security of digital asset transactions. When both the first device identifier and the second device identifier are verified as registered device identifiers, transaction permission permissions will be sent to the first server 203 and the second server 204. This allows registered devices to participate in digital asset transactions, ensuring smooth transaction operations of legitimate devices.
[0095] S120, obtaining the sender public key sent by the first server 203 and the receiver public key sent by the second server 204.
[0096] The first server 203 uses a suitable biometric device (such as a fingerprint scanner, an iris scanner or a camera) to collect biometric data of the asset sender, and the second server 204 collects biometric data of the asset receiver. Biometric data is information data based on biometric technology to ensure that only users can obtain access or complete specific operations. Biometric data can be fingerprints, irises, faces, etc. The first management node 201 inputs the acquired biometric data into a hash function for hash operation. For example, SHA-256 (Secure Hash Algorithm 256-bit) can be used to generate a hash value of a fixed length. The hashed biometric data is used as input and a sender private key is generated using an appropriate method (such as salted hashing, derivation function). Ensure that the generation process of the sender private key is secure and not easily predictable. Use an asymmetric encryption algorithm, such as RSA or elliptic curve encryption algorithm, to generate a corresponding sender public key based on the generated private key. This process is implemented through mathematical operations to ensure a one-to-one relationship between the public and private key pairs. The same method is used to generate a pair of receiver public keys and receiver private keys.
[0097] By obtaining the biometric data of the asset sender, it can be hashed to generate a unique sender private key. This process implements biometric identity authentication, ensuring that only the legitimate asset sender can generate the corresponding private and public keys.
[0098] S130, according to a preset method, determine the sender address corresponding to the sender public key, and determine the receiver address corresponding to the receiver public key.
[0099] First, the first management node 201 applies a preset first hash function to the recipient's public key, usually using SHA-256, to generate a fixed-length hash value, usually a string of 256 bits (32 bytes), which is the first calculation result. For example, if the recipient's public key is "0450863AD64A87AE8A2FE83C1AF1A8403CB53F53E486D8511DAD8A04887E5B23522CD470243453A299FA9E77237716103ABC11A1DF38855ED6F2EE187E9C582BA6", then the first calculation result obtained by the SHA-256 function operation will be "600FFE422B4E00731A59557C8D8022A0A13CF25744DA8B25DEC140E9EB228735". Then the hash function is applied again to the first calculation result, usually using RIPEMD-160, to obtain the second calculation result, so as to reduce the length of the settlement result and improve efficiency. Similarly, the second calculation result will be "010966776006953D5567439E5E39F86A0D273BEE". A preset main network version prefix, such as "0x00", is added in front of the second calculation result to obtain the first intermediate result, "00010966776006953D5567439E5E39F86A0D273BEE". The main network address and the test network address are distinguished by adding the preset main network version prefix. The first intermediate result is hashed again to obtain the second intermediate result, and the preset number of characters in front of the second intermediate result is the checksum. In the above example, only the first 4 bytes of the second intermediate result are taken as the checksum, and "3CF9673F" is obtained. Finally, the combination of the preset main network version prefix, the second calculation result and the checksum is preset encoded to obtain the sender address. The preset encoding is preferably Base58 encoding, which is an encoding method for converting data into human-readable characters and excludes easily confused characters such as 0, O, I, l, etc. The final sender address is "G6ftSEQ4ctQFDtVZiUBusQUjRrGhM3JYwe". For the receiver address, the above method is also used to generate the receiver address according to the receiver public key, and then the first management node 201 obtains the sender address and the receiver address.
[0100] The above calculation method can be used to infer the address from the public key, but the public key cannot be inferred from the address, thus ensuring the security of the public key. The public key is first hashed twice to increase the security of the public key because the hash function is irreversible. A version prefix is added to the hashed result to distinguish different networks (mainnet, testnet, etc.) and address types. The role of the checksum is to increase the integrity of the address and make it more difficult to enter incorrectly. Finally, the preset encoding is to obtain an address identifier for receiving digital assets in a human-readable encoding method.
[0101] S140, determining whether there is a mapping relationship between the sender address and the first device identifier, and whether there is a mapping relationship between the receiver address and the second device identifier.
[0102] A database or table is established to store the mapping relationship between the sender address and the first device identifier, and the mapping relationship between the receiver address and the second device identifier. This can be achieved through a relational database (such as MySQL, PostgreSQL) or other data storage mechanism. And multiple management nodes synchronize the database or table in real time. When the mapping relationship is established, the first management node 201 stores the mapping relationship between the sender address and the first device identifier, and the mapping relationship between the receiver address and the second device identifier in the mapping relationship database or table. Ensure that factors such as uniqueness and indexing are taken into account when storing to improve query efficiency.
[0103] When the first management node 201 needs to determine whether there is a mapping relationship between the sender address and the first device identifier, or whether there is a mapping relationship between the receiver address and the second device identifier, a database query is performed. This usually involves querying the database based on the sender address or the receiver address, and then checking whether there is a corresponding device identifier. Based on the query results, determine whether there is a mapping relationship. If the query returns the device identifier, it means that there is a mapping relationship; if the query does not return a result, it means that there is no mapping relationship. Once the first management node 201 determines that there is no mapping relationship between the sender address and the first device identifier, or there is no mapping relationship between the receiver address and the second device identifier, the digital asset transaction is terminated.
[0104] By determining whether there is a mapping relationship between the sender address and the first device identifier, and between the receiver address and the second device identifier, it is ensured that there is a legal mapping relationship between the addresses participating in the transaction and the corresponding device identifiers. This enhances the security of digital asset transactions and prevents the participation of illegal devices or addresses. If it is determined that there is no mapping relationship between the sender address and the first device identifier or between the receiver address and the second device identifier, measures are taken to terminate the digital asset transaction. This effectively curbs potential fraud and prevents the occurrence of illegal digital asset transactions.
[0105] S150, if it is determined that there is a mapping relationship between the sender address and the first device identifier, and it is determined that there is a mapping relationship between the receiver address and the second device identifier, then after the digital asset transaction between the first server 203 and the second server 204 is completed, the first transaction information is recorded.
[0106] On the contrary, if the first management node 201 determines that there is a mapping relationship between the sender address and the first device identifier, and there is also a mapping relationship between the receiver address and the second device identifier, digital asset transactions are allowed between the first server 203 and the second server 204.
[0107] By adopting the above technical solution, if a digital asset transaction is required, in addition to the transaction party providing a public key, the first management node 201 will also determine the corresponding address based on the public key, and determine whether the address has a mapping relationship with the device identification of the server conducting the transaction, which is equivalent to determining whether the public key for the transaction is bound to the server conducting the transaction. This prevents others from directly conducting digital asset transactions after the public key or private key is leaked, thereby limiting potential transaction fraud and improving the overall security of digital assets. Further, after the digital asset transaction is completed, the first transaction information is recorded, including key information such as device identification and public key. This provides traceability and recording of transactions, which is helpful for auditing, security monitoring and other management operations, increases the traceability of transactions, and reduces potential illegal operations.
[0108] Furthermore, when the digital asset transaction is in progress, the first management node 201 obtains each second transaction information, including the transaction amount, the first device IP (the IP address of the first server 203), and the second device IP (the IP address of the second server 204). The first management node 201 verifies the transaction amount to ensure that it is less than or equal to the preset amount, which can be done by a simple comparison operation. Verify whether the first device IP and the second device IP are both in the preset IP whitelist, which can be done by comparing the IP address list. If the transaction amount and the device IP address both meet the preset conditions, the digital asset transaction is allowed. Otherwise, the transaction is terminated or the corresponding error handling is triggered.
[0109] After the digital asset transaction is completed, the first management node 201 records the first transaction information including the first device identification, the second device identification, the sender's public key and the receiver's public key, and the second transaction information including the transaction amount, the first device IP and the second device IP. Finally, the first transaction information and the second transaction information are synchronized in each management node so that the user can query the relevant transaction information in any management node.
[0110] By verifying the transaction amount, ensuring that the transaction amount meets the preset conditions, and ensuring that the first device IP and the second device IP meet the preset IP whitelist conditions, the participation of unauthorized devices is prevented. This effectively improves the level of device access control for digital asset transactions and enhances overall security. By verifying the preset conditions of the second transaction information, the control of the legitimacy and integrity of the information of all parties in the digital asset transaction process is strengthened, thereby improving the overall security and credibility of digital asset transactions.
[0111] This embodiment also discloses a digital asset management device, which is a first management node 201. Figure 3 , including an acquisition module 301, an identification module 302, a judgment module 303 and a processing module 304, wherein:
[0112] The acquisition module 301 is used to acquire a first device identifier of the first server 203 and a second device identifier of the second server 204 .
[0113] The acquisition module 301 is used to acquire the sender public key sent by the first server 203 and the receiver public key sent by the second server 204 .
[0114] The identification module 302 is used to determine the sender address corresponding to the sender public key and the receiver address corresponding to the receiver public key according to a preset method.
[0115] The judgment module 303 is used to judge whether there is a mapping relationship between the sender address and the first device identifier, and whether there is a mapping relationship between the receiver address and the second device identifier.
[0116] The processing module 304 is used to record the first transaction information after the digital asset transaction between the first server 203 and the second server 204 is completed if it is determined that there is a mapping relationship between the sender address and the first device identifier, and it is determined that there is a mapping relationship between the receiver address and the second device identifier. The first transaction information includes the first device identifier, the second device identifier, the sender public key and the receiver public key.
[0117] In a possible implementation, the processing module 304 is configured to use a preset first hash algorithm to perform a hash operation on the sender's public key to obtain a first calculation result.
[0118] The processing module 304 is configured to use a preset second hash algorithm to perform a hash operation on the first calculation result to obtain a second calculation result.
[0119] The processing module 304 is used to add a preset main network version prefix in front of the second calculation result to obtain a first intermediate result.
[0120] The processing module 304 is used to perform a hash operation on the first intermediate result by using a preset first hash algorithm to obtain a second intermediate result.
[0121] The processing module 304 is used to obtain a first preset number of characters of the second intermediate result to obtain a checksum.
[0122] The processing module 304 is used to perform preset encoding on the combination of the preset main network version prefix, the second calculation result and the checksum to obtain the sender address.
[0123] In a possible implementation, the acquisition module 301 is used to acquire biometric data input by the asset sender to the first server 203 .
[0124] The processing module 304 is used to perform a hash operation on the biometric data to obtain the sender's private key.
[0125] The processing module 304 is used to generate a sender public key according to the sender private key by using an asymmetric encryption algorithm.
[0126] In a possible implementation, the determination module 303 is configured to terminate the digital asset transaction if it is determined that there is no mapping relationship between the sender address and the first device identifier, or there is no mapping relationship between the receiver address and the second device identifier.
[0127] In a possible implementation, the identification module 302 is configured to read device identification information, where the device identification information is device identification information of the first management node 201 .
[0128] The processing module 304 is configured to send device identification information to multiple second management nodes 202 , where the second management nodes 202 are management nodes other than the first management node 201 among the multiple management nodes.
[0129] The acquisition module 301 is configured to receive verification information for device identification information sent by multiple second management nodes 202 , where the verification information includes the device identification information of the second management node 202 .
[0130] The processing module 304 is used to package multiple verification pass information to obtain an information package.
[0131] The processing module 304 is configured to send the information packet to a target management node, where the target management node is any second management node 202 among the plurality of second management nodes 202 .
[0132] The acquisition module 301 is used to receive the transaction verification authority for the information packet sent by the target management node after the target management node verifies the information packet, so that the first management node 201 can participate in the digital asset transaction verification.
[0133] In a possible implementation, the determination module 303 is used to verify whether the first device identifier is a registered device identifier included in the transaction management system, and to verify whether the second device identifier is a registered device identifier.
[0134] The processing module 304 is configured to send the transaction permission to the first server 203 and the second server 204 if it is determined that the first device identifier is a registered device identifier and the second device identifier is a registered device identifier.
[0135] In one possible implementation, the processing module 304 is used to verify whether each second transaction information meets the preset conditions during the digital asset transaction. The second transaction information includes the transaction amount, the first device IP and the second device IP. The first device IP is the IP address of the first server 203, and the second device IP is the IP address of the second server 204.
[0136] The judgment module 303 is used to allow digital asset transactions if each second transaction information meets preset conditions, including that the transaction amount is less than or equal to the preset amount, and the first device IP and the second device IP are both in the preset IP whitelist.
[0137] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0138] This embodiment also discloses an electronic device, referring to Figure 4 The electronic device may include: at least one processor 501 , at least one communication bus 502 , a user interface 503 , a network interface 504 , and at least one memory 505 .
[0139] The communication bus 502 is used to realize the connection and communication between these components.
[0140] The user interface 503 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 503 may also include a standard wired interface and a wireless interface.
[0141] The network interface 504 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0142] Among them, the processor 501 may include one or more processing cores. The processor 501 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 505, and calling data stored in the memory 505. Optionally, the processor 501 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 501 can integrate one or a combination of a central processing unit 501 (Central Processing Unit, CPU), an image processor 501 (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 501, but implemented separately through a chip.
[0143] The memory 505 may include a random access memory 505 (RAM) or a read-only memory 505 (Read-Only Memory). Optionally, the memory 505 includes a non-transitory computer-readable storage medium. The memory 505 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 505 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 505 may also be optionally at least one storage device located away from the aforementioned processor 501. As shown in the figure, the memory 505 as a computer storage medium may include an operating system, a network communication module, a user interface 503 module and an application program of a digital asset management method.
[0144] exist Figure 4In the electronic device shown, the user interface 503 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 501 can be used to call an application program storing a digital asset management method in the memory 505. When executed by one or more processors 501, the electronic device executes one or more methods in the above-mentioned embodiments.
[0145] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.
[0146] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0147] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0148] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0149] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0150] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory 505. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory 505 and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory 505 includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk.
[0151] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, it will be easy for those skilled in the art to think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field that are not recorded in the present disclosure. The description and examples are regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A digital asset management method, It is characterized in that Applied to a first management node (201), the first management node (201) being any one of a plurality of management nodes connected to each other, the plurality of management nodes forming a transaction management system, the transaction management system being connected to a first server (203) and a second server (204), the method comprising: Obtaining a first device identifier of the first server (203) and a second device identifier of the second server (204); Obtaining a sender public key sent by the first server (203) and a receiver public key sent by the second server (204); Determine the sender address corresponding to the sender public key and the receiver address corresponding to the receiver public key according to a preset method; Determine whether there is a mapping relationship between the sender address and the first device identifier, and whether there is a mapping relationship between the receiver address and the second device identifier; If it is determined that there is a mapping relationship between the sender address and the first device identifier, and it is determined that there is a mapping relationship between the receiver address and the second device identifier, then after the digital asset transaction between the first server (203) and the second server (204) is completed, first transaction information is recorded, the first transaction information including the first device identifier, the second device identifier, the sender public key, and the receiver public key; Determine the sender address corresponding to the sender public key and the receiver address corresponding to the receiver public key, specifically include: Using a preset first hash algorithm, performing a hash operation on the sender public key to obtain a first calculation result; Using a preset second hash algorithm, performing a hash operation on the first calculation result to obtain a second calculation result; Add a preset main network version prefix to the second calculation result to obtain a first intermediate result; Using the preset first hash algorithm, performing a hash operation on the first intermediate result to obtain a second intermediate result; Taking the first preset number of characters of the second intermediate result to obtain a checksum; Performing preset encoding on a combination of the preset main network version prefix, the second calculation result, and the checksum to obtain the sender address; Likewise, the recipient address is obtained based on the recipient public key; Before obtaining the sender public key sent by the first server (203) and the receiver public key sent by the second server (204), the method further includes: Reading device identification information, wherein the device identification information is information of the device identification of the first management node (201); Sending device identification information to a plurality of second management nodes (202), wherein the second management nodes (202) are management nodes other than the first management node (201) among the plurality of management nodes; receiving verification information for the device identification information sent by a plurality of the second management nodes (202), wherein the verification information includes the device identification information of the second management node (202); Packing a plurality of the verification pass information to obtain an information package; Sending the information packet to a target management node, the target management node being any one of the plurality of second management nodes (202); After the target management node verifies that the information packet has passed, the target management node receives the transaction verification authority for the information packet sent by the target management node, so that the first management node (201) participates in the digital asset transaction verification.
2. A digital asset management method according to claim 1, It is characterized in that The obtaining of the sender public key sent by the first server (203) specifically includes: Acquiring biometric data input by the asset sender to the first server (203); Performing a hash operation on the biometric data to obtain a sender's private key; An asymmetric encryption algorithm is used to generate the sender's public key based on the sender's private key.
3. A digital asset management method according to claim 1, It is characterized in that After determining whether a mapping relationship exists between the sender address and the first device identifier, and whether a mapping relationship exists between the receiver address and the second device identifier, the method further includes: If it is determined that there is no mapping relationship between the sender address and the first device identifier, or there is no mapping relationship between the receiver address and the second device identifier, the digital asset transaction is terminated.
4. A digital asset management method according to claim 1, It is characterized in that After obtaining the first device identification of the first server (203) and the second device identification of the second server (204), the method further comprises: Verifying whether the first device identifier is a registered device identifier included in the transaction management system, and verifying whether the second device identifier is the registered device identifier; If it is determined that the first device identifier is the registered device identifier, and if it is determined that the second device identifier is the registered device identifier, a transaction permission authority is sent to the first server (203) and the second server (204).
5. A digital asset management method according to claim 1, It is characterized in that After determining that a mapping relationship exists between the sender address and the first device identifier, and determining that a mapping relationship exists between the receiver address and the second device identifier, the method further includes: During the digital asset transaction, verify whether each second transaction information meets a preset condition, wherein the second transaction information includes a transaction amount, a first device IP, and a second device IP, wherein the first device IP is the IP address of the first server (203), and the second device IP is the IP address of the second server (204); If each of the second transaction information meets the preset conditions, including that the transaction amount is less than or equal to the preset amount, and the first device IP and the second device IP are both in the preset IP whitelist, the digital asset transaction is allowed.
6. A digital asset management device, It is characterized in that The device is a first management node (201), comprising an acquisition module (301), an identification module (302), a judgment module (303) and a processing module (304), wherein: The acquisition module (301) is used to acquire a first device identifier of the first server (203) and a second device identifier of the second server (204); The acquisition module (301) is used to acquire the sender public key sent by the first server (203) and the receiver public key sent by the second server (204). and read device identification information, the device identification information being information of the device identification of the first management node (201), sending device identification information to a plurality of second management nodes (202), wherein the second management nodes (202) are management nodes other than the first management node (201) among the plurality of management nodes; receiving verification information for the device identification information sent by a plurality of the second management nodes (202), wherein the verification information includes the device identification information of the second management node (202); Packing a plurality of the verification pass information to obtain an information package, sending the information packet to a target management node, wherein the target management node is any one of the plurality of second management nodes (202), After the target management node verifies that the information packet has passed, receiving the transaction verification authority for the information packet sent by the target management node, so that the first management node (201) participates in the digital asset transaction verification; The identification module (302) is used to determine the sender address corresponding to the sender public key and the receiver address corresponding to the receiver public key according to a preset method, Determine the sender address corresponding to the sender public key and the receiver address corresponding to the receiver public key, specifically include: Using a preset first hash algorithm, a hash operation is performed on the sender public key to obtain a first calculation result, Using a preset second hash algorithm, performing a hash operation on the first calculation result to obtain a second calculation result, Add a preset main network version prefix to the second calculation result to obtain a first intermediate result. Using the preset first hash algorithm, performing a hash operation on the first intermediate result to obtain a second intermediate result, Take the first preset number of characters of the second intermediate result to obtain a checksum, Performing preset encoding on the combination of the preset main network version prefix, the second calculation result, and the checksum to obtain the sender address, Likewise, the recipient address is obtained based on the recipient public key; The judging module (303) is used to judge whether there is a mapping relationship between the sender address and the first device identifier, and whether there is a mapping relationship between the receiver address and the second device identifier; The processing module (304) is used to record first transaction information after the digital asset transaction between the first server (203) and the second server (204) is completed if it is determined that there is a mapping relationship between the sender address and the first device identifier, and if it is determined that there is a mapping relationship between the receiver address and the second device identifier. The first transaction information includes the first device identifier, the second device identifier, the sender public key, and the receiver public key.
7. An electronic device, It is characterized in that The electronic device comprises a processor (501), a memory (505), a user interface (503) and a network interface (504), wherein the memory (505) is used to store instructions, the user interface (503) and the network interface (504) are both used to communicate with other devices, and the processor (501) is used to execute the instructions stored in the memory (505) so that the electronic device executes the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 5 is performed.
