Digital asset transfer method and device and electronic equipment
By establishing temporary accounts on the blockchain and using temporary private keys for off-chain transfer, the existing digital asset transfer methods are solved in terms of security and efficiency, and a higher security and more efficient transfer process is achieved.
Patent Information
- Application Number
- CN202411619812.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-13
- Publication Date
- 2025-03-28
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing digital asset transfer methods have insufficient security and efficiency. Centralized platforms are vulnerable to attacks and poor security, while blockchain-based transfer efficiency is low.
By establishing a temporary account on the blockchain, transfer the target digital assets to the temporary account, and transferring the target digital assets off-chain using the temporary private key, the ownership transfer of the target digital assets is achieved without the need for on-chain transfer operations.
It improves the security of digital asset transfers, while reducing the number of on-chain transfer operations of digital assets, improving transfer efficiency and reducing costs.
Smart Images

Figure CN119722060A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of digital asset transactions, and in particular to a digital asset transfer method, device and electronic device. Background Art
[0002] Digital assets are assets that exist in digital form in digital networks. Digital asset transfer is a key link in digital asset transactions. In the prior art, digital asset transfer solutions mainly include: digital asset transfer based on centralized platforms, or digital asset transfer based on blockchain. Digital asset transfer based on centralized platforms usually relies on centralized platforms to facilitate asset transactions and transfers. Since centralized platforms are easily targeted by hackers, it is difficult for users to ensure asset security with this transfer solution. Digital asset transfer based on blockchain usually involves users performing point-to-point on-chain asset transfers on blockchains, and this transfer solution has low transfer efficiency. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a digital asset transfer method, device and electronic device to improve the security and efficiency of digital asset transfer.
[0004] In a first aspect, an embodiment of the present application provides a digital asset transfer method, which is applied to a first user terminal, and the method includes: Generate a temporary key pair, the temporary key pair comprising: a temporary public key and a temporary private key corresponding to the temporary public key; Using the temporary public key to establish a temporary account on the blockchain, and transferring the target digital asset to the temporary account; wherein the private key of the temporary account is configured as the temporary private key; The temporary private key is sent to the second user terminal, and the temporary private key in the first user terminal is deleted.
[0005] In a second aspect, an embodiment of the present application provides a digital asset transfer method for a second user terminal, the method comprising: Sending a temporary private key of the temporary account on the blockchain to a third user terminal, and deleting the temporary private key in the second user terminal; Among them, the temporary account is a blockchain account established using the temporary public key corresponding to the temporary private key, which stores the target digital asset; the private key of the temporary account is the temporary private key; and the temporary private key is received from the first user terminal.
[0006] In a third aspect, an embodiment of the present application provides a digital asset transfer method, which is applied to a third user terminal, and the method includes: Generate a third blockchain asset operation; wherein the third blockchain asset operation is an asset transfer operation of transferring a target digital asset in a temporary account on the blockchain to a third account; the temporary account is an account established using a temporary public key, the private key of the temporary account is a temporary private key corresponding to the temporary public key, and the temporary private key is received from the second user terminal or the first user terminal; Sign the third blockchain asset operation using the temporary private key; Submit the signed third blockchain asset operation to the blockchain system.
[0007] In a fourth aspect, an embodiment of the present application provides a digital asset transfer device, which is applied to a first user terminal, and the device includes: A key generation module, used to generate a temporary key pair, the temporary key pair comprising: a temporary public key and a temporary private key corresponding to the temporary public key; A temporary account establishment module, used to establish a temporary account on the blockchain using the temporary public key, and transfer the target digital asset into the temporary account; wherein the private key of the temporary account is configured as the temporary private key; The temporary private key sending module is used to send the temporary private key to the second user terminal and delete the temporary private key in the first user terminal.
[0008] In a fifth aspect, an embodiment of the present application provides a digital asset transfer device, which is applied to a second user terminal, and the device includes: A temporary private key sending module, used to send the temporary private key of the temporary account on the blockchain to the third user terminal, and delete the temporary private key in the second user terminal; Among them, the temporary account is a blockchain account established using the temporary public key corresponding to the temporary private key, which stores the target digital asset; the private key of the temporary account is the temporary private key, and the temporary private key is received from the first user terminal.
[0009] In a sixth aspect, an embodiment of the present application provides a digital asset transfer device, which is applied to a third user terminal, and the device includes: An operation generation module, configured to generate a third blockchain asset operation; wherein the third blockchain asset operation is an asset transfer operation for transferring a target digital asset in a temporary account on the blockchain to a third account; the temporary account is an account established using a temporary public key, the private key of the temporary account is a temporary private key corresponding to the temporary public key, and the temporary private key is received from the second user terminal or the first user terminal; A signing module, configured to sign the third blockchain asset operation using the temporary key; The operation submission module is used to submit the signed third blockchain asset operation to the blockchain system.
[0010] In a seventh aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores a computer program, and the computer program is executed by the processor to implement any one of the above-mentioned digital asset transfer methods.
[0011] In an embodiment of the present application, a temporary account is established on the blockchain, the target digital asset is transferred to the temporary account, and then the temporary private key serving as the private key of the temporary account is transferred. The transfer of ownership of the target digital asset on the chain can be achieved by transferring the temporary private key off-chain without performing an on-chain transfer operation on the target digital asset. As a result, the security of digital asset transfer can be improved through the blockchain while reducing the number of on-chain transfer operations of digital assets, thereby improving the efficiency and cost of digital asset transfer. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate one or more embodiments of the present application or the technical solutions in the prior art, the drawings required for describing the embodiments will be briefly introduced below. Obviously, the drawings described below are only drawings of one or more embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0013] Figure 1 is a flowchart of a digital asset transfer method provided by some embodiments of the present application; Figure 2 It is a schematic diagram of the interaction process related to the temporary private key provided in some embodiments of the present application; Figure 3 is a flowchart of a digital asset transfer method provided by other embodiments of the present application; Figure 4 is a flowchart of a digital asset transfer method provided by some other embodiments of the present application; Figure 5 It is an application example of the digital asset transfer method provided in some embodiments of the present application; Figure 6 yes Figure 5 A flowchart of a digital asset transfer method in the application example shown; Figure 7 It is a schematic diagram of the structure of an electronic device provided in some embodiments of the present application. DETAILED DESCRIPTION
[0014] The embodiments of the present application provide a digital asset transfer method, device and electronic device to improve the security and efficiency of digital asset transfer.
[0015] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0016] The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable where appropriate, so that the embodiments of the application can be implemented in an order other than those illustrated or described herein.
[0017] Figure 1 It is a flowchart of the digital asset transfer method provided in some embodiments of the present application. Figure 1 The digital asset transfer method shown is applied to a first user terminal and can be executed by the first user terminal in response to a first user operation performed by the first user. The first user terminal is a mobile terminal of the first user, such as a mobile phone, a tablet computer, etc. The first user operation is, for example, an operation of transferring the target digital asset of the first user to the second user. Figure 1 As shown, the digital asset transfer method applied to the first user terminal includes the following steps: S101, generating a temporary key pair, the temporary key pair comprising: a temporary public key and a temporary private key corresponding to the temporary public key.
[0018] The temporary key pair may be randomly generated, and the temporary public key may be composed of random numbers, so that a temporary account can be established later to store the target digital asset.
[0019] In some embodiments, the temporary key pair may be generated by a first SIM (Subscriber Identification Module) card in the first user terminal. The first SIM card, as a hardware carrier, may provide a trusted execution environment. In S101, generating the temporary key pair may specifically include: A temporary key generation instruction is sent to the first SIM card in the first user terminal, so that the first SIM card responds to the temporary key generation instruction, generates a temporary key pair, and returns a temporary public key in the temporary key pair.
[0020] The first SIM card is a smart SIM card in the first user terminal, which is equipped with a processor and has data processing capability and security, such as a super SIM card. The first SIM card has a key generation function, which can be specifically configured to respond to a temporary key generation instruction, generate a temporary key pair, and return a temporary public key in the temporary key pair. When a temporary key pair needs to be generated, the first user terminal can send a temporary key generation instruction to the first SIM card. The first SIM card can respond to the temporary key generation instruction, generate a temporary key pair, and return the temporary public key in the temporary key pair.
[0021] S102, using the temporary public key to establish a temporary account on the blockchain, and transferring the target digital asset to the temporary account; wherein the private key of the temporary account is configured as the temporary private key.
[0022] The target digital asset is the digital asset that the first user wants to transfer to the second user. The temporary account is an on-chain account on the blockchain specifically used to store the target digital asset, which can establish the temporary public key as the account number of the temporary account. Before the target digital asset is transferred to the temporary account, the temporary account is an empty account. After the target digital asset is transferred to the temporary account, the temporary account stores the target digital asset.
[0023] The private key of the temporary account is configured as the temporary private key. The temporary account is a blockchain account, and the private key of the blockchain account is the unique identifier for controlling the digital assets in the blockchain account. Possessing the private key of the blockchain account means owning the ownership of the digital assets in the blockchain account. Since the temporary account is a dedicated account for the target digital asset, configuring the private key of the temporary account as the temporary private key can make the temporary private key the unique identifier of the ownership of the target digital asset in the temporary account. Possessing the temporary private key means owning the ownership of the target digital asset.
[0024] The target digital asset is the asset to be transferred, which may be an asset in the first account of the first user, and the first account may be a private account on the chain of the first user. In specific implementation, the first user terminal may generate a first blockchain asset operation; wherein the first blockchain asset operation is a blockchain asset transfer operation to transfer the target digital asset from the first account to the temporary account; then, the first blockchain asset operation is signed using the private key of the first account; and then, the signed first blockchain asset operation is submitted to the blockchain system so that the blockchain system transfers the target digital asset from the first account to the temporary account.
[0025] Among them, the private key of the first account can be stored in the first SIM card. When using the private key of the first account to sign the first blockchain asset operation, the first user terminal can send an operation signature instruction of the first blockchain asset operation to the first SIM card, so that the first SIM card signs the first blockchain asset operation and returns the signed first blockchain asset operation.
[0026] The first SIM card has a blockchain asset operation signature function, which is specifically configured to respond to a blockchain asset operation signature instruction and use a corresponding signature key to sign the blockchain asset operation to be signed. Upon receiving the operation signature instruction for the first blockchain asset operation, the first SIM card can sign the first blockchain asset operation using the private key of the first account according to the operation signature instruction for the first blockchain asset operation, and return the signed first blockchain asset operation. In the operation signature instruction for the first blockchain asset operation, the blockchain asset operation to be signed is the first blockchain asset operation, and the signature key is the private key of the first account.
[0027] S103: Send the temporary private key to the second user terminal, and delete the temporary private key in the first user terminal.
[0028] The second user terminal is a mobile terminal of the second user, such as a mobile phone, a tablet computer, etc. The temporary private key is sent to the second user terminal, and the temporary private key in the first user terminal is deleted, so that the ownership of the target digital asset can be transferred from the first user to the second user.
[0029] As can be seen from the foregoing, the temporary private key of the temporary account is the unique identifier of the ownership of the target digital asset. Possessing the temporary private key means holding the ownership of the target digital asset. By establishing a temporary account on the blockchain, transferring the target digital asset to the temporary account, and allowing the first user terminal of the first user to send the temporary private key as the temporary account private key to the second user terminal of the second user, the transfer of the ownership of the target digital asset on the chain can be achieved by transferring the offline temporary private key without performing an on-chain transfer operation on the target digital asset. As a result, the security of the target digital asset transfer can be improved through the blockchain, while the number of on-chain transfer operations of the target digital asset can be reduced, thereby reducing the cost of asset transfer.
[0030] In some embodiments, in order to ensure the security and exclusivity of the temporary private key, the temporary private key of the temporary account is stored in the trusted execution environment of the first SIM card. The first SIM card has the function of encrypting and storing information, and it can provide the stored information in the form of ciphertext. In an embodiment of the present application, the first SIM card is specifically configured to provide the ciphertext of the stored temporary private key to the user terminal, but not to provide the plaintext of the temporary private key to the user terminal, thereby ensuring that the plaintext of the temporary private key is not provided to the user terminal during the entire asset transfer process.
[0031] When the first user terminal sends the temporary private key to the second user terminal, the first SIM card may provide the first user terminal with an encrypted temporary private key obtained by encrypting the temporary private key, and delete the temporary private key stored in the first SIM card. The first user terminal may send the encrypted temporary private key to the second user terminal, and the second user terminal may provide the encrypted temporary private key to the second SIM card in the second user terminal, so that the second SIM card decrypts the encrypted temporary private key and stores the temporary private key obtained after decryption.
[0032] The returning of the encrypted temporary private key and the deleting of the temporary private key stored in the first SIM card are configured to be performed by the same program atomic operation in the first SIM card, thereby, after the step of returning the encrypted temporary private key to the first user terminal is executed, the step of deleting the temporary private key stored in the first SIM card is executed, and the execution process will not be manually intervened or interrupted, thereby ensuring the exclusivity of the temporary private key.
[0033] In a specific implementation, the first SIM card is specifically configured to: respond to a temporary key generation instruction, generate a temporary key pair, return a temporary public key in the temporary key pair, and store a temporary private key in the temporary key pair in the first SIM. In addition, the first SIM card is also specifically configured to respond to a temporary private key acquisition instruction, encrypt the temporary private key stored in the first SIM, and return the encrypted temporary private key. When the temporary private key needs to be sent to the second user terminal, the first user terminal sends a temporary private key acquisition instruction to the first SIM card, obtains the encrypted temporary private key returned by the first SIM card, and sends the encrypted temporary private key to the second user terminal. After receiving the encrypted temporary private key sent by the first user terminal, the second user terminal sends a temporary private key storage instruction to the second SIM card, and the second SIM card can respond to the temporary private key storage instruction, decrypt the encrypted temporary private key and store the decrypted temporary private key. Among them, the encrypted temporary private key can be an encryption key that needs to be decrypted by the second SIM card. The second SIM card is specifically configured to respond to a storage instruction, decrypt and store the ciphertext information to be stored in the storage instruction. When receiving the temporary private key storage instruction, the second SIM card can decrypt and store the encrypted temporary private key in the instruction. The temporary private key storage instruction is a storage instruction of the temporary private key, which carries the encrypted temporary private key to be stored.
[0034] Through the above method, it can be ensured that the encryption and decryption processing of the temporary private key are performed in the trusted execution environment of the SIM card, and the plain text of the temporary private key will not be leaked to any user.
[0035] In some embodiments, in order to ensure the legality of the transfer of the target digital asset, the first user terminal may send the temporary public key to the second user terminal before sending the temporary private key to the second user terminal, so that the second user terminal can query the target digital asset under the temporary account based on the temporary public key and confirm the target digital asset; the first user terminal may execute the process of sending the temporary private key to the second user terminal after receiving the asset confirmation message of the target digital asset returned by the second user terminal.
[0036] Among them, after receiving the temporary public key sent by the first user terminal, the second user terminal can generate an on-chain asset query operation of the temporary account based on the temporary public key, and then submit the asset query operation to the blockchain system to perform an on-chain query on the target digital asset in the temporary account. After that, the second user terminal can display the query result of the target digital asset, and the second user can perform asset confirmation on the target digital asset based on the query result. After the second user performs the asset confirmation operation on the target digital asset, the second user terminal can return the asset confirmation message of the target digital asset to the first user terminal.
[0037] In some embodiments, the asset confirmation message returned by the second user terminal may carry a second public key, and the second private key corresponding to the second public key may be stored in a second SIM card in the second user terminal. The second private key can decrypt the encrypted information encrypted using the second public key. The first user terminal sends an encrypted temporary private key to the second user terminal, and the encrypted temporary private key is a key encrypted by the first SIM card using the second public key. The second user terminal can send the received encrypted temporary private key to the second SIM card, and the second SIM card uses the second private key stored therein to decrypt and store the encrypted temporary private key.
[0038] Figure 2 1 is a schematic diagram of the interactive process of the temporary private key transfer process provided by some embodiments of the present application. Figure 2 , the digital asset transfer method provided in the embodiment of the present application is further explained.
[0039] like Figure 2 As shown, in some embodiments, the method for transferring digital assets further includes: S201: The first user terminal sends the temporary public key to the second user terminal.
[0040] The public key of the temporary account is the temporary public key, and the temporary account can be queried based on the temporary public key.
[0041] S202: The second user terminal queries the target digital asset in the temporary account based on the temporary public key.
[0042] Among them, the second user terminal can generate a blockchain query operation of the target digital asset in the temporary account based on the temporary public key, and submit the operation to the blockchain system, so as to query whether the target digital asset is in the temporary account on the blockchain.
[0043] The second user terminal may provide the query result of the target digital asset to the second user for confirmation by the second user. After the second user confirms that the target digital asset is indeed in the temporary account and the asset transfer can be performed, step S203 is executed.
[0044] S203: The second user terminal returns an asset confirmation message to the first user terminal. The asset confirmation message carries a second public key of the second user terminal. A second private key corresponding to the second public key is stored in the second SIM card.
[0045] The above steps S201 to S203 can be Figure 1 It is executed after step S102 and before step S103. Figure 1 The step S103 shown may specifically include the following steps: S204: The first user terminal sends a temporary private key acquisition instruction to the first SIM card to acquire the encrypted temporary private key from the first SIM card and delete the temporary private key in the first SIM card.
[0046] The temporary private key acquisition instruction carries the second public key, and the first SIM card responds to the temporary private key acquisition instruction, encrypts the temporary private key using the second public key to generate an encrypted temporary private key, returns the encrypted temporary private key, and deletes the temporary private key in the first SIM card.
[0047] The temporary private key acquisition instruction may be generated based on the second public key, and may carry an encryption key, which is the second public key. The first SIM card is pre-configured to respond to the temporary private key acquisition instruction, encrypt the temporary private key using the encryption key carried by the temporary private key acquisition instruction to generate an encrypted temporary private key, return the encrypted temporary private key, and delete the temporary private key stored in the first SIM card. Upon receiving the temporary private key acquisition instruction sent by the first user terminal and carrying the encryption key as the second public key, the first SIM card may, according to the instruction, encrypt the temporary private key stored therein using the second public key and return the encrypted encrypted temporary private key.
[0048] Here, returning the encrypted temporary private key and deleting the temporary private key in the first SIM card belong to the same program atomic operation.
[0049] S205: The first user terminal sends the encrypted temporary private key to the second user terminal.
[0050] S206: The second user terminal sends a temporary private key storage instruction to the second SIM card, so that the second SIM card decrypts the encrypted temporary private key and stores the decrypted temporary private key.
[0051] The second SIM card is pre-configured to respond to the temporary private key storage instruction, use the second private key stored therein to decrypt the encrypted temporary private key carried by the temporary private key storage instruction, obtain the temporary private key, and store the temporary private key in the second SIM card. After receiving the temporary private key storage instruction, the second SIM card can respond to the temporary private key storage instruction, decrypt and store the encrypted temporary private key.
[0052] Furthermore, the second user terminal may transfer the target digital asset in the temporary account again based on the temporary private key. For example, the second user terminal may subsequently send the temporary private key to a third user terminal to achieve the re-transfer of the ownership of the target digital asset. For another example, the second user terminal may subsequently perform a blockchain asset transfer operation on the target digital asset in the temporary account based on the temporary private key, thereby transferring the target digital asset in the temporary account to the second user's private account.
[0053] Figure 3 It is a flowchart of the digital asset transfer method provided in some embodiments of the present application. Figure 3 The digital asset transfer method shown can be applied to a second user terminal, and can be executed by the second user terminal in response to a second user operation performed by the second user. The second user terminal is a mobile terminal of the second user, such as a mobile phone, a tablet computer, etc. The second user operation is, for example, an operation of transferring the target digital asset to a third account.
[0054] like Figure 3 As shown, in some embodiments, the digital asset transfer method applied to the second user terminal includes: S301, sending the temporary private key of the temporary account on the blockchain to the third user terminal, and deleting the temporary private key in the second user terminal.
[0055] The temporary account is a blockchain account established using a temporary public key corresponding to the temporary private key, which stores the target digital asset; the private key of the temporary account is the temporary private key, which is received from the first user terminal. The temporary private key of the temporary account on the blockchain is sent to the third user terminal, and the temporary private key in the second user terminal is deleted, so that the ownership of the target digital asset in the temporary account can be transferred from the second user to the third user.
[0056] By enabling the second user terminal to send the temporary private key serving as the temporary account private key to the third user terminal, the transfer of ownership of the target digital asset in the on-chain temporary account can be achieved by transferring the offline temporary private key without performing an on-chain transfer operation on the target digital asset. Thus, while improving the security of digital asset transfer through the blockchain, the number of on-chain transfer operations of digital assets can be reduced, thereby reducing the cost of asset transfer.
[0057] In some embodiments, before sending the temporary private key of the temporary account on the blockchain to the third user terminal, the method further includes: Sending the temporary public key to the third user terminal, so that the second user terminal can query the target digital asset under the temporary account based on the temporary public key; After receiving the asset confirmation message returned by the third user terminal, the process of sending the temporary private key to the third user terminal is performed.
[0058] In some embodiments, the temporary private key is stored in a second SIM card in the second user terminal, the asset confirmation message carries a third public key of the third user terminal, and a third private key corresponding to the third public key is stored in a third SIM card in the third user terminal, and sending the temporary private key to the third user terminal includes: sending a temporary private key acquisition instruction to the second SIM card, so that the second SIM card responds to the temporary private key acquisition instruction, encrypts the temporary private key using the third public key to generate an encrypted temporary private key, returns the encrypted temporary private key, and deletes the temporary private key stored in the second SIM card; wherein the temporary private key acquisition instruction carries the third public key; The encrypted temporary private key is sent to the third user terminal, so that the third user terminal enables the third SIM card to use the third private key to decrypt the encrypted temporary private key, obtain the temporary private key, and store the temporary private key in the third SIM card.
[0059] It can be understood that the second user terminal sends the temporary private key to the third user terminal and deletes the temporary private key in the second user terminal to transfer the ownership of the target digital asset from the second user to the third user. This is similar to the above-mentioned embodiment in which the first user terminal sends the temporary private key to the second user terminal and deletes the temporary private key in the first user terminal to transfer the ownership of the target digital asset from the second user to the third user. Both are based on the same inventive concept, and their specific processing can refer to the relevant description in the above-mentioned embodiment, which will not be repeated here.
[0060] Figure 4It is a flowchart of the digital asset transfer method provided by some other embodiments of the present application. Figure 4 The digital asset transfer method shown can be applied to a third user terminal, and the third user terminal can execute the digital asset method in response to a third user operation performed by a third user. The third user terminal is a terminal of the third user, such as a mobile phone, tablet computer, etc. of the third user. The third user operation is, for example, an operation of transferring the target digital asset in the temporary account to the third account. Figure 4 As shown, in some embodiments, the digital asset transfer method applied to the third user terminal includes: S401, generating a third blockchain asset operation, wherein the third blockchain asset operation is a blockchain asset transfer operation for transferring a target digital asset in a temporary account on the blockchain to a third account; the temporary account is an account established using a temporary public key for storing the target digital asset, and the private key of the temporary account is a temporary private key corresponding to the temporary public key, and the temporary private key is received from the second user terminal or the first user terminal.
[0061] The third account may be a private account on the chain of the third user. The third blockchain asset operation may be a blockchain asset operation of transferring the target digital asset in the temporary account to the private account on the chain of the third user.
[0062] S402: Use a temporary private key to sign the third blockchain asset operation.
[0063] Among them, the temporary private key can be stored in a third SIM card in the third user terminal, and the third user terminal can send an operation signature instruction for the third blockchain asset operation to the third SIM card, so that the third SIM card responds to the operation signature instruction, uses the temporary private key to sign the third blockchain asset operation and returns the signed third blockchain asset operation.
[0064] The third SIM card is pre-configured to respond to the operation signature instruction of the blockchain asset operation of the temporary account, use the temporary private key to sign the blockchain asset operation to be signed and return the signed blockchain operation. In the operation signature instruction of the third blockchain asset operation, the blockchain asset operation to be signed is the third blockchain asset operation.
[0065] S403, submitting the signed third blockchain asset operation to the blockchain system.
[0066] After receiving the signed third blockchain asset operation, the blockchain system can respond to the operation and transfer the target digital asset in the temporary account to the third account of the third user.
[0067] It should be noted that, in the embodiment of the present application, the temporary account is Figure 1 In the embodiment shown, the digital asset transfer method is established, wherein the target digital asset in the temporary account is Figure 1 The digital asset transfer method in the embodiment shown is transferred into. The temporary key is Figure 1 or Figure 3 The digital asset transfer method in the illustrated embodiment is sent.
[0068] Figure 5 This is an application example of the digital transfer method provided by some embodiments of the present application. Figure 5 As shown, in actual applications, the digital asset transfer method applied to the first user terminal, the digital asset transfer method applied to the second user terminal, and the digital asset transfer method applied to the third user terminal can be implemented by a wallet application such as a digital asset wallet APP. The functions implemented by the above-mentioned first SIM card and the second SIM card can be implemented by a super SIM card. The super SIM card can generate and store temporary public keys and temporary private keys of temporary accounts, ensure the safe circulation of temporary private keys, generate and store users' personal private keys, and provide chain signatures and other functions. The wallet APP can communicate with the super SIM card, realize public and private key generation, private key signature encryption, provide blockchain identity management, and initiate chain operations, thereby realizing the digital asset transfer method provided in the embodiment of the present application. Figure 6 yes Figure 5 The flowchart of the asset transfer method in the application example shown in FIG. Figure 5 , Figure 6 , the digital asset transfer method provided in the embodiment of the present application is further explained.
[0069] Please refer to Figure 5 as well as Figure 6 In a specific application based on the embodiment of the present application, the process of the digital asset circulation method may include:
[101] The digital asset wallet APP on the user terminal of user 1 (hereinafter referred to as wallet APP1) operates the super SIM card in the user terminal (hereinafter referred to as super SIM card 1) to enable super SIM card 1 to generate a temporary public key<TEMP_PK> and temporary private key<TEMP_SK> . Temporary private key<TEMP_SK> Stored in Super SIM card 1, temporary public key<TEMP_PK> Return to wallet App1 to create a temporary account on the blockchain<TEMP_PK> . Temporary Account<TEMP_PK> The account and public key are temporary public keys<TEMP_PK> , temporary account<TEMP_PK> The private key is a temporary private key<TEMP_SK> .
[0070] Among them, the above processing can be achieved by operating the card application of the super SIM card 1.
[0071]
[102] , the wallet APP1 uses the first private key <ACCOUNT1_SK> stored in the super SIM card 1 to sign the blockchain digital asset circulation operation <transfer (transferor: ACCOUNT1_PK, transferee: TEMP_PK, digital asset number: TOKEN_ID)>, and submits the signed operation to the blockchain system.
[0072] Among them, the first private key <ACCOUNT1_SK> is the private key of the first account <ACCOUNT1_PK>, and the first account is the personal account of the first user. The blockchain digital asset circulation operation <transfer (transferor: ACCOUNT1_PK, transferee: TEMP_PK, digital asset number: TOKEN_ID)> is a transfer operation to transfer the target digital asset numbered TOKEN_ID from the first account <ACCOUNT1_PK> to the temporary account <TEMP_PK>.
[0073]
[103] , the blockchain system transfers the target digital asset numbered <TOKEN_ID> from the first account <ACCOUNT1_PK> according to the signed operation sent by the wallet APP1.
[0074]
[104] , the blockchain system transfers the target digital asset numbered <TOKEN_ID> to the temporary account <TEMP_PK> according to the signed operation sent by the wallet APP1.
[0075] Among them, the blockchain system registers the target digital asset <TOKEN_ID> under the name of the temporary account <TEMP_PK> to transfer the target digital asset <TOKEN_ID> to the temporary account <TEMP_PK>.
[0076]
[105] , the wallet APP1 initiates a transfer request to the digital asset wallet APP (hereinafter referred to as wallet APP2) on the user terminal of user 2, and transfers the public key of the temporary account <TEMP_PK>, that is, transfers the temporary public key <TEMP_PK> to the wallet APP2.
[0077] Among them, the second public key <ACCOUNT2_PK> of the wallet APP2 is given to the wallet APP1. The wallet APP1 uses the second public key <ACCOUNT2_PK> of the wallet APP2 to sign the temporary public key <TEMP_PK> and the number <TOKEN_ID> of the target digital asset, and gives the signature result <TEMP_SIG> to the wallet APP2.
[0078]
[106] , Wallet APP2 signs the result<TEMP_SIG> After the signature verification is passed, based on the temporary public key<TEMP_PK> , query temporary accounts in the blockchain system<TEMP_PK> Is there a target digital asset?<TOKEN_ID> .
[0079]
[107] , Wallet APP2 confirms the temporary account<TEMP_PK> There are target digital assets<TOKEN_ID> After that, a notification is sent to wallet APP1 to confirm that the transfer can be made.
[0080]
[108] , wallet APP1 is in super SIM card 1, using the second public key<ACCOUNT2_PK> , for the temporary private key<TEMP_SK> Encrypt the encrypted ciphertext<TEMP_SK_EN> Send to wallet APP2.
[0081] Among them, wallet APP2 uses the second public key in the super SIM card of user 2's user terminal (hereinafter referred to as super SIM card 2)<ACCOUNT2_PK> The corresponding second private key<ACCOUNT2_SK> For the ciphertext<TEMP_SK_EN> Decryption is performed to obtain the plain text of the temporary private key, and the plain text of the temporary private key is stored in the SIM card 2.
[0082] Plain text of temporary private key<TEMP_SK> =decrypt(ciphertext: TEMP_SK_EN, decryption key: ACCOUNT2_SK).
[0083] Among them, the second private key<ACCOUNT2_SK> Stored in Super SIM 2.
[0084]
[109] , Wallet APP1 deletes the temporary private key in Super SIM card 1<TEMP_SK> .
[0085]
[110] Wallet APP2 initiates a transfer request to the digital asset wallet APP on the user terminal of user 3 (hereinafter referred to as wallet APP3), passing the temporary account to wallet APP3.<TEMP_PK> The public key of the wallet APP3 is passed to the temporary public key<TEMP_PK> .
[0086]
[111] , Wallet APP3 signs the result<TEMP_SIG> After the signature verification is passed, based on the temporary public key<TEMP_PK> , query temporary accounts in the blockchain system<TEMP_PK> Is there a target digital asset?<TOKEN_ID> .
[0087]
[112] , Wallet APP3 confirms the temporary account<TEMP_PK> There are target digital assets<TOKEN_ID> After that, a notification is sent to wallet APP2 to confirm that the currency can be circulated.
[0088]
[113] , wallet APP2 is in super SIM card 2, using the third public key<ACCOUNT3_PK> , for the temporary private key<TEMP_SK> Encrypt the encrypted ciphertext<TEMP_SK_EN> Send to wallet APP3.
[0089] Among them, wallet APP3 uses the third public key in the super SIM card of the user terminal of user 3 (hereinafter referred to as super SIM card 3)<ACCOUNT3_PK> The corresponding third private key<ACCOUNT3_SK> For the ciphertext<TEMP_SK_EN> Decryption is performed to obtain the plain text of the temporary private key, and the plain text of the temporary private key is stored in the super SIM card 3.
[0090] The plain text of the temporary private key<TEMP_SK> =decrypt(ciphertext: TEMP_SK_EN, decryption key: ACCOUNT3_SK).
[0091]
[114] , Wallet APP2 deletes the temporary private key in Super SIM card 2<TEMP_SK> .
[0092]
[115] , wallet APP3 uses the temporary private key<TEMP_SK> , sign the blockchain asset circulation operation transfer (transferor: TEMP_PK, transferee: ACCOUNT3_PK, digital asset number: TOKEN_ID) and submit the signed operation to the blockchain system.
[0093] Among them, the blockchain asset circulation operation transfer (transfer out: TEMP_PK, transfer in: ACCOUNT3_PK, digital asset number: TOKEN_ID) is to transfer the temporary account<TEMP_PK> Target digital assets in<TOKEN_ID> , transfer to the third account<ACCOUNT3_PK> Operation of the third account<ACCOUNT3_PK> This is the personal account of user 3.
[0094]
[116] , the blockchain system operates according to the signature submitted by wallet APP3, from the temporary account<TEMP_PK> Transfer target digital assets<TOKEN_ID> .
[0095]
[117] The blockchain system converts the target digital asset into<TOKEN_ID> Transfer to a third account<ACCOUNT3_PK> .
[0096]
[118] , wallet APP3 deletes the temporary private key stored in super SIM card 3.
[0097] In addition, Figure 1 Corresponding to the digital asset transfer method shown, the embodiment of the present application also provides a digital asset transfer device. The digital asset transfer device includes: A key generation module, used to generate a temporary key pair, the temporary key pair comprising: a temporary public key and a temporary private key corresponding to the temporary public key; A temporary account establishment module, used to establish a temporary account on the blockchain using the temporary public key, and transfer the target digital asset into the temporary account; wherein the private key of the temporary account is configured as the temporary private key; The temporary private key sending module is used to send the temporary private key to the second user terminal and delete the temporary private key in the second user terminal.
[0098] The digital asset transfer device provided in the embodiment of the present application can be used as the above Figure 1 The execution subject of the digital asset transfer method shown can achieve Figure 1 The functions of the digital asset transfer method shown in the figure are the same and will not be described again here.
[0099] In addition, Figure 3 Corresponding to the digital asset transfer method shown, the embodiment of the present application also provides a digital asset transfer device, the digital asset transfer device comprising: A temporary private key sending module, used to send the temporary private key of the temporary account on the blockchain to the third user terminal, and delete the temporary private key in the second user terminal; Among them, the temporary account is a blockchain account established using the temporary public key corresponding to the temporary private key, which stores the target digital asset; the private key of the temporary account is the temporary private key, and the temporary private key is received from the first user terminal.
[0100] The digital asset transfer device provided in the embodiment of the present application can be used as the above Figure 3 The execution subject of the digital asset transfer method shown can achieve Figure 3 The functions of the digital asset transfer method shown in the figure are the same and will not be described again here.
[0101] In addition, Figure 4 Corresponding to the digital asset transfer method shown, the embodiment of the present application also provides a digital asset transfer device, the digital asset transfer device comprising: An operation generation module, configured to generate a third blockchain asset operation; wherein the third blockchain asset operation is an asset transfer operation for transferring a target digital asset in a temporary account on the blockchain to a third account; the temporary account is an account established using a temporary public key, the private key of the temporary account is a temporary private key corresponding to the temporary public key, and the temporary private key is received from the second user terminal or the first user terminal; A signing module, configured to sign the third blockchain asset operation using the temporary key; The operation submission module is used to submit the signed third blockchain asset operation to the blockchain system.
[0102] The digital asset transfer device provided in the embodiment of the present application can be used as the above Figure 4 The execution subject of the digital asset transfer method shown can achieve Figure 4 The functions of the digital asset transfer method shown in the figure are the same and will not be described here again.
[0103] It should be noted that, in actual applications, the functions of the digital asset transfer devices provided in the above embodiments can be implemented by one digital asset transfer device. For example, the functions of the above digital asset transfer devices can be integrated into one wallet APP and implemented by one wallet APP.
[0104] In addition, based on the same inventive concept, an embodiment of the present application also provides an electronic device. Figure 7 is a schematic diagram of the structure of an electronic device 700 provided in some embodiments of the present application. Figure 7 As shown, the electronic device 700 includes a processor 701 and a memory 702 .
[0105] In some embodiments, the memory 702 stores a computer program, and the processor 701 executes the computer program to implement Figure 1 Steps in the digital asset transfer method shown.
[0106] In some embodiments, the memory 702 stores a computer program, and the processor 701 executes the computer program to implement Figure 3 Steps in the digital asset transfer method shown.
[0107] In some embodiments, the memory 702 stores a computer program, and the processor 701 executes the computer program to implement Figure 4 Steps in the digital asset transfer method shown.
[0108] In addition, based on the same inventive concept, one or more embodiments of the present application further provide a storage medium for storing computer executable instruction information. In a specific embodiment, the storage medium may be a USB flash drive, an optical disk, a hard disk, etc. When the computer executable instruction information stored in the storage medium is executed by the processor, it can achieve Figure 1 The digital processing method shown.
[0109] In a specific embodiment, the storage medium may be a USB flash drive, a CD, a hard disk, etc. When the computer executable instruction information stored in the storage medium is executed by the processor, it can achieve Figure 3 The digital processing method shown.
[0110] In a specific embodiment, the storage medium may be a USB flash drive, a CD, a hard disk, etc. When the computer executable instruction information stored in the storage medium is executed by the processor, it can achieve Figure 4 The digital processing method shown.
[0111] In addition, based on the same inventive concept, one or more embodiments of the present application also provide a computer program product, which includes one or more program instructions.
[0112] In a specific embodiment, when the one or more program instructions are executed by the processor, the following can be achieved: Figure 1 The digital processing method shown.
[0113] In a specific embodiment, when the one or more program instructions are executed by the processor, the following can be achieved: Figure 3 The digital processing method shown.
[0114] In a specific embodiment, when the one or more program instructions are executed by the processor, the following can be achieved: Figure 4 The digital processing method shown.
[0115] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0116] In short, the above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
[0117] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0118] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0119] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0120] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
Claims
1. A digital asset transfer method, characterized in that: Applied to a first user terminal, the method includes: Generate a temporary key pair, the temporary key pair comprising: a temporary public key and a temporary private key corresponding to the temporary public key; Using the temporary public key to establish a temporary account on the blockchain, and transferring the target digital asset to the temporary account; wherein the private key of the temporary account is configured as the temporary private key; The temporary private key is sent to the second user terminal, and the temporary private key in the first user terminal is deleted.
2. The asset transfer method according to claim 1, characterized in that: The generating of a temporary key pair comprises: A temporary key generation instruction is sent to the first SIM card in the first user terminal, so that the first SIM card responds to the temporary key generation instruction, generates a temporary key pair, and returns a temporary public key in the temporary key pair.
3. The asset transfer method according to claim 1, characterized in that: Before sending the temporary private key to the second user terminal, the method further includes: Sending the temporary public key to a second user terminal, so that the second user terminal can query the target digital asset under the temporary account based on the temporary public key; After receiving the asset confirmation message returned by the second user terminal, the process of sending the temporary private key to the second user terminal is performed.
4. The digital asset transfer method according to claim 3, characterized in that: The temporary private key is stored in a first SIM card in the first user terminal, the asset confirmation message carries a second public key of the second user terminal, and a second private key corresponding to the second public key is stored in a second SIM card in the second user terminal; The sending of the temporary private key to the second user terminal and deleting the temporary private key in the first user terminal to transfer the ownership of the target digital asset from the first user to the second user includes: sending a temporary private key acquisition instruction to the first SIM card, so that the first SIM card responds to the temporary private key acquisition instruction, encrypts the temporary private key using the second public key to generate an encrypted temporary private key, returns the encrypted temporary private key, and deletes the temporary private key stored in the first SIM card; wherein the temporary private key acquisition instruction carries the second public key; The encrypted temporary private key is sent to the second user terminal, so that the second user terminal enables the second SIM card to decrypt the encrypted temporary private key using the second private key to obtain the temporary private key, and store the temporary private key in the second SIM card.
5. The asset transfer method according to claim 4, characterized in that: The returning of the encrypted temporary private key and the deleting of the temporary private key stored in the first SIM card are configured to be executed by the same program atomic operation.
6. The asset transfer method according to claim 1, characterized in that: The target digital asset is an asset in the first account of the first user, and the transferring of the target digital asset to a temporary account established on the blockchain based on the temporary public key includes: Generate a first blockchain asset operation; wherein the first blockchain asset operation is a blockchain asset transfer operation of transferring the target digital asset from the first account to the temporary account; Sign the first blockchain asset operation using the private key of the first account; Submit the signed first blockchain asset operation to the blockchain system so that the blockchain system transfers the target digital asset from the first account to the temporary account.
7. A digital asset transfer method, characterized in that: For a second user terminal, the method comprises: Sending a temporary private key of the temporary account on the blockchain to a third user terminal, and deleting the temporary private key in the second user terminal; Among them, the temporary account is a blockchain account established using the temporary public key corresponding to the temporary private key, which stores the target digital asset; the private key of the temporary account is the temporary private key; and the temporary private key is received from the first user terminal.
8. The digital asset transfer method according to claim 7, characterized in that: Before sending the temporary private key of the temporary account on the blockchain to the third user terminal, the method further includes: Sending the temporary public key to the third user terminal, so that the second user terminal can query the target digital asset under the temporary account based on the temporary public key; After receiving the asset confirmation message returned by the third user terminal, the process of sending the temporary private key to the third user terminal is performed.
9. The digital asset transfer method according to claim 8, wherein the temporary private key is stored in a second SIM card in the second user terminal, the asset confirmation message carries a third public key of the third user terminal, and a third private key corresponding to the third public key is stored in a third SIM card in the third user terminal, and the sending of the temporary private key to the third user terminal comprises: sending a temporary private key acquisition instruction to the second SIM card, so that the second SIM card responds to the temporary private key acquisition instruction, encrypts the temporary private key using the third public key to generate an encrypted temporary private key, returns the encrypted temporary private key, and deletes the temporary private key stored in the second SIM card; wherein the temporary private key acquisition instruction carries the third public key; The encrypted temporary private key is sent to the third user terminal, so that the third user terminal enables the third SIM card to use the third private key to decrypt the encrypted temporary private key, obtain the temporary private key, and store the temporary private key in the third SIM card.
10. A digital asset transfer method, characterized in that: Applied to a third user terminal, the method includes: Generate a third blockchain asset operation; wherein the third blockchain asset operation is a blockchain asset transfer operation of transferring a target digital asset in a temporary account on the blockchain to a third account; the temporary account is an account established using a temporary public key for storing the target digital asset, the private key of the temporary account is a temporary private key corresponding to the temporary public key, and the temporary private key is received from the second user terminal or the first user terminal; Sign the third blockchain asset operation using the temporary private key; Submit the signed third blockchain asset operation to the blockchain system.
Citation Information
Patent Citations
Block chain digital asset key management method and system based on SIM card
CN112862481A
Digital asset processing method based on block chain network and related equipment
CN117474543A