CN110992009A - Delayed transaction advanced processing method, device and storage medium - Google Patents

Delayed transaction advanced processing method, device and storage medium Download PDF

Info

Publication number
CN110992009A
CN110992009A CN201911224041.8A CN201911224041A CN110992009A CN 110992009 A CN110992009 A CN 110992009A CN 201911224041 A CN201911224041 A CN 201911224041A CN 110992009 A CN110992009 A CN 110992009A
Authority
CN
China
Prior art keywords
transaction
delayed
verification code
execution
advance
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.)
Pending
Application number
CN201911224041.8A
Other languages
Chinese (zh)
Inventor
吴思进
王志文
曹兢
李斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Fuzamei Technology Co Ltd
Original Assignee
Hangzhou Fuzamei Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Fuzamei Technology Co Ltd filed Critical Hangzhou Fuzamei Technology Co Ltd
Priority to CN201911224041.8A priority Critical patent/CN110992009A/en
Publication of CN110992009A publication Critical patent/CN110992009A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/22Payment schemes or models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/405Establishing or using transaction specific rules
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The invention provides a delayed transaction advanced processing method, a device and a storage medium, wherein the method comprises the following steps: generating a first verification code and a hash value of the first verification code; generating a first delayed transaction with the hash value configured to execute the verification parameter in advance, and sending the first delayed transaction to a block chain node for storing the first delayed transaction in a delayed cache queue outside the memory pool; responding to a verification code sending instruction input by a current user, transmitting a first verification code and transaction hash of a first delayed transaction to a second user end in an appointed mode, so that the second user end generates a first advance execution transaction according to the first verification code and the transaction hash and sends the first advance execution transaction to a block chain node for execution, and verifying whether a hash value of the first verification code is the same as an advance execution verification parameter: if yes, the first delay transaction is stored in the memory pool in advance. The method and the device have the advantage that the delayed transaction can be executed in advance under the condition of passing the verification.

Description

Delayed transaction advanced processing method, device and storage medium
Technical Field
The application relates to the technical field of block chains, in particular to a delayed transaction advanced processing method, delayed transaction advanced processing equipment and a storage medium.
Background
The applicant has proposed two mechanisms for processing transaction delays on blockchains in several patent applications filed previously: a method for buffering delayed transactions in a delayed cache queue outside a memory pool to spend a delay period; another method for submitting transactions through delayed transactions submits delayed transactions to the chain but not executed for the duration of the delay period.
In the two transaction delay processing mechanisms, once the delay transaction is sent to the blockchain network, the delay transaction must be executed after a specified delay time, so that some service logics which need to execute the delay transaction in advance cannot be realized, for example, a delay transfer transaction of a user A to a user B is hoped to be executed in advance after the user B completes a certain task to be used as an incentive for completing the task, and the like.
Disclosure of Invention
In view of the above-mentioned drawbacks and deficiencies of the prior art, it is desirable to provide a delayed transaction advance processing method, apparatus, and storage medium that allow a delayed transaction to be executed in advance under a verified condition.
In a first aspect, the present invention provides a method for advanced processing of delayed transactions at a user end, including:
generating a first verification code and a hash value of the first verification code;
generating a first delayed transaction with the hash value configured to execute the verification parameter in advance, and sending the first delayed transaction to a block chain node for storing the first delayed transaction in a delayed cache queue outside the memory pool;
responding to a verification code sending instruction input by a current user, transmitting a first verification code and transaction hash of a first delayed transaction to a second user end in an appointed mode, so that the second user end generates a first advance execution transaction according to the first verification code and the transaction hash and sends the first advance execution transaction to a block chain node for execution, and verifying whether a hash value of the first verification code is the same as an advance execution verification parameter: if yes, the first delay transaction is stored in the memory pool in advance.
In a second aspect, the present invention provides another method for advanced processing of delayed transactions at a user end, including:
acquiring a verification code sending instruction which is input by a first user in response to a first user, a first verification code which is transmitted in a specified mode and a transaction hash of a first delayed transaction; the first delayed transaction is generated by the first user terminal and sent to the block chain node for storing in a delayed cache queue outside the memory pool, and is configured with a pre-execution verification parameter which is a hash value of a first verification code;
generating a first transaction to be executed in advance according to the first verification code and the transaction hash, sending the transaction to the block chain node for execution, and verifying whether the hash value of the first verification code is the same as the verification parameter to be executed in advance: if yes, the first delay transaction is stored in the memory pool in advance.
In a third aspect, the present invention provides a method for processing a delayed transaction in advance, which is applicable to a blockchain node, and includes:
storing the first delayed transaction into a delayed cache queue outside the memory pool; the first delayed transaction is generated by the first user end, the first delayed transaction is configured with a pre-execution verification parameter, and the pre-execution verification parameter is a hash value of a first verification code generated by the first user end;
executing the first advance execution transaction, and verifying whether the hash value of the first verification code in the first advance execution transaction is the same as the advance execution verification parameter: if yes, storing the first delay transaction into a memory pool in advance; the second user end obtains a verification code sending instruction which is input by the first user end in response to the first user, and generates and sends the first verification code and the transaction hash of the first delayed transaction according to the first verification code and the transaction hash after the first verification code and the transaction hash are transmitted in a specified mode.
In a fourth aspect, the present invention provides a method for advanced processing of delayed transactions at a user end, including:
generating a second verification code and a hash value of the second verification code;
generating a second delayed transaction which configures the hash value as a verification parameter to be executed in advance, and a delayed transaction submission transaction comprising the second delayed transaction, and sending the delayed transaction submission transaction to the blockchain node for execution: if the execution is successful, recording the second delayed transaction on the block chain, and configuring the transaction state of the second delayed transaction as submitted;
responding to a verification code sending instruction input by a current user, transmitting a second verification code and transaction hash of a second delayed transaction to a second user end in an appointed mode, so that the second user end generates a second advance execution transaction according to the second verification code and the transaction hash and sends the second advance execution transaction to a block chain node for execution, and verifying whether a hash value of the second verification code is the same as an advance execution verification parameter: if so, a second delayed transaction is executed and the transaction state is configured as executed.
In a fifth aspect, the present invention provides a further method for advanced processing of delayed transactions at a user end, including:
acquiring a verification code sending instruction which is input by a first user in response to a first user, and a second verification code and a transaction hash of a second delayed transaction which are transmitted in a specified mode by a first user; the block chain link point records the second delayed transaction to the block chain when the delayed transaction is executed and the transaction submitting is successful, and the transaction state of the second delayed transaction is configured to be submitted; the second delayed transaction and the delayed transaction submitting transaction are generated by the first user terminal, the delayed transaction submitting transaction comprises the second delayed transaction, the second delayed transaction comprises an advanced execution verification parameter, and the advanced execution verification parameter is a hash value of a second verification code;
generating a second advance execution transaction according to the second verification code and the transaction hash, sending the second advance execution transaction to the block chain node for execution, and verifying whether the hash value of the second verification code is the same as the advance execution verification parameter: if so, a second delayed transaction is executed and the transaction state is configured as executed.
In a sixth aspect, the present invention provides another method for advanced processing of delayed transactions applicable to a blockchain node, including:
performing a delayed transaction commit transaction: if the execution is successful, recording the second delayed transaction on the block chain, and configuring the transaction state of the second delayed transaction as submitted; the first user end generates a first delayed transaction and a first delayed transaction submitting transaction, the first delayed transaction submitting transaction comprises a first delayed transaction, the first delayed transaction comprises an advanced execution verification parameter, and the advanced execution verification parameter is a hash value of a first verification code;
executing the second pre-execution transaction, and verifying whether the hash value of the second verification code in the second pre-execution transaction is the same as the pre-execution verification parameter: if yes, executing a second delayed transaction, and configuring the transaction state as executed; and the second user end acquires a verification code sending instruction which is input by the first user end in response to the first user through the first user end, and generates and sends the second verification code and the transaction hash of the second delayed transaction according to the second verification code and the transaction hash after the second verification code and the transaction hash are transmitted in a specified mode.
In a seventh 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 delayed transaction advance processing method provided according to embodiments of the present invention.
In an eighth aspect, the present invention further provides a storage medium storing a computer program for causing a computer to execute the advanced delayed transaction processing method according to the embodiments of the present invention.
The delayed transaction advanced processing method, the delayed transaction advanced processing device and the storage medium provided by the embodiments of the invention configure the hash value of the verification code as the advanced execution verification parameter in the delayed transaction, and configure the verification code submitted by the advanced execution verification according to the advanced execution verification parameter in the delayed contract on the block chain, and advance execution mechanism for executing the delayed transaction in advance when the verification is passed, so that the advanced execution of the delayed transaction can be triggered by sending the advanced execution transaction as long as the user acquires the verification code, thereby realizing that the delayed transaction can be executed in advance under the condition of passing the verification.
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 advanced processing of delayed transactions at a user end according to an embodiment of the present invention.
Fig. 2 is a flowchart of another delayed transaction advance processing method suitable for a user side according to an embodiment of the present invention.
Fig. 3 is a flowchart of a method for advanced processing of delayed transactions for blockchain nodes according to an embodiment of the present invention.
Fig. 4 is a flowchart of another delayed transaction advance processing method suitable for the user side according to an embodiment of the present invention.
Fig. 5 is a flowchart of another advanced delayed transaction processing method applicable to a user side according to an embodiment of the present invention.
Fig. 6 is a flowchart of another advanced transaction processing method applicable to a blockchain node according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of an apparatus 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 advanced processing of delayed transactions at a user end according to an embodiment of the present invention.
As shown in fig. 1, in this embodiment, the present invention provides a method for advanced processing of delayed transactions applicable to a user side, including:
s12: generating a first verification code and a hash value of the first verification code;
s14: generating a first delayed transaction with the hash value configured to execute the verification parameter in advance, and sending the first delayed transaction to a block chain node for storing the first delayed transaction in a delayed cache queue outside the memory pool;
s16: responding to a verification code sending instruction input by a current user, transmitting a first verification code and transaction hash of a first delayed transaction to a second user end in an appointed mode, so that the second user end generates a first advance execution transaction according to the first verification code and the transaction hash and sends the first advance execution transaction to a block chain node for execution, and verifying whether a hash value of the first verification code is the same as an advance execution verification parameter: if yes, the first delay transaction is stored in the memory pool in advance.
The method is exemplified by offering the parent a to the child b when starting a study, giving the toy a as a reward if the examination in the interim or the examination at the end of the interim achieves a specified score, and giving the toy a as a vacation gift if the goal is not achieved (the toy a is awarded at the end of the holiday if the examination in the interim is achieved, and the toy a is awarded at the vacation if the examination in the interim or the examination at the end of the holiday is not achieved).
In step S12, the user end of the user a generates the verification code m and the m hash value hash (m);
in step S14, the user side of the first generates a delayed transaction tx1 of the redemption ticket of the second transfer toy a after the school term is over, configures the advanced execution verification parameter of tx1 as hash (m), and sends the signed tx1 to the blockchain node.
And the blockchain node receives and broadcasts tx1, and stores tx1 in a delay cache queue outside the memory pool after judging that tx1 is delay transaction.
When the examination achievement in the second period meets the appointed achievement, the first user inputs the verification code to send a command, and in step S16, the first user transmits the verification code m and the transaction hash (tx1) to the second user through any means commonly used in the art. For example, a two-dimensional code is generated from the verification code m and the transaction hash (tx1) and displayed for collection and decoding, or m and hash (tx1) are sent directly through an instant messenger, and so on.
And after the user side of the second user acquires the m and the hash (tx1), generating a transaction tx2 executed in advance and sending the transaction tx2 to the blockchain node.
The blockchain node receives, broadcasts and packages tx2, executes tx2 through a delayed trade contract, finds tx1 according to the hash (tx1) in tx2, and verifies whether the hash value of m in tx2 is the same as the hash (m) in tx 1:
if not, tx2 fails;
if yes, tx2 is executed successfully, tx1 is stored into the memory pool in advance, so that tx1 is packed in advance to execute: if the execution is successful, the redemption ticket of the toy A is transferred to the second, so that the second can redeem the toy A at the designated redemption place by the redemption ticket.
At this point, the user of the first can send a further delay transaction tx3 in the same manner to issue a subsequent (end of term, holiday) award.
And when the examination result in the second period does not accord with the appointed result, the first device does not provide the verification code m to the second device according to the appointment and waits for the examination result at the end of the period to be discharged.
The method is exemplarily described by taking the example that parents issue rewards to children, and in further embodiments, the method can be applied to different scenes and business logics, and the same technical effect can be achieved.
In the above embodiment, the hash value of the verification code is configured as the advanced execution verification parameter in the delayed transaction, and the advanced execution mechanism for verifying the verification code submitted by the advanced execution transaction according to the advanced execution verification parameter and executing the delayed transaction in advance when the verification is passed is configured in the delayed contract on the blockchain, so that the advanced execution of the delayed transaction can be triggered by sending the advanced execution transaction as long as the user obtains the verification code, and the delayed transaction can be executed in advance under the condition of passing the verification.
Fig. 2 is a flowchart of another delayed transaction advance processing method suitable for a user side according to an embodiment of the present invention. The method illustrated in fig. 2 may be performed in conjunction with the method illustrated in fig. 1.
As shown in fig. 2, in this embodiment, the present invention further provides another method for advanced processing of delayed transactions at a user end, including:
s22: acquiring a verification code sending instruction which is input by a first user in response to a first user, a first verification code which is transmitted in a specified mode and a transaction hash of a first delayed transaction; the first delayed transaction is generated by the first user terminal and sent to the block chain node for storing in a delayed cache queue outside the memory pool, and is configured with a pre-execution verification parameter which is a hash value of a first verification code;
s24: generating a first transaction to be executed in advance according to the first verification code and the transaction hash, sending the transaction to the block chain node for execution, and verifying whether the hash value of the first verification code is the same as the verification parameter to be executed in advance: if yes, the first delay transaction is stored in the memory pool in advance.
The advanced processing principle of delayed transaction in the method shown in fig. 2 can refer to the method shown in fig. 1, and is not described herein again.
Fig. 3 is a flowchart of a method for advanced processing of delayed transactions for blockchain nodes according to an embodiment of the present invention. The method illustrated in fig. 3 may be performed in conjunction with the methods illustrated in fig. 1-2.
As shown in fig. 3, in this embodiment, the present invention further provides a method for advanced processing of delayed transactions applicable to a blockchain node, including:
s32: storing the first delayed transaction into a delayed cache queue outside the memory pool; the first delayed transaction is generated by the first user end, the first delayed transaction is configured with a pre-execution verification parameter, and the pre-execution verification parameter is a hash value of a first verification code generated by the first user end;
s34: executing the first advance execution transaction, and verifying whether the hash value of the first verification code in the first advance execution transaction is the same as the advance execution verification parameter: if yes, storing the first delay transaction into a memory pool in advance; the second user end obtains a verification code sending instruction which is input by the first user end in response to the first user, and generates and sends the first verification code and the transaction hash of the first delayed transaction according to the first verification code and the transaction hash after the first verification code and the transaction hash are transmitted in a specified mode.
The advanced transaction processing principle of the method shown in fig. 3 can also refer to the method shown in fig. 1, and is not described herein again.
Fig. 4 is a flowchart of another delayed transaction advance processing method suitable for the user side according to an embodiment of the present invention.
As shown in fig. 4, in this embodiment, the present invention provides a method for advanced processing of delayed transactions applicable to a user side, including:
s42: generating a second verification code and a hash value of the second verification code;
s44: generating a second delayed transaction which configures the hash value as a verification parameter to be executed in advance, and a delayed transaction submission transaction comprising the second delayed transaction, and sending the delayed transaction submission transaction to the blockchain node for execution: if the execution is successful, recording the second delayed transaction on the block chain, and configuring the transaction state of the second delayed transaction as submitted;
s46: responding to a verification code sending instruction input by a current user, transmitting a second verification code and transaction hash of a second delayed transaction to a second user end in an appointed mode, so that the second user end generates a second advance execution transaction according to the second verification code and the transaction hash and sends the second advance execution transaction to a block chain node for execution, and verifying whether a hash value of the second verification code is the same as an advance execution verification parameter: if so, a second delayed transaction is executed and the transaction state is configured as executed.
Specifically, the method shown in fig. 4-6 differs from the method shown in fig. 1-3 in that the transaction delay mechanism configured on the blockchain is different:
in the method shown in fig. 1-3, the transaction delay mechanism on the blockchain is configured to buffer the delayed transactions in a delay buffer queue outside the memory pool to elapse the delay period;
in the method shown in fig. 4-6, the transaction delay mechanism on the blockchain is configured to forward the delayed transaction to the uplink via a delayed transaction forward transaction, but not to execute the delayed transaction for the duration of the delay period.
In addition, if the advanced processing of the delayed transaction is not triggered finally, in the method shown in fig. 1 to 3, after the delay period elapses, the delayed transaction is stored in the memory pool and is packed and executed; in the methods shown in fig. 4-6, after the delay period elapses, the delayed transaction is not automatically packed and executed, and the user end is required to send a delayed transaction execution transaction to trigger the execution of the delayed transaction.
Fig. 5 is a flowchart of another advanced delayed transaction processing method applicable to a user side according to an embodiment of the present invention. The method illustrated in fig. 5 may be performed in conjunction with the method illustrated in fig. 4.
As shown in fig. 5, in this embodiment, the present invention provides a method for advanced processing of delayed transactions applicable to a user side, including:
s52: acquiring a verification code sending instruction which is input by a first user in response to a first user, and a second verification code and a transaction hash of a second delayed transaction which are transmitted in a specified mode by a first user; the block chain link point records the second delayed transaction to the block chain when the delayed transaction is executed and the transaction submitting is successful, and the transaction state of the second delayed transaction is configured to be submitted; the second delayed transaction and the delayed transaction submitting transaction are generated by the first user terminal, the delayed transaction submitting transaction comprises the second delayed transaction, the second delayed transaction comprises an advanced execution verification parameter, and the advanced execution verification parameter is a hash value of a second verification code;
s54: generating a second advance execution transaction according to the second verification code and the transaction hash, sending the second advance execution transaction to the block chain node for execution, and verifying whether the hash value of the second verification code is the same as the advance execution verification parameter: if so, a second delayed transaction is executed and the transaction state is configured as executed.
The advanced transaction processing principle of the method shown in fig. 5 can refer to the method shown in fig. 4, and is not described herein again.
Fig. 6 is a flowchart of another advanced transaction processing method applicable to a blockchain node according to an embodiment of the present invention. The method illustrated in fig. 6 may be performed in conjunction with the methods illustrated in fig. 4-5.
As shown in fig. 6, in this embodiment, the present invention further provides another method for advanced processing of delayed transactions applicable to a blockchain node, including:
s62: performing a delayed transaction commit transaction: if the execution is successful, recording the second delayed transaction on the block chain, and configuring the transaction state of the second delayed transaction as submitted; the first user end generates a first delayed transaction and a first delayed transaction submitting transaction, the first delayed transaction submitting transaction comprises a first delayed transaction, the first delayed transaction comprises an advanced execution verification parameter, and the advanced execution verification parameter is a hash value of a first verification code;
s64: executing the second pre-execution transaction, and verifying whether the hash value of the second verification code in the second pre-execution transaction is the same as the pre-execution verification parameter: if yes, executing a second delayed transaction, and configuring the transaction state as executed; and the second user end acquires a verification code sending instruction which is input by the first user end in response to the first user through the first user end, and generates and sends the second verification code and the transaction hash of the second delayed transaction according to the second verification code and the transaction hash after the second verification code and the transaction hash are transmitted in a specified mode.
The advanced transaction processing principle of the method shown in fig. 6 can refer to the method shown in fig. 4, and is not described herein again.
Fig. 7 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
As shown in fig. 7, as another aspect, the present application also provides an apparatus 700 including one or more Central Processing Units (CPUs) 701 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data necessary for the operation of the apparatus 700 are also stored. The CPU701, the ROM702, and the RAM703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 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 can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711.
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 separate computer readable storage medium not incorporated into the 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 unit 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 (8)

1. A method for advanced processing of delayed transactions is applicable to a user side, and comprises the following steps:
generating a first verification code and a hash value of the first verification code;
generating a first delayed transaction with the hash value configured to execute a verification parameter in advance, and sending the first delayed transaction to a block chain node for storing the first delayed transaction in a delayed cache queue outside a memory pool;
responding to a verification code sending instruction input by a current user, transmitting the first verification code and the transaction hash of the first delayed transaction to a second user end in a specified mode, so that the second user end generates a first advance execution transaction according to the first verification code and the transaction hash and sends the first advance execution transaction to a block chain node for execution, and verifying whether the hash value of the first verification code is the same as the advance execution verification parameter: if yes, the first delay transaction is stored in a memory pool in advance.
2. A method for advanced processing of delayed transactions is applicable to a user side, and comprises the following steps:
acquiring a verification code sending instruction which is input by a first user in response to a first user, a first verification code which is transmitted in a specified mode and a transaction hash of a first delayed transaction; the first delayed transaction is generated by the first user terminal and sent to a block chain node for storing in a delayed cache queue outside a memory pool, and is configured with an advanced execution verification parameter which is a hash value of the first verification code;
generating a first advance execution transaction according to the first verification code and the transaction hash, sending the first advance execution transaction to a block chain node for execution, and verifying whether the hash value of the first verification code is the same as the advance execution verification parameter: if yes, the first delay transaction is stored in a memory pool in advance.
3. A method for advanced processing of delayed transactions, the method being applicable to a blockchain node, the method comprising:
storing the first delayed transaction into a delayed cache queue outside the memory pool; the first delayed transaction is generated by a first user end, and is configured with a pre-execution verification parameter which is a hash value of a first verification code generated by the first user end;
executing a first pre-execution transaction, verifying whether a hash value of a first verification code in the first pre-execution transaction is the same as the pre-execution verification parameter: if yes, the first delay transaction is stored in a memory pool in advance; and the second user end acquires a verification code sending instruction which is input by the first user end in response to the first user, and generates and sends the first verification code and the transaction hash of the first delayed transaction according to the first verification code and the transaction hash after the first verification code and the transaction hash are transmitted in a specified mode.
4. A method for advanced processing of delayed transactions is applicable to a user side, and comprises the following steps:
generating a second verification code and a hash value of the second verification code;
generating a second delayed transaction in which the hash value is configured to execute authentication parameters in advance, and a delayed transaction submission transaction including the second delayed transaction, and sending the delayed transaction submission transaction to a blockchain node for execution: if the execution is successful, recording the second delayed transaction on a block chain, and configuring the transaction state of the second delayed transaction as submitted;
responding to a verification code sending instruction input by a current user, transmitting the second verification code and the transaction hash of the second delayed transaction to a second user end in a specified mode, so that the second user end generates a second advance execution transaction according to the second verification code and the transaction hash and sends the second advance execution transaction to a block chain node for execution, and verifying whether the hash value of the second verification code is the same as the advance execution verification parameter: if so, executing the second delayed transaction, and configuring the transaction state as executed.
5. A method for advanced processing of delayed transactions is applicable to a user side, and comprises the following steps:
acquiring a verification code sending instruction which is input by a first user in response to a first user, and a second verification code and a transaction hash of a second delayed transaction which are transmitted in a specified mode by a first user; recording the second delayed transaction to a blockchain by a blockchain link point when the delayed transaction is successfully submitted after being executed, and configuring the transaction state of the second delayed transaction as submitted; the second delayed transaction and the delayed transaction submission transaction are generated by the first user end, the delayed transaction submission transaction comprises the second delayed transaction, the second delayed transaction comprises an advanced execution verification parameter, and the advanced execution verification parameter is a hash value of the second verification code;
generating a second advance execution transaction according to the second verification code and the transaction hash, and sending the second advance execution transaction to a block chain node for execution, and verifying whether the hash value of the second verification code is the same as the advance execution verification parameter: if so, executing the second delayed transaction, and configuring the transaction state as executed.
6. A method for advanced processing of delayed transactions, the method being applicable to a blockchain node, the method comprising:
performing a delayed transaction commit transaction: if the execution is successful, recording a second delayed transaction on the block chain, and configuring the transaction state of the second delayed transaction as submitted; the second delayed transaction and the delayed transaction submitting transaction are generated by a first user end, the delayed transaction submitting transaction comprises the second delayed transaction, the second delayed transaction comprises an advanced execution verification parameter, and the advanced execution verification parameter is a hash value of a second verification code;
executing a second pre-execution transaction, verifying whether a hash value of a second verification code in the second pre-execution transaction is the same as the pre-execution verification parameter: if yes, executing the second delayed transaction, and configuring the transaction state as executed; and the second user end acquires a verification code sending instruction which is input by the first user end in response to the first user through the first user end, and generates and sends the second verification code and the transaction hash of the second delayed transaction according to the second verification code and the transaction hash after the second verification code and the transaction hash are transmitted in a specified mode.
7. An apparatus, characterized in that the apparatus comprises:
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-6.
8. 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-6.
CN201911224041.8A 2019-12-04 2019-12-04 Delayed transaction advanced processing method, device and storage medium Pending CN110992009A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911224041.8A CN110992009A (en) 2019-12-04 2019-12-04 Delayed transaction advanced processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911224041.8A CN110992009A (en) 2019-12-04 2019-12-04 Delayed transaction advanced processing method, device and storage medium

Publications (1)

Publication Number Publication Date
CN110992009A true CN110992009A (en) 2020-04-10

Family

ID=70089798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911224041.8A Pending CN110992009A (en) 2019-12-04 2019-12-04 Delayed transaction advanced processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN110992009A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111415259A (en) * 2020-03-26 2020-07-14 杭州复杂美科技有限公司 Transaction queuing method, device and storage medium
CN111523894A (en) * 2020-05-06 2020-08-11 杭州复杂美科技有限公司 Data delay publishing method, device and storage medium
CN112711600A (en) * 2020-12-30 2021-04-27 普华云创科技(北京)有限公司 Method and system for setting transaction delayed uplink
CN113222577A (en) * 2021-05-25 2021-08-06 杭州复杂美科技有限公司 Delayed transfer method, computer device and storage medium
CN113222576A (en) * 2021-05-25 2021-08-06 杭州复杂美科技有限公司 Delayed transfer method, computer device and storage medium
CN113592653A (en) * 2021-08-02 2021-11-02 杭州复杂美科技有限公司 Proxy delayed transaction method, computer device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108346094A (en) * 2018-02-02 2018-07-31 中链科技有限公司 One kind pledging flow management method, system and computer readable storage medium
US20180276737A1 (en) * 2017-03-21 2018-09-27 Aparna Krishnan Girish System and method for delayed transaction completion
CN109493014A (en) * 2018-10-18 2019-03-19 北京瑞卓喜投科技发展有限公司 A kind of token operational approach and operation system based on block chain
WO2019070357A1 (en) * 2017-10-06 2019-04-11 Siemens Aktiengesellschaft Method and system for secure and private forward trading platform in transactive microgrids
CN109872139A (en) * 2019-01-31 2019-06-11 杭州复杂美科技有限公司 Transaction replacement method, equipment and storage medium
CN109903050A (en) * 2019-03-02 2019-06-18 杭州复杂美科技有限公司 Transaction De-weight method, transaction building method, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180276737A1 (en) * 2017-03-21 2018-09-27 Aparna Krishnan Girish System and method for delayed transaction completion
WO2019070357A1 (en) * 2017-10-06 2019-04-11 Siemens Aktiengesellschaft Method and system for secure and private forward trading platform in transactive microgrids
CN108346094A (en) * 2018-02-02 2018-07-31 中链科技有限公司 One kind pledging flow management method, system and computer readable storage medium
CN109493014A (en) * 2018-10-18 2019-03-19 北京瑞卓喜投科技发展有限公司 A kind of token operational approach and operation system based on block chain
CN109872139A (en) * 2019-01-31 2019-06-11 杭州复杂美科技有限公司 Transaction replacement method, equipment and storage medium
CN109903050A (en) * 2019-03-02 2019-06-18 杭州复杂美科技有限公司 Transaction De-weight method, transaction building method, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
佘维;刘琦;杨晓宇;胡跃;刘炜;: "基于DCPN的区块链小额实时交易策略" *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111415259A (en) * 2020-03-26 2020-07-14 杭州复杂美科技有限公司 Transaction queuing method, device and storage medium
CN111415259B (en) * 2020-03-26 2024-02-06 杭州复杂美科技有限公司 Transaction queuing method, device and storage medium
CN111523894A (en) * 2020-05-06 2020-08-11 杭州复杂美科技有限公司 Data delay publishing method, device and storage medium
CN112711600A (en) * 2020-12-30 2021-04-27 普华云创科技(北京)有限公司 Method and system for setting transaction delayed uplink
CN113222577A (en) * 2021-05-25 2021-08-06 杭州复杂美科技有限公司 Delayed transfer method, computer device and storage medium
CN113222576A (en) * 2021-05-25 2021-08-06 杭州复杂美科技有限公司 Delayed transfer method, computer device and storage medium
CN113222576B (en) * 2021-05-25 2022-09-16 杭州复杂美科技有限公司 Delayed transfer method, computer device and storage medium
CN113592653A (en) * 2021-08-02 2021-11-02 杭州复杂美科技有限公司 Proxy delayed transaction method, computer device and storage medium
CN113592653B (en) * 2021-08-02 2023-05-30 杭州复杂美科技有限公司 Proxy delay transaction method, computer device and storage medium

Similar Documents

Publication Publication Date Title
CN110992009A (en) Delayed transaction advanced processing method, device and storage medium
WO2017193715A1 (en) Method, device and apparatus for flow scheduling
CN104980468A (en) Method, device and system for processing service request
WO2020042884A1 (en) Data transmission method and system between internet-of-things devices, and electronic device
CN105955731B (en) A kind of quick write method of mobile phone games and system
CN110324185B (en) Hyper-parameter tuning method, device, server, client and medium
CN112583585A (en) Transaction execution method, apparatus and storage medium
WO2021208447A1 (en) Signal processing method and apparatus, and electronic device
CN112232883A (en) Service behavior incentive method and device based on block chain and storage medium
US20080189077A1 (en) Load-testing device and load-testing method
CN110058926A (en) For handling the method, equipment and computer-readable medium of GPU task
CN110782255A (en) Delayed transaction cancellation method, apparatus and storage medium
CN111353827A (en) Block chain voting method, equipment and storage medium
CN111008249A (en) Parallel chain block synchronization method, device and storage medium
US20140019242A1 (en) Interception of communications and generation of supplemental data in closed systems
US7194566B2 (en) Communication system and method with configurable posting points
CN111523896B (en) Attack prevention method, apparatus and storage medium
CN110968433A (en) Information processing method and system and electronic equipment
CN110942300B (en) Transfer certificate submitting method, device and storage medium
KR101982325B1 (en) Method and apparatus for controlling application icon
KR102194513B1 (en) Web service system and method using gpgpu based task queue
US11748292B2 (en) FPGA implementation of low latency architecture of XGBoost for inference and method therefor
CN112804351B (en) Flow control method, device, node, medium and product of block chain system
CN112825525B (en) Method and apparatus for processing transactions
CN113205418B (en) Cross-chain 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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200410

WD01 Invention patent application deemed withdrawn after publication