CN113592643A - Asset periodic thawing method, computer device and storage medium - Google Patents
Asset periodic thawing method, computer device and storage medium Download PDFInfo
- Publication number
- CN113592643A CN113592643A CN202110731112.4A CN202110731112A CN113592643A CN 113592643 A CN113592643 A CN 113592643A CN 202110731112 A CN202110731112 A CN 202110731112A CN 113592643 A CN113592643 A CN 113592643A
- Authority
- CN
- China
- Prior art keywords
- asset
- unfreezing
- address
- transaction
- thawing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000010257 thawing Methods 0.000 title claims abstract description 105
- 238000000034 method Methods 0.000 title claims abstract description 45
- 230000000737 periodic effect Effects 0.000 title claims abstract description 33
- 238000011084 recovery Methods 0.000 claims description 12
- 230000006870 function Effects 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000605 extraction 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
Images
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 invention provides an asset periodic thawing method, computer equipment and a storage medium, wherein the method comprises the following steps: receiving first periodic unfreezing request information sent by a first client of a first user; the first scheduled 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 for 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 unfreezing transaction when the current block time reaches a first unfreezing time; the signature of the first asset unfreezing transaction comprises a periodic unfreezing identifier and a first asset unfreezing structure, and the address of a first transaction sender of the first asset unfreezing transaction is a first asset unfreezing address; the first asset thaw transaction is sent to a blockchain network. The present application provides for periodic defrosting of assets without deploying contracts.
Description
Technical Field
The application relates to the technical field of block chains, in particular to an asset periodic unfreezing method, computer equipment and a storage medium.
Background
In the prior art, periodic thawing of assets was required to be effected by contracts.
Disclosure of Invention
In view of the above-described deficiencies or inadequacies in the prior art, it would be desirable to provide an asset unfreezing method, computer device, and storage medium that provide periodic unfreezing services of an asset without deploying contracts.
In a first aspect, the present invention provides an asset periodic thawing method suitable for an asset thawing server, where the method includes:
receiving first periodic unfreezing request information sent by a first client of a first user; the first asset unfreezing structure is generated by a first unfreezing rule of the asset which is determined by a first user and a first asset issuer and is used for unfreezing the asset at regular intervals, and the first asset unfreezing rule comprises a first account address of the first user;
determining a first thawing time for 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 unfreezing transaction when the current block time reaches a first unfreezing time; the signature of the first asset unfreezing transaction comprises a periodic unfreezing identifier and a first asset unfreezing structure, and the address of a first transaction sender of the first asset unfreezing transaction is a first asset unfreezing address;
sending the first asset thaw transaction to a blockchain network for a blockchain node to:
when the first asset unfreezing transaction is judged to be an asset unfreezing type transaction according to the periodic unfreezing identification, a second asset unfreezing address is generated according to a first asset unfreezing structure in the first asset unfreezing transaction;
when the second asset unfreezing address is the same as the first transaction sender address and the first transaction receiver address of the first asset unfreezing transaction is the first account address, calculating a first numerical value of the evidence of the first user which can be extracted currently according to a first unfreezing rule;
the first value of the voucher is transferred from the first asset thaw address to the first transaction recipient address.
In a second aspect, the present invention 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 of periodically thawing assets provided in accordance with embodiments of the present invention.
In a third aspect, the present invention also provides a storage medium storing a computer program that causes a computer to execute a method for periodically thawing an asset, according to embodiments of the present invention.
The asset periodic thawing method, the computer equipment and the storage medium provided by the embodiments of the invention receive first periodic thawing request information sent by a first client of a first user; the first scheduled 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 for 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 unfreezing transaction when the current block time reaches a first unfreezing time; the signature of the first asset unfreezing transaction comprises a periodic unfreezing identifier and a first asset unfreezing structure, and the address of a first transaction sender of the first asset unfreezing transaction is a first asset unfreezing address; a method of sending a first asset thaw transaction to a blockchain network provides periodic thaw service of assets without deploying a contract.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, 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 invention.
Fig. 2 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 is a flowchart of a method for periodically thawing an asset according to an embodiment of the present invention. As shown in fig. 1, in this embodiment, the present invention provides a method for periodically thawing an asset, which is suitable for an asset thawing server, where the method includes:
s12: receiving first periodic unfreezing request information sent by a first client of a first user; the first asset unfreezing structure is generated by a first unfreezing rule of the asset which is determined by a first user and a first asset issuer and is used for unfreezing the asset at regular intervals, and the first asset unfreezing rule comprises a first account address of the first user;
s14: determining a first thawing time for 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 unfreezing transaction when the current block time reaches a first unfreezing time; the signature of the first asset unfreezing transaction comprises a periodic unfreezing identifier and a first asset unfreezing structure, and the address of a first transaction sender of the first asset unfreezing transaction is a first asset unfreezing address;
s18: sending the first asset thaw transaction to a blockchain network for a blockchain node to:
when the first asset unfreezing transaction is judged to be an asset unfreezing type transaction according to the periodic unfreezing identification, a second asset unfreezing address is generated according to a first asset unfreezing structure in the first asset unfreezing transaction;
when the second asset unfreezing address is the same as the first transaction sender address and the first transaction receiver address of the first asset unfreezing transaction is the first account address, calculating a first numerical value of the evidence of the first user which can be extracted currently according to a first unfreezing rule;
the first value of the voucher is transferred from the first asset thaw address to the first transaction recipient address.
Specifically, the first asset thawing rule further includes a third numerical value of each-period thawing evidence, a total number of asset thawing cycles, a thawing start time and a thawing cycle duration, and the calculation of the first numerical value of the first user's current extractable evidence according to the first thawing rule includes "calculating the first numerical value according to a first formula, where the first formula is M1 ═ floor ((T-T1)/T2) × M, M1 is the first numerical value, T is the current block time, T1 is the thawing start time, T2 is the thawing cycle duration, N is the total number of cycles, M is the third numerical value, and floor () is a rounding-down function";
suppose that the user a and the asset issuer B determine the asset rules for the regular thawing of the asset, and the thawing rules include addr (a), a value M of 100 for every thawing pass, a total number N of cycles for the thawing of the asset, 4, 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 determined asset unfreezing rule, generates an asset unfreezing structure S { addr (A), M (100), N (4), T1(2021.06.01.0:00:00) and T2(30 days) }, generates periodic unfreezing request information including S and sends the periodic unfreezing request information to an asset unfreezing server;
the asset thawing server executes step S12 to receive the periodic thawing request information;
the asset unfreezing service terminal executes the step S14, and the unfreezing time of each asset is determined according to the asset unfreezing rule and is respectively 2021.07.01.0:00:00, 2021.07.31.0:00:00, 2021.8.30.0:00:00 and 2021.9.29.0:00: 00; and generating an asset unfreezing address addr (X) according to the S;
the client of the asset issuer B also generates S according to the asset unfreezing rule, then generates addr (X) according to S, and generates a transfer transaction tx1 transferring to addr (X); the transfer value of tx1 is generally no less than 400, assuming that the transfer value of tx1 is 400; it will be appreciated by those skilled in the art that the client of asset issuer B may also generate multiple transfer transactions to transfer less than 400 total passes to addr (x) according to actual requirements; and the client of the property issuer B can also entrust other clients to generate transfer transaction, as long as the client of the property issuer B informs the entrusted client of addr (X);
for 2021.07.01.0:00:
when the current block time reaches 2021.6.01.0:00:00, the asset unfreezing server executes the step S16 to generate an asset unfreezing transaction tx 2; the signature of tx2 includes periodic unfreezing identification, S, and the address of the transaction sender of tx2 is addr (X);
the asset thawing server executes step S18, sending tx2 to the blockchain network;
the blockchain node judges that tx2 is an asset unfreezing transaction according to the periodic unfreezing identifier in the signature, and generates addr (X)' according to S in tx 2;
when addr (x) is the same as addr (x)' and the transaction receiver address of tx2 is addr (a), the block link point calculates the current extractable certified value M1 of user a according to a first formula, where M1 is floor ((T-T1)/T2) M, and M1 is 100; those skilled in the art will appreciate that if addr (x) is different from addr (x)' and/or the transaction recipient address of tx2 is not addr (a), then tx2 execution fails;
the block chain link point transfers 100 general certificates from addr (X) to addr (A); those skilled in the art will understand that if there are fewer than 100 passes in addr (x), then tx2 fails to execute; the asset thawing server can configure rules for generating asset thawing transactions according to actual requirements, for example, when the asset thawing server monitors at least one transfer transaction for transferring money to a first asset thawing address, the asset thawing server generates the asset thawing transactions; or, the asset thaw server may initiate an asset thaw transaction in whatever case; or when the asset thawing server monitors that at least one transfer transaction transfers to the first asset thawing address, and the numerical value of the transfer transaction is not less than 400, the client of the user generates the asset thawing transaction;
updating the certified value in addr (X) by the blockchain node: M3-M3-M1-300;
updating the value of the historical evidence obtaining amount of the user A by the block chain link points: M4-M4 + M1-100.
The subsequent asset thawing server still generates tx3 to tx5 when the block time comes to 2021.07.31.0:00:00, 2021.8.30.0:00:00 and 2021.9.29.0:00:00, respectively, and the method for executing tx3 to tx5 by the block link points is the same as the method for executing tx2, and will not be described herein again. It will be understood by those skilled in the art that when the thawing cycle duration T2 is set to a longer time, M1 is generally calculated as M; when the T2 setting is small, e.g., 5s, and the blockchain network is very congested, the calculated M1 may be 2M, 3M, etc.; assuming that the value is 2M, when the block link point finishes the execution of tx2, the 2M pass certificate is transferred from addr (X) to addr (A); however, the subsequent asset thawing server still generates tx3 tx5 when the block time comes to 2021.07.31.0:00:00, 2021.8.30.0:00:00, 2021.9.29.0:00:00, respectively, and at least one block link point transfers 0 general certificate from addr (x) to addr (a) when tx3 tx5 is executed.
In further embodiments, the calculation method of the current extractable evidence of the user may be further configured according to actual requirements, for example, the first asset thawing rule further includes a first total number of frozen evidence, a total number of cycles of the asset thawing, a thawing start time, and a thawing cycle duration, and the calculating the first value of the current extractable evidence of the user according to the first asset thawing rule includes "calculating a first value according to a second formula, where 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 thawing start time, T2 is the thawing cycle duration, M2 is the first total number, N is the total number of cycles, and floor () is a rounding-down function," which may achieve the same technical effect. And for the scenario that at least one stroke is to transfer 0 certificates from addr (x) to addr (a) when the block chain node executes tx3 to tx5, the calculation method of the certificates extractable by the user at present may be configured according to actual requirements, for example, the first asset unfreezing rule further includes a first total number of frozen certificates and a total number of asset unfreezing cycles; the block link point transfers 100 certificates from addr (x) to addr (a) as long as it receives an asset unfreezing transaction, and the same technical effect can be achieved.
It should be understood by those skilled in the art that the method of "generating a first asset unfreezing address according to a first asset unfreezing structure" may be configured according to actual needs, for example, configured to encode the first asset unfreezing structure according to a protobuf protocol to generate a first binary string, and hash the first binary string to generate the first asset unfreezing address; accordingly, "generating a second asset thaw address according to a first asset thaw structure in a first asset thaw transaction" should be configured to encode the first asset thaw structure in the first asset thaw transaction according to a protobuf protocol to generate a second binary string that is hashed to generate the second asset thaw address. Alternatively, the method of "generating a first asset unfreezing address according to a first asset unfreezing structure" may be configured to encode the first asset unfreezing structure according to thrift (other protocol than protobuf) to generate a first binary string, and hash the first binary string to generate the first asset unfreezing address; accordingly, "generating a second asset thaw address according to a first asset thaw structure in a first asset thaw transaction" should be configured to encode the first asset thaw structure in the first asset thaw transaction according to a thrift protocol to generate a second binary string that is hashed to generate the second asset thaw address.
It should be understood by those skilled in the art that in the above embodiment, the amount of the withdrawal is not specified in the asset unfreezing transaction, but the asset unfreezing transaction may also be configured as a transaction that can specify the amount of the withdrawal according to actual requirements; for example, if the specified withdrawal amount is a fifth value, the "transfer of the first value of the voucher from the first asset thaw address to the transaction recipient address for the first asset thaw transaction" should be configured to "transfer the fifth value of the voucher from the first asset thaw address to the transaction recipient address for the first asset thaw transaction when the second value is not greater than the first value and the second value is not less than the fifth value" and, subsequently, "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 historical evidence-based credit line 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 numerical value of the historical evidence obtaining amount of the current user to the fifth numerical value to update the fourth numerical value ".
Those skilled in the art will appreciate that the above method is particularly suitable for some scenarios where funds are released periodically, such as where the salary of an employee is not changed, and where a business releases salary to the employee; alternatively, buyers order goods of constant value to sellers on a regular basis.
The above-described embodiments enable blockchains to provide periodic defrosting and extraction services of assets without deploying contracts.
Preferably, the step of crediting the first value from the first asset thaw address to the first transaction recipient address comprises:
judging whether a second numerical value of the certificate of pass in the current first asset unfreezing address is not less than a first numerical value: if so, transferring the first value of the pass certificate from the first asset unfreezing address to a first transaction receiver address;
after the first value of the voucher is transferred from the first asset unfreezing address to the first transaction recipient address, the method further comprises the following steps:
subtracting the first value from the second value to update the second value;
and adding the first numerical value to the fourth numerical value of the historical evidence obtaining amount of the current user to update the fourth numerical value.
The asset thawing principle of the above embodiment may refer to the method shown in fig. 1, and will not be described herein.
Preferably, the first asset unfreezing rule further includes a third numerical value of the evidence of unfreezing in each period, a total number of cycles of unfreezing the asset, a unfreezing start time and a time length of the unfreezing cycle, and the calculating the first numerical value of the evidence of the first user, which can be extracted currently, according to the first unfreezing rule includes:
the first value is calculated according to a first formula, wherein the first formula is M1 ═ floor ((T-T1)/T2) × M, M1 is a first value, T is the current block time, T1 is the thawing start time, T2 is the thawing cycle duration, N is the total cycle number, M is a third value, and floor () is a downward integer function.
The asset thawing principle of the above embodiment may refer to the method shown in fig. 1, and will not be described herein.
Preferably, the first asset unfreezing rule further includes a first total number of frozen certificates, a total number of cycles of asset unfreezing, a unfreezing start time and a unfreezing cycle duration, and the calculating the first value of the certificate currently extractable by the first user according to the first unfreezing rule includes:
the first value is calculated according to a second formula, 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 thawing start time, T2 is the thawing cycle duration, M2 is the first total number, N is the total cycle number, and floor () is a floor function.
The asset thawing principle of the above embodiment may refer to the method shown in fig. 1, and will not be described herein.
Preferably, the first asset unfreezing rule further includes a plurality of second account addresses, and when the second asset unfreezing address is the same as the first transaction sender address and the first transaction receiver address of the first asset unfreezing transaction is the first account address, calculating the first numerical value of the pass certificate currently extractable by the first user according to the first unfreezing rule includes:
and when the second asset unfreezing 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 numerical value of the evidence of the first user, which can be extracted currently, according to the first asset unfreezing 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 unfreezing rules include only the first account address, which results in the unfrozen asset being only scratchable to the first account address. In the above embodiment, the first asset unfreezing rule further includes a plurality of second account addresses, and the second account addresses are generally other addresses of the first user (and possibly trusted addresses or other addresses of other users); the defrosted asset may be transferred according to an actual requirement, for example, when the first user forgets a private key of an account where the first account address is located, that is, the first user loses the first account address, the client of the first user may notify the asset defrosted server to modify the account address of the defrosted asset, and the asset defrosted server may still generate an asset defrosted transaction (at this time, a transaction receiver of the asset defrosted transaction is any second account address), so that the asset is defrosted to the specified second account address.
Preferably, the first asset unfreezing rule further includes a public key of the asset unfreezing server, and the method further includes:
receiving first address updating 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 retrieval transaction according to the first address update request information; wherein the first asset recovery transaction includes a first asset thaw structure and a third account address;
sending the first asset recovery transaction to a blockchain network for a blockchain node to:
generating a third asset thaw address according to the first asset thaw structure in the first asset recovery transaction;
and when the second transaction sender address of the first asset recovery transaction is the same as the third asset unfreezing address and the signature of the first asset recovery transaction is matched with the public key of the asset unfreezing server, transferring the residual pass-certificate in the first asset unfreezing 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 unfreezing rules include only the first account address, which results in the unfrozen asset being only scratchable to the first account address. In the above embodiment, the first asset unfreezing rule further includes a public key of the asset unfreezing server, when the first user finds that the first account address is lost, the first user may send first address update request information (to change the first account address into a third account address) to the asset unfreezing server, the asset unfreezing server may generate an asset recovery transaction according to the update request information, and the blockchain node transfers the remaining pass-evidence in the first asset unfreezing address to the third account address when executing the asset recovery transaction.
In further embodiments, the "transfer the remaining certificates in the first asset unfreezing address to the third account address" may be configured according to actual requirements, for example, the configuration is "transfer the remaining certificates in the first asset unfreezing address to the account address of the asset unfreezing server", and subsequently, the asset unfreezing server regenerates a transfer transaction and sends the transfer transaction to the blockchain network, and when the block link point executes the transfer transaction successfully, the certificates transferred to the account address of the asset unfreezing server are transferred from the account address of the asset unfreezing server to the third account address, so that the same technical effect may be achieved.
Further preferably, the method further comprises:
determining a second asset unfreezing rule according to the first asset unfreezing rule and the third account address, generating a second asset unfreezing structure according to the second asset unfreezing rule, and generating a fourth asset unfreezing address according to the second asset unfreezing structure;
generating a second asset unfreezing transaction when the current block time reaches the first unfreezing time; the signature of the second asset unfreezing transaction comprises a periodic unfreezing identifier and a second asset unfreezing structure, and a third transaction sender address of the second asset unfreezing transaction is a fourth asset unfreezing address;
sending the second asset thaw transaction to the blockchain network for the blockchain node to:
when the second asset unfreezing transaction is judged to be an asset unfreezing type transaction according to the periodic unfreezing identification, a fifth asset unfreezing address is generated according to a second asset unfreezing structure in the second asset unfreezing transaction;
when the address of the third transaction sender is the same as the fifth asset unfreezing address and the address of the second transaction receiver of the second asset unfreezing transaction is a third account address, calculating a first numerical value of the evidence of the user which can be extracted currently according to the first asset unfreezing rule;
and the first value of the voucher is transferred from the fourth asset thaw address to the third transaction recipient address.
In the above embodiment, since the account address change of the defrosted asset is received, the second asset defrosted rule should be confirmed (the second asset defrosted rule includes the third account address therein); and correspondingly generating a second asset unfreezing structure and a fourth asset unfreezing address; the assets to be defrosted subsequently should be transferred from the fourth asset defrosted address to the third account address, and the specific asset defrosted principle is similar to that shown in fig. 1 and will not be described herein again.
Those skilled in the art should understand that the method on the node side of the block chain, which can cooperate with the method described in fig. 1 and the above preferred embodiments, and the method on the client side can also be configured according to actual requirements, and will not be described herein again.
Fig. 2 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
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 that 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 section 208 into a Random Access Memory (RAM) 203. In the RAM203, various programs and data necessary for the operation of the computer apparatus are also stored. The CPU201, ROM202, and RAM203 are connected to each other via 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 portion 206 including a keyboard, a mouse, and the like; an output section 207 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 208 including a hard disk and the like; and a communication section 209 including a network interface card such as a LAN card, a modem, or the like. The communication section 209 performs communication processing via a network such as the internet. A 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 mounted on the drive 210 as necessary, so that a computer program read out therefrom is mounted into the storage section 208 as necessary.
In particular, according to an embodiment 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 through the communication section 209 and/or installed from the removable medium 211.
As yet another aspect, the present application also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus of the above-described embodiment; or it may be a computer-readable storage medium that exists separately and is not assembled into a computer device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described in the present application.
The flowchart 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 invention. 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 described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, for example, each of the described units may be a software program provided in a computer or a mobile intelligent device, or may be a separately configured hardware device. Wherein the designation of a unit or module does not in some way constitute a limitation of the unit or module itself.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the present application. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.
Claims (9)
1. A method for periodically unfreezing an asset is suitable for an asset unfreezing server side, and comprises the following steps:
receiving first periodic unfreezing request information sent by a first client of a first user; the first scheduled thawing request information comprises a first asset thawing structure, the first asset thawing structure is generated by a first 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 for thawing each asset according to the first thawing rule, and generating a first asset thawing address according to the first asset thawing structure;
generating a first asset unfreezing transaction when the current block time reaches the first unfreezing time; the signature of the first asset unfreezing transaction comprises a periodic unfreezing identifier and the first asset unfreezing structure, and the address of a first transaction sender of the first asset unfreezing transaction is the first asset unfreezing address;
sending the first asset thaw transaction to a blockchain network for blockchain nodes to:
when the first asset unfreezing transaction is judged to be an asset unfreezing transaction according to the periodic unfreezing identification, generating a second asset unfreezing address according to the first asset unfreezing structure in the first asset unfreezing transaction;
when the second asset unfreezing address is the same as the first transaction sender address and the first transaction receiver address of the first asset unfreezing transaction is the first account address, calculating a first numerical value of the evidence of the first user which can be extracted currently according to the first unfreezing rule;
and wherein the first transaction recipient address is assigned a second value that is different from the first value.
2. The method of claim 1, wherein said crediting said first value from said first asset thaw address to said first transaction recipient address comprises:
judging whether a second numerical value of the certificate of pass in the current first asset unfreezing address is not less than the first numerical value: if so, transferring the first value of the voucher from the first asset unfreezing address to the first transaction receiver address;
after the step of transferring the first value of the voucher from the first asset unfreezing 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 first numerical value to a fourth numerical value of the historical evidence obtaining amount of the first user to update the fourth numerical value.
3. The method of claim 1, wherein the first asset thaw rule further includes a third value for each thaw pass, a total number of cycles of asset thawing, a thaw start time, and a thaw cycle duration, and wherein calculating the first value for the current extractable pass of the first user according to the first thaw rule includes:
the first value is calculated according to a first formula, where 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 cycle duration, N is the total cycle number, M is the third value, and floor () is a floor function.
4. The method of claim 1, wherein the first asset thaw rule further includes a first total number of frozen passes, a total number of asset thaw cycles, a thaw start time, and a thaw cycle duration, and wherein calculating a first value of a pass currently extractable by the first user according to the first thaw rule includes:
the first value is calculated according to a second formula, where M1-floor ((T-T1)/T2) × (M2/N), M1 is the first value, T is the current block time, T1 is the thawing start time, T2 is the thawing cycle duration, M2 is the first total number, N is the total cycle number, and floor () is a floor function.
5. The method of claim 1, wherein the first asset unfreezing rule further comprises a plurality of second account addresses, and wherein calculating a first value of the current extractable proof of the first user according to the first unfreezing rule when the second asset unfreezing address is the same as the first transaction sender address and the first transaction receiver address of the first asset unfreezing transaction is the first account address comprises:
and when the second asset unfreezing 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 numerical value of the pass certificate which can be currently extracted by the first user according to the first asset unfreezing structure in the first asset transaction.
6. The method of claim 1, wherein the first asset unfreezing rule further comprises a public key of an asset unfreezing server, further comprising:
receiving first address updating 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 retrieval transaction according to the first address update request information; wherein the first asset recovery transaction includes the first asset thaw structure and the third account address;
sending the first asset recovery transaction to a blockchain network for blockchain nodes to:
generating a third asset thaw address according to the first asset thaw structure in the first asset recovery transaction;
and when the second transaction sender address of the first asset recovery transaction is the same as the third asset unfreezing address and the signature of the first asset recovery transaction is matched with the public key, transferring the residual pass-certificate in the first asset unfreezing address to the third account address.
7. The method of claim 6, further comprising:
determining a second asset unfreezing rule according to the first asset unfreezing rule and the third account address, generating a second asset unfreezing structure according to the second asset unfreezing rule, and generating a fourth asset unfreezing address according to the second asset unfreezing structure;
generating a second asset unfreezing transaction when the current block time reaches the first unfreezing time; the signature of the second asset unfreezing transaction comprises a periodic unfreezing identifier and a second asset unfreezing structure, and a third transaction sender address of the second asset unfreezing transaction is the fourth asset unfreezing address;
sending the second asset thaw transaction to a blockchain network for blockchain nodes to:
when the second asset unfreezing transaction is judged to be an asset unfreezing transaction according to the periodic unfreezing identification, a fifth asset unfreezing address is generated according to the second asset unfreezing structure in the second asset unfreezing transaction;
when the third transaction sender address is the same as the fifth asset unfreezing address and the second transaction receiver address of the second asset unfreezing transaction is the third account address, calculating a first numerical value of the evidence of the user which can be extracted currently according to the first asset unfreezing rule;
and wherein the third transaction recipient address is a transaction recipient address for which the first value is credited.
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 recited in any of claims 1-7.
9. A storage medium storing a computer program, characterized in that the program, when executed by a processor, implements the method according to 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 true CN113592643A (en) | 2021-11-02 |
CN113592643B 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 (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180101906A1 (en) * | 2016-10-07 | 2018-04-12 | The Toronto-Dominion Bank | Secure element method for distributed electronic ledger |
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 |
-
2021
- 2021-06-29 CN CN202110731112.4A patent/CN113592643B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180101906A1 (en) * | 2016-10-07 | 2018-04-12 | The Toronto-Dominion Bank | Secure element method for distributed electronic ledger |
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 |
---|
刘雄文;: "多区块链交易分发和事件处理的系统方案", 计算机科学, no. 2 * |
Also Published As
Publication number | Publication date |
---|---|
CN113592643B (en) | 2023-11-28 |
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 | |
CN112583811B (en) | Wallet finding method, equipment and storage medium | |
CN109146490B (en) | Block generation method, device and system | |
US20160218879A1 (en) | Method and apparatus for the limitation of the mining of blocks on a block chain | |
KR20170040079A (en) | Block chain supporting multiple one-way functions used for verification of blocks | |
CN112600664B (en) | Delayed transaction generation method, delayed transaction execution device and storage medium | |
CN110083745B (en) | Data query method, device and storage medium | |
CN109005208B (en) | Method and device for pushing information | |
CN112184228B (en) | Asset exchange method, device and storage medium | |
CN110942300B (en) | Transfer certificate submitting method, device and storage medium | |
CN113034137A (en) | Data processing method and device based on block chain and related equipment | |
CN111523896A (en) | Anti-attack method, device and storage medium | |
CN113592643A (en) | Asset periodic thawing method, computer device and storage medium | |
CN113592653B (en) | Proxy delay transaction method, computer device and storage medium | |
CN113379549A (en) | Asset extraction method, computer device, and storage medium | |
US12058201B2 (en) | Read access for computational results of a distributed network | |
CN115439240A (en) | Transaction group execution method, computer device and storage medium | |
CN113590715A (en) | Block chain-based information push method, apparatus, device, medium, and program product | |
CN113205336B (en) | Multiple signature transaction method, computer device and storage medium | |
CN113592652B (en) | Delay transaction method, computer device and storage medium | |
CN111125187A (en) | Data management method and device based on block chain | |
CN113222576B (en) | Delayed transfer method, computer device and storage medium | |
CN113744055B (en) | Cross-link message transmission method, device and storage medium | |
CN113222577B (en) | Delayed transfer method, computer device and storage medium | |
CN115660854A (en) | Cross-chain asset transfer 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 |