WO2020156481A1 - Fund flow method, and device and storage medium - Google Patents

Fund flow method, and device and storage medium Download PDF

Info

Publication number
WO2020156481A1
WO2020156481A1 PCT/CN2020/073982 CN2020073982W WO2020156481A1 WO 2020156481 A1 WO2020156481 A1 WO 2020156481A1 CN 2020073982 W CN2020073982 W CN 2020073982W WO 2020156481 A1 WO2020156481 A1 WO 2020156481A1
Authority
WO
WIPO (PCT)
Prior art keywords
contract
account
user
transaction
asset
Prior art date
Application number
PCT/CN2020/073982
Other languages
French (fr)
Chinese (zh)
Inventor
何正军
王志文
吴思进
Original Assignee
杭州复杂美科技有限公司
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 杭州复杂美科技有限公司 filed Critical 杭州复杂美科技有限公司
Publication of WO2020156481A1 publication Critical patent/WO2020156481A1/en

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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Definitions

  • This application relates to the field of blockchain technology, in particular to a method, equipment and storage medium for capital circulation.
  • the present invention provides a method of capital circulation, including:
  • the first contract performs the following operations:
  • the first contract is a currency issuance contract for issuing currencies
  • the first transaction is generated and sent by the first user terminal when the second contract needs to use several assets of the first user.
  • first asset of the second contract is used to perform at least one of the following operations:
  • the present invention provides a method of capital circulation, including:
  • the first contract is a currency issuance contract for issuing currencies
  • the second transaction is generated and sent when the first user needs to transfer several assets to the first contract.
  • the present invention also provides a device, including one or more processors and a memory, where the memory contains instructions executable by the one or more processors to make the one or more processors execute each of the processors according to the present invention.
  • the fund flow method provided by the embodiment.
  • the present invention also provides a storage medium storing a computer program, which causes a computer to execute the fund transfer method provided according to each embodiment of the present invention.
  • the assets of the user account are first transferred to the contract account, and then the assets are transferred in or out to the currency issuance contract.
  • the asset is completed
  • the transfer process of the currency issuance contract to the contract account is recorded to ensure that the execution of the currency issuance contract or contract cheating can be detected in time, and the interests of users are guaranteed.
  • Fig. 1 is a flow chart of a method for transferring funds according to an embodiment of the present invention.
  • Fig. 2 is a scene diagram of a preferred embodiment of the method shown in Fig. 1.
  • Fig. 3 is a flowchart of another method for capital circulation provided by an embodiment of the present invention.
  • Fig. 4 is a scene diagram of a preferred embodiment of the method shown in Fig. 3.
  • Fig. 5 is a schematic structural diagram of a device provided by an embodiment of the present invention.
  • Fig. 1 is a flow chart of a method for transferring funds according to an embodiment of the present invention.
  • the present invention provides a method for capital circulation, including:
  • the first contract is a currency issuance contract for issuing currencies
  • the first transaction is generated and sent by the first user terminal when the second contract needs to use several assets of the first user.
  • the first user wants to transfer some assets, such as 10 tokens ABC, from the issuing contract (such as the coins contract) to the first user under the second contract (such as the dice contract)
  • the account address account1 At this time, the first user sends a transfer transaction, the first contract, that is, the coin issuing contract, after receiving the transaction, 10 ABC will be deducted from the first user account account1 of the coins contract.
  • the second contract account contract1 (such as the contract account of the dice contract) adds 10 ABCs.
  • the total number of assets in the first contract does not decrease or increase; after 10 ABCs are added to the contract account of the dice contract, the coins of the first contract are in dice
  • the account address of the first user in the contract adds 10 ABCs to account1.
  • the dice contract has the authority to process the 10 ABCs in the account.
  • the 10 ABCs can only be controlled by the dice contract, and coins are no longer controlled. right.
  • the 10 ABCs in the account1 account in the above dice contract are controlled by the contract, which can be frozen by the dice contract; they can also be activated after being frozen in the dice contract; or they can be transferred to the second user in the dice contract.
  • Second account account2 it can also be frozen in the second contract dice contract and then transferred to the second account account2; it can also be frozen in the second contract dice and then transferred to the second account account2 and activated;
  • the first contract mentioned above that is, the currency issuing contract can be a native contract or a dynamic deployment contract; the second contract can be a native contract or a dynamic deployment contract.
  • Fig. 3 is another asset circulation method provided by an embodiment of the present invention. As shown in Figure 3, in this embodiment, an asset circulation method includes:
  • the first contract is a currency issuance contract for issuing currencies
  • the second transaction is generated and sent when the first user needs to transfer several assets to the first contract.
  • the first user wants to raise 10 ABCs from the assets in the first user account account1 in the dice contract, then the first user sends a second transaction, and the coins of the first contract are based on the second transaction. Deduct 10 ABCs from the first user account account1 in the second contract dice contract, then deduct 10 ABCs from the second contract account contract1 in the coins contract, and finally add 10 to the first user account account1 in the coins contract ABC.
  • the above-mentioned first contract that is, the currency issuing contract
  • the second contract may be a native contract or a dynamic deployment contract
  • a one-step judgment operation is performed: that is, it is judged that the second contract account contract1 previously transferred to the coins contract Whether the first amount of assets is greater than the second amount of assets to be transferred out, if yes, continue with the subsequent steps; if not, terminate the withdrawal operation. Specifically, if the first contract coins contract wants to deduct 15 ABC from the contract account, which exceeds the 10 ABC transferred to the contract account in the previous period, the withdrawal operation is terminated at this time, thereby avoiding the first user's economic loss.
  • the assets when withdrawing coins, the assets are first transferred to the contract account, and then transferred to the first user account.
  • the first contract can only operate the transferred amount when withdrawing coins. Assets cannot operate on the part of the second contract account that exceeds the first amount, avoiding or reducing economic losses caused by contract errors or contract cheating.
  • Fig. 5 is a schematic structural diagram of a device provided by an embodiment of the present invention.
  • the present application also provides a device 500, including one or more central processing units (CPU) 501, which can be based on a program stored in a read-only memory (ROM) 502 or The program loaded from the storage section 508 into the random access memory (RAM) 503 executes various appropriate actions and processing. In the RAM 503, various programs and data required for the operation of the device 500 are also stored.
  • the CPU501, ROM502, and RAM503 are connected to each other through a bus 504.
  • An input/output (I/O) interface 505 is also connected to the bus 504.
  • the following components are connected to the I/O interface 505: an input part 506 including a keyboard, a mouse, etc.; an output part 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and speakers, etc.; a storage part 508 including a hard disk, etc. ; And a communication section 509 including a network interface card such as a LAN card, a modem, and the like. The communication section 509 performs communication processing via a network such as the Internet.
  • the driver 510 is also connected to the I/O interface 505 as needed.
  • a removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that the computer program read from it is installed into the storage section 508 as needed.
  • the fund circulation method described in any of the above embodiments can be implemented as a computer software program.
  • an embodiment of the present disclosure includes a computer program product, which includes a computer program tangibly embodied on a machine-readable medium, and the computer program includes program code for executing a fund transfer method.
  • the computer program may be downloaded and installed from the network through the communication part 509, and/or installed from the removable medium 511.
  • the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium may be the computer-readable storage medium included in the device of the above-mentioned embodiment; or it may exist alone without being installed.
  • the computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the fund transfer method described in this application.
  • each block in the flowchart or block diagram can represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logic function Executable instructions.
  • the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown one after another can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
  • the units or modules involved in the embodiments described in the present application can be implemented in software or hardware.
  • the described units or modules may also be arranged in the processor.
  • each of the described units may be a software program arranged in a computer or a mobile smart device, or may be a separately configured hardware device.
  • the names of these units or modules do not constitute a limitation on the units or modules themselves under certain circumstances.

Abstract

Disclosed are a fund flow method, and a device and a storage medium. The method comprises: receiving a first transaction, and according to the first transaction, a first contract executing the following operations: deducting a first amount of first assets from a first user account of the first contract; adding the first amount of first assets to a second contract account of the first contract; and adding the first amount of first assets to a first user account of a second contract (S11), wherein the first contract is a token issuing contract for issuing tokens, and the first transaction is generated and sent by a first user end when the second contract needs to use several assets of a first user. Adding the contract account to the token issuing contract, and recording a transfer process of the contract account by means of the token issuing contract ensure that errors in execution of the token issuing contract or contract cheating can be found in a timely manner, thereby guaranteeing the interests of a user.

Description

一种资金流转方法、设备和存储介质Method, equipment and storage medium for capital circulation 技术领域Technical field
本申请涉及区块链技术领域,具体涉及一种资金流转方法、设备和存储介质。This application relates to the field of blockchain technology, in particular to a method, equipment and storage medium for capital circulation.
背景技术Background technique
当区块链系统中存在多种性质的合约时,即当原生合约和基于动态发布合约平台共同存在于一个系统时,很难实现系统token在不同合约之间方便、安全地进行流转,且合约进行转币、提币等资产流转时均由发币合约单独控制操作,若合约间在资产流转时可能由于合约执行出错或作弊情况导致不能及时发现造成经济损失。When there are multiple types of contracts in the blockchain system, that is, when the native contract and the dynamic publishing contract platform coexist in the same system, it is difficult to realize the convenient and safe transfer of system tokens between different contracts, and the contract Assets such as currency transfers, withdrawals, etc. are all individually controlled by the currency issuing contract. If assets are transferred between contracts, it may not be discovered in time due to contract execution errors or cheating, resulting in economic losses.
发明内容Summary of the invention
鉴于现有技术中的上述缺陷或不足,期望提供一种方便安全的资金流转方法、设备和存储介质。In view of the above-mentioned shortcomings or deficiencies in the prior art, it is desirable to provide a convenient and safe method, equipment and storage medium for transferring funds.
第一方面,本发明提供一种资金流转方法,包括:In the first aspect, the present invention provides a method of capital circulation, including:
接收第一交易,根据第一交易,第一合约执行以下操作:Receive the first transaction, and according to the first transaction, the first contract performs the following operations:
在第一合约的第一用户账户中扣除第一数额的第一资产;Deduct the first amount of the first asset from the first user account of the first contract;
在第一合约的第二合约账户中增加第一数额的第一资产;Add the first amount of the first asset in the second contract account of the first contract;
在第二合约的第一用户账户中增加第一数额的第一资产;Add the first amount of the first asset to the first user account of the second contract;
其中,第一合约为发行币种的发币合约,第一交易由第一用户端在第二合约需要使用第一用户的若干资产时生成并发送。Among them, the first contract is a currency issuance contract for issuing currencies, and the first transaction is generated and sent by the first user terminal when the second contract needs to use several assets of the first user.
进一步,第二合约的第一资产用于执行以下至少一项操作:Further, the first asset of the second contract is used to perform at least one of the following operations:
在第二合约中冻结;Freeze in the second contract;
在第二合约中冻结后激活;Activate after freezing in the second contract;
在第二合约中转账到第二用户的第二账户;Transfer funds to the second account of the second user in the second contract;
在第二合约中冻结后转账到第二账户后冻结;After freezing in the second contract, transfer to the second account and then freeze;
在第二合约中冻结后转账到第二账户后激活;Activate after freezing in the second contract and transferring to the second account;
第二方面,本发明提供一种资金流转方法,包括:In the second aspect, the present invention provides a method of capital circulation, including:
接收第二交易,根据第二交易,第一合约执行以下操作:Receive the second transaction, and according to the second transaction, the first contract performs the following operations:
在第二合约的第一用户账户中扣除第二数额的第二资产;Deduct the second amount of the second asset from the first user account of the second contract;
在第一合约的第二合约账户中扣除第二数额的第二资产;Deduct the second amount of the second asset from the second contract account of the first contract;
在第一合约中的第一用户账户中增加第二数额的第二资产;Add a second amount of second assets to the first user account in the first contract;
其中,第一合约为发行币种的发币合约,第二交易由第一用户需要转出若干资产到第一合约时生成并发送。Among them, the first contract is a currency issuance contract for issuing currencies, and the second transaction is generated and sent when the first user needs to transfer several assets to the first contract.
第三方面,本发明还提供一种设备,包括一个或多个处理器和存储器,其中存储器包含可由该一个或多个处理器执行的指令以使得该一个或多个处理器执行根据本发明各实施例提供的资金流转方法。In a third aspect, the present invention also provides a device, including one or more processors and a memory, where the memory contains instructions executable by the one or more processors to make the one or more processors execute each of the processors according to the present invention. The fund flow method provided by the embodiment.
第四方面,本发明还提供一种存储有计算机程序的存储介质,该计算机程序使计算机执行根据本发明各实施例提供的资金流转方法。In a fourth aspect, the present invention also provides a storage medium storing a computer program, which causes a computer to execute the fund transfer method provided according to each embodiment of the present invention.
本发明的有益效果The beneficial effects of the present invention
本发明通过在发币合约中添加合约账户,在资产流转时,先在将用户账户的资产转到合约账户中,再将该资产转入或转出到发币合约中,一方面完成了资产的跨合约流转,另一方面在提币操作时,通过发币合约对合约账户的转账过程的记载,确保发币合约执行出错或合约作弊能被及时发现,保证用户的利益。In the present invention, by adding a contract account to the currency issuance contract, when assets are transferred, the assets of the user account are first transferred to the contract account, and then the assets are transferred in or out to the currency issuance contract. On the one hand, the asset is completed On the other hand, when the currency is withdrawn, the transfer process of the currency issuance contract to the contract account is recorded to ensure that the execution of the currency issuance contract or contract cheating can be detected in time, and the interests of users are guaranteed.
附图说明Description of the drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:By reading the detailed description of the non-limiting embodiments with reference to the following drawings, other features, purposes and advantages of the present application will become more apparent:
图1为本发明一实施例提供的一种资金流转方法的流程图。Fig. 1 is a flow chart of a method for transferring funds according to an embodiment of the present invention.
图2为图1所示方法一优选实施方式的场景图。Fig. 2 is a scene diagram of a preferred embodiment of the method shown in Fig. 1.
图3为本发明一实施例提供的另一种资金流转方法的流程图。Fig. 3 is a flowchart of another method for capital circulation provided by an embodiment of the present invention.
图4为图3所示方法一优选实施方式的场景图。Fig. 4 is a scene diagram of a preferred embodiment of the method shown in Fig. 3.
图5为本发明一实施例提供的一种设备的结构示意图。Fig. 5 is a schematic structural diagram of a device provided by an embodiment of the present invention.
具体实施方式detailed description
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与发明相关的部分。The application will be further described in detail below with reference to the drawings and embodiments. It can be understood that the specific embodiments described here are only used to explain the related invention, but not to limit the invention. In addition, it should be noted that, for ease of description, only the parts related to the invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in this application and the features in the embodiments can be combined with each other if there is no conflict. Hereinafter, the present application will be described in detail with reference to the drawings and in conjunction with embodiments.
图1为本发明一实施例提供的一种资金流转方法的流程图。Fig. 1 is a flow chart of a method for transferring funds according to an embodiment of the present invention.
如图1所示,在本实施例中,本发明提供一种资金流转方法,包括:As shown in Figure 1, in this embodiment, the present invention provides a method for capital circulation, including:
S11、接收第一交易,根据第一交易,第一合约执行以下操作:S11. Receive the first transaction, and according to the first transaction, the first contract performs the following operations:
在第一合约的第一用户账户中扣除第一数额的第一资产;Deduct the first amount of the first asset from the first user account of the first contract;
在第一合约的第二合约账户中增加第一数额的第一资产;Add the first amount of the first asset in the second contract account of the first contract;
在第二合约的第一用户账户中增加第一数额的第一资产;Add the first amount of the first asset to the first user account of the second contract;
其中,第一合约为发行币种的发币合约,第一交易由第一用户端在第二合约需要使用第一用户的若干资产时生成并发送。Among them, the first contract is a currency issuance contract for issuing currencies, and the first transaction is generated and sent by the first user terminal when the second contract needs to use several assets of the first user.
具体地,如图2场景所示,当第一用户想将部分资产,如10个代币ABC从发币合约(如coins合约)转到在第二合约(如dice合约)下的第一用户的账户地址account1。这时,第一用户发出一笔转账交易,第一合约,即发币合约coins收到该笔交易后,在coins合约的该第一用户账户account1中扣除10个ABC,在第一合约的第二合约账户contract1(如dice合约的合约账户)中增加10个ABC,此时第一合约的资产总数并未减少或增加;dice合约的合约账户中增加10个ABC后,第一合约coins在dice合约中的第一用户的账 户地址account1中增加10个ABC,这时,dice合约便拥有了处理该账户中10个ABC的权限,该10个ABC只能由dice合约控制,coins不再有控制权。Specifically, as shown in the scenario in Figure 2, when the first user wants to transfer some assets, such as 10 tokens ABC, from the issuing contract (such as the coins contract) to the first user under the second contract (such as the dice contract) The account address account1. At this time, the first user sends a transfer transaction, the first contract, that is, the coin issuing contract, after receiving the transaction, 10 ABC will be deducted from the first user account account1 of the coins contract. The second contract account contract1 (such as the contract account of the dice contract) adds 10 ABCs. At this time, the total number of assets in the first contract does not decrease or increase; after 10 ABCs are added to the contract account of the dice contract, the coins of the first contract are in dice The account address of the first user in the contract adds 10 ABCs to account1. At this time, the dice contract has the authority to process the 10 ABCs in the account. The 10 ABCs can only be controlled by the dice contract, and coins are no longer controlled. right.
进一步优选地,上述dice合约中account1账户中的10个ABC由合约控制,dice合约可以将其冻结;还可以在dice合约中冻结后激活;还可以是在dice合约中转账到第二用户的第二账户account2;还可以是在第二合约dice合约中冻结后转账到第二账户account2后冻结;还可以是在第二合约dice中冻结后转账到第二账户account2后激活;Further preferably, the 10 ABCs in the account1 account in the above dice contract are controlled by the contract, which can be frozen by the dice contract; they can also be activated after being frozen in the dice contract; or they can be transferred to the second user in the dice contract. Second account account2; it can also be frozen in the second contract dice contract and then transferred to the second account account2; it can also be frozen in the second contract dice and then transferred to the second account account2 and activated;
上述第一合约,即发币合约可以是原生合约,也可以是动态部署合约;第二合约可以为原生合约,也可以是动态部署合约。The first contract mentioned above, that is, the currency issuing contract can be a native contract or a dynamic deployment contract; the second contract can be a native contract or a dynamic deployment contract.
上述实施例中,通过将用户账户中的资产转入合约账户,然后再转入第二合约下的用户账户中,一方面实现了跨合约的流转,完成了资产控制权的转移,另一方面,在发币合约中对合约账户的资产进行记账,使在后期提币时能及时发现合约因为出错或者作弊而导致转账超出的错误,避免或者减少用户的经济损失。In the above embodiment, by transferring the assets in the user account to the contract account, and then to the user account under the second contract, on the one hand, cross-contract circulation is realized, and the transfer of asset control rights is completed. , In the currency issuance contract, the assets of the contract account are booked, so that the contract can be found in time due to errors or cheating in the subsequent transfer of the contract due to errors or cheating, so as to avoid or reduce users' economic losses.
图3为本发明一实施例提供的另一种资产流转方法。如图3所示,在本实施例中,一种资产流转方法,包括:Fig. 3 is another asset circulation method provided by an embodiment of the present invention. As shown in Figure 3, in this embodiment, an asset circulation method includes:
S21、接收第二交易,根据第二交易,第一合约执行以下操作:S21. Receive the second transaction, and according to the second transaction, the first contract performs the following operations:
在第二合约的第一用户账户中扣除第二数额的第二资产;Deduct the second amount of the second asset from the first user account of the second contract;
在第一合约的第二合约账户中扣除第二数额的第二资产;Deduct the second amount of the second asset from the second contract account of the first contract;
在第一合约中的第一用户账户中增加第二数额的第二资产;Add a second amount of second assets to the first user account in the first contract;
其中,第一合约为发行币种的发币合约,第二交易由第一用户需要转出若干资产到第一合约时生成并发送。Among them, the first contract is a currency issuance contract for issuing currencies, and the second transaction is generated and sent when the first user needs to transfer several assets to the first contract.
具体地,如图4所示场景,第一用户想将dice合约中第一用户账户account1中的资产提出10个ABC,则第一用户发送一笔第二交易,第一合约coins根据第二交易在第二合约dice合约中的第一用户账户account1中扣除10个ABC,再在coins合约中的第二合约账户contract1中扣除10个ABC,最后在coins合约中的第一 用户账户account1中增加10个ABC。Specifically, in the scenario shown in Figure 4, the first user wants to raise 10 ABCs from the assets in the first user account account1 in the dice contract, then the first user sends a second transaction, and the coins of the first contract are based on the second transaction. Deduct 10 ABCs from the first user account account1 in the second contract dice contract, then deduct 10 ABCs from the second contract account contract1 in the coins contract, and finally add 10 to the first user account account1 in the coins contract ABC.
在更多实施例中,上述第一合约,即发币合约可以是原生合约,也可以是动态部署合约;第二合约可以为原生合约,也可以是动态部署合约。In more embodiments, the above-mentioned first contract, that is, the currency issuing contract, may be a native contract or a dynamic deployment contract; the second contract may be a native contract or a dynamic deployment contract.
在更多实施例中,coins合约在第二合约的第一用户账户中扣除第二数额的第二资产前,进行一步判断操作:即判断在之前转入coins合约中的第二合约账户contract1的第一数额的资产是否大于待转出的第二数额的资产,若是,则继续执行后续步骤;若否,则终止该提币操作。具体地,若第一合约coins合约想从合约账户中扣除15个ABC,则超出了前期转入合约账户的10个ABC,那么这时提币操作终止,从而避免了第一用户的经济损失。In more embodiments, before the coins contract deducts the second amount of the second asset from the first user account of the second contract, a one-step judgment operation is performed: that is, it is judged that the second contract account contract1 previously transferred to the coins contract Whether the first amount of assets is greater than the second amount of assets to be transferred out, if yes, continue with the subsequent steps; if not, terminate the withdrawal operation. Specifically, if the first contract coins contract wants to deduct 15 ABC from the contract account, which exceeds the 10 ABC transferred to the contract account in the previous period, the withdrawal operation is terminated at this time, thereby avoiding the first user's economic loss.
本发明在提币时,先将资产转入合约账户中,然后再转入第一用户账户中,通过发币合约的记账记录,确保提币时第一合约只能操作转入的那笔资产,对于第二合约账户的超出第一数额的部分不能操作,避免或减少了因为合约出错或者合约作弊而造成的经济损失。In the present invention, when withdrawing coins, the assets are first transferred to the contract account, and then transferred to the first user account. Through the accounting records of the currency issuing contract, it is ensured that the first contract can only operate the transferred amount when withdrawing coins. Assets cannot operate on the part of the second contract account that exceeds the first amount, avoiding or reducing economic losses caused by contract errors or contract cheating.
图5为本发明一实施例提供的一种设备的结构示意图。Fig. 5 is a schematic structural diagram of a device provided by an embodiment of the present invention.
如图5所示,作为另一方面,本申请还提供了一种设备500,包括一个或多个中央处理单元(CPU)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储部分508加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。在RAM503中,还存储有设备500操作所需的各种程序和数据。CPU501、ROM502以及RAM503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。As shown in FIG. 5, as another aspect, the present application also provides a device 500, including one or more central processing units (CPU) 501, which can be based on a program stored in a read-only memory (ROM) 502 or The program loaded from the storage section 508 into the random access memory (RAM) 503 executes various appropriate actions and processing. In the RAM 503, various programs and data required for the operation of the device 500 are also stored. The CPU501, ROM502, and RAM503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to the bus 504.
以下部件连接至I/O接口505:包括键盘、鼠标等的输入部分506;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分507;包括硬盘等的存储部分508;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分509。通信部分509经由诸如因特网的网络执行通信处理。驱动器510也根据需要连接至I/O接口505。可拆卸介质511,诸如磁盘、光盘、磁 光盘、半导体存储器等等,根据需要安装在驱动器510上,以便于从其上读出的计算机程序根据需要被安装入存储部分508。The following components are connected to the I/O interface 505: an input part 506 including a keyboard, a mouse, etc.; an output part 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and speakers, etc.; a storage part 508 including a hard disk, etc. ; And a communication section 509 including a network interface card such as a LAN card, a modem, and the like. The communication section 509 performs communication processing via a network such as the Internet. The driver 510 is also connected to the I/O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that the computer program read from it is installed into the storage section 508 as needed.
特别地,根据本公开的实施例,上述任一实施例描述的资金流转方法可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括有形地包含在机器可读介质上的计算机程序,所述计算机程序包含用于执行资金流转方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分509从网络上被下载和安装,和/或从可拆卸介质511被安装。In particular, according to the embodiments of the present disclosure, the fund circulation method described in any of the above embodiments can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program tangibly embodied on a machine-readable medium, and the computer program includes program code for executing a fund transfer method. In such an embodiment, the computer program may be downloaded and installed from the network through the communication part 509, and/or installed from the removable medium 511.
作为又一方面,本申请还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例的装置中所包含的计算机可读存储介质;也可以是单独存在,未装配入设备中的计算机可读存储介质。计算机可读存储介质存储有一个或者一个以上程序,该程序被一个或者一个以上的处理器用来执行描述于本申请的资金流转方法。As yet another aspect, the present application also provides a computer-readable storage medium. The computer-readable storage medium may be the computer-readable storage medium included in the device of the above-mentioned embodiment; or it may exist alone without being installed. The computer-readable storage medium in the device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the fund transfer method described in this application.
附图中的流程图和框图,图示了按照本发明各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这根据所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以通过执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以通过专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the drawings illustrate the possible implementation architecture, functions, and operations of the system, method, and computer program product according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagram can represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logic function Executable instructions. It should also be noted that, in some alternative implementations, the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown one after another can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元或模块可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元或模块也可以设置在处理器中,例如,各所述单元可以是设置在计算机或移动智能设备中的软件程序,也可以是单独配置的硬件装置。 其中,这些单元或模块的名称在某种情况下并不构成对该单元或模块本身的限定。The units or modules involved in the embodiments described in the present application can be implemented in software or hardware. The described units or modules may also be arranged in the processor. For example, each of the described units may be a software program arranged in a computer or a mobile smart device, or may be a separately configured hardware device. Among them, the names of these units or modules do not constitute a limitation on the units or modules themselves under certain circumstances.
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离本申请构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover the above technical features or technical solutions without departing from the concept of the application. Other technical solutions formed by any combination of its equivalent features. For example, the above-mentioned features and the technical features disclosed in this application (but not limited to) with similar functions are mutually replaced to form a technical solution.

Claims (5)

  1. 一种资产流转方法,其特征在于,包括:An asset circulation method, characterized in that it includes:
    接收第一交易,根据所述第一交易,第一合约执行以下操作:The first transaction is received, and according to the first transaction, the first contract performs the following operations:
    在第一合约的第一用户账户中扣除第一数额的第一资产;Deduct the first amount of the first asset from the first user account of the first contract;
    在第一合约的第二合约账户中增加所述第一数额的第一资产;Adding the first asset of the first amount to the second contract account of the first contract;
    在第二合约的所述第一用户账户中增加所述第一数额的第一资产;Adding the first amount of the first asset to the first user account of the second contract;
    其中,所述第一合约为发行币种的发币合约,所述第一交易由第一用户端在所述第二合约需要使用第一用户的若干资产时生成并发送。Wherein, the first contract is a currency issuance contract for issuing currency, and the first transaction is generated and sent by the first user terminal when the second contract needs to use several assets of the first user.
  2. 根据权利要求1所述的方法,其特征在于,所述第二合约的第一资产用于执行以下至少一项操作:The method according to claim 1, wherein the first asset of the second contract is used to perform at least one of the following operations:
    在所述第二合约中冻结;Freeze in the second contract;
    在所述第二合约中冻结后激活;Activate after being frozen in the second contract;
    在所述第二合约中转账到第二用户的第二账户;Transfer to the second account of the second user in the second contract;
    在所述第二合约中冻结后转账到所述第二账户后冻结;After being frozen in the second contract, the funds are transferred to the second account and then frozen;
    在所述第二合约中冻结后转账到所述第二账户后激活;Activate after being frozen in the second contract and transferred to the second account;
  3. 一种资产流转方法,其特征在于,包括:An asset circulation method, characterized in that it includes:
    接收第二交易,根据所述第二交易,第一合约执行以下操作:The second transaction is received, and according to the second transaction, the first contract performs the following operations:
    在第二合约的第一用户账户中扣除第二数额的第二资产;Deduct the second amount of the second asset from the first user account of the second contract;
    在所述第一合约的第二合约账户中扣除所述第二数额的第二资产;Deduct the second amount of the second asset from the second contract account of the first contract;
    在所述第一合约中的所述第一用户账户中增加所述第二数额的第二资产;Adding the second amount of second assets to the first user account in the first contract;
    其中,所述第一合约为发行币种的发币合约,所述第二交易由第一用户需要转出若干资产到所述第一合约时生成并发送。Wherein, the first contract is a currency issuance contract for issuing currency, and the second transaction is generated and sent when the first user needs to transfer several assets to the first contract.
  4. 一种设备,其特征在于,所述设备包括:A device, characterized in that the device includes:
    一个或多个处理器;One or more processors;
    存储器,用于存储一个或多个程序,Memory, used to store one or more programs,
    当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器执行如权利要求1-3中任一项所述的方法。When the one or more programs are executed by the one or more processors, the one or more processors are caused to execute the method according to any one of claims 1-3.
  5. 一种存储有计算机程序的存储介质,其特征在于,该程序被处理器执行时实现如权利要求1-3中任一项所述的方法。A storage medium storing a computer program, wherein the program is executed by a processor to implement the method according to any one of claims 1-3.
PCT/CN2020/073982 2019-01-28 2020-01-23 Fund flow method, and device and storage medium WO2020156481A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910077655.1A CN109801167A (en) 2019-01-28 2019-01-28 A kind of fund flow method, equipment and storage medium
CN201910077655.1 2019-01-28

Publications (1)

Publication Number Publication Date
WO2020156481A1 true WO2020156481A1 (en) 2020-08-06

Family

ID=66559078

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/073982 WO2020156481A1 (en) 2019-01-28 2020-01-23 Fund flow method, and device and storage medium

Country Status (2)

Country Link
CN (1) CN109801167A (en)
WO (1) WO2020156481A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109801167A (en) * 2019-01-28 2019-05-24 杭州复杂美科技有限公司 A kind of fund flow method, equipment and storage medium
CN113222569A (en) * 2021-06-04 2021-08-06 杭州复杂美科技有限公司 Block chain asset mapping method, computer device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108805995A (en) * 2018-05-31 2018-11-13 阿里巴巴集团控股有限公司 Parking charging method and device, electronic equipment
CN108846760A (en) * 2018-06-14 2018-11-20 杭州复杂美科技有限公司 A kind of integral distributing method
CN109034806A (en) * 2018-08-15 2018-12-18 杭州复杂美科技有限公司 A kind of token publishing system
CN109801167A (en) * 2019-01-28 2019-05-24 杭州复杂美科技有限公司 A kind of fund flow method, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108805995A (en) * 2018-05-31 2018-11-13 阿里巴巴集团控股有限公司 Parking charging method and device, electronic equipment
CN108846760A (en) * 2018-06-14 2018-11-20 杭州复杂美科技有限公司 A kind of integral distributing method
CN109034806A (en) * 2018-08-15 2018-12-18 杭州复杂美科技有限公司 A kind of token publishing system
CN109801167A (en) * 2019-01-28 2019-05-24 杭州复杂美科技有限公司 A kind of fund flow method, equipment and storage medium

Also Published As

Publication number Publication date
CN109801167A (en) 2019-05-24

Similar Documents

Publication Publication Date Title
US20210326813A1 (en) Parallel Chain Cross-Chain Transaction Method, Device and Storage Medium
US20210264387A1 (en) Systems and methods of implementing blockchain technology for substantiating electronic assets
CN110458543B (en) Data processing method, related device and medium
US7702559B2 (en) Methods and apparatus for funding transactions
US20190197526A1 (en) Cashless retail wallet with just-in-time funding from cashless wagering wallet
US8266058B1 (en) Virtual accounts linked to financial accounts
WO2020220759A1 (en) Block chain-based payment method and device
AU2019257460A1 (en) Method and system for processing of a real-time rebate at transaction authorization
WO2020156481A1 (en) Fund flow method, and device and storage medium
US20210342838A1 (en) Systems and methods for receiving and distributing consideration via smart contracts on a blockchain
WO2021042810A1 (en) Asset settlement method and apparatus employing blockchain, and electronic device
TW201601082A (en) Processing electronic payments using at least two payment tools for a transaction
CN101221680A (en) System and method for implementing minimum and maximum amount repayment of individual loan
RU2673399C1 (en) Method of preserving savings purchasing ability
CN110084593A (en) Stablize token exchanging method, method of commerce, equipment and storage medium
US10210509B2 (en) Method and system for hybrid transportation-enabled payment card
JP6498643B2 (en) Foreign currency exchange device
CN111563809A (en) Guarantee fund management method, device, equipment and storage medium
US20230053969A1 (en) Tokenization of digital media files and associated derivatives
WO2022237555A1 (en) Blockchain system-based remittance method, and apparatus
CN108198070A (en) It is a kind of to improve the method for beating new stock lot winning rate
WO2019209889A2 (en) Enhanced international payment transaction system and method
WO2013189011A1 (en) Method and apparatus for transaction processing
JP6457131B1 (en) Information processing apparatus, information processing method, and program
US11526874B2 (en) Offline value transfer using asymmetric cryptography

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20748549

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20748549

Country of ref document: EP

Kind code of ref document: A1