CN113592653A - Proxy delayed transaction method, computer device and storage medium - Google Patents

Proxy delayed transaction method, computer device and storage medium Download PDF

Info

Publication number
CN113592653A
CN113592653A CN202110882999.7A CN202110882999A CN113592653A CN 113592653 A CN113592653 A CN 113592653A CN 202110882999 A CN202110882999 A CN 202110882999A CN 113592653 A CN113592653 A CN 113592653A
Authority
CN
China
Prior art keywords
transaction
delayed
address
judging whether
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110882999.7A
Other languages
Chinese (zh)
Other versions
CN113592653B (en
Inventor
姜鹏
王志文
吴思进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202110882999.7A priority Critical patent/CN113592653B/en
Publication of CN113592653A publication Critical patent/CN113592653A/en
Application granted granted Critical
Publication of CN113592653B publication Critical patent/CN113592653B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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/407Cancellation of a 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/42Confirmation, e.g. check or permission by the legal debtor of payment
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides an agent delay transaction method, computer equipment and a storage medium, wherein the method comprises the following steps: receiving registration request information which is generated by a first client of a first user and requests for registration agent delay service, and allocating a first agent address for the first user; receiving delayed transaction address generation request information sent by a first client; generating a first time delay structure body according to the first time delay information and the first proxy address, and generating a first time delay transaction address according to the first time delay structure body; receiving delayed transaction generation request information sent by a first client; generating a first delayed transaction; the address of a first transaction initiator of the first delayed transaction is a first delayed transaction address, the address of a first transaction receiver of the first delayed transaction is a second user account address, and the first delayed transaction comprises a first delayed structure body; generating a first delayed credit transaction according to the first delayed transaction; and sending the first delayed credit transaction to the blockchain network. The method and the device enable the asset calling to be more flexible.

Description

Proxy delayed transaction method, computer device and storage medium
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a proxy delayed transaction method, a computer device, and a storage medium.
Background
In the delay mechanism proposed by the applicant (refer to the patent text or application number 202011425280.2 applied by the applicant in particular), the payload of the delay deposit transaction tx1 includes the delay transaction tx2, the user needs to deposit the asset into the delay contract, the block link point can execute the delay transaction tx2, and the asset in the delay contract cannot be called by other contracts.
Disclosure of Invention
In view of the above-identified deficiencies or inadequacies in the prior art, it would be desirable to provide a proxy deferred transaction method, computer device, and storage medium that are more flexible for asset invocation.
In a first aspect, the present invention provides a proxy delayed transaction method applicable to a proxy server, where the method includes:
receiving registration request information which is generated by a first client of a first user and requests for registration agent delay service, and allocating a first agent address for the first user;
receiving delayed transaction address generation request information sent by a first client; the delayed transaction address generation request information comprises first delayed information;
generating a first time delay structure body according to the first time delay information and the first proxy address, and generating a first time delay transaction address according to the first time delay structure body;
receiving delayed transaction generation request information sent by a first client; the delayed transaction generation request information is generated by the first client in response to the confirmation of the first user to delay the transfer of the account to the second user, and comprises a second user account address of the second user;
generating a first delayed transaction; the address of a first transaction initiator of the first delayed transaction is a first delayed transaction address, the address of a first transaction receiver of the first delayed transaction is a second user account address, and the first delayed transaction comprises a first delayed structure body;
generating a first delayed credit transaction according to the first delayed transaction; wherein, the payload field of the first delayed credit transaction comprises the first delayed transaction;
and sending the first delayed credit transaction to a blockchain network for blockchain nodes:
when the first delayed certificate-depositing transaction is judged to be a first-class transaction needing delay, deducting the commission charge of the first delayed certificate-depositing transaction, determining the initial packaging time of the first delayed transaction according to the first delay information, and depositing the first delayed certificate-depositing transaction on the block chain; and the number of the first and second groups,
storing the first delayed transaction locally; and the number of the first and second groups,
when the initial packaging time is reached and the packaging right of the latest first block after the initial packaging time is possessed, generating a second delayed transfer address according to a first delayed structure body in the first delayed transaction, judging whether the second delayed transfer address is the same as the address of a first transaction initiator, and judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delayed structure body in the first delayed transaction: when the judgment is yes, generating a first block comprising a first delayed transaction; and the number of the first and second groups,
broadcasting the first block to other blockchain nodes for the other blockchain nodes to:
generating a third delayed transfer address according to a first delayed structure body in the first delayed transaction, judging whether the third delayed transfer address is the same as the address of a first transaction initiator, judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delayed structure body in the first delayed transaction, and judging whether the block packing time of the first block is later than the initial packing time: and when the judgment is yes, deleting the local first delayed transaction.
In a second aspect, the present invention provides a proxy delayed transaction method suitable for a proxy server, where the method includes:
receiving registration request information which is generated by a first client of a first user and requests for registration agent delay service, allocating a first agent address for the first user and returning the first agent address to the first client;
receiving delayed transaction generation request information sent by a first client; the delayed transaction generation request information is generated by the first client in response to the confirmation of the first user to delay account transfer to the second user, the delayed transaction generation request information comprises a first delayed structure and a second user account address of the second user, and the first delayed structure is generated according to the first delayed information and the first proxy address;
generating a first delayed transaction address according to the first delayed structure body and generating a first delayed transaction; the address of a first transaction initiator of the first delayed transaction is a first delayed transaction address, the address of a first transaction receiver of the first delayed transaction is a second user account address, and the first delayed transaction comprises a first delayed structure body;
generating a first delayed credit transaction according to the first delayed transaction; wherein, the payload field of the first delayed credit transaction comprises the first delayed transaction;
and sending the first delayed credit transaction to a blockchain network for blockchain nodes:
when the first delayed certificate-depositing transaction is judged to be a first-class transaction needing delay, deducting the commission charge of the first delayed certificate-depositing transaction, determining the initial packaging time of the first delayed transaction according to the first delay information, and depositing the first delayed certificate-depositing transaction on the block chain; and the number of the first and second groups,
storing the first delayed transaction locally; and the number of the first and second groups,
when the initial packaging time is reached and the packaging right of the latest first block after the initial packaging time is possessed, generating a second delayed transfer address according to a first delayed structure body in the first delayed transaction, judging whether the second delayed transfer address is the same as the address of a first transaction initiator, and judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delayed structure body in the first delayed transaction: when the judgment is yes, generating a first block comprising a first delayed transaction; and the number of the first and second groups,
broadcasting the first block to other blockchain nodes for the other blockchain nodes to:
generating a third delayed transfer address according to a first delayed structure body in the first delayed transaction, judging whether the third delayed transfer address is the same as the address of a first transaction initiator, judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delayed structure body in the first delayed transaction, and judging whether the block packing time of the first block is later than the initial packing time: and when the judgment is yes, deleting the local first delayed transaction.
In a third 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 proxy delayed transaction method provided according to embodiments of the present invention.
In a fourth aspect, the present invention also provides a storage medium storing a computer program for causing a computer to execute the proxy delayed transaction method according to the embodiments of the present invention.
The agent delay transaction method, the computer device and the storage medium provided by the embodiments of the present invention allocate a first agent address to a first user by receiving registration request information requesting registration of an agent delay service generated by a first client of the first user; receiving delayed transaction address generation request information sent by a first client; generating a first time delay structure body according to the first time delay information and the first proxy address, and generating a first time delay transaction address according to the first time delay structure body; receiving delayed transaction generation request information sent by a first client; generating a first delayed transaction; the address of a first transaction initiator of the first delayed transaction is a first delayed transaction address, the address of a first transaction receiver of the first delayed transaction is a second user account address, and the first delayed transaction comprises a first delayed structure body; generating a first delayed credit transaction according to the first delayed transaction; and the first delayed evidence deposit transaction is sent to the method of the block chain network, so that the asset calling is more flexible.
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 an agent delayed transaction method according to an embodiment of the present invention.
Fig. 2 is a flowchart of another proxy delayed transaction method according to an embodiment of the present invention.
Fig. 3 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 an agent delayed transaction method according to an embodiment of the present invention. As shown in fig. 1, in this embodiment, the present invention provides a proxy delayed transaction method suitable for a proxy server, where the method includes:
s11: receiving registration request information which is generated by a first client of a first user and requests for registration agent delay service, and allocating a first agent address for the first user;
s12: receiving delayed transaction address generation request information sent by a first client; the delayed transaction address generation request information comprises first delayed information;
s13: generating a first time delay structure body according to the first time delay information and the first proxy address, and generating a first time delay transaction address according to the first time delay structure body;
s14: receiving delayed transaction generation request information sent by a first client; the delayed transaction generation request information is generated by the first client in response to the confirmation of the first user to delay the transfer of the account to the second user, and comprises a second user account address of the second user;
s15: generating a first delayed transaction; the address of a first transaction initiator of the first delayed transaction is a first delayed transaction address, the address of a first transaction receiver of the first delayed transaction is a second user account address, and the first delayed transaction comprises a first delayed structure body;
s16: generating a first delayed credit transaction according to the first delayed transaction; wherein, the payload field of the first delayed credit transaction comprises the first delayed transaction;
s17: and sending the first delayed credit transaction to a blockchain network for blockchain nodes:
when the first delayed certificate-depositing transaction is judged to be a first-class transaction needing delay, deducting the commission charge of the first delayed certificate-depositing transaction, determining the initial packaging time of the first delayed transaction according to the first delay information, and depositing the first delayed certificate-depositing transaction on the block chain; and the number of the first and second groups,
storing the first delayed transaction locally; and the number of the first and second groups,
when the initial packaging time is reached and the packaging right of the latest first block after the initial packaging time is possessed, generating a second delayed transfer address according to a first delayed structure body in the first delayed transaction, judging whether the second delayed transfer address is the same as the address of a first transaction initiator, and judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delayed structure body in the first delayed transaction: when the judgment is yes, generating a first block comprising a first delayed transaction; and the number of the first and second groups,
broadcasting the first block to other blockchain nodes for the other blockchain nodes to:
generating a third delayed transfer address according to a first delayed structure body in the first delayed transaction, judging whether the third delayed transfer address is the same as the address of a first transaction initiator, judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delayed structure body in the first delayed transaction, and judging whether the block packing time of the first block is later than the initial packing time: and when the judgment is yes, deleting the local first delayed transaction.
Specifically, to generate a first block that includes a first delayed transaction includes "generating a first block that includes a first delayed transaction; transferring the first asset specified by the first delayed transaction from the first delayed transfer address to the second user account address, and deleting the local first delayed transaction comprises transferring the first asset specified by the first delayed transaction from the first delayed transfer address to the second user account address; delete local first deferred transaction "; the first delay information is first delay time, and the initial packaging time of the first delay transaction is determined according to the first delay information, wherein the initial packaging time of the first delay transaction comprises 'the first block time of the first delay deposit evidence transaction is packaged, and the initial packaging time of the first delay transaction is determined according to the first delay time';
after a user a registers proxy delay service to a proxy server, the user a delays transfer to a user b;
a client of a user a generates registration request information for requesting proxy delay service and sends the registration request information to a proxy server;
the proxy server executes step S11 to assign a proxy address, which is assumed to be addr (p), to user a;
a client of a user a generates delayed transaction address generation request information and sends the delayed transaction address generation request information to a proxy server, wherein the delayed transaction address generation request information comprises a delayed time length T;
the proxy server executes step S12, and receives the delayed transaction address generation request message;
the proxy server executes step S13, generates a delay structure S { T, addr (P) } according to T, addr (P), and generates a delay transaction address addr (x) according to S; it should be understood by those skilled in the art that the method for generating addr (x) according to S may be configured according to actual requirements, for example, configured to encode S according to protobuf protocol to generate a binary string, and then perform a hash operation on the binary string to generate addr (x), or, for example, configured to encode S according to thrift protocol to generate a binary string, and then perform a hash operation on the binary string to generate addr (x), which is not limited in this application;
when the proxy server executes the step S13, the proxy server may also return addr (x) to the user a, so that the client of the user a generates the transfer transaction tx0 and sends the transfer transaction tx 0to the blockchain network, where the transaction receiver address of tx0 is addr (x); assuming that subsequent user a and user b agree to transfer a delayed transfer after T, and the asset transferred with the delayed transfer is 10 tokens, the asset specified by tx0 should be greater than 10 tokens to ensure that addr (X) has enough assets to be transferred; when the execution of tx0 is successful, the blockchain node transfers the asset specified by tx0 from addr (A) to addr (X);
or the client of the user a can also delegate the proxy server to generate the transfer transaction tx0, because the proxy server itself holds addr (x), the proxy server can generate tx0 and send to the blockchain network after receiving the transfer transaction generation request information generated by the client of the user a;
responding to the confirmation of the user a to delay the transfer to the user b, the client of the user a generates delayed transaction generation request information and sends the delayed transaction generation request information to the proxy server, wherein the delayed transaction generation request information comprises addr (b);
the proxy server executes step S14, and receives the delayed transaction generation request message;
the proxy server executes the step S15 to generate a delayed transaction tx 2; the address of a transaction initiator of tx2 is addr (X), the address of a transaction receiver of tx2 is addr (b), and tx2 comprises S;
the proxy server executes the step S16, and generates a delayed credit transaction tx1 according to tx 2; the payload field of tx1 includes tx 2;
the proxy server executes the step S17 to send tx1 to the blockchain network;
the block link point judges that tx1 is the first type of transaction needing time delay according to the actuator name of tx1, deducts the commission charge of tx1, determines the initial packing time T2 of tx2 according to the block times T1 and T of tx1 (T2 is T1+ T), and stores tx1 into the block chain; those skilled in the art will appreciate that the block link point may also determine whether tx1 is the first type of transaction according to other methods, for example, the determination is made according to the delay identifier in the tx1 signature, which can achieve the same technical effect;
the tile link point stores tx2 locally; and the number of the first and second groups,
when T2 is reached and the packing right of the newest block after T2 is possessed (assuming a block with a height of 100), the block link point generates a delayed transfer address addr (X)' according to S in tx 2; it will be appreciated by those skilled in the art that the method of generating the transfer address addr (x) 'herein should be the same as the method of generating the transfer address addr (x), and for example, should be correspondingly configured to encode S in tx2 according to the prot obuf protocol to generate a binary string, which is then hashed to generate addr (x)';
the blockchain node judges whether addr (x)' is the same as transaction initiator address addr (x) of tx2, judges whether signature sig _ proxy of tx2 matches addr (p) in S of tx 2:
since addr (x)' is the same as addr (x) of the transaction initiator address of tx2, and since addr (p) is an address of the proxy server, signature sig _ proxy of tx2 matches addr (p) in S in tx2, the block link point generates a block (100) comprising tx2, and when tx2 is successfully executed, 10token is shifted from addr (x) to addr (b); and the number of the first and second groups,
broadcasting the block (100) to other block chain nodes;
the other block chain nodes generate a delayed transfer address addr (X) according to the S in tx2, judge whether addr (X) is the same as the transaction initiator address addr (X) in tx2, judge whether the signature sig _ proxy of tx2 is matched with the addr (p) in the S in tx2, and judge whether the block time of the packed tx1 is later than T2:
since addr (x)' is the same as addr (x) of the transaction initiator address of tx2, and signature sig _ proxy of tx2 matches addr (p) in S of tx2, the block time of packed tx1 is later than T2, and other blockchain nodes will divide 10token from addr (x) to addr (b) when tx2 succeeds in execution; and the number of the first and second groups,
remove the local tx 2.
Those skilled in the art will appreciate that tx2 should also perform some verification in the prior art, such as verifying that addr (x) has sufficient token transfer, and if the verification fails, even if addr (x) is the same as the transaction initiator address of tx2, addr (x) is the same as the transaction initiator address of tx2, signature sig _ proxy of tx2 matches addr (p) in S of tx2, block time of packed tx1 is later than T2, and tx2 still fails to perform;
in more embodiments, the first delay information required to be extended may also be configured according to actual requirements, for example, configured as a fixed time T3, and the starting packing time is T3, so that the same technical effect may be achieved.
In more embodiments, the first asset may not be designated in the delayed transaction, and the first asset may also be configured in the first delay structure according to actual requirements, that is, S { pub (a), T,10token }; each block link point transfers 10 tokens from addr (x) to addr (b) when tx2 succeeds in execution according to 10 tokens in S.
In further embodiments, the signature information of the delayed transaction includes a delayed transaction identifier, and the step "generating the second delayed transfer address … … according to the first delayed structure in the first delayed transaction" is performed only when the block link node recognizes the delayed transaction identifier, and the step "generating the third delayed transfer address … … according to the first delayed structure in the first delayed transaction" is performed only when the other block link nodes recognize the delayed transaction identifier.
It should be understood by those skilled in the art that the first delay information may also be replaced by a delay block height parameter according to the actual requirement, and the delay block height parameter may also be configured according to the actual requirement, for example, configured as a certain fixed end block height, or configured as a first block interval, and then the end block height is equal to the sum of the block height of the block of the packed tx1 and the first block interval, so that the same technical effect can be achieved.
It should be understood by those skilled in the art that if the second user registers the proxy delayed service on the proxy server, the proxy server may push the transaction hash of the first delayed deposit transaction to the second client of the second user when the first delayed deposit transaction is verified on the monitored blockchain, or push the transaction hash of the first delayed transaction to the second client when it is monitored that the blockchain node executes the first delayed transaction.
It will be understood by those skilled in the art that addr (X) is not a contract address for any contract, and thus any contract may call an asset in addr (X). The above-described embodiments make asset invocation more flexible.
Preferably, determining the initial packaging time of the first delayed transaction according to the first delay information, and depositing the first delayed deposit transaction onto the block chain includes:
determining the initial packaging time of the first delay transaction according to the first delay information;
storing the first corresponding relation between the first delayed certificate-storing transaction and the first delayed certificate-storing transaction to a block chain;
judging whether the second delayed transfer address is the same as the address of the first transaction initiator, and judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delay structure body in the first delayed transaction: when the above determinations are all yes, generating a first block including a first delayed transaction includes:
judging whether the second delayed transfer address is the same as the address of the first transaction initiator, judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delayed structure in the first delayed transaction, searching whether a first delayed credit-keeping transaction exists on the block chain according to the first corresponding relation, and judging whether the searched first delayed credit-keeping transaction is a first type transaction: when the judgment is yes, generating a first block comprising a first delayed transaction;
judging whether the third delayed transfer address is the same as the address of the first transaction initiator, judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delay structure body in the first delayed transaction, and judging whether the block packing time of the first block is later than the initial packing time: when the judgment is yes, deleting the local first delayed transaction comprises:
judging whether the third delayed transfer address is the same as the first transaction initiator address, judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delayed structure in the first delayed transaction, judging whether the block packing time of the first block is later than the initial packing time, searching whether a first delayed evidence-storing transaction exists on a block chain according to the first corresponding relation, and judging whether the searched first delayed evidence-storing transaction is a first-type transaction: and when the judgment is yes, deleting the local first delayed transaction.
Specifically, the block link point determines the starting packing time T2 of tx2 according to the block times T1 and T of the blocks of the packed tx1, wherein T2 is T1+ T;
storing the corresponding relation between tx1 and tx2 into a block chain; those skilled in the art should understand that the storage form of the above correspondence may be configured according to actual requirements, for example, configured as hash (tx 1): hash (tx2), or tx1: tx2, or other forms, the application is not particularly limited;
the block chain node judges whether addr (X) is the same as transaction initiator address addr (X) of tx2, judges whether signature sig _ proxy of tx2 is matched with addr (p) in S of tx2, searches whether tx1 exists on the chain according to the corresponding relation, and judges whether the searched tx1 is a first-type transaction;
since addr (x)' is the same as transaction initiator address of tx2, signature sig _ proxy of tx2 is matched with addr (p) in S of tx2, tx1 can be found on the block chain, the found tx1 is the first type of transaction, and the block chain node generates the first block including tx 2; those skilled in the art should understand that, in further embodiments, addr (x)' may be configured differently from addr (x), and/or tx1 may not be found on the block chain, and/or tx1 found is not an operation of the first type transaction, for example, configured to unpack tx 2;
the determination method of other block chain nodes is similar to that of the block chain node, and is not repeated here.
Preferably, generating the first block comprising the first delayed transaction comprises:
generating a first block comprising a first delayed transaction;
transferring a first asset specified by the first delayed transaction from the first delayed transfer address to a second user account address;
deleting the local first delayed transaction comprises:
transferring a first asset specified by the first delayed transaction from the first delayed transfer address to a second user account address;
the local first delayed transaction is deleted.
The delayed transaction principle of the above embodiment can refer to the method shown in fig. 1, and is not described herein again.
Preferably, the method further comprises:
receiving asset extraction transaction generation request information sent by a first client of a first user; wherein the asset retrieval transaction generation request information includes an asset retrieval account address;
generating an asset extraction transaction comprising a hash value of the delayed transaction; the second transaction initiator address of the asset extraction transaction is a first delayed transfer address, the second transaction receiver address of the asset extraction transaction is an asset extraction account address, and the asset extraction transaction comprises a first delayed structure;
sending the asset extraction transaction to a blockchain network for blockchain nodes to:
generating a fourth delayed transfer address according to the first delayed structure body in the asset extraction transaction, judging whether the fourth delayed transfer address is the same as the address of the second transaction initiator, judging whether the current block moment does not reach the initial packing moment, and judging whether the signature of the asset extraction transaction is matched with the first proxy address in the first delayed structure body in the asset extraction transaction;
if yes, transferring the first asset appointed by the first delayed transaction from the first delayed transfer address to an asset extraction account address;
marking the local first delayed transaction as invalid; and the number of the first and second groups,
the first delayed transaction is credited while the first delayed transaction marked as invalid is executed.
It will be understood by those skilled in the art that when the transaction recipient address of the asset retrieval transaction is the second user address of the second user, this indicates that the asset is being pre-staged to the second user; when the transaction recipient address of the asset retrieval transaction is the first user address of the first user, the asset is referred to as being revoked to the first user. Either way, since the asset has been extracted in advance, the local delayed transaction should be marked as a stale transaction;
as will be understood by those skilled in the art, the first delay structure further includes a first public key of the first user, and the asset extraction transaction may also be directly generated by the first client of the first user according to actual needs and sent to the blockchain network; when the asset extraction transaction is generated by the first client and sent to the blockchain network, the blockchain node needs to generate a fourth delayed transfer address according to the first delayed structure body in the asset extraction transaction, judge whether the fourth delayed transfer address is the same as the address of the second transaction initiator, judge whether the current blockchain moment does not reach the initial packing moment, judge whether the signature of the asset extraction transaction is matched with the first public key or the first proxy address in the first delayed structure body in the asset extraction transaction, and can achieve the same technical effect.
Those skilled in the art will appreciate that the asset extraction transaction should include a hash value of the first delayed transaction or a hash value of the first delayed credit transaction for finding the local first delayed transaction.
In further embodiments, the execution method of the failed delayed transaction may be configured according to actual requirements, for example, the execution method is configured to record the transaction hash of the failed delayed transaction to the blockchain, or delete the local delayed transaction, cache the transaction hash of the delayed transaction, and mark the transaction hash with the failure identifier, where the transaction hash with the failure identifier is used to delete the delayed transaction when the delayed transaction is received again at the blockchain node.
The above-described embodiments enable advanced confirmation transfers or withdrawals of assets.
Preferably, determining the initial packaging time of the first delayed transaction according to the first delay information, and depositing the first delayed deposit transaction onto the block chain includes:
determining the initial packaging time of the first delay transaction according to the first delay information;
storing the second corresponding relation between the first delayed transaction and the initial packaging time and the first delayed certificate storing transaction into a block chain;
the method further comprises the following steps:
generating an asset extraction transaction comprising a hash value of the first delayed transaction; the asset extraction transaction comprises a first delay transfer address, a first delay structure and a second delay structure, wherein the transaction initiator address of the asset extraction transaction is the first delay transfer address;
sending the asset extraction transaction to a blockchain network for blockchain nodes to:
generating a fourth delayed transfer address according to the first delayed structure body in the asset extraction transaction, judging whether the fourth delayed transfer address is the same as the transaction initiator address of the asset extraction transaction, judging whether the current block moment does not reach the initial packing moment, and judging whether the signature of the asset extraction transaction is matched with the first proxy address in the first delayed structure body in the asset extraction transaction;
if yes, transferring the first asset appointed by the first delayed transaction from the first delayed transfer address to the address of a transaction receiver of the asset extraction transaction; and the number of the first and second groups,
updating the second corresponding relation as follows: delayed transaction and invalidation identification;
and (3) executing delayed transaction: and when the delayed transaction is judged to be invalid transaction according to the updated second corresponding relation, storing the evidence for delayed transaction.
The above-described embodiments may also enable advanced confirmation transfers or withdrawals of assets. In the above embodiment, the block chain is certified to have the second correspondence; in the second correspondence, delayed transactions: and when the packing time is started, the packing time can be quickly inquired according to the second corresponding relation.
Fig. 2 is a flowchart of another proxy delayed transaction method according to an embodiment of the present invention. As shown in fig. 2, in this embodiment, the present invention provides a proxy delayed transaction method suitable for a proxy server, where the method includes:
s21: receiving registration request information which is generated by a first client of a first user and requests for registration agent delay service, allocating a first agent address for the first user and returning the first agent address to the first client;
s22: receiving delayed transaction generation request information sent by a first client; the delayed transaction generation request information is generated by the first client in response to the confirmation of the first user to delay account transfer to the second user, the delayed transaction generation request information comprises a first delayed structure and a second user account address of the second user, and the first delayed structure is generated according to the first delayed information and the first proxy address;
s23: generating a first delayed transaction address according to the first delayed structure body and generating a first delayed transaction; the address of a first transaction initiator of the first delayed transaction is a first delayed transaction address, the address of a first transaction receiver of the first delayed transaction is a second user account address, and the first delayed transaction comprises a first delayed structure body;
s24: generating a first delayed credit transaction according to the first delayed transaction; wherein, the payload field of the first delayed credit transaction comprises the first delayed transaction;
s25: and sending the first delayed credit transaction to a blockchain network for blockchain nodes:
when the first delayed certificate-depositing transaction is judged to be a first-class transaction needing delay, deducting the commission charge of the first delayed certificate-depositing transaction, determining the initial packaging time of the first delayed transaction according to the first delay information, and depositing the first delayed certificate-depositing transaction on the block chain; and the number of the first and second groups,
storing the first delayed transaction locally; and the number of the first and second groups,
when the initial packaging time is reached and the packaging right of the latest first block after the initial packaging time is possessed, generating a second delayed transfer address according to a first delayed structure body in the first delayed transaction, judging whether the second delayed transfer address is the same as the address of a first transaction initiator, and judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delayed structure body in the first delayed transaction: when the judgment is yes, generating a first block comprising a first delayed transaction; and the number of the first and second groups,
broadcasting the first block to other blockchain nodes for the other blockchain nodes to:
generating a third delayed transfer address according to a first delayed structure body in the first delayed transaction, judging whether the third delayed transfer address is the same as the address of a first transaction initiator, judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delayed structure body in the first delayed transaction, and judging whether the block packing time of the first block is later than the initial packing time: and when the judgment is yes, deleting the local first delayed transaction.
The embodiment shown in FIG. 2 differs from the embodiment shown in FIG. 1 in that the client has less transaction logic and is more friendly to higher frequency, batched, delayed transfer transactions; and the number of the first and second groups,
in the embodiment shown in fig. 1, the first user unconditionally trusts the proxy server, because the first user cannot acquire the first delay structure and cannot verify whether the delayed transaction generated by the proxy server is correct, when the first user commits the proxy server to generate the delayed transaction, the first user needs to transfer the account to the first delayed transaction address, or the proxy server needs to transfer the account to the first delayed transaction address.
In the embodiment shown in fig. 2, the first delay structure is generated by a first client of a first user; the first client may verify whether the delayed transaction generated by the proxy server is correct, which is as follows:
when monitoring that the block chain has a first delayed evidence deposit transaction, the proxy server pushes a first transaction hash of the first delayed evidence deposit transaction to the first client so as to provide the first client with:
searching for a first delayed evidence storing transaction according to the first transaction hash, and searching for a first delayed transaction according to a payload field of the searched first delayed evidence storing transaction;
generating a fifth delayed transaction address according to the generated first delayed structure, judging whether the fifth delayed transaction address is the same as the address of the first transaction initiator of the searched first delayed transaction, and judging whether the address of the first transaction receiver of the searched first delayed transaction is the address of the second user account: when the judgment is yes, generating a first transfer transaction; wherein, the third transaction initiator address of the first transfer transaction is the first delay transaction address;
and sending the first transfer transaction to the blockchain network, so that when the blockchain node successfully executes the first transfer transaction, the blockchain node transfers the second asset specified by the first transfer transaction from the first user account address of the first user to the first delayed transaction address.
When the fifth delayed transaction address is different from the found first transaction initiator address of the first delayed transaction, and/or the found first transaction receiver address of the first delayed transaction is not the second user account address, the first user may not generate a transfer transaction, or the first user may not delegate the proxy server to generate a transfer transaction, so as to avoid asset loss.
Fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
As shown in fig. 3, as another aspect, the present application also provides a computer apparatus including one or more Central Processing Units (CPUs) 301 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage section 308 into a Random Access Memory (RAM) 303. In the RAM303, various programs and data necessary for the operation of the computer apparatus are also stored. The CPU301, ROM302, and RAM303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
The following components are connected to the I/O interface 305: an input portion 306 including a keyboard, a mouse, and the like; an output section 307 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 308 including a hard disk and the like; and a communication section 309 including a network interface card such as a LAN card, a modem, or the like. The communication section 309 performs communication processing via a network such as the internet. A drive 310 is also connected to the I/O interface 305 as needed. A removable medium 311 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 310 as necessary, so that a computer program read out therefrom is mounted into the storage section 308 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 309, and/or installed from the removable medium 311.
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 (11)

1. A proxy delayed transaction method, adapted for a proxy server, the method comprising:
receiving registration request information which is generated by a first client of a first user and requests for registration agent delay service, and allocating a first agent address for the first user;
receiving delayed transaction address generation request information sent by a first client; the delayed transaction address generation request information comprises first delayed information;
generating a first time delay structure body according to the first time delay information and the first proxy address, and generating a first time delay transaction address according to the first time delay structure body;
receiving delayed transaction generation request information sent by a first client; the delayed transaction generation request information is generated by the first client in response to the confirmation of the first user to delay the transfer of the account to a second user, and comprises a second user account address of the second user;
generating a first delayed transaction; a first transaction initiator address of the first delayed transaction is the first delayed transaction address, a first transaction receiver address of the first delayed transaction is the second user account address, and the first delayed transaction comprises the first delayed structure;
generating a first delayed credit transaction according to the first delayed transaction; wherein, the payload field of the first delayed credit transaction comprises the first delayed transaction;
and sending the first delayed credit transaction to a block chain network for block chain nodes:
when the first delayed certificate-depositing transaction is judged to be a first-class transaction needing delay, deducting the commission charge of the first delayed certificate-depositing transaction, determining the initial packaging time of the first delayed transaction according to the first delay information, and depositing the first delayed certificate-depositing transaction on a block chain; and the number of the first and second groups,
storing the first delayed transaction locally; and the number of the first and second groups,
when the initial packaging time is reached and the packaging right of the latest first block after the initial packaging time is possessed, generating a second delayed transfer address according to the first delayed structure body in the first delayed transaction, judging whether the second delayed transfer address is the same as the address of the initiator of the first transaction, and judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delayed structure body in the first delayed transaction: when the judgment is yes, generating a first block comprising the first delayed transaction; and the number of the first and second groups,
broadcasting the first block to other blockchain nodes for the other blockchain nodes to:
generating a third delayed transfer address according to the first delayed structure body in the first delayed transaction, judging whether the third delayed transfer address is the same as the address of the first transaction initiator, judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delayed structure body in the first delayed transaction, and judging whether the block packing time of the first block is later than the initial packing time: and when the judgment is yes, deleting the local first delayed transaction.
2. The method of claim 1, wherein determining the initial packaging time of the first delayed transaction according to the first delay information, and storing the first delayed transaction certificate onto a blockchain comprises:
determining the initial packaging time of the first delay transaction according to the first delay information;
storing the first corresponding relation between the first delayed certificate-storing transaction and the first delayed certificate-storing transaction into a block chain;
judging whether the second delayed transfer address is the same as the address of the first transaction initiator or not, and judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delay structure in the first delayed transaction or not: when the above determinations are all yes, generating a first block including the first delayed transaction includes:
judging whether the second delayed transfer address is the same as the first transaction initiator address, judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delayed structure in the first delayed transaction, searching whether the first delayed deposit-evidence transaction exists on a block chain according to the first corresponding relation, and judging whether the searched first delayed deposit-evidence transaction is the first-type transaction: when the judgment is yes, generating a first block comprising the first delayed transaction;
judging whether the third delayed transfer address is the same as the first transaction initiator address, judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delay structure body in the first delayed transaction, and judging whether the block packing time of the first block is later than the initial packing time: when the above judgment is yes, deleting the local first delayed transaction includes:
judging whether the third delayed transfer address is the same as the first transaction initiator address, judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delayed structure in the first delayed transaction, judging whether the block packing time of the first block is later than the initial packing time, searching whether a first delayed deposit-certificate transaction exists on a block chain according to the first corresponding relation, and judging whether the searched first delayed deposit-certificate transaction is the first type transaction: and when the judgment is yes, deleting the local first delayed transaction.
3. The method of claim 1, wherein generating the first block including the first delayed transaction comprises:
generating a first block comprising the first delayed transaction;
transferring a first asset specified by the first delayed transaction from the first delayed transfer address to the second user account address;
the deleting the local first delayed transaction comprises:
transferring a first asset specified by the first delayed transaction from the first delayed transfer address to the second user account address;
deleting the local first delayed transaction.
4. The method of claim 1, further comprising:
receiving asset extraction transaction generation request information sent by a first client of a first user; wherein the asset extraction transaction generation request information includes an asset extraction account address;
generating an asset extraction transaction comprising a hash value of the delayed transaction; wherein a second transaction initiator address of the asset retrieval transaction is the first delayed transfer address, a second transaction recipient address of the asset retrieval transaction is the asset retrieval account address, and the asset retrieval transaction includes the first delayed structure;
sending the asset extraction transaction to a blockchain network for blockchain nodes to:
generating a fourth delayed transfer address according to the first delayed structure body in the asset extraction transaction, judging whether the fourth delayed transfer address is the same as the address of the second transaction initiator, judging whether the current block moment does not reach the initial packing moment, and judging whether the signature of the asset extraction transaction is matched with the first proxy address in the first delayed structure body in the asset extraction transaction;
when the first asset specified by the first delayed transaction is transferred to the asset extraction account address from the first delayed transfer address, judging whether the first asset specified by the first delayed transaction is the asset extraction account address or not;
marking the first local delayed transaction as invalid; and the number of the first and second groups,
validating the first delayed transaction upon execution of the first delayed transaction marked as invalid.
5. A proxy delayed transaction method, adapted for a proxy server, the method comprising:
receiving registration request information which is generated by a first client of a first user and requests for registration agent delay service, allocating a first agent address for the first user and returning the first agent address to the first client;
receiving delayed transaction generation request information sent by a first client; the delayed transaction generation request information is generated by the first client in response to the confirmation of the first user to delay the transfer of the account to a second user, the delayed transaction generation request information comprises a first delayed structure and a second user account address of the second user, and the first delayed structure is generated according to the first delayed information and the first proxy address;
generating a first delayed transaction address according to the first delayed structure body and generating a first delayed transaction; a first transaction initiator address of the first delayed transaction is the first delayed transaction address, a first transaction receiver address of the first delayed transaction is the second user account address, and the first delayed transaction comprises the first delayed structure;
generating a first delayed credit transaction according to the first delayed transaction; wherein, the payload field of the first delayed credit transaction comprises the first delayed transaction;
and sending the first delayed credit transaction to a block chain network for block chain nodes:
when the first delayed certificate-depositing transaction is judged to be a first-class transaction needing delay, deducting the commission charge of the first delayed certificate-depositing transaction, determining the initial packaging time of the first delayed transaction according to the first delay information, and depositing the first delayed certificate-depositing transaction on a block chain; and the number of the first and second groups,
storing the first delayed transaction locally; and the number of the first and second groups,
when the initial packaging time is reached and the packaging right of the latest first block after the initial packaging time is possessed, generating a second delayed transfer address according to the first delayed structure body in the first delayed transaction, judging whether the second delayed transfer address is the same as the address of the initiator of the first transaction, and judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delayed structure body in the first delayed transaction: when the judgment is yes, generating a first block comprising the first delayed transaction; and the number of the first and second groups,
broadcasting the first block to other blockchain nodes for the other blockchain nodes to:
generating a third delayed transfer address according to the first delayed structure body in the first delayed transaction, judging whether the third delayed transfer address is the same as the address of the first transaction initiator, judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delayed structure body in the first delayed transaction, and judging whether the block packing time of the first block is later than the initial packing time: and when the judgment is yes, deleting the local first delayed transaction.
6. The method of claim 5, wherein determining the initial packaging time of the first delayed transaction according to the first delay information, and storing the first delayed transaction certificate onto a blockchain comprises:
determining the initial packaging time of the first delay transaction according to the first delay information;
storing the first corresponding relation between the first delayed certificate-storing transaction and the first delayed certificate-storing transaction into a block chain;
judging whether the second delayed transfer address is the same as the address of the first transaction initiator or not, and judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delay structure in the first delayed transaction or not: when the above determinations are all yes, generating a first block including the first delayed transaction includes:
judging whether the second delayed transfer address is the same as the first transaction initiator address, judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delayed structure in the first delayed transaction, searching whether the first delayed deposit-evidence transaction exists on a block chain according to the first corresponding relation, and judging whether the searched first delayed deposit-evidence transaction is the first-type transaction: when the judgment is yes, generating a first block comprising the first delayed transaction;
judging whether the third delayed transfer address is the same as the first transaction initiator address, judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delay structure body in the first delayed transaction, and judging whether the block packing time of the first block is later than the initial packing time: when the above judgment is yes, deleting the local first delayed transaction includes:
judging whether the third delayed transfer address is the same as the first transaction initiator address, judging whether the signature of the first delayed transaction is matched with the first proxy address in the first delayed structure in the first delayed transaction, judging whether the block packing time of the first block is later than the initial packing time, searching whether a first delayed deposit-certificate transaction exists on a block chain according to the first corresponding relation, and judging whether the searched first delayed deposit-certificate transaction is the first type transaction: and when the judgment is yes, deleting the local first delayed transaction.
7. The method of claim 5, wherein generating the first block including the first delayed transaction comprises:
generating a first block comprising the first delayed transaction;
transferring a first asset specified by the first delayed transaction from the first delayed transfer address to the second user account address;
the deleting the local first delayed transaction comprises:
transferring a first asset specified by the first delayed transaction from the first delayed transfer address to the second user account address;
deleting the local first delayed transaction.
8. The method of claim 5, further comprising:
receiving asset extraction transaction generation request information sent by a first client of a first user; wherein the asset extraction transaction generation request information includes an asset extraction account address;
generating an asset extraction transaction comprising a hash value of the delayed transaction; wherein a second transaction initiator address of the asset retrieval transaction is the first delayed transfer address, a second transaction recipient address of the asset retrieval transaction is the asset retrieval account address, and the asset retrieval transaction includes the first delayed structure;
sending the asset extraction transaction to a blockchain network for blockchain nodes to:
generating a fourth delayed transfer address according to the first delayed structure body in the asset extraction transaction, judging whether the fourth delayed transfer address is the same as the address of the second transaction initiator, judging whether the current block moment does not reach the initial packing moment, and judging whether the signature of the asset extraction transaction is matched with the first proxy address in the first delayed structure body in the asset extraction transaction;
when the first asset specified by the first delayed transaction is transferred to the asset extraction account address from the first delayed transfer address, judging whether the first asset specified by the first delayed transaction is the asset extraction account address or not;
marking the first local delayed transaction as invalid; and the number of the first and second groups,
validating the first delayed transaction upon execution of the first delayed transaction marked as invalid.
9. The method of claim 5, further comprising:
when the first delayed evidence storing transaction is monitored to exist on the block chain, pushing a first transaction hash of the first delayed evidence storing transaction to the first client side so as to enable the first client side to:
searching the first delayed evidence storing transaction according to the first transaction hash, and searching the first delayed transaction according to the payload field of the searched first delayed evidence storing transaction;
generating a fifth delayed transaction address according to the generated first delayed structure, judging whether the fifth delayed transaction address is the same as the found first transaction initiator address of the first delayed transaction, and judging whether the found first transaction receiver address of the first delayed transaction is the second user account address: when the judgment is yes, generating a first transfer transaction; wherein the third transaction initiator address of the first transfer transaction is the first delayed transaction address;
and sending the first transfer transaction to a blockchain network, so that when the blockchain node successfully executes the first transfer transaction, the blockchain node transfers the second asset specified by the first transfer transaction from the first user account address of the first user to the first delayed transaction address.
10. 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-9.
11. 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-9.
CN202110882999.7A 2021-08-02 2021-08-02 Proxy delay transaction method, computer device and storage medium Active CN113592653B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110882999.7A CN113592653B (en) 2021-08-02 2021-08-02 Proxy delay transaction method, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110882999.7A CN113592653B (en) 2021-08-02 2021-08-02 Proxy delay transaction method, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN113592653A true CN113592653A (en) 2021-11-02
CN113592653B CN113592653B (en) 2023-05-30

Family

ID=78254179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110882999.7A Active CN113592653B (en) 2021-08-02 2021-08-02 Proxy delay transaction method, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN113592653B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114493564A (en) * 2022-03-31 2022-05-13 深圳九星互动科技有限公司 Webpage aggregate payment skip system and method based on delayed response

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190114626A1 (en) * 2018-12-17 2019-04-18 Oleg POGORELIK Reducing blockchain transaction delay
US20190228386A1 (en) * 2018-01-19 2019-07-25 Xapo Holdings Limited Recording evidence of address/account allocations in a distributed ledger
CN110992009A (en) * 2019-12-04 2020-04-10 杭州复杂美科技有限公司 Delayed transaction advanced processing method, device and storage medium
US10846762B1 (en) * 2018-07-09 2020-11-24 Turing Technology, Inc. Blockchain based cold email campaign
CN112600664A (en) * 2020-12-09 2021-04-02 杭州复杂美科技有限公司 Delayed transaction generation method, delayed transaction execution device and storage medium
CN112883015A (en) * 2021-04-23 2021-06-01 北京中科金财科技股份有限公司 Block chain data management method, device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190228386A1 (en) * 2018-01-19 2019-07-25 Xapo Holdings Limited Recording evidence of address/account allocations in a distributed ledger
US10846762B1 (en) * 2018-07-09 2020-11-24 Turing Technology, Inc. Blockchain based cold email campaign
US20190114626A1 (en) * 2018-12-17 2019-04-18 Oleg POGORELIK Reducing blockchain transaction delay
CN110992009A (en) * 2019-12-04 2020-04-10 杭州复杂美科技有限公司 Delayed transaction advanced processing method, device and storage medium
CN112600664A (en) * 2020-12-09 2021-04-02 杭州复杂美科技有限公司 Delayed transaction generation method, delayed transaction execution device and storage medium
CN112883015A (en) * 2021-04-23 2021-06-01 北京中科金财科技股份有限公司 Block chain data management method, device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114493564A (en) * 2022-03-31 2022-05-13 深圳九星互动科技有限公司 Webpage aggregate payment skip system and method based on delayed response

Also Published As

Publication number Publication date
CN113592653B (en) 2023-05-30

Similar Documents

Publication Publication Date Title
CN113094396B (en) Data processing method, device, equipment and medium based on node memory
US11316868B2 (en) Information verification system, information verification device, method and program
WO2016177285A1 (en) Data pushing method and device
CN109447641B (en) Method and apparatus for transmitting blockchain data to blockchain browser
CN110060161B (en) Client service implementation method and service assembly for block chain transaction repetition prevention
CN112583811B (en) Wallet finding method, equipment and storage medium
CN112600664B (en) Delayed transaction generation method, delayed transaction execution device and storage medium
CN109951546B (en) Transaction request processing method, device, equipment and medium based on intelligent contract
CN111597567B (en) Data processing method, data processing device, node equipment and storage medium
CN109710695B (en) Transaction request validity identification and initiation method, device, equipment and medium
CN112235423B (en) Cross-chain transaction processing method and device, electronic equipment and storage medium
WO2022183802A1 (en) Load balancing method, apparatus, and device, storage medium, and computer program product
CN112381543A (en) Multiple signature transaction method, device and storage medium
JP6951649B2 (en) Block verification device, block verification method, and program
WO2023045617A1 (en) Transaction data processing method and apparatus, device and medium
CN109104368B (en) Connection request method, device, server and computer readable storage medium
CN113592653A (en) Proxy delayed transaction method, computer device and storage medium
CN113179324B (en) Block chain link point and service processing method executed by block chain link point
CN111047444A (en) Data transaction method and device based on block chain network
CN113592652B (en) Delay transaction method, computer device and storage medium
WO2022021768A1 (en) Parallel chain transaction group execution method, and device and storage medium
CN112231415B (en) Data synchronization method and system of block chain network, electronic device and readable medium
CN116542668A (en) Block chain-based data processing method, equipment and readable storage medium
CN117010889A (en) Data processing method, device, equipment, medium and product
CN113222576B (en) Delayed 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