CN111915313A - Digital asset transfer control method and device for block chain and communication system - Google Patents

Digital asset transfer control method and device for block chain and communication system Download PDF

Info

Publication number
CN111915313A
CN111915313A CN202010788022.4A CN202010788022A CN111915313A CN 111915313 A CN111915313 A CN 111915313A CN 202010788022 A CN202010788022 A CN 202010788022A CN 111915313 A CN111915313 A CN 111915313A
Authority
CN
China
Prior art keywords
transfer
blockchain account
digital assets
blockchain
transfer request
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.)
Granted
Application number
CN202010788022.4A
Other languages
Chinese (zh)
Other versions
CN111915313B (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

Images

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

Abstract

The present disclosure provides a digital asset transfer control method, apparatus and communication system for blockchains, which 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 assets in the first blockchain account are being transferred according to other transfer requests at the current moment; if yes, after the digital assets in the first blockchain account are transferred 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, the digital assets in the first blockchain account are transferred to the second blockchain account according to the first transfer request. The method and the system have the advantages that only one action of transferring the digital assets in the blockchain account can be carried out on the same blockchain account at the same time, so that the problem of double spending is completely avoided. The present disclosure also saves computational and communication resources of the blockchain network.

Description

Digital asset transfer control method and device for block chain and communication system
Technical Field
The present disclosure relates to the field of blockchain technologies, and in particular, to a digital asset transfer control method and apparatus for a blockchain, and a communication system.
Background
The Double blossom problem (Double painting) refers to a phenomenon in which a piece of digital assets is repeatedly used in a transaction. Since the digital asset is a binary code and is data that can be copied, there are cases where a piece of digital asset is reused.
The general-certificate-based blockchain technology is a technology combining general certificates, intelligent contracts and consensus algorithms, wherein the general certificates, the intelligent contracts and the consensus algorithms are all located in a consensus boundary, and the general certificates and the intelligent contracts are in inseparable contact and the consensus algorithms ensure a distrust environment in the consensus boundary.
The existing generic blockchain techniques (such as the blockchain technique used by bitcoin) prevent the double-flower problem by continuously validating the transaction, namely: each transaction in a plurality of transactions initiated at the same time or initiated successively can be completed after 6 times of confirmation by a miner. When there are two transactions involving the same digital asset, the transaction that was first confirmed 6 times will proceed normally and complete the transaction. The transaction that was first confirmed 6 times may result in the failure of other transactions involving the same digital asset (other transactions may only be confirmed 5 times), thus avoiding the double-flower problem.
It can be seen that while the existing generalised paradigm blockchain technique can avoid the double flower problem, each transaction involving the same digital asset is validated. Since each validation takes on the computational and communication resources of the blockchain network, the validation that the failed transaction has been made becomes "useless," wasting the computational and communication resources of the blockchain network.
Disclosure of Invention
In view of the above problems, the present disclosure provides a digital asset transfer control method, device and communication system for a blockchain, which overcome or at least partially solve the above problems, and the technical solutions are as follows:
a digital asset transfer control method for a blockchain, comprising:
obtaining a first transfer request to transfer a digital asset in a first blockchain account to a second blockchain account;
determining whether the digital assets in the first blockchain account are being transferred according to other transfer requests at the current moment;
if yes, after the digital assets in the first blockchain account are transferred according to the other transfer requests, transferring the digital assets in the first blockchain account to the second blockchain account according to the first transfer request;
otherwise, 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 assets 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 assets in the first blockchain account are being transferred according to other transfer requests at the current time includes:
after the first transfer request is authorized and authenticated, determining whether the digital assets in the first blockchain account are being transferred according to other transfer requests at the current moment.
Optionally, the above method for controlling digital asset transfer for a blockchain further includes:
and obtaining the authentication passing moment for performing authorization authentication on the first transfer request.
Optionally, the authentication passing time is the world standard time of the preset area, and/or the end time is the world standard time of the preset area.
Optionally, the above method for controlling digital asset transfer for a blockchain further includes:
obtaining a second transfer request to transfer the digital assets in the first blockchain account to a third blockchain account;
obtaining an authentication passing moment for performing authorization authentication on the second transfer request;
when the authentication passing moment for performing authorization authentication on the first transfer request is the same as the authentication passing moment for performing authorization authentication on the second transfer request, determining whether 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 assets in the first blockchain account, and if so, performing preset transaction cancellation operation to avoid performing digital asset transfer according to the first transfer request or the second transfer request.
Optionally, the determining whether the digital assets in the first blockchain account are being transferred according to other transfer requests at the current time includes:
determining whether an authentication passing moment for performing authorization authentication on other transfer requests is recorded at the current moment, wherein the other transfer requests are requests for transferring the digital assets in the first blockchain account;
if yes, judging whether the current moment records the end moment of transferring the digital assets according to the transfer request for each transfer request recorded with the authentication passing moment; if the ending 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 ending time is not recorded, determining that the digital assets in the first blockchain account are transferred according to other transfer requests at the current time;
and if the authentication passing time for performing authorization authentication on the other transfer requests is not recorded at the current time, determining that the digital assets in the first blockchain account are not transferred according to the other transfer requests at the current time.
Optionally, after the transferring the digital assets in the first blockchain account to the second blockchain account according to the first transfer request, the method further comprises:
synchronizing the digital asset transfer information of the first blockchain account and the second blockchain account into each blockchain node.
Optionally, the above method for controlling digital asset transfer for a blockchain further includes:
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 larger 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 assets in the first blockchain account to the second blockchain account according to the first transfer request, the method further includes:
updating the balance of the digital assets in the first blockchain account and the balance of the digital assets in the second blockchain account according to the result of the digital asset transfer.
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 assets in the first blockchain account to the second blockchain account;
the transfer determining unit is configured to determine 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 configured to transfer the digital assets in the first blockchain account to the second blockchain account according to the first transfer request after the transfer of the digital assets in the first blockchain account according to the other transfer requests is completed;
the second transfer unit is configured to transfer 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 a service side device, a plurality of user side devices and at least one block chain node, wherein the service side device is in communication connection with the user side devices, and the service side device is in communication connection with the block chain node; the service side device is a block chain node, or part of device resources of the service side device 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 the digital assets in the first blockchain account to a second blockchain account;
the service side equipment determines whether the digital assets in the first block chain account are transferred according to other transfer requests at the current moment; if so, the service-side device transfers the digital assets in the first blockchain account to the second blockchain account according to the first transfer request after the transfer of the digital assets in the first blockchain account according to the other transfer requests is finished; otherwise, the service-side device transfers the digital assets in the first blockchain account to the second blockchain account according to the first transfer request;
after the service-side device transfers the digital assets in the first blockchain account to the second blockchain account according to the first transfer request, synchronizing the 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 digital asset transfer control device and the digital asset transfer control communication system for the blockchain, provided by the disclosure, can obtain a first transfer request for transferring the digital assets in the first blockchain account to the second blockchain account; determining whether the digital assets in the first blockchain account are being transferred according to other transfer requests at the current moment; if yes, after the digital assets in the first blockchain account are transferred 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, the digital assets in the first blockchain account are transferred to the second blockchain account according to the first transfer request. Through the processing, the method and the system can enable only one action of transferring the digital assets in the blockchain account to the same blockchain account at the same time, so that the problem of double spending is completely avoided. Meanwhile, the digital assets in the blockchain account can be directly transferred, so that the transfer process does not need to be confirmed by the blockchain link points, and the computing resources and the communication resources of the blockchain network are saved.
The foregoing description is only an overview of the technical solutions of the present disclosure, and the embodiments of the present disclosure are described below in order to make the technical means of the present disclosure more clearly understood and to make the above and other objects, features, and advantages of the present disclosure more clearly understandable.
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 refer to like parts throughout the drawings. In the drawings:
fig. 1 illustrates 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 an embodiment of the present disclosure;
FIG. 3 illustrates a flow chart of another method for block chain digital asset transfer control provided by an embodiment of the present disclosure;
FIG. 4 is a schematic structural diagram of a digital asset transfer control device for a blockchain according to an embodiment of the present disclosure;
fig. 5 shows a schematic structural diagram of a service-side device provided by 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 the blockchain provided by the embodiment 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 may be communicatively connected to a plurality of user-side devices 002. Optionally, the service-side device may be communicatively connected to at least one blockchain node 003, or the service-side device is a blockchain node, or a part of device resources of the service-side device is constructed as a blockchain node. Optionally, the user side device in communication connection with the service side device may also be a blockchain node.
Optionally, the user-side device may have client software installed therein, 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 according to an embodiment of the present disclosure may include:
s100, a first transfer request for transferring the digital assets in the first blockchain account to the second blockchain account is obtained.
Specifically, the digital asset transfer control method for a blockchain provided by the embodiment of the present disclosure is a blockchain technology in an account paradigm. The technology 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 block chain technology of the account paradigm is a technology for combining an account system and a block chain, the account system can carry out bookkeeping on accounts by utilizing a series of complex debit and credit operations in accounting, after the account system is combined with the block chain, transactions 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 irreparable modification of the block chain.
The blockchain account in the embodiments of the present disclosure may be a digital asset account configured for a user, and the account may have an account identifier 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 the verification is passed, the user can obtain relevant information of the account, such as balance of the digital asset, from the service side device through the client software.
The digital assets in the present embodiment refer to non-monetary assets owned or controlled by an enterprise or an individual, in the form of electronic data, held in daily activities for sale or in the process of production.
Alternatively, the digital assets in this embodiment may be legal virtual currency issued by a nationally authorized financial institution.
Optionally, the digital assets in this embodiment may be obtained by redeeming a plurality of types of legal assets (such as tickets, physical assets, virtual assets, and the like) according to a certain redemption rate.
The first transfer request may be issued by a first user-side device of a user owning the first blockchain account. Specifically, the user may input a transfer amount and a transfer destination account (i.e., a 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 click action on a virtual key for transfer confirmation.
The first transfer request sent by the first user-side device may be sent to the service-side device.
Optionally, the transfer request for transferring the digital assets in one blockchain account to another blockchain account may carry various transaction information, such as: request time, transfer out account, transfer into banker, transfer amount, etc.
In other embodiments, the first transfer request may be issued by a first user-side device of a user owning the first blockchain account signing the transfer with the user's blockchain private key.
Optionally, the service-side device may pre-store a blockchain account of each user and a blockchain public key bound to the blockchain account.
S200, determining whether the digital assets in the first blockchain account are 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. In this way, the present disclosure may determine that a digital asset transfer has ended when it is recorded by the present disclosure for its ending time. Optionally, the present disclosure may also record the start time of each digital asset transfer process. Optionally, the starting time may be an authentication passing time for performing authorization authentication on the transfer request.
Optionally, step S200 may specifically include:
after the authorization authentication is performed on the first transfer request, it is determined whether the digital assets in the first blockchain account are being transferred according to other transfer requests at the current time.
The present disclosure, upon obtaining the first transfer request, may authorize authentication thereof to determine validity thereof. Specifically, the process of performing authorization authentication on the first transfer request in the present disclosure may include:
sending the first transfer request to second user side equipment of a user with a second block chain account;
and obtaining the signature time when the second user side equipment signs the first transfer request by using the block chain private key of the user with the second block chain account from the data returned by the second user side equipment, and determining the signature time as the authentication passing time.
When the data returned by the second user side device does not have the signature moment, it can be determined that the authentication fails, and at this time, a preset transaction cancellation operation can be performed. The preset transaction cancellation operation may include at least one of the following operations:
first, discarding the first transfer request;
second, blocking the first blockchain account to prevent transfer of the digital assets in the first blockchain account;
and thirdly, sending a notice that the authentication is not passed to the first user side equipment and/or the second user side equipment.
Optionally, as shown in fig. 3, step S200 may specifically include:
s210, determining whether an authentication passing moment for performing authorization authentication on other transfer requests is recorded at the current moment, wherein the other transfer requests are requests for transferring the digital assets in the 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 devices use the block chain private key to sign after the other transfer requests are sent to the user side devices. Optionally, the authentication passing time may be a time when the signature times of the user side devices are obtained after the other transfer requests are sent to the user side devices. For example: and the service side equipment sends a third transfer request to third user side equipment, wherein the third transfer request is a request for transferring the digital assets in the first blockchain account. The third user side device signs the third transfer request using its user's blockchain private key and returns data including the moment of signature (time a). The present disclosure may determine and record the signature time as the authentication passing time, or the present disclosure may determine and record the time (time B, which is later than time a) of the signature time as the authentication passing time, which is obtained by the service-side device.
Since both parties of the digital asset transfer need to sign the transfer request by using the blockchain private key thereof before the digital asset transfer can be performed according to the transfer request, the authentication passing time can be understood as the starting time of the digital asset transfer.
Optionally, the method shown in fig. 2 may further include: and obtaining the authentication passing moment for performing authorization authentication on the first transfer request.
S220, judging whether the current moment records the end moment of the digital asset transfer according to the transfer request for each transfer request recorded with the authentication passing moment; if the end times are all recorded, step S240 is performed. If the end times are not all recorded, step S230 is executed.
And S230, determining that the digital assets in the first blockchain account are transferred according to other transfer requests at the current moment.
S240, determining that the digital assets in the first blockchain account are not transferred according to other transfer requests at the current moment.
In other embodiments, the digital asset transfer control method for a blockchain provided by the present disclosure may further include:
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 more 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 with the transfer amount, the situation that the balance is insufficient when the digital assets are transferred can be avoided, and invalid transfer operation is avoided.
Optionally, the recorded time instants may be stored in the service-side device, and further, the recorded time instants and/or the signature result may be synchronized to each blockchain node.
S300, after the digital assets in the first blockchain account are transferred 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.
It will be appreciated that when each of the other transfer requests recorded with the authentication pass time has an end time recorded, it may be determined that the transfer of the digital asset from the first blockchain account is to be ended based on the other transfer requests.
And S400, transferring the digital assets in the first blockchain account to the second blockchain account according to the first transfer request.
The above process of transferring the digital assets in the first blockchain account to the second blockchain account according to the first transfer request can be performed at the service-side device. The service-side device may decrease the digital assets in the first blockchain account and increase the digital assets in the second blockchain account accordingly to complete the digital asset transfer.
Optionally, the absolute value of the decrement amount of the digital asset in the first blockchain account and the absolute value of the increment amount of the digital asset in the second blockchain account may be equal or may not be equal. When they are not equal, the difference part can be the fees of handling fees related to the digital asset transfer.
Optionally, after the digital assets in the first blockchain account are transferred to the second blockchain account according to the first transfer request, the balance of the digital assets in the first blockchain account and the balance of the digital assets in the second blockchain account may be updated according to the result of the transfer of the digital assets.
Alternatively, the present disclosure may perform a balance update of the digital assets of the associated blockchain account immediately after each digital asset transfer.
Optionally, after the digital assets in the first blockchain account are transferred 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 may be synchronized to each blockchain node in communication connection with the service-side device.
The digital asset transfer information of the first blockchain account and the second blockchain account is synchronized to each blockchain node, so that the digital asset transfer is recorded in a block, the whole network synchronization of the digital asset transfer record is completed, and the data consistency of all participants is ensured.
According to the digital asset transfer control method for the blockchain, provided by the embodiment of the disclosure, a first transfer request for transferring the digital asset in a first blockchain account to a second blockchain account can be obtained; determining whether the digital assets in the first blockchain account are being transferred according to other transfer requests at the current moment; if yes, after the digital assets in the first blockchain account are transferred 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, the digital assets in the first blockchain account are transferred to the second blockchain account according to the first transfer request. Through the processing, the method and the system can enable only one action of transferring the digital assets in the blockchain account to the same blockchain account at the same time, so that the problem of double spending is completely avoided. Meanwhile, the digital assets in the blockchain account can be directly transferred, so that the transfer process does not need to be confirmed by the blockchain link points, and the computing resources and the communication resources of the blockchain network are saved.
Optionally, in other embodiments, after transferring the digital assets 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 Universal Time (UTC) of the preset region, and/or the end Time in the present disclosure may be Universal Time of the preset region. For example: the authentication pass time and the end time in the present disclosure may be world standard time of beijing.
When at least two transfer requests for transferring digital assets to the same blockchain account each complete authorization authentication at different times, the present disclosure may prevent double spending problems by the method provided by the embodiment shown in fig. 2.
When at least two transfer requests for transferring digital assets of the same blockchain account both 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 assets in the first blockchain account to a third blockchain account;
obtaining an authentication passing moment for performing authorization authentication on the second transfer request;
and when the authentication passing moment for performing the authorization authentication on the first transfer request is the same as the authentication passing moment for performing the authorization authentication on the second transfer request, determining whether 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 assets in the first blockchain account, and if so, performing preset transaction cancellation operation to avoid performing 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 assets in the first blockchain account, this indicates that the digital assets in the first blockchain account cannot satisfy both the transfer of the digital assets according to the first transfer request and the transfer of the digital assets according to the second transfer request, which is a risk of an 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 assets in the first blockchain account, indicating that the digital assets in the first blockchain account can simultaneously satisfy the digital asset transfer according to the first transfer request and the digital asset transfer according to the second transfer request. At this time, the digital asset transfer can be carried out according to the first transfer request and the second transfer request simultaneously or sequentially.
Wherein the preset transaction cancellation operation may include at least one of the following operations:
a first, discarding the first transfer request and the second transfer request;
second, blocking the first blockchain account to prevent transfer of the digital assets in the first blockchain account;
and thirdly, sending a notice of the excess transfer to the first user side equipment.
Corresponding to the method embodiment, the disclosure also provides a digital asset transfer control device for the block chain. As shown in fig. 4, a digital asset transfer control device for a blockchain according to 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, configured to obtain a first transfer request for transferring a digital asset in a first blockchain account to a second blockchain account;
a transfer determining unit 200, configured to determine whether the digital asset in the first blockchain account is being transferred according to another transfer request at the current time; if yes, the first transfer unit 300 is triggered, otherwise the second transfer unit 400 is triggered;
a first transfer unit 300, configured to transfer the digital assets in the first blockchain account to the second blockchain account according to the first transfer request after the transfer of the digital assets in the first blockchain account according to the other transfer requests is completed;
a second transfer unit 400, configured to transfer the digital assets 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 an end time recording unit, configured to record an end time of the digital asset transfer after the apparatus shown in fig. 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 the authorization authentication is performed on the first transfer request, it is determined whether the digital assets in the first blockchain account are 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 the world standard time of the preset region, and/or the end time in the embodiment of the present disclosure may be the world standard time of the preset region.
Optionally, the apparatus shown in fig. 4 may further include: a second request obtaining unit, a second passing time obtaining unit, a first balance comparing unit and a transaction canceling unit,
a second request obtaining unit, configured to obtain a second transfer request for transferring the digital assets in the first blockchain account to a third blockchain account;
a second passing time obtaining unit configured to obtain an authentication passing time at which the authorization authentication is performed 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 assets in the first block chain account or not when the authentication passing moment for performing authorization authentication on the first transfer request is the same as the authentication passing moment for performing authorization authentication on the second transfer request, and if so, the transaction cancellation unit is triggered;
and the transaction canceling unit is used for carrying out preset transaction canceling operation so as to avoid carrying out 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 time judgment subunit, a first transition determination subunit and a second transition determination subunit,
the moment determining subunit is configured to determine whether an authentication passing moment for performing authorization authentication on other transfer requests is recorded at the current moment, where the other transfer requests are requests for transferring the digital assets in the first blockchain account; if yes, triggering a time judgment subunit; if the authentication passing time for performing authorization authentication on other transfer requests is not recorded at the current time, triggering a first transfer determination subunit;
the time judgment subunit is used for judging whether the end time of the digital asset transfer according to the transfer request is recorded in each transfer request recorded with the authentication passing time 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 determining subunit;
the first transfer determining subunit is used for determining that the digital assets in the first blockchain account are not transferred according to other transfer requests at the current moment;
and the second transfer determining subunit is used for determining that the digital assets in the first blockchain account are 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 the digital assets in the first blockchain account are transferred 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, when the transfer determining unit 200 determines that the digital asset in the first blockchain account is not transferred according to another transfer request at the current time, determine 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 transfer 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 assets in the first blockchain account and the balance of the digital assets in the second blockchain account according to the result of the transfer of the digital assets after the digital assets in the first blockchain account are 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 a first blockchain account to a second blockchain account; determining whether the digital assets in the first blockchain account are being transferred according to other transfer requests at the current moment; if yes, after the digital assets in the first blockchain account are transferred 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, the digital assets in the first blockchain account are transferred to the second blockchain account according to the first transfer request. Through the processing, the method and the system can enable only one action of transferring the digital assets in the blockchain account to the same blockchain account at the same time, so that the problem of double spending is completely avoided. Meanwhile, the digital assets in the blockchain account can be directly transferred, so that the transfer process does not need to be confirmed by the blockchain link points, and the computing resources and the communication resources of the blockchain network are saved.
As shown in fig. 1, an embodiment of the present disclosure also provides a communication system for a digital asset transfer control method of a blockchain, which may include: the system comprises a service side device 001, a plurality of user side devices 002 and at least one block chain node 003, wherein 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 block chain node 003; the service-side device 001 is a blockchain node, or a part of device resources of the service-side device 001 is constructed as a blockchain node;
the method comprises the steps that service-side equipment 001 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 001 determines whether the digital assets in the first blockchain account are being transferred according to other transfer requests at the current moment; if yes, the service-side device 001 transfers the digital assets in the first blockchain account to the second blockchain account according to the first transfer request after the transfer of the digital assets in the first blockchain account according to other transfer requests is finished; otherwise, the service-side device 001 transfers the digital assets in the first blockchain account to the second blockchain account according to the first transfer request;
after the service-side device 001 transfers the digital assets 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 to each blockchain node in communication connection with the service-side device.
The digital asset transfer control device for the block chain provided by the embodiment of the disclosure comprises 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 stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to one or more than one, and the digital asset transfer is controlled by adjusting kernel parameters so as to avoid the double flower problem.
The disclosed embodiments provide a storage medium having a program stored thereon, which when executed by a processor implements the digital asset transfer control method for a blockchain provided by the disclosed embodiments.
The embodiment of the disclosure provides a processor, and the processor is used for running a program, wherein the program executes the digital asset transfer control method for the block chain provided by the embodiment of the disclosure when running.
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, at least one memory 702 connected to the processor 701, and a bus 703; the processor 701 and the memory 702 complete mutual communication through a bus 703; the processor 701 is configured to invoke 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, a PC, a PAD, a handset, etc.
The present disclosure also provides a computer program product adapted to execute a program that initializes some or all of the steps of the digital asset transfer control method for a blockchain provided by the embodiments of the present disclosure when executed on a data processing device.
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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 a typical configuration, a 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 in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The 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 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 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 that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
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 an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, 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, and so forth) having computer-usable program code embodied therein.
The above are merely examples of the present disclosure, and are not intended to limit the present disclosure. Various modifications and variations of this disclosure will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure should be included in the scope of the claims of the present disclosure.

Claims (12)

1. A digital asset transfer control method for a blockchain, comprising:
obtaining a first transfer request to transfer a digital asset in a first blockchain account to a second blockchain account;
determining whether the digital assets in the first blockchain account are being transferred according to other transfer requests at the current moment;
if yes, after the digital assets in the first blockchain account are transferred according to the other transfer requests, transferring the digital assets in the first blockchain account to the second blockchain account according to the first transfer request;
otherwise, transferring the digital assets in the first blockchain account to the second blockchain account according to the first transfer request.
2. The method of claim 1, wherein after said transferring digital assets from said first blockchain account to said second blockchain account according to said first transfer request, said method further comprises:
the end time of the digital asset transfer is recorded.
3. The method of claim 1, wherein determining whether digital assets in the first blockchain account are being transferred from other transfer requests at a current time comprises:
after the first transfer request is authorized and authenticated, determining whether the digital assets in the first blockchain account are being transferred according to other transfer requests at the current moment.
4. The method of claim 3, further comprising:
and obtaining the authentication passing moment for performing authorization authentication on the first transfer request.
5. The method according to claim 4, wherein the authentication passing time is a world standard time of a preset region, and/or the end time is a world standard time of a preset region.
6. The method of claim 1, further comprising:
obtaining a second transfer request to transfer the digital assets in the first blockchain account to a third blockchain account;
obtaining an authentication passing moment for performing authorization authentication on the second transfer request;
when the authentication passing moment for performing authorization authentication on the first transfer request is the same as the authentication passing moment for performing authorization authentication on the second transfer request, determining whether 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 assets in the first blockchain account, and if so, performing preset transaction cancellation operation to avoid performing digital asset transfer according to the first transfer request or the second transfer request.
7. The method of claim 1, wherein determining whether digital assets in the first blockchain account are being transferred from other transfer requests at a current time comprises:
determining whether an authentication passing moment for performing authorization authentication on other transfer requests is recorded at the current moment, wherein the other transfer requests are requests for transferring the digital assets in the first blockchain account;
if yes, judging whether the current moment records the end moment of transferring the digital assets according to the transfer request for each transfer request recorded with the authentication passing moment; if the ending 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 ending time is not recorded, determining that the digital assets in the first blockchain account are transferred according to other transfer requests at the current time;
and if the authentication passing time for performing authorization authentication on the other transfer requests is not recorded at the current time, determining that the digital assets in the first blockchain account are not transferred according to the other transfer requests at the current time.
8. The method of claim 1, wherein after said transferring digital assets from said first blockchain account to said second blockchain account in accordance with said first transfer request, said method further comprises:
synchronizing the digital asset transfer information of the first blockchain account and the second blockchain account into each blockchain node.
9. The method of claim 1, further comprising:
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 larger 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.
10. The method of claim 1, wherein after said transferring digital assets from said first blockchain account to said second blockchain account according to said first transfer request, said method further comprises:
updating the balance of the digital assets in the first blockchain account and the balance of the digital assets in the second blockchain account according to the result of the digital asset transfer.
11. A digital asset transfer control apparatus 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 assets in the first blockchain account to the second blockchain account;
the transfer determining unit is configured to determine 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 configured to transfer the digital assets in the first blockchain account to the second blockchain account according to the first transfer request after the transfer of the digital assets in the first blockchain account according to the other transfer requests is completed;
the second transfer unit is configured to transfer the digital assets in the first blockchain account to the second blockchain account according to the first transfer request.
12. A communication system, comprising: the system comprises a service side device, a plurality of user side devices and at least one block chain node, wherein the service side device is in communication connection with the user side devices, and the service side device is in communication connection with the block chain node; the service side device is a block chain node, or part of device resources of the service side device 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 the digital assets in the first blockchain account to a second blockchain account;
the service side equipment determines whether the digital assets in the first block chain account are transferred according to other transfer requests at the current moment; if so, the service-side device transfers the digital assets in the first blockchain account to the second blockchain account according to the first transfer request after the transfer of the digital assets in the first blockchain account according to the other transfer requests is finished; otherwise, the service-side device transfers the digital assets in the first blockchain account to the second blockchain account according to the first transfer request;
after the service-side device transfers the digital assets in the first blockchain account to the second blockchain account according to the first transfer request, synchronizing the 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.
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 true CN111915313A (en) 2020-11-10
CN111915313B 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
CN111915313B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
CN108492180B (en) Asset management method and device and electronic equipment
EP3776437B1 (en) Blockchain-based asset transfer method and apparatus, and electronic device
CN108898389B (en) Content verification method and device based on block chain and electronic equipment
US10776101B2 (en) Systems and methods for updatable applets
US20200334674A1 (en) Systems and methods for blockchain administration
US20170221053A1 (en) Digital asset conversion
CN109067791B (en) User identity authentication method and device in network
US20160203477A1 (en) Cryptographic security for electronic transactions
CN108764872B (en) Authorized payment method, system, equipment and storage medium
TW202025045A (en) Invoice reimbursement method and device based on block chain and electronic device
TW202022754A (en) Invoice creating method and device based on block chain and electronic equipment
US10637644B1 (en) System and method for authorizing transactions in an authorized member network
CN112037068B (en) Resource transfer method, system, device, computer equipment and storage medium
JP7319961B2 (en) Computer-implemented systems and methods related to binary blockchains forming a pair of coupled blockchains
AU2017212504A1 (en) Information transaction infrastructure
CN111383114A (en) Asset information management method and device based on block chain
CN111402033A (en) Asset information management method and device based on block chain
US20190188730A1 (en) Authentication of goods
CN111986025A (en) Loan transaction processing method and system based on block chain
US20230298002A1 (en) Digital wallet tracing engine
CN110619566A (en) On-chain pledge asset return system and method through on-chain digital currency settlement
CN111915313A (en) Digital asset transfer control method and device for block chain and communication system
CN110009348B (en) Block chain proxy signature method and system and electronic equipment
CN111369243A (en) Distributed accounting method and device
CN113744856B (en) Medicine payment method

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