CN111915313B - Digital asset transfer control method, device and communication system for blockchain - Google Patents

Digital asset transfer control method, device and communication system for blockchain Download PDF

Info

Publication number
CN111915313B
CN111915313B CN202010788022.4A CN202010788022A CN111915313B CN 111915313 B CN111915313 B CN 111915313B CN 202010788022 A CN202010788022 A CN 202010788022A CN 111915313 B CN111915313 B CN 111915313B
Authority
CN
China
Prior art keywords
transfer
blockchain account
digital asset
blockchain
requests
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010788022.4A
Other languages
Chinese (zh)
Other versions
CN111915313A (en
Inventor
朱江
常青
吕晓蒂
王森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202010788022.4A priority Critical patent/CN111915313B/en
Publication of CN111915313A publication Critical patent/CN111915313A/en
Application granted granted Critical
Publication of CN111915313B publication Critical patent/CN111915313B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The present disclosure provides digital asset transfer control methods, apparatus, and communication systems for blockchain that may obtain a first transfer request to transfer a digital asset in a first blockchain account to a second blockchain account; determining whether the digital asset in the first blockchain account is being transferred according to other transfer requests at the current moment; if yes, after the transfer of the digital assets in the first blockchain account is finished according to other transfer requests, transferring the digital assets in the first blockchain account to a second blockchain account according to the first transfer request; otherwise, transferring the digital asset in the first blockchain account to the second blockchain account according to the first transfer request. The method and the system enable the same blockchain account to have only one action of transferring the digital assets in the blockchain account at the same time, so that the double-flower problem is completely avoided. The present disclosure also saves computing resources and communication resources of the blockchain network.

Description

Digital asset transfer control method, device and communication system for blockchain
Technical Field
The present disclosure relates to the field of blockchain technologies, and in particular, to a digital asset transfer control method, apparatus, and communication system for blockchains.
Background
Double-pattern-based questions (Double-pattern-based) refer to the phenomenon in which a piece of digital asset is reused in a transaction. Since digital assets are binary codes, which are data that can be copied, there are cases where a single digital asset is reused.
The universal evidence model blockchain technology is a technology combining a universal evidence, an intelligent contract and a consensus algorithm, wherein the universal evidence, the intelligent contract and the consensus algorithm are all positioned in a consensus boundary, and a secret and inseparable link exists between the universal evidence and the intelligent contract, so that the consensus algorithm ensures a communication environment in the consensus boundary.
Existing generic blockchain techniques (such as those used by bitcoin) prevent the double-flower problem by continuously validating transactions, namely: each of the plurality of transactions initiated at the same time or sequentially requires 6 confirmations by the "miners" before the transaction is completed. When there are two transactions involving the same digital asset, the transaction that was first validated 6 times would normally proceed and complete. Transactions that were confirmed 6 times in advance would lead to other transactions involving the same digital asset being invalidated (other transactions might be confirmed only 5 times), avoiding the double-flower problem.
It can be seen that while existing evidence-based blockchain techniques can avoid the double-flower problem, individual transactions involving the same digital asset are confirmed. Since each validation takes up the computational and communication resources of the blockchain network, validation of a failed transaction has become "idle", wasting the computational and communication resources of the blockchain network.
Disclosure of Invention
In view of the above, the present disclosure provides a digital asset transfer control method, apparatus and communication system for a blockchain that overcomes or at least partially solves the above problems, the technical solutions of which are as follows:
a digital asset transfer control method for a blockchain, comprising:
obtaining a first transfer request to transfer the digital asset in the first blockchain account to a second blockchain account;
determining whether the digital asset in the first blockchain account is being transferred according to other transfer requests at the current moment;
if yes, after the digital asset in the first blockchain account is transferred according to the other transfer requests, transferring the digital asset in the first blockchain account to the second blockchain account according to the first transfer requests;
Otherwise, transferring the digital asset in the first blockchain account to the second blockchain account according to the first transfer request.
Optionally, after the transferring the digital asset in the first blockchain account to the second blockchain account according to the first transfer request, the method further includes:
the end time of the digital asset transfer is recorded.
Optionally, the determining whether the digital asset in the first blockchain account is being transferred according to other transfer requests at the current moment includes:
after authorizing the first transfer request, determining whether the digital asset in the first blockchain account is being transferred according to other transfer requests at the current time.
Optionally, the digital asset transfer control method for a blockchain further includes:
and obtaining an authentication passing time for carrying out authorization authentication on the first transfer request.
Optionally, the authentication passing time is the world standard time of the preset area, and/or the ending time is the world standard time of the preset area.
Optionally, the digital asset transfer control method for a blockchain further includes:
Obtaining a second transfer request to transfer the digital asset in the first blockchain account to a third blockchain account;
obtaining an authentication passing time for carrying out authorization authentication on the second transfer request;
when the authentication passing time of the authorization authentication of the first transfer request and the authentication passing time of the authorization authentication of the second transfer request are the same, determining whether the sum of the transfer amount of the first transfer request and the transfer amount of the second transfer request is larger than the balance of the digital asset in the first blockchain account, and if so, performing a preset transaction cancellation operation to avoid digital asset transfer according to the first transfer request or the second transfer request.
Optionally, the determining whether the digital asset in the first blockchain account is being transferred according to other transfer requests at the current moment includes:
determining whether an authentication passing time for authorizing and authenticating other transfer requests is recorded at the current time, wherein the other transfer requests are requests for transferring digital assets in the first blockchain account;
if yes, judging whether the end time of digital asset transfer according to the transfer request is recorded for each transfer request recorded with the authentication passing time at the current time; if the end time is recorded, determining that the digital assets in the first blockchain account are not transferred according to other transfer requests at the current time; if the end time is not recorded, determining that the digital assets in the first blockchain account are being transferred according to other transfer requests at the current time;
And if the authentication passing time for carrying out authorization authentication on the other transfer requests is not recorded at the current time, determining that the digital asset in the first blockchain account is not transferred according to the other transfer requests at the current time.
Optionally, after the transferring the digital asset in the first blockchain account to the second blockchain account according to the first transfer request, the method further includes:
digital asset transfer information for the first blockchain account and the second blockchain account is synchronized into the blockchain nodes.
Optionally, the digital asset transfer control method for a blockchain further includes:
and when the digital assets in the first blockchain account are not transferred according to other transfer requests at the current moment, determining whether the transfer amount of the first transfer request is not greater than the balance of the digital assets in the first blockchain account, and if so, executing the step of transferring the digital assets in the first blockchain account to the second blockchain account according to the first transfer request.
Optionally, after the transferring the digital asset in the first blockchain account to the second blockchain account according to the first transfer request, the method further includes:
And updating the balance of the digital asset in the first blockchain account and the balance of the digital asset in the second blockchain account according to the digital asset transfer result.
A digital asset transfer control device for a blockchain, comprising: a first request obtaining unit, a transfer determining unit, a first transfer unit, and a second transfer unit;
the first request obtaining unit is used for obtaining a first transfer request for transferring the digital asset in the first blockchain account to the second blockchain account;
the transfer determining unit is used for determining whether the digital assets in the first blockchain account are being transferred according to other transfer requests at the current moment; if yes, triggering the first transfer unit, otherwise triggering the second transfer unit;
the first transfer unit is used for transferring the digital assets in the first blockchain account to the second blockchain account according to the first transfer request after the digital assets in the first blockchain account are transferred according to the other transfer requests;
the second transfer unit is used for transferring the digital assets in the first blockchain account to the second blockchain account according to the first transfer request.
A communication system, comprising: the system comprises service side equipment, a plurality of user side equipment and at least one blockchain node, wherein the service side equipment is in communication connection with the plurality of user side equipment, and the service side equipment is in communication connection with the at least one blockchain node; the service side equipment is a block chain node, or part of equipment resources of the service side equipment are constructed into a block chain node;
the service side equipment obtains a first transfer request which is sent by first user side equipment and used for transferring digital assets in a first blockchain account to a second blockchain account;
the service side device determines whether the digital asset in the first blockchain account is being transferred according to other transfer requests at the current moment; if yes, the service side equipment transfers the digital asset in the first blockchain account to the second blockchain account according to the first transfer request after the digital asset in the first blockchain account is transferred according to the other transfer requests; otherwise, the service side device transfers the digital asset in the first blockchain account to the second blockchain account according to the first transfer request;
After transferring the digital asset in the first blockchain account to the second blockchain account according to the first transfer request, the service side device synchronizes digital asset transfer information of the first blockchain account and the second blockchain account to each blockchain node in communication connection with the service side device.
By means of the technical scheme, the digital asset transfer control method, the device and the communication system for the blockchain can obtain a first transfer request for transferring the digital asset in the first blockchain account to the second blockchain account; determining whether the digital asset in the first blockchain account is being transferred according to other transfer requests at the current moment; if yes, after the transfer of the digital assets in the first blockchain account is finished according to other transfer requests, transferring the digital assets in the first blockchain account to a second blockchain account according to the first transfer request; otherwise, transferring the digital asset in the first blockchain account to the second blockchain account according to the first transfer request. Through the processing, the method and the device can enable only one action of transferring the digital assets in the blockchain account to the same blockchain account at the same moment, so that the double-flower problem is completely avoided. Meanwhile, the digital assets in the blockchain account can be directly transferred, so that the blockchain link point is not required to confirm the transfer process, and the computing resources and the communication resources of the blockchain network are saved.
The foregoing description is merely an overview of the technical solutions of the present disclosure, and may be implemented according to the content of the specification in order to make the technical means of the present disclosure more clearly understood, and in order to make the above and other objects, features and advantages of the present disclosure more clearly understood, the following specific embodiments of the present disclosure are specifically described.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the disclosure. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
fig. 1 shows a schematic diagram of a communication system provided by an embodiment of the present disclosure;
FIG. 2 illustrates a flow chart of a digital asset transfer control method for a blockchain provided by embodiments of the present disclosure;
FIG. 3 illustrates a flow chart of another digital asset transfer control method for a blockchain provided by embodiments of the present disclosure;
FIG. 4 illustrates a schematic diagram of a digital asset transfer control device for a blockchain provided in an embodiment of the present disclosure;
Fig. 5 shows a schematic structural diagram of a service-side device according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Alternatively, the digital asset transfer control method for blockchain provided in the embodiments of the present disclosure may be applied to the service-side device 001 shown in fig. 1, such as a server. The service-side device 001 can be communicatively connected to a plurality of user-side devices 002. Alternatively, the service-side device may be communicatively coupled to at least one blockchain node 003, or the service-side device is a blockchain node, or a portion of the device resources of the service-side device are configured as a blockchain node. Alternatively, the user side device communicatively connected to the service side device may be a blockchain node.
Optionally, client software may be installed in the user side device, and the user may use the client software to control the user side device to perform corresponding processing, and the user may also use the service of the service side device through the client software.
As shown in fig. 2, a digital asset transfer control method for a blockchain provided by an embodiment of the present disclosure may include:
s100, a first transfer request for transferring the digital asset in the first blockchain account to the second blockchain account is obtained.
Specifically, a digital asset transfer control method for a blockchain provided by an embodiment of the present disclosure is a blockchain technique of an account paradigm. The technique can save and maintain a plurality of blockchain accounts in the service-side device, and transfer digital assets in the blockchain accounts through the service-side device.
The blockchain technology of the account paradigm is a technology for combining an account system with a blockchain, the account system can carry out accounting on an account by utilizing a series of complicated debit and credit operations on accounting, after the account system is combined with the blockchain, the transaction can be conveniently controlled in service side equipment through the account operation, and the security of digital asset transfer can be improved through the security and the non-modifiable property of the blockchain.
The blockchain account in embodiments of the present disclosure may be a digital asset account set for a user, which may have an account identification and an authentication key. The user inputs the account identifier and the verification key into client software of the user side device, the client software sends the account identifier and the verification key to the service side device, the service side device verifies the account identifier and the verification key, and after verification, the user can acquire relevant information of the account from the service side device through the client software, such as balance of digital assets.
The digital assets in this embodiment are non-monetary assets that are owned or controlled by an enterprise or individual, exist in electronic data form, and are held in daily activities for sale or in the process of production.
Alternatively, the digital asset in this embodiment may be a legal virtual currency issued by a national authorized financial institution.
Optionally, the digital assets in this embodiment may be obtained by redeeming multiple types of legal assets (such as notes, physical assets, virtual assets, etc.) according to a certain redemption ratio.
The first transfer request may be issued by a first user-side device of a user having a first blockchain account. Specifically, the user may input the transfer amount and the transfer destination account (i.e., the second blockchain account) in the first user-side device, and then cause the first user-side device to issue the first transfer request through a confirmation operation of the transfer operation. The confirmation operation may be a clicking action of a virtual key for confirming the transfer.
The first transfer request sent by the first user side device may be sent to the service side device.
Optionally, a transfer request for transferring a digital asset in one blockchain account to another blockchain account may carry a variety of transaction information, such as: request time, transfer out of account, transfer into dealer, transfer amount, etc.
In other embodiments, the first transfer request may be issued after the first user-side device of the user having the first blockchain account signs the present transfer using the blockchain private key of the user.
Optionally, the service side device may pre-store the blockchain account of each user and the blockchain public key bound to the blockchain account respectively.
S200, determining whether the digital asset in the first blockchain account is being transferred according to other transfer requests at the current moment, if so, executing the step S300, otherwise, executing the step S400.
In particular, the present disclosure may record the end time of each digital asset transfer process. Thus, when a digital asset transfer is recorded by the present disclosure at its end time, the present disclosure may determine that the digital asset transfer has ended. Optionally, the present disclosure may also record the starting time of each digital asset transfer process. Alternatively, the start time may be an authentication passing time at which the transfer request is authorized to be authenticated.
Optionally, step S200 may specifically include:
after authorizing the first transfer request, it is determined whether the digital asset in the first blockchain account is being transferred according to other transfer requests at the current time.
After obtaining the first transfer request, the present disclosure may authorize the authentication thereof to determine its legitimacy. Specifically, the process of authorizing and authenticating the first transfer request according to the present disclosure may include:
transmitting the first transfer request to a second user side device of a user having a second blockchain account;
and obtaining the signature time of the second user side device for signing the first transfer request by using the blockchain private key of the user with the second blockchain account from the data returned by the second user side device, and determining the signature time as the authentication passing time.
When the signature time does not exist in the data returned by the second user side equipment, the fact that the authentication is not passed can be determined, and at the moment, preset transaction cancellation operation can be performed. The preset transaction cancellation operation may include at least one of:
first, discard the first transfer request;
second, freezing the first blockchain account to prevent transfer of digital assets in the first blockchain account;
Thirdly, sending a notice that the authentication fails to pass to the first user side device and/or the second user side device.
Optionally, as shown in fig. 3, step S200 may specifically include:
s210, determining whether an authentication passing time for authorizing and authenticating other transfer requests is recorded at the current time, wherein the other transfer requests are requests for transferring digital assets in a first blockchain account; if so, step S220 is performed. Otherwise, step S240 is performed.
The authentication passing time may be a signature time when the user side device signs by using a blockchain private key after transmitting the other transfer request to the user side device. Alternatively, the authentication passing time may be a time when signature times of the user side devices are obtained after the other transfer requests are transmitted to the user side devices. For example: the service side device sends a third transfer request to the third user side device, wherein the third transfer request is a request for transferring the digital asset in the first blockchain account. The third user-side device signs the third transfer request using the blockchain private key of its user and returns data including the signature time (time a). The present disclosure may determine the signature time as the authentication passing time and record the same, or may determine the time when the service side device obtains the signature time (time B, time B is later than time a) as the authentication passing time and record the same.
The above authentication pass time can be understood as the start time of digital asset transfer because both sides of digital asset transfer need to sign the transfer request with their blockchain private keys before digital asset transfer is performed according to the transfer request.
Optionally, the method shown in fig. 2 may further include: an authentication pass time at which the first transfer request is authorized is obtained.
S220, judging whether the end time of digital asset transfer according to the transfer request is recorded for each transfer request recorded with the authentication passing time at the current time; if the end times are all recorded, step S240 is performed. If the end times are not recorded, step S230 is performed.
S230, determining that the digital asset in the first blockchain account is being transferred according to other transfer requests at the current moment.
S240, determining that the digital asset in the first blockchain account is not transferred according to other transfer requests at the current moment.
In other embodiments, the digital asset transfer control method for blockchain provided by the present disclosure may further include:
when the digital assets in the first blockchain account are not transferred according to other transfer requests at the current moment, determining whether the transfer amount of the first transfer request is not greater than the balance of the digital assets in the first blockchain account, and if so, executing the step of transferring the digital assets in the first blockchain account to the second blockchain account according to the first transfer request. By comparing the balance and the transfer amount, the situation that the balance is insufficient only when the digital asset is transferred can be avoided, and invalid transfer operation is avoided.
Optionally, the recorded moments may be stored in the service side device, and further, the recorded moments and/or signature results may be synchronized into the blockchain nodes.
S300, after the digital asset in the first blockchain account is transferred according to other transfer requests, transferring the digital asset in the first blockchain account to a second blockchain account according to the first transfer request.
It is to be appreciated that when each other transfer request having an authentication pass time recorded has an end time recorded, it can be determined that the transfer of the digital asset to the first blockchain account is ended in accordance with the other transfer request.
S400, transferring the digital assets in the first blockchain account to a second blockchain account according to the first transfer request.
The above-described process of transferring the digital asset in the first blockchain account to the second blockchain account in accordance with the first transfer request may be performed at the service-side device. The service-side device may decrease the digital assets in the first blockchain account and correspondingly increase the digital assets in the second blockchain account to complete the digital asset transfer.
Alternatively, the absolute value of the decrease in the digital asset in the first blockchain account and the absolute value of the increase in the digital asset in the second blockchain account may or may not be equal. When not equal, the difference portion of the two may be a fee such as a commission fee associated with the digital asset transfer.
Optionally, after transferring the digital asset in the first blockchain account to the second blockchain account according to the first transfer request, the present disclosure may further update the balance of the digital asset in the first blockchain account and the balance of the digital asset in the second blockchain account according to the result of the digital asset transfer.
Alternatively, the present disclosure may conduct balance updates for digital assets of the associated blockchain account immediately after each digital asset transfer.
Optionally, the present disclosure may further synchronize digital asset transfer information of the first blockchain account and the second blockchain account into each blockchain node communicatively connected to the service-side device after transferring the digital asset in the first blockchain account to the second blockchain account according to the first transfer request.
The digital asset transfer information of the first blockchain account and the second blockchain account is synchronized into each blockchain node, so that the digital asset transfer is recorded into the block, full-network synchronization of the digital asset transfer recording is completed, and data consistency of all participants is ensured.
The digital asset transfer control method for the blockchain can obtain a first transfer request for transferring the digital asset in the first blockchain account to the second blockchain account; determining whether the digital asset in the first blockchain account is being transferred according to other transfer requests at the current moment; if yes, after the transfer of the digital assets in the first blockchain account is finished according to other transfer requests, transferring the digital assets in the first blockchain account to a second blockchain account according to the first transfer request; otherwise, transferring the digital asset in the first blockchain account to the second blockchain account according to the first transfer request. Through the processing, the method and the device can enable only one action of transferring the digital assets in the blockchain account to the same blockchain account at the same moment, so that the double-flower problem is completely avoided. Meanwhile, the digital assets in the blockchain account can be directly transferred, so that the blockchain link point is not required to confirm the transfer process, and the computing resources and the communication resources of the blockchain network are saved.
Optionally, in other embodiments, after transferring the digital asset in the first blockchain account to the second blockchain account according to the first transfer request in steps S300 and/or S400, the method shown in fig. 2 may further include:
the end time of the digital asset transfer is recorded.
Optionally, the authentication passing time in the present disclosure may be a universal time (UTC, coordinated Universal Time) of a preset area, and/or the ending time in the present disclosure may be a universal time of a preset area. For example: the authentication passing time and ending time in the present disclosure may be the world standard time of beijing.
The present disclosure may prevent the double-flower problem by the method provided by the embodiment of fig. 2 when at least two transfer requests for transferring digital assets of the same blockchain account each complete authorization authentication at different times.
When at least two transfer requests for transferring digital assets of the same blockchain account each complete authorization authentication at the same time, the present disclosure may prevent the double-flower problem by:
obtaining a second transfer request to transfer the digital asset in the first blockchain account to a third blockchain account;
Obtaining an authentication passing time for carrying out authorization authentication on the second transfer request;
when the authentication passing time of authorizing and authenticating the first transfer request and the authentication passing time of authorizing and authenticating the second transfer request are the same, determining whether the sum of the transfer amount of the first transfer request and the transfer amount of the second transfer request is larger than the balance of the digital asset in the first blockchain account, and if so, performing a preset transaction cancellation operation to avoid digital asset transfer according to the first transfer request or the second transfer request.
It will be appreciated that when the sum of the transfer amount of the first transfer request and the transfer amount of the second transfer request is greater than the balance of the digital asset in the first blockchain account, it is stated that the digital asset in the first blockchain account cannot simultaneously satisfy the digital asset transfer according to the first transfer request and the digital asset transfer according to the second transfer request, which is at risk of excess transfer.
When the sum of the transfer amount of the first transfer request and the transfer amount of the second transfer request is not greater than the balance of the digital asset in the first blockchain account, it is stated that the digital asset in the first blockchain account may satisfy both the digital asset transfer according to the first transfer request and the digital asset transfer according to the second transfer request. The present disclosure may now transfer the digital asset in accordance with the first transfer request and the second transfer request simultaneously or sequentially.
Wherein the preset transaction cancellation operation may include at least one of:
first, discard the first transfer request and the second transfer request;
second, freezing the first blockchain account to prevent transfer of digital assets in the first blockchain account;
and thirdly, sending an excess transfer notification to the first user side device.
Corresponding to the above method embodiments, the present disclosure also provides a digital asset transfer control apparatus for a blockchain. As shown in fig. 4, a digital asset transfer control apparatus for a blockchain provided in an embodiment of the present disclosure may include: a first request obtaining unit 100, a transfer determining unit 200, a first transfer unit 300, and a second transfer unit 400;
a first request obtaining unit 100 for obtaining a first transfer request for transferring the digital asset in the first blockchain account to the second blockchain account;
a transfer determination unit 200 for determining whether the digital asset in the first blockchain account is being transferred according to other transfer requests at the current time; if yes, the first transfer unit 300 is triggered, otherwise the second transfer unit 400 is triggered;
the first transferring unit 300 is configured to transfer the digital asset in the first blockchain account to the second blockchain account according to the first transferring request after the digital asset in the first blockchain account is transferred according to other transferring requests;
The second transferring unit 400 is configured to transfer the digital asset in the first blockchain account to the second blockchain account according to the first transfer request.
In other embodiments, the apparatus shown in fig. 4 may further include: and the end time recording unit is used for recording the end time of the digital asset transfer after the device shown in the figure 4 transfers the digital asset in the first blockchain account to the second blockchain account according to the first transfer request.
In other embodiments, the transfer determining unit 200 may be specifically configured to:
after authorizing the first transfer request, it is determined whether the digital asset in the first blockchain account is being transferred according to other transfer requests at the current time.
On this basis, the apparatus shown in fig. 4 may further include:
a first passing time obtaining unit configured to obtain an authentication passing time at which the first transfer request is authorized to be authenticated.
Optionally, the authentication passing time in the embodiment of the present disclosure may be a world standard time of a preset area, and/or the ending time in the embodiment of the present disclosure may be a world standard time of a preset area.
Optionally, the apparatus shown in fig. 4 may further include: a second request obtaining unit, a second pass time obtaining unit, a first balance comparing unit and a transaction canceling unit,
A second request obtaining unit for obtaining a second transfer request for transferring the digital asset in the first blockchain account to a third blockchain account;
a second pass time obtaining unit for obtaining an authentication pass time for performing authorization authentication on the second transfer request;
the first balance comparison unit is used for determining whether the sum of the transfer amount of the first transfer request and the transfer amount of the second transfer request is larger than the balance of the digital asset in the first blockchain account or not when the authentication passing time for carrying out authorization authentication on the first transfer request is the same as the authentication passing time for carrying out authorization authentication on the second transfer request, and triggering the transaction cancellation unit if the sum of the transfer amount of the first transfer request and the transfer amount of the second transfer request is larger than the balance of the digital asset in the first blockchain account;
and the transaction canceling unit is used for performing preset transaction canceling operation so as to avoid digital asset transfer according to the first transfer request or the second transfer request.
In other embodiments, the transfer determining unit 200 may specifically include: a time determination subunit, a first transition determination subunit, and a second transition determination subunit,
a time determining subunit, configured to determine whether an authentication passing time for performing authorization authentication on other transfer requests is recorded at a current time, where the other transfer requests are requests for transferring a digital asset in the first blockchain account; if yes, triggering a time judging subunit; if the authentication passing time for carrying out authorization authentication on other transfer requests is not recorded at the current time, triggering a first transfer determination subunit;
A time judging subunit, configured to judge whether an end time of transferring the digital asset according to the transfer request is recorded for each transfer request recorded with a time when authentication passes at the current time; if the end time is recorded, triggering a first transfer determination subunit; if the end time is not recorded, triggering a second transfer determination subunit;
a first transfer determination subunit, configured to determine that the digital asset in the first blockchain account is not transferred according to other transfer requests at the current time;
and the second transfer determination subunit is used for determining that the digital asset in the first blockchain account is being transferred according to other transfer requests at the current moment.
Optionally, the apparatus shown in fig. 4 may further include: and the information synchronization unit is used for synchronizing the digital asset transfer information of the first blockchain account and the second blockchain account into each blockchain node after transferring the digital asset in the first blockchain account to the second blockchain account according to the first transfer request.
Optionally, the apparatus shown in fig. 4 may further include: and a second balance comparing unit, configured to determine, when the transfer determining unit 200 determines that the digital asset in the first blockchain account is not transferred according to other transfer requests at the current time, whether the transfer amount of the first transfer request is not greater than the balance of the digital asset in the first blockchain account, and if so, trigger the second transferring unit 400.
Optionally, the apparatus shown in fig. 4 may further include: and the balance updating unit is used for updating the balance of the digital asset in the first blockchain account and the balance of the digital asset in the second blockchain account according to the result of the digital asset transfer after the digital asset in the first blockchain account is transferred to the second blockchain account according to the first transfer request.
The digital asset transfer control device for the blockchain can obtain a first transfer request for transferring the digital asset in the first blockchain account to the second blockchain account; determining whether the digital asset in the first blockchain account is being transferred according to other transfer requests at the current moment; if yes, after the transfer of the digital assets in the first blockchain account is finished according to other transfer requests, transferring the digital assets in the first blockchain account to a second blockchain account according to the first transfer request; otherwise, transferring the digital asset in the first blockchain account to the second blockchain account according to the first transfer request. Through the processing, the method and the device can enable only one action of transferring the digital assets in the blockchain account to the same blockchain account at the same moment, so that the double-flower problem is completely avoided. Meanwhile, the digital assets in the blockchain account can be directly transferred, so that the blockchain link point is not required to confirm the transfer process, and the computing resources and the communication resources of the blockchain network are saved.
As shown in fig. 1, the embodiment of the present disclosure further provides a communication system for a digital asset transfer control method of a blockchain, which may include: the service side device 001, the plurality of user side devices 002 and the at least one blockchain node 003, the service side device 001 is in communication connection with the plurality of user side devices 002, and the service side device 001 is in communication connection with the at least one blockchain node 003; the service side device 001 is a blockchain node, or part of device resources of the service side device 001 are constructed as a blockchain node;
the service side device 001 obtains a first transfer request sent by the first user side device for transferring the digital asset in the first blockchain account to the second blockchain account;
the service side device 001 determines whether the digital asset in the first blockchain account is being transferred according to other transfer requests at the current moment; if yes, the service side device 001 transfers the digital asset in the first blockchain account to the second blockchain account according to the first transfer request after the digital asset in the first blockchain account is transferred according to other transfer requests; otherwise, the service side device 001 transfers the digital asset in the first blockchain account to the second blockchain account according to the first transfer request;
After transferring the digital asset in the first blockchain account to the second blockchain account according to the first transfer request, the server-side device 001 synchronizes digital asset transfer information of the first blockchain account and the second blockchain account into each blockchain node communicatively connected to the server-side device.
The digital asset transfer control device for a blockchain provided by the embodiment of the disclosure includes a processor and a memory, wherein the first request obtaining unit, the transfer determining unit, the first transfer unit, the second transfer unit and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel may be provided with one or more kernel parameters to control digital asset transfer to avoid double-flower problems.
The present disclosure provides a storage medium having a program stored thereon, which when executed by a processor, implements the digital asset transfer control method for blockchains provided by the embodiments of the present disclosure.
The embodiment of the disclosure provides a processor for running a program, wherein the program runs to execute the digital asset transfer control method for the blockchain.
As shown in fig. 5, the embodiment of the present disclosure provides a service-side device 70, where the service-side device 70 includes at least one processor 701, and at least one memory 702 and a bus 703 connected to the processor 701; wherein, the processor 701 and the memory 702 complete communication with each other through the bus 703; the processor 701 is operable to invoke the program instructions in the memory 702 to perform the digital asset transfer control method for blockchains described above. The service-side device 70 herein may be a server, PC, PAD, cell phone, etc.
The present disclosure also provides a computer program product adapted to perform a program that, when executed on a data processing apparatus, initializes some or all of the steps in a digital asset transfer control method for blockchains provided by embodiments of the present disclosure.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, the device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer 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 disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present disclosure and is not intended to limit the present disclosure. Various modifications and variations of this disclosure will be apparent to those skilled in the art. Any modifications, equivalent substitutions, improvements, or the like, which are within the spirit and principles of the present disclosure, are intended to be included within the scope of the claims of the present disclosure.

Claims (11)

1. A digital asset transfer control method for a blockchain, comprising:
obtaining a first transfer request to transfer the digital asset in the first blockchain account to a second blockchain account;
determining whether the digital asset in the first blockchain account is being transferred according to other transfer requests at the current moment;
if yes, after the digital asset in the first blockchain account is transferred according to the other transfer requests, transferring the digital asset in the first blockchain account to the second blockchain account according to the first transfer requests;
otherwise, transferring the digital asset in the first blockchain account to the second blockchain account according to the first transfer request;
the determining whether the digital asset in the first blockchain account is being transferred according to other transfer requests at the current time includes:
determining whether an authentication passing time for authorizing and authenticating other transfer requests is recorded at the current time, wherein the other transfer requests are requests for transferring digital assets in the first blockchain account;
if yes, judging whether the end time of digital asset transfer according to the transfer request is recorded for each transfer request recorded with the authentication passing time at the current time; if the end time is recorded, determining that the digital assets in the first blockchain account are not transferred according to other transfer requests at the current time; if the end time is not recorded, determining that the digital assets in the first blockchain account are being transferred according to other transfer requests at the current time;
And if the authentication passing time for carrying out authorization authentication on the other transfer requests is not recorded at the current time, determining that the digital asset in the first blockchain account is not transferred according to the other transfer requests at the current time.
2. The method of claim 1, wherein after the transferring the digital asset in the first blockchain account to the second blockchain account in accordance with the first transfer request, the method further comprises:
the end time of the digital asset transfer is recorded.
3. The method of claim 1, wherein the determining whether the digital asset in the first blockchain account is being transferred according to other transfer requests at the current time further comprises:
after authorizing the first transfer request, determining whether the digital asset in the first blockchain account is being transferred according to other transfer requests at the current time.
4. A method according to claim 3, further comprising:
and obtaining an authentication passing time for carrying out authorization authentication on the first transfer request.
5. The method of claim 4, wherein the authentication pass time is a world standard time of a preset area and/or the end time is a world standard time of a preset area.
6. The method as recited in claim 1, further comprising:
obtaining a second transfer request to transfer the digital asset in the first blockchain account to a third blockchain account;
obtaining an authentication passing time for carrying out authorization authentication on the second transfer request;
when the authentication passing time of the authorization authentication of the first transfer request and the authentication passing time of the authorization authentication of the second transfer request are the same, determining whether the sum of the transfer amount of the first transfer request and the transfer amount of the second transfer request is larger than the balance of the digital asset in the first blockchain account, and if so, performing a preset transaction cancellation operation to avoid digital asset transfer according to the first transfer request or the second transfer request.
7. The method of claim 1, wherein after the transferring the digital asset in the first blockchain account to the second blockchain account in accordance with the first transfer request, the method further comprises:
digital asset transfer information for the first blockchain account and the second blockchain account is synchronized into the blockchain nodes.
8. The method as recited in claim 1, further comprising:
and when the digital assets in the first blockchain account are not transferred according to other transfer requests at the current moment, determining whether the transfer amount of the first transfer request is not greater than the balance of the digital assets in the first blockchain account, and if so, executing the step of transferring the digital assets in the first blockchain account to the second blockchain account according to the first transfer request.
9. The method of claim 1, wherein after the transferring the digital asset in the first blockchain account to the second blockchain account in accordance with the first transfer request, the method further comprises:
and updating the balance of the digital asset in the first blockchain account and the balance of the digital asset in the second blockchain account according to the digital asset transfer result.
10. A digital asset transfer control device for a blockchain, comprising: a first request obtaining unit, a transfer determining unit, a first transfer unit, and a second transfer unit;
the first request obtaining unit is used for obtaining a first transfer request for transferring the digital asset in the first blockchain account to the second blockchain account;
The transfer determining unit is used for determining whether the digital assets in the first blockchain account are being transferred according to other transfer requests at the current moment; if yes, triggering the first transfer unit, otherwise triggering the second transfer unit;
the first transfer unit is used for transferring the digital assets in the first blockchain account to the second blockchain account according to the first transfer request after the digital assets in the first blockchain account are transferred according to the other transfer requests;
the second transfer unit is used for transferring the digital assets in the first blockchain account to the second blockchain account according to the first transfer request;
the transfer determination unit is specifically configured to:
determining whether an authentication passing time for authorizing and authenticating other transfer requests is recorded at the current time, wherein the other transfer requests are requests for transferring digital assets in the first blockchain account;
if yes, judging whether the end time of digital asset transfer according to the transfer request is recorded for each transfer request recorded with the authentication passing time at the current time; if the end time is recorded, determining that the digital assets in the first blockchain account are not transferred according to other transfer requests at the current time; if the end time is not recorded, determining that the digital assets in the first blockchain account are being transferred according to other transfer requests at the current time;
And if the authentication passing time for carrying out authorization authentication on the other transfer requests is not recorded at the current time, determining that the digital asset in the first blockchain account is not transferred according to the other transfer requests at the current time.
11. A communication system, comprising: the system comprises service side equipment, a plurality of user side equipment and at least one blockchain node, wherein the service side equipment is in communication connection with the plurality of user side equipment, and the service side equipment is in communication connection with the at least one blockchain node; the service side equipment is a block chain node, or part of equipment resources of the service side equipment are constructed into a block chain node;
the service side equipment obtains a first transfer request which is sent by first user side equipment and used for transferring digital assets in a first blockchain account to a second blockchain account;
the service side device determines whether the digital asset in the first blockchain account is being transferred according to other transfer requests at the current moment; if yes, the service side equipment transfers the digital asset in the first blockchain account to the second blockchain account according to the first transfer request after the digital asset in the first blockchain account is transferred according to the other transfer requests; otherwise, the service side device transfers the digital asset in the first blockchain account to the second blockchain account according to the first transfer request;
After transferring the digital asset in the first blockchain account to the second blockchain account according to the first transfer request, the service side device synchronizes digital asset transfer information of the first blockchain account and the second blockchain account to each blockchain node in communication connection with the service side device;
the service side device determining whether the digital asset in the first blockchain account is being transferred according to other transfer requests at the current moment includes:
the service side equipment determines whether the authentication passing time for carrying out authorization authentication on other transfer requests is recorded at the current time, wherein the other transfer requests are requests for transferring digital assets in the first blockchain account;
if yes, judging whether the end time of digital asset transfer according to the transfer request is recorded for each transfer request recorded with the authentication passing time at the current time; if the end time is recorded, determining that the digital assets in the first blockchain account are not transferred according to other transfer requests at the current time; if the end time is not recorded, determining that the digital assets in the first blockchain account are being transferred according to other transfer requests at the current time;
And if the authentication passing time for carrying out authorization authentication on the other transfer requests is not recorded at the current time, determining that the digital asset in the first blockchain account is not transferred according to the other transfer requests at the current time.
CN202010788022.4A 2020-08-07 2020-08-07 Digital asset transfer control method, device and communication system for blockchain Active CN111915313B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010788022.4A CN111915313B (en) 2020-08-07 2020-08-07 Digital asset transfer control method, device and communication system for blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010788022.4A CN111915313B (en) 2020-08-07 2020-08-07 Digital asset transfer control method, device and communication system for blockchain

Publications (2)

Publication Number Publication Date
CN111915313A CN111915313A (en) 2020-11-10
CN111915313B true CN111915313B (en) 2024-03-22

Family

ID=73282962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010788022.4A Active CN111915313B (en) 2020-08-07 2020-08-07 Digital asset transfer control method, device and communication system for blockchain

Country Status (1)

Country Link
CN (1) CN111915313B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018120057A1 (en) * 2016-12-30 2018-07-05 深圳前海达闼云端智能科技有限公司 Currency management method and system based on block chain
CN109615516A (en) * 2018-12-05 2019-04-12 腾讯科技(深圳)有限公司 Resource transfers method, apparatus, electronic equipment and storage medium
CN109670801A (en) * 2018-12-10 2019-04-23 华中科技大学 A kind of digital encryption currency transfer method for block chain
CN109948370A (en) * 2018-12-29 2019-06-28 弦子科技(北京)有限公司 A kind of method for processing business based on block chain, device and electronic equipment
CN111213168A (en) * 2019-09-11 2020-05-29 阿里巴巴集团控股有限公司 System and method for digital asset transfer
CN111311209A (en) * 2020-02-03 2020-06-19 腾讯科技(深圳)有限公司 Cross-block-chain data processing method, device, equipment and computer storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018120057A1 (en) * 2016-12-30 2018-07-05 深圳前海达闼云端智能科技有限公司 Currency management method and system based on block chain
CN109615516A (en) * 2018-12-05 2019-04-12 腾讯科技(深圳)有限公司 Resource transfers method, apparatus, electronic equipment and storage medium
CN109670801A (en) * 2018-12-10 2019-04-23 华中科技大学 A kind of digital encryption currency transfer method for block chain
CN109948370A (en) * 2018-12-29 2019-06-28 弦子科技(北京)有限公司 A kind of method for processing business based on block chain, device and electronic equipment
CN111213168A (en) * 2019-09-11 2020-05-29 阿里巴巴集团控股有限公司 System and method for digital asset transfer
CN111311209A (en) * 2020-02-03 2020-06-19 腾讯科技(深圳)有限公司 Cross-block-chain data processing method, device, equipment and computer storage medium

Also Published As

Publication number Publication date
CN111915313A (en) 2020-11-10

Similar Documents

Publication Publication Date Title
CN108898389B (en) Content verification method and device based on block chain and electronic equipment
US20170221053A1 (en) Digital asset conversion
CN109102269B (en) Transfer method and device based on block chain, block chain node and storage medium
US12014337B2 (en) Information transaction infrastructure
CN109614813B (en) Privacy transaction method and device based on block chain and application method and device thereof
US11539526B2 (en) Method and apparatus for managing user authentication in a blockchain network
CN110597916B (en) Data processing method and device based on block chain, storage medium and terminal
CN111383114A (en) Asset information management method and device based on block chain
CN111461691B (en) Flow statistical system, method and device based on block chain
CN111324661A (en) User cooperation method, device and medium based on block chain
CN111402033A (en) Asset information management method and device based on block chain
US20220067125A1 (en) Method for distributing certificate of right to use digital content, and computer program stored in medium in order to carry out method
KR102160004B1 (en) P2P coupon issue and gift method based on blockchain
CN110599176B (en) Block chain-based data processing method and device, storage medium and node equipment
WO2023204954A1 (en) Offline cryptocurrency transactions
CN111915313B (en) Digital asset transfer control method, device and communication system for blockchain
US20230298002A1 (en) Digital wallet tracing engine
CN110619566A (en) On-chain pledge asset return system and method through on-chain digital currency settlement
CN116451280A (en) Asset management method and device based on blockchain
US20230328058A1 (en) System and method for authenticating interactions with dynamically varying digital resources linked to resource distribution devices
KR102376783B1 (en) The blockchain-based transaction history confirmation system
CN113609519A (en) Timing method, device and storage medium based on block chain
JP2022032116A (en) Data migration method, data migration system, and node
US20230259604A1 (en) System and method for authenticating users via pattern based digital resources on a distributed development platform
US20240104642A1 (en) Apparatus for processing non-fungible token

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant