CN113592643B - Asset periodic thawing method, computer device and storage medium - Google Patents
Asset periodic thawing method, computer device and storage medium Download PDFInfo
- Publication number
- CN113592643B CN113592643B CN202110731112.4A CN202110731112A CN113592643B CN 113592643 B CN113592643 B CN 113592643B CN 202110731112 A CN202110731112 A CN 202110731112A CN 113592643 B CN113592643 B CN 113592643B
- Authority
- CN
- China
- Prior art keywords
- thawing
- asset
- address
- transaction
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000010257 thawing Methods 0.000 title claims abstract description 368
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000000737 periodic effect Effects 0.000 title claims abstract description 33
- 238000011084 recovery Methods 0.000 claims description 14
- 230000006870 function Effects 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 8
- 238000000605 extraction Methods 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000010200 validation analysis Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The application provides a method for periodically thawing assets, a computer device and a storage medium, wherein the method comprises the following steps: receiving first timing defrosting request information sent by a first client of a first user; the first periodic defrosting request information comprises a first asset defrosting structure, the first asset defrosting structure is generated by a first defrosting rule, and the first asset defrosting rule comprises a first account address of the first user; determining a first thawing time of thawing each asset according to a first thawing rule, and generating a first asset thawing address according to a first asset thawing structure; generating a first asset thawing transaction when the current block time reaches a first thawing time; the signature of the first asset thawing transaction comprises a periodic thawing identification and a first asset thawing structure, wherein the first transaction sender address of the first asset thawing transaction is a first asset thawing address; the first asset thawing transaction is sent to a blockchain network. The present application provides periodic defrosting services of assets without deploying contracts.
Description
Technical Field
The application relates to the technical field of blockchain, in particular to a periodic thawing method for assets, computer equipment and a storage medium.
Background
In the prior art, periodic thawing of assets is required to be accomplished through contracts.
Disclosure of Invention
In view of the above-described drawbacks or deficiencies of the prior art, it is desirable to provide an asset thawing method, computer device and storage medium that provides periodic thawing service of assets without deploying contracts.
In a first aspect, the present application provides a method for periodically thawing an asset, which is applicable to an asset thawing server, and the method includes:
receiving first timing defrosting request information sent by a first client of a first user; the first periodic thawing request information comprises a first asset thawing structure, the first asset thawing structure is generated by a first thawing rule of periodically thawing the asset determined by a first user and a first asset issuer, and the first asset thawing rule comprises a first account address of the first user;
determining a first thawing time of thawing each asset according to a first thawing rule, and generating a first asset thawing address according to a first asset thawing structure;
generating a first asset thawing transaction when the current block time reaches a first thawing time; the signature of the first asset thawing transaction comprises a periodic thawing identification and a first asset thawing structure, wherein the first transaction sender address of the first asset thawing transaction is a first asset thawing address;
transmitting the first asset thawing transaction to a blockchain network for blockchain nodes to:
when the first asset thawing transaction is judged to be an asset thawing type transaction according to the periodic thawing identification, generating a second asset thawing address according to a first asset thawing structure in the first asset thawing transaction;
when the second asset thawing address is the same as the first transaction sender address and the first transaction receiver address of the first asset thawing transaction is the first account address, calculating a first numerical value of a current extractable certificate of the first user according to a first thawing rule;
the validation of the first value is transferred from the first asset thawing address to the first transaction recipient address.
In a second aspect, the present application also provides an apparatus comprising one or more processors and a memory, wherein the memory contains instructions executable by the one or more processors to cause the one or more processors to perform a method for periodically thawing an asset provided in accordance with embodiments of the present application.
In a third aspect, the present application also provides a storage medium storing a computer program that causes a computer to execute the asset periodic thawing method provided according to the embodiments of the present application.
According to the asset periodic thawing method, the computer equipment and the storage medium provided by the embodiments of the application, first periodic thawing request information sent by a first client of a first user is received; the first periodic thawing request information comprises a first asset thawing structure, the first asset thawing structure is generated by a first thawing rule, and the first asset thawing rule comprises a first account address of a first user; determining a first thawing time of thawing each asset according to a first thawing rule, and generating a first asset thawing address according to a first asset thawing structure; generating a first asset thawing transaction when the current block time reaches a first thawing time; the signature of the first asset thawing transaction comprises a periodic thawing identification and a first asset thawing structure, wherein the first transaction sender address of the first asset thawing transaction is a first asset thawing address; a method of sending a first asset thawing transaction to a blockchain network provides periodic thawing services of assets without deploying contracts.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart of a method for periodically thawing an asset according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be noted that, for convenience of description, only the portions related to the application are shown in the drawings.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
Fig. 1 is a flowchart of a method for periodically thawing an asset according to an embodiment of the present application. As shown in fig. 1, in this embodiment, the present application provides a method for periodically thawing an asset, which is applicable to an asset thawing server, and the method includes:
s12: receiving first timing defrosting request information sent by a first client of a first user; the first periodic thawing request information comprises a first asset thawing structure, the first asset thawing structure is generated by a first thawing rule of periodically thawing the asset determined by a first user and a first asset issuer, and the first asset thawing rule comprises a first account address of the first user;
s14: determining a first thawing time of thawing each asset according to a first thawing rule, and generating a first asset thawing address according to a first asset thawing structure;
s16: generating a first asset thawing transaction when the current block time reaches a first thawing time; the signature of the first asset thawing transaction comprises a periodic thawing identification and a first asset thawing structure, wherein the first transaction sender address of the first asset thawing transaction is a first asset thawing address;
s18: transmitting the first asset thawing transaction to a blockchain network for blockchain nodes to:
when the first asset thawing transaction is judged to be an asset thawing type transaction according to the periodic thawing identification, generating a second asset thawing address according to a first asset thawing structure in the first asset thawing transaction;
when the second asset thawing address is the same as the first transaction sender address and the first transaction receiver address of the first asset thawing transaction is the first account address, calculating a first numerical value of a current extractable certificate of the first user according to a first thawing rule;
the validation of the first value is transferred from the first asset thawing address to the first transaction recipient address.
Specifically, the first asset thawing rule further includes a third value of each period of thawing pass, a total period of thawing of the asset, a thawing start time and a thawing period duration, and calculating the first value of the current extractable pass of the first user according to the first thawing rule includes "calculating the first value according to a first formula, where the first formula is m1=floor ((T-T1)/T2) ×m, M1 is the first value, T is the current block time, T1 is the thawing start time, T2 is the thawing period duration, N is the total period number, M is the third value, floor () is a downward rounding function" as an example;
assuming that the user a and the asset issuer B determine asset rules for periodic thawing of the asset, the above thawing rules include addr (a), a value m=100 for each thawing pass, a total number n=4 of cycles of thawing the asset, a thawing start time T1 (2021.6.01.0:00:00), and a thawing cycle duration T2 (30 days);
the client of the user A responds to the determination of the asset thawing rules, generates asset thawing structures S { addr (A), M (100), N (4), T1 (2021.06.01.0:00:00) and T2 (30 days) }, generates periodic thawing request information comprising S and sends the periodic thawing request information to an asset thawing server;
the asset thawing server executes step S12 to receive the periodic thawing request information;
the asset thawing service end executes step S14, and determines thawing time of each asset thawing according to the asset thawing rule, wherein the thawing time is 2021.07.01.0:00:00, 2021.07.31.0:00:00, 2021.8.30.0:00:00, 2021.9.29.0:00:00 respectively; and generating an asset thawing address addr (X) according to S;
the client of the asset issuer B also generates S according to the asset thawing rule, generates addr (X) according to the S, and generates a transfer transaction tx1 for transferring to the addr (X); the transfer value of tx1 is generally not less than 400, here it is assumed that tx1 has a transfer value of 400; it will be appreciated by those skilled in the art that the client of the asset issuer B may also generate multiple transfer transactions to transfer a total of less than 400 passes to addr (X) according to actual needs; and, the client of the asset issuer B may also delegate other clients to generate transfer transactions as long as the client of the asset issuer B informs the delegated client of addr (X);
for 2021.07.01.0:00:00:
when the current block time reaches 2021.6.01.0:00:00, the asset thawing server executes step S16 to generate an asset thawing transaction tx2; the signature of tx2 comprises a periodic thawing identification, S, and the address of a transaction sender of tx2 is addr (X);
the asset thawing server performs step S18 of sending tx2 to the blockchain network;
the blockchain node judges that tx2 is an asset thawing transaction according to the periodic thawing identification in the signature, and generates addr (X)' according to S in tx2;
when addr (X) is the same as addr (X)' and the address of the transaction receiver of tx2 is addr (a), the blockchain node calculates the current and extractable evidence value M1 of the user a according to a first formula, wherein the first formula is m1=floor ((T-T1)/T2) X M, and m1=100; it will be appreciated by those skilled in the art that tx2 fails to execute if addr (X) is different from addr (X) 'and/or tx 2' is not addressed to addr (a);
the block link points transfer 100 passes from addr (X) to addr (a); those skilled in the art will appreciate that tx2 fails to perform if there are fewer than 100 passes in addr (X); the asset thawing server may configure rules for generating asset thawing transactions according to actual demand, e.g., the asset thawing server may generate asset thawing transactions when the asset thawing server monitors at least one transfer transaction that transfers to a first asset thawing address; or, the asset thawing server may initiate asset thawing transactions wherever possible; or, when the asset thawing server monitors at least one transfer transaction of transferring to the first asset thawing address, and the value of the transfer transaction is not less than 400, the client of the user generates the asset thawing transaction;
the blockchain node updates the certified value in addr (X): m3=m3-m1=300;
updating the value of the history passing extraction limit of the user A by the block chain link point: m4=m4+m1=100.
The subsequent asset thawing service end still generates tx3 to tx5 when the block time arrives at 2021.07.31.0:00:00, 2021.8.30.0:00:00, 2021.9.29.0:00:00 respectively, and the method for executing tx3 to tx5 by the block link point is the same as the method for executing tx2, which is not repeated here. Those skilled in the art will appreciate that when the thawing period duration T2 is set for a longer period of time, M1 is generally calculated as M; when T2 is set small, e.g., set to 5s, and the blockchain network is very crowded, the calculated M1 may be 2M, 3M, etc.; assuming 2M, the blockchain node transfers the pass of 2M from addr (X) to addr (A) when tx2 is performed; however, the subsequent asset thawing server still generates tx3 to tx5 when the block time arrives at 2021.07.31.0:00:00, 2021.8.30.0:00:00, 2021.9.29.0:00:00, respectively, so that at least one block chain node may transfer 0 passes from addr (X) to addr (a) when executing tx3 to tx 5.
In more embodiments, the method for calculating the current extractable evidence of the user may be further configured according to actual needs, for example, configured that the first asset thawing rule further includes a first total number of frozen evidence, a total number of asset thawing cycles, a thawing start time and a thawing cycle time, and calculating the first value of the current extractable evidence of the user according to the first asset thawing rule includes "calculating the first value according to a second formula, where the second formula is m1=floor ((T-T1)/T2) ×m 2/N), M1 is the first value, T is the current block time, T1 is the thawing start time, T2 is the thawing cycle time, M2 is the first total number, N is the total number of cycles, floor () is a downward rounding function", and the same technical effects can be achieved. And, for the situation that at least one of the block chain nodes is to transfer 0 passes from addr (X) to addr (a) when executing tx3 to tx5, the calculation method of the current extractable passes of the user can be configured according to actual requirements, for example, the configuration is that the first asset thawing rule further comprises a first total number of frozen passes and a total number of asset thawing cycles; the block link point can transfer 100 certificates from addr (X) to addr (a) as long as receiving one asset thawing transaction, and the same technical effect can be achieved.
It should be understood by those skilled in the art that the method of generating the first asset thawing address according to the first asset thawing structure may be configured according to actual requirements, for example, configured to encode the first asset thawing structure according to the protobuf protocol to generate a first binary string, and hash the first binary string to generate the first asset thawing address; accordingly, the "generate a second asset thawing address from a first asset thawing structure in a first asset thawing transaction" should be configured to encode the first asset thawing structure in the first asset thawing transaction according to protobuf protocol to generate a second binary string, and hash the second binary string to generate the second asset thawing address. Alternatively, the method of generating the first asset thawing address from the first asset thawing structure may be configured to encode the first asset thawing structure according to thraft (other protocols than protobuf) to generate a first binary string, and hash the first binary string to generate the first asset thawing address; accordingly, the "generate a second asset defrost address from a first asset defrost structure in a first asset defrost transaction" should be configured to encode the first asset defrost structure in the first asset defrost transaction according to a threft protocol to generate a second binary string, and hash the second binary string to generate the second asset defrost address.
It will be appreciated by those skilled in the art that in the above embodiments, the amount of withdrawal is not specified in the asset thawing transaction, but the asset thawing transaction may also be configured as a transaction in which the amount of withdrawal may be specified according to actual needs; for example, the specified extraction amount is a fifth value, then "transfer the pass of the first value from the first asset thawing address to the transaction recipient address of the first asset thawing transaction" should be configured to "transfer the pass of the fifth value from the first asset thawing address to the transaction recipient address of the first asset thawing transaction when the second value is not greater than the first value and the second value is not less than the fifth value, and then" subtract the first value from the second value to update the second value; adding the first value to the fourth value of the current user's history pass extraction credit to update the fourth value "should be configured to" subtract the fifth value from the second value to update the fifth value; and adding the fourth value of the history pass extraction limit of the current user with the fifth value to update the fourth value.
It will be appreciated by those skilled in the art that the above-described method is particularly well suited for some scenarios where funds are issued periodically, such as where the employee's salary is unchanged, the enterprise issues salary to the employee; alternatively, the buyer periodically orders a constant value commodity from the seller.
The above-described embodiments enable blockchains to provide periodic thawing and extraction services of assets without deploying contracts.
Preferably, the transferring of the certification of the first value from the first asset thawing address to the first transaction recipient address comprises:
judging whether the second value of the evidence in the current first asset thawing address is not less than the first value: if yes, transferring the pass of the first value from the first asset thawing address to the first transaction receiver address;
after transferring the pass of the first value from the first asset thawing address to the first transaction recipient address, further comprising:
subtracting the first value from the second value to update the second value;
and adding the first value to the fourth value of the history pass extraction limit of the current user to update the fourth value.
The asset thawing principle of the above embodiment may refer to the method shown in fig. 1, and will not be described here again.
Preferably, the first asset thawing rule further includes a third value of a current thawing pass, a total number of cycles of asset thawing, a thawing start time, and a thawing cycle duration, and calculating the first value of the current extractable pass of the first user according to the first thawing rule includes:
according to a first formula, a first value is calculated, wherein the first formula is m1=floor ((T-T1)/T2) M, M1 is the first value, T is the current block time, T1 is the defrosting start time, T2 is the defrosting cycle duration, N is the total cycle number, M is the third value, and floor () is a downward rounding function.
The asset thawing principle of the above embodiment may refer to the method shown in fig. 1, and will not be described here again.
Preferably, the first asset thawing rule further comprises a first total number of frozen letters, a total number of asset thawing cycles, a thawing start time and a thawing cycle duration, and calculating a first value of a current extractable letter of the first user according to the first thawing rule comprises:
according to a second formula, a first value is calculated, wherein the second formula is m1=floor ((T-T1)/T2) (M2/N), M1 is the first value, T is the current block time, T1 is the defrosting start time, T2 is the defrosting cycle duration, M2 is the first total number, N is the total cycle number, and floor () is a downward rounding function.
The asset thawing principle of the above embodiment may refer to the method shown in fig. 1, and will not be described here again.
Preferably, the first asset thawing rule further includes a plurality of second account addresses, and when the second asset thawing address is the same as the first transaction sender address and the first transaction receiver address of the first asset thawing transaction is the first account address, calculating the first value of the current extractable certificate of the first user according to the first thawing rule includes:
when the second asset thawing address is the same as the first transaction sender address and the first transaction receiver address is the first account address or any second account address, calculating a first value of a current extractable certificate of the first user according to a first asset thawing structure in the first asset transaction.
The above-described embodiment differs from the embodiment shown in fig. 1 in that in the embodiment shown in fig. 1, the asset thawing rule includes only a first account address, which results in thawed assets being able to be transferred only to the first account address. Whereas in the above embodiment the first asset thawing rule also includes a number of second account addresses, which are typically other addresses of the first user (also possibly trusted addresses or other addresses of other users); the thawed asset may be transferred according to actual requirements, for example, when the first user forgets the private key of the account where the first account address is located, i.e. the first user loses the first account address, the client of the first user may notify the asset thawing server to modify the account address for receiving the thawed asset, and the asset thawing server may still generate an asset thawing transaction (at this time, the transaction receiver of the asset thawing transaction is any second account address), so as to thaw the asset to the designated second account address.
Preferably, the first asset thawing rule further comprises a public key of an asset thawing server, and the method further comprises:
receiving first address update request information generated by a first client of a first user; the first address updating request information comprises a first account address and a third account address to be changed;
generating a first asset recovery transaction according to the first address update request information; wherein the first asset recovery transaction includes a first asset thawing structure and a third account address;
transmitting the first asset recovery transaction to the blockchain network for the blockchain node to:
generating a third asset thawing address according to the first asset thawing structure in the first asset recovery transaction;
and when the address of the second transaction sender of the first asset recovery transaction is the same as the third asset thawing address and the signature of the first asset recovery transaction is matched with the public key of the asset thawing server, transferring the remaining pass in the first asset thawing address to the third account address.
The above-described embodiment differs from the embodiment shown in fig. 1 in that in the embodiment shown in fig. 1, the asset thawing rule includes only a first account address, which results in thawed assets being able to be transferred only to the first account address. In the above embodiment, if the first user finds that the first account address is lost, the first user may send first address update request information (change the first account address to the third account address) to the asset thawing server, and the asset thawing server may generate an asset recovery transaction according to the update request information, where the blockchain node transfers the remaining pass in the first asset thawing address to the third account address when executing the asset recovery transaction.
In more embodiments, the foregoing "transfer the remaining pass in the first asset thawing address to the third account address" may be further configured according to actual needs, for example, configured to "transfer the remaining pass in the first asset thawing address to the account address of the asset thawing server", and then, the asset thawing server regenerates a transfer transaction and sends the transfer transaction to the blockchain network, and when the blockchain node executes the transfer transaction successfully, transfers the pass in the account address transferred to the asset thawing server from the account address of the asset thawing server to the third account address, so that the same technical effects may be achieved.
Further preferably, the above method further comprises:
determining a second asset thawing rule according to the first asset thawing rule and the third account address, generating a second asset thawing structure according to the second asset thawing rule, and generating a fourth asset thawing address according to the second asset thawing structure;
generating a second asset thawing transaction when the current block time reaches the first thawing time; the signature of the second asset thawing transaction comprises a periodic thawing identification and a second asset thawing structure, and the address of a third transaction sender of the second asset thawing transaction is a fourth asset thawing address;
transmitting the second asset thawing transaction to the blockchain network for the blockchain node to:
generating a fifth asset thawing address according to a second asset thawing structure in the second asset thawing transaction when the second asset thawing transaction is determined to be an asset thawing type transaction according to the periodic thawing identification;
when the address of the third transaction sender is the same as the address of the fifth asset thawing, and the address of the second transaction receiver of the second asset thawing transaction is the third account address, calculating a first numerical value of a current extractable certificate of the user according to the first asset thawing rule;
and transferring the certification of the first value from the fourth asset thawing address to the third transaction receiver address.
In the above embodiment, since the account address change of the thawing asset is received, the second asset thawing rule (the third account address is included in the second asset thawing rule) should be confirmed; and correspondingly generating a second asset thawing structure and a fourth asset thawing address; the asset thawing principle for subsequent thawing should be transferred from the fourth asset thawing address to the third account address, the specific asset thawing principle being similar to that shown in fig. 1 and will not be repeated here.
Those skilled in the art will understand that the blockchain node-side method that can be matched with the method described in fig. 1 and the above preferred embodiments, and the client-side method may also be configured according to actual requirements, which will not be described herein.
Fig. 2 is a schematic structural diagram of a computer device according to an embodiment of the present application.
As shown in fig. 2, as another aspect, the present application also provides a computer apparatus including one or more Central Processing Units (CPUs) 201, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 202 or a program loaded from a storage portion 208 into a Random Access Memory (RAM) 203. In the RAM203, various programs and data required for the operation of the computer device are also stored. The CPU201, ROM202, and RAM203 are connected to each other through a bus 204. An input/output (I/O) interface 205 is also connected to bus 204.
The following components are connected to the I/O interface 205: an input section 206 including a keyboard, a mouse, and the like; an output portion 207 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage section 208 including a hard disk or the like; and a communication section 209 including a network interface card such as a LAN card, a modem, and the like. The communication section 209 performs communication processing via a network such as the internet. The drive 210 is also connected to the I/O interface 205 as needed. A removable medium 211 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed on the drive 210 as needed, so that a computer program read out therefrom is installed into the storage section 208 as needed.
In particular, according to embodiments of the present disclosure, the method described in any of the above embodiments may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing any of the methods described above. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 209, and/or installed from the removable medium 211.
As still another aspect, the present application also provides a computer-readable storage medium, which may be a computer-readable storage medium contained in the apparatus of the above-described embodiment; or may be a computer-readable storage medium, alone, that is not assembled into a computer device. The computer-readable storage medium stores one or more programs for use by one or more processors to perform the methods described herein.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules involved in the embodiments of the present application may be implemented in software or in hardware. The described units or modules may also be provided in a processor, for example, each of the units may be a software program provided in a computer or a mobile smart device, or may be separately configured hardware devices. Wherein the names of the units or modules do not in some cases constitute a limitation of the units or modules themselves.
The above description is only illustrative of the preferred embodiments of the present application and of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the application referred to in the present application is not limited to the specific combinations of the technical features described above, but also covers other technical features formed by any combination of the technical features described above or their equivalents without departing from the spirit of the application. Such as the above-mentioned features and the technical features disclosed in the present application (but not limited to) having similar functions are replaced with each other.
Claims (9)
1. A method for periodically thawing an asset, which is suitable for an asset thawing server, the method comprising:
receiving first timing defrosting request information sent by a first client of a first user; the first periodic thawing request information comprises a first asset thawing structure, wherein the first asset thawing structure is generated by a first asset thawing rule of periodically thawing assets determined by a first user and a first asset issuer, and the first asset thawing rule comprises a first account address of the first user;
determining a first thawing time of thawing each asset according to the first asset thawing rule, and generating a first asset thawing address according to the first asset thawing structure;
generating a first asset thawing transaction when the current block moment reaches the first thawing moment; the signature of the first asset thawing transaction comprises a periodic thawing identifier and the first asset thawing structure, wherein a first transaction sender address of the first asset thawing transaction is the first asset thawing address;
transmitting the first asset thawing transaction to a blockchain network for blockchain nodes to:
when the first asset thawing transaction is judged to be an asset thawing type transaction according to the periodic thawing identification, generating a second asset thawing address according to the first asset thawing structure in the first asset thawing transaction;
when the second asset thawing address is the same as the first transaction sender address and the first transaction receiver address of the first asset thawing transaction is the first account address, calculating a first value of a current extractable evidence of the first user according to the first asset thawing rule;
and transferring the certification of the first numerical value from the first asset thawing address to the first transaction receiver address.
2. The method of claim 1, wherein the swiping the first numerical certification from the first asset thawing address to the first transaction recipient address comprises:
judging whether the second value of the evidence in the current first asset thawing address is not less than the first value: if yes, transferring the first numerical value certification from the first asset thawing address to the first transaction receiver address;
after the transferring the first numerical certification from the first asset thawing address to the first transaction receiver address, the method further comprises:
subtracting the first value from the second value to update the second value;
and adding the fourth value of the history pass extraction limit of the first user to the first value to update the fourth value.
3. The method of claim 1, wherein the first asset thawing rule further comprises a third value for each period of thawing pass, a total number of asset thawing cycles, a thawing start time, and a thawing cycle duration, and wherein calculating the first value for the first user's current extractable pass based on the first asset thawing rule comprises:
calculating the first value according to a first formula, where m1=floor ((T-T1)/T2) ×m, M1 is the first value, T is a current block time, T1 is the defrosting start time, T2 is the defrosting cycle duration, N is the total cycle number, M is the third value, and floor () is a downward rounding function.
4. The method of claim 1, wherein the first asset thawing rule further comprises a first total number of frozen letters, a total number of asset thawing cycles, a thawing start time, and a thawing cycle duration, and wherein calculating a first value of a current extractable letter of the first user from the first asset thawing rule comprises:
calculating the first value according to a second formula, where m1=floor ((T-T1)/T2) ×m2/N, M1 is the first value, T is a current block time, T1 is the defrosting start time, T2 is the defrosting cycle duration, M2 is the first total number, N is the total cycle number, and floor () is a downward rounding function.
5. The method of claim 1, wherein the first asset thawing rule further comprises a plurality of second account addresses, wherein when the second asset thawing address is the same as the first transaction sender address and a first transaction receiver address of the first asset thawing transaction is the first account address, calculating a first value of a current extractable evidence of the first user according to the first asset thawing rule comprises:
when the second asset thawing address is the same as the first transaction sender address and the first transaction receiver address is the first account address or any one of the second account addresses, calculating a first value of a current extractable certificate of the first user according to the first asset thawing structure in the first asset transaction.
6. The method of claim 1, wherein the first asset thawing rule further comprises a public key of an asset thawing server, further comprising:
receiving first address update request information generated by a first client of the first user; the first address updating request information comprises the first account address and a third account address to be changed;
generating a first asset recovery transaction according to the first address update request information; wherein the first asset recovery transaction includes the first asset thawing structure and the third account address;
transmitting the first asset recovery transaction to a blockchain network for blockchain nodes to:
generating a third asset thawing address according to the first asset thawing structure in the first asset recovery transaction;
and when the address of the second transaction sender of the first asset recovery transaction is the same as the third asset thawing address and the signature of the first asset recovery transaction is matched with the public key, transferring the remaining through certificate in the first asset thawing address to the third account address.
7. The method as recited in claim 6, further comprising:
determining a second asset thawing rule according to the first asset thawing rule and the third account address, generating a second asset thawing structure according to the second asset thawing rule, and generating a fourth asset thawing address according to the second asset thawing structure;
generating a second asset thawing transaction when the current block moment reaches the first thawing moment; the signature of the second asset thawing transaction comprises a regular thawing identifier and the second asset thawing structure, and the address of a third transaction sender of the second asset thawing transaction is the fourth asset thawing address;
sending the second asset thawing transaction to a blockchain network for blockchain nodes to:
generating a fifth asset thawing address according to the second asset thawing structure in the second asset thawing transaction when the second asset thawing transaction is determined to be an asset thawing type transaction according to the periodic thawing identification;
when the address of the third transaction sender is the same as the address of the fifth asset thawing, and the address of the second transaction receiver of the second asset thawing transaction is the third account address, calculating a first value of a current extractable certificate of the user according to the first asset thawing rule;
and transferring the certification of the first value from the fourth asset thawing address to the third transaction receiver address.
8. A computer device, the device comprising:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-7.
9. A storage medium storing a computer program, which when executed by a processor implements the method of any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110731112.4A CN113592643B (en) | 2021-06-29 | 2021-06-29 | Asset periodic thawing method, computer device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110731112.4A CN113592643B (en) | 2021-06-29 | 2021-06-29 | Asset periodic thawing method, computer device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113592643A CN113592643A (en) | 2021-11-02 |
CN113592643B true CN113592643B (en) | 2023-11-28 |
Family
ID=78245201
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110731112.4A Active CN113592643B (en) | 2021-06-29 | 2021-06-29 | Asset periodic thawing method, computer device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113592643B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111507839A (en) * | 2020-04-15 | 2020-08-07 | 腾讯科技(深圳)有限公司 | Data processing method and device based on block chain, storage medium and equipment |
CN112583811A (en) * | 2020-12-09 | 2021-03-30 | 杭州复杂美科技有限公司 | Wallet retrieving method, equipment and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11282137B2 (en) * | 2016-10-07 | 2022-03-22 | The Toronto-Dominion Bank | Secure element method for distributed electronic ledger |
-
2021
- 2021-06-29 CN CN202110731112.4A patent/CN113592643B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111507839A (en) * | 2020-04-15 | 2020-08-07 | 腾讯科技(深圳)有限公司 | Data processing method and device based on block chain, storage medium and equipment |
CN112583811A (en) * | 2020-12-09 | 2021-03-30 | 杭州复杂美科技有限公司 | Wallet retrieving method, equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
多区块链交易分发和事件处理的系统方案;刘雄文;;计算机科学(第S2期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113592643A (en) | 2021-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10459946B2 (en) | Method and system for tuning blockchain scalability, decentralization, and security for fast and low-cost payment and transaction processing | |
CN110505065B (en) | Trusted timestamp adding method and device and storage medium | |
CN109716375A (en) | Processing method, device and the storage medium of block chain account | |
CN112583811B (en) | Wallet finding method, equipment and storage medium | |
CN112600664B (en) | Delayed transaction generation method, delayed transaction execution device and storage medium | |
US11323546B2 (en) | Executing remote commands | |
CN112150141A (en) | Block chain consensus method, device and system | |
CN111798238B (en) | Parallel chain consensus method, apparatus and storage medium | |
CN109872139B (en) | Transaction replacement method, apparatus and storage medium | |
US20230351370A1 (en) | Electronic wallet and method for atomic swapping of two different blockchain tokens by using electronic wallet | |
CN112184228B (en) | Asset exchange method, device and storage medium | |
CN113592643B (en) | Asset periodic thawing method, computer device and storage medium | |
CN111523896B (en) | Attack prevention method, apparatus and storage medium | |
CN110942300B (en) | Transfer certificate submitting method, device and storage medium | |
CN113592653B (en) | Proxy delay transaction method, computer device and storage medium | |
US20230237476A1 (en) | Electronic wallet, server for executing the same, and method for atomic exchange of blockchain tokens using the server | |
CN113378242A (en) | Data verification method and system | |
CN113205336B (en) | Multiple signature transaction method, computer device and storage medium | |
CN109889570B (en) | Equipment information distribution system and method | |
CN113379549A (en) | Asset extraction method, computer device, and storage medium | |
CN113592651B (en) | Delay transaction method, computer device and storage medium | |
CN113222577B (en) | Delayed transfer method, computer device and storage medium | |
CN111027973A (en) | Transfer certificate authorization submitting method, device and storage medium | |
CN113706303B (en) | Universal time delay transaction method, computer equipment and storage medium | |
CN113592652B (en) | Delay transaction method, computer device and storage medium |
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 |