CN113592653B - Proxy delay transaction method, computer device and storage medium - Google Patents

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

Info

Publication number
CN113592653B
CN113592653B CN202110882999.7A CN202110882999A CN113592653B CN 113592653 B CN113592653 B CN 113592653B CN 202110882999 A CN202110882999 A CN 202110882999A CN 113592653 B CN113592653 B CN 113592653B
Authority
CN
China
Prior art keywords
transaction
delay
delayed
address
judging whether
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110882999.7A
Other languages
Chinese (zh)
Other versions
CN113592653A (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 a proxy delay transaction method, a computer device 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 registration of proxy delay service, and distributing a first proxy address for the first user; receiving delay transaction address generation request information sent by a first client; generating a first delay structure body according to the first delay information and the first proxy address, and generating a first delay transaction address according to the first delay structure body; receiving delay transaction generation request information sent by a first client; generating a first delayed transaction; the first transaction initiator address of the first delayed transaction is a first delayed transaction address, the first transaction receiver address of the first delayed transaction is a second user account address, and the first delayed transaction comprises a first delayed structure; generating a first delayed evidence-based transaction according to the first delayed transaction; the first delayed forensic transaction is sent to a blockchain network. The method and the device enable asset calling to be more flexible.

Description

Proxy delay 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 delay transaction method, a computer device, and a storage medium.
Background
In the delay mechanism proposed by the applicant (refer to patent text filed by the applicant or application number 202011425280.2 specifically), the payload of the delay credit transaction tx1 includes a delay transaction tx2, and the user needs to store the asset in the delay contract, and when the block link point can execute the delay transaction tx2, the asset in the delay contract cannot be invoked by other contracts.
Disclosure of Invention
In view of the foregoing deficiencies or inadequacies of the prior art, it would be desirable to provide a proxy delay transaction method, computer device, and storage medium that is more flexible in asset invocation.
In a first aspect, the present invention provides a proxy delay 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 registration of proxy delay service, and distributing a first proxy address for the first user;
receiving delay transaction address generation request information sent by a first client; the delay transaction address generation request information comprises first delay information;
generating a first delay structure body according to the first delay information and the first proxy address, and generating a first delay transaction address according to the first delay structure body;
Receiving delay transaction generation request information sent by a first client; the method comprises the steps that delay transaction generation request information is generated by a first client in response to confirmation of a first user to a second user in a delay transfer mode, and the delay transaction generation request information comprises a second user account address of the second user;
generating a first delayed transaction; the first transaction initiator address of the first delayed transaction is a first delayed transaction address, the first transaction receiver address of the first delayed transaction is a second user account address, and the first delayed transaction comprises a first delayed structure;
generating a first delayed evidence-based transaction according to the first delayed transaction; wherein the payload field of the first delayed evidence-based transaction includes the first delayed transaction;
transmitting the first delayed forensic transaction to a blockchain network for blockchain nodes to:
when the first delayed evidence-storing transaction is judged to be a first type transaction needing to be delayed, deducting the commission of the first delayed evidence-storing transaction, determining the initial packaging time of the first delayed transaction according to the first delayed information, and storing the first delayed evidence-storing transaction on a blockchain; the method comprises the steps of,
storing the first delayed transaction locally; the method comprises the steps of,
when the initial packaging time is reached and the latest packaging right of the first block after the initial packaging time is possessed, generating a second delay transfer address according to a first delay structure in the first delay transaction, judging whether the second delay transfer address is identical to the first transaction initiator address, and judging whether the signature of the first delay transaction is matched with a first proxy address in the first delay structure in the first delay transaction or not: if the judgment is yes, generating a first block comprising a first delay transaction; the method comprises the steps of,
Broadcasting the first block to other blockchain nodes for the other blockchain nodes:
generating a third delay transfer address according to a first delay structure body in the first delay transaction, judging whether the third delay transfer address is identical to the address of a first transaction initiator, judging whether a signature of the first delay transaction is matched with a first proxy address in the first delay structure body in the first delay transaction, and judging whether the block packing time of a first block is later than the initial packing time: and deleting the local first delay transaction when the judgment is yes.
In a second aspect, the present invention provides a proxy delay 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 registration of proxy delay service, distributing a first proxy address for the first user and returning the first proxy address to the first client;
receiving delay transaction generation request information sent by a first client; the method comprises the steps that delay transaction generation request information is generated by a first client in response to confirmation of a first user to a second user in a delay transfer mode, the delay transaction generation request information comprises a first delay structure body and a second user account address of the second user, and the first delay structure body is generated according to the first delay information and the first proxy address;
Generating a first delay transaction address according to the first delay structure body, and generating a first delay transaction; the first transaction initiator address of the first delayed transaction is a first delayed transaction address, the first transaction receiver address of the first delayed transaction is a second user account address, and the first delayed transaction comprises a first delayed structure;
generating a first delayed evidence-based transaction according to the first delayed transaction; wherein the payload field of the first delayed evidence-based transaction includes the first delayed transaction;
transmitting the first delayed forensic transaction to a blockchain network for blockchain nodes to:
when the first delayed evidence-storing transaction is judged to be a first type transaction needing to be delayed, deducting the commission of the first delayed evidence-storing transaction, determining the initial packaging time of the first delayed transaction according to the first delayed information, and storing the first delayed evidence-storing transaction on a blockchain; the method comprises the steps of,
storing the first delayed transaction locally; the method comprises the steps of,
when the initial packaging time is reached and the latest packaging right of the first block after the initial packaging time is possessed, generating a second delay transfer address according to a first delay structure in the first delay transaction, judging whether the second delay transfer address is identical to the first transaction initiator address, and judging whether the signature of the first delay transaction is matched with a first proxy address in the first delay structure in the first delay transaction or not: if the judgment is yes, generating a first block comprising a first delay transaction; the method comprises the steps of,
Broadcasting the first block to other blockchain nodes for the other blockchain nodes:
generating a third delay transfer address according to a first delay structure body in the first delay transaction, judging whether the third delay transfer address is identical to the address of a first transaction initiator, judging whether a signature of the first delay transaction is matched with a first proxy address in the first delay structure body in the first delay transaction, and judging whether the block packing time of a first block is later than the initial packing time: and deleting the local first delay transaction when the judgment is yes.
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 the proxy delay transaction method provided in accordance with embodiments of the present invention.
In a fourth aspect, the present invention also provides a storage medium storing a computer program, the computer program causing a computer to execute the proxy delay transaction method provided according to the embodiments of the present invention.
According to the agent delay transaction method, the computer equipment and the storage medium provided by the embodiments of the invention, a first agent address is allocated for a first user by receiving registration request information which is generated by a first client of the first user and is used for requesting registration of agent delay service; receiving delay transaction address generation request information sent by a first client; generating a first delay structure body according to the first delay information and the first proxy address, and generating a first delay transaction address according to the first delay structure body; receiving delay transaction generation request information sent by a first client; generating a first delayed transaction; the first transaction initiator address of the first delayed transaction is a first delayed transaction address, the first transaction receiver address of the first delayed transaction is a second user account address, and the first delayed transaction comprises a first delayed structure; generating a first delayed evidence-based transaction according to the first delayed transaction; the method for sending the first delayed forensic transaction to the blockchain network enables asset invocation to be more flexible.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the following drawings, in which:
fig. 1 is a flowchart of a proxy delay transaction method according to an embodiment of the present invention.
Fig. 2 is a flowchart of another proxy delay 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 is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be noted that, for convenience of description, only the portions related to the invention are shown in the drawings.
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a flowchart of a proxy delay transaction method according to an embodiment of the present invention. As shown in fig. 1, in this embodiment, the present invention provides a proxy delay transaction method applicable to 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 registration of proxy delay service, and distributing a first proxy address for the first user;
s12: receiving delay transaction address generation request information sent by a first client; the delay transaction address generation request information comprises first delay information;
s13: generating a first delay structure body according to the first delay information and the first proxy address, and generating a first delay transaction address according to the first delay structure body;
s14: receiving delay transaction generation request information sent by a first client; the method comprises the steps that delay transaction generation request information is generated by a first client in response to confirmation of a first user to a second user in a delay transfer mode, and the delay transaction generation request information comprises a second user account address of the second user;
s15: generating a first delayed transaction; the first transaction initiator address of the first delayed transaction is a first delayed transaction address, the first transaction receiver address of the first delayed transaction is a second user account address, and the first delayed transaction comprises a first delayed structure;
s16: generating a first delayed evidence-based transaction according to the first delayed transaction; wherein the payload field of the first delayed evidence-based transaction includes the first delayed transaction;
S17: transmitting the first delayed forensic transaction to a blockchain network for blockchain nodes to:
when the first delayed evidence-storing transaction is judged to be a first type transaction needing to be delayed, deducting the commission of the first delayed evidence-storing transaction, determining the initial packaging time of the first delayed transaction according to the first delayed information, and storing the first delayed evidence-storing transaction on a blockchain; the method comprises the steps of,
storing the first delayed transaction locally; the method comprises the steps of,
when the initial packaging time is reached and the latest packaging right of the first block after the initial packaging time is possessed, generating a second delay transfer address according to a first delay structure in the first delay transaction, judging whether the second delay transfer address is identical to the first transaction initiator address, and judging whether the signature of the first delay transaction is matched with a first proxy address in the first delay structure in the first delay transaction or not: if the judgment is yes, generating a first block comprising a first delay transaction; the method comprises the steps of,
broadcasting the first block to other blockchain nodes for the other blockchain nodes:
generating a third delay transfer address according to a first delay structure body in the first delay transaction, judging whether the third delay transfer address is identical to the address of a first transaction initiator, judging whether a signature of the first delay transaction is matched with a first proxy address in the first delay structure body in the first delay transaction, and judging whether the block packing time of a first block is later than the initial packing time: and deleting the local first delay transaction when the judgment is yes.
Specifically, generating a first block including a first delayed transaction includes "generating a first block including 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, deleting the local first delayed transaction comprising 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 delayed transaction "; the first delay information is a first delay time, and determining the initial packaging time of the first delay transaction according to the first delay information includes, for example, "determining the initial packaging time of the first delay transaction according to the first block time of packaging the first delay evidence-storing transaction" by the first delay time;
assuming that after a user a registers a proxy delay service with a proxy server, the user a delays transfer to a user b;
the client of the user a generates registration request information for requesting the proxy delay service and sends the registration request information to the proxy server;
the proxy server executes step S11 to assign a proxy address, assumed as addr (p), to user a;
the client of the user a generates delay transaction address generation request information and sends the delay transaction address generation request information to the proxy server, wherein the delay transaction address generation request information comprises delay time length T;
The proxy server executes step S12 to receive delay transaction address generation request information;
the proxy server executes step S13 to generate 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 hash the binary string to generate addr (X), or configured to encode S according to thraft protocol to generate a binary string, and hash the binary string to generate addr (X), which is not specifically limited in this application;
when executing 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 address of the transaction receiver of tx0 is addr (X); assuming that the subsequent user a and user b are about to transfer after T with a delayed transfer of 10token for the asset specified by tx0, the asset should be greater than 10token to ensure that addr (X) has enough assets to be transferred; when the execution of tx0 is successful, the blockchain node skips the asset specified by tx0 from addr (a) to addr (X);
Alternatively, the client of the user a may proxy the proxy server to generate the transfer transaction tx0, because the proxy server itself holds addr (X), and the proxy server may proxy and send the transfer transaction tx0 to the blockchain network after receiving the transfer transaction generation request information generated by the client of the user a;
the client of the user a responds to the confirmation of the user a to delay transfer to the user b, generates delay transaction generation request information and sends the delay transaction generation request information to the proxy server, wherein the delay transaction generation request information comprises addr (b);
the proxy server executes step S14 to receive delay transaction generation request information;
the proxy server executes step S15 to generate a delay transaction tx2; tx2 has a transaction initiator address addr (X), tx2 has a transaction receiver address addr (b), and tx2 includes S;
the proxy server executes step S16 to generate a delayed certificate-storing transaction tx1 according to tx2; the payload field of tx1 includes tx2;
the proxy server executes step S17 to send tx1 to the blockchain network;
the blockchain node judges that tx1 is a first type transaction needing delay according to the name of an executor of tx1, deducts the commission of tx1, determines an initial packaging time T2 (T2=T1+T) of tx2 according to the block time T1 and T of packaging tx1, and stores tx1 on a blockchain; it should be understood by those skilled in the art that the blockchain node may also determine whether tx1 is a first type of transaction according to other methods, for example, determining according to a delay identifier in the tx1 signature, so as to achieve the same technical effect;
The block link point stores tx2 locally; the method comprises the steps of,
when reaching T2 and having the packing weight of the latest block after T2 (the block with the height of 100 is assumed), the blockchain node generates a delay transfer address addr (X)' according to S in tx 2; it should be understood by those skilled in the art that the method for generating the transfer address addr (X) 'herein should be the same as the method for generating the transfer address addr (X), for example, should be correspondingly configured to encode S in tx2 according to the prot obuf protocol to generate a binary string, and hash the binary string to generate addr (X)';
the blockchain node determines whether addr (X)' is the same as the transaction initiator address addr (X) of tx2, and determines whether the signature sig_proxy of tx2 matches addr (p) in S in tx 2:
since addr (X)' is the same as the transaction initiator address addr (X) of tx2, and since addr (p) is one address of the proxy server, the signature sig_proxy of tx2 matches with the ad dr (p) in S in tx2, then the block link point generates a block (100) including tx2, and when executing tx2 succeeds, the 10token is scratched from addr (X) to addr (b); the method comprises the steps of,
broadcasting blocks (100) to other blockchain nodes;
the other blockchain nodes generate a delayed transfer address addr (X) according to S in tx2, judge whether the addr (X) is identical with a transaction initiator address addr (X) of tx2, judge whether signature sig_proxy of tx2 is matched with addr (p) in S in tx2, and judge whether the block time of packing tx1 is later than T2:
Since addr (X) "is the same as the address addr (X) of the transaction initiator of tx2, and the signature sig_proxy of tx2 is matched with addr (p) in S in tx2, the block time of packing tx1 is later than T2, and then other block chain nodes scratch 10token from addr (X) to addr (b) when tx2 is successfully executed; the method comprises the steps of,
the local tx2 is deleted.
It will be appreciated by those skilled in the art that if tx2 performs successfully some verification in the prior art, such as verifying that addr (X) has enough token transfers, if verification fails, then if addr (X)' is the same as the transaction initiator address of tx2, addr (X) "matches the addr (p) in S in tx2, the signature sig_proxy of tx2 matches addr (p) in S in tx2, and the block of packed tx1 is later than T2, and tx2 fails to perform;
in more embodiments, the first delay information to be prolonged may be further configured according to actual requirements, for example, configured as a fixed time T3, and the starting packaging time is T3, so that the same technical effects can be achieved.
In further embodiments, the first asset may not be specified in the delay transaction, and the first asset may also be configured in the first delay fabric according to actual needs, i.e., S { pub (a), T,10token }; each block link point then strokes 10token from addr (X) to addr (b) upon successful execution of tx2 according to 10token in S.
In further embodiments, the signature information of the delayed transaction includes a delayed transaction identifier, and the blockchain node performs the step of generating the second delayed transfer address … … according to the first delayed structure in the first delayed transaction when the delayed transaction identifier is identified, and the other blockchain nodes perform the step of generating the third delayed transfer address … … according to the first delayed structure in the first delayed transaction when the delayed transaction identifier is identified.
It should be understood by those skilled in the art that the first delay information may be replaced by a delay block height parameter according to the actual requirement, and the delay block height parameter may be configured according to the actual requirement, for example, configured as a certain fixed end block height, or configured as a first block section, where the end block height is equal to the sum of the block height of the blocks packaged tx1 and the first block section, so as to achieve the same technical effect.
It will be appreciated by those skilled in the art that if the second user also registers a proxy delay service on the proxy server, the proxy server may push the transaction hash of the first delayed forensic transaction to the second client of the second user when the first delayed forensic transaction is forensic on the monitoring block chain, or send the transaction Ha Xitui of the first delayed transaction to the second client when the blockchain node is monitored to have performed the first delayed transaction.
Those skilled in the art will appreciate that addr (X) is not the contract address of any contract, so any contract may call an asset in addr (X). The above-described embodiments make asset invocation more flexible.
Preferably, determining the starting packaging time of the first delayed transaction according to the first delayed information, and proving the first delayed certification transaction to the blockchain includes:
determining the initial packaging time of the first delay transaction according to the first delay information;
the first corresponding relation between the first delayed evidence-storing transaction and the first delayed evidence-storing transaction are stored on the blockchain;
judging whether the second delay transfer address is the same as the first transaction initiator address, and judging whether the signature of the first delay transaction is matched with the first proxy address in the first delay structure in the first delay transaction or not: if the above determinations are yes, generating a first block including a first delayed transaction includes:
judging whether the second delay transfer address is the same as the address of the first transaction initiator, judging whether the signature of the first delay transaction is matched with the first proxy address in the first delay structure in the first delay transaction, searching whether the first delay evidence-preserving transaction exists on the blockchain according to the first corresponding relation, and judging whether the searched first delay evidence-preserving transaction is a first type transaction: if the judgment is yes, generating a first block comprising a first delay transaction;
Judging whether the third delay transfer address is the same as the address of the first transaction initiator, judging whether the signature of the first delay transaction is matched with the first proxy address in the first delay structure in the first delay transaction, and judging whether the block packing time of the first block is later than the initial packing time: if the above determinations are yes, deleting the local first delayed transaction includes:
judging whether the third delay transfer address is the same as the address of the first transaction initiator, judging whether the signature of the first delay transaction is matched with the first proxy address in the first delay structure in the first delay transaction, judging whether the block packing time of the first block is later than the initial packing time, searching whether the first delay evidence-storing transaction exists on the block chain according to the first corresponding relation, and judging whether the searched first delay evidence-storing transaction is a first type transaction: and deleting the local first delay transaction when the judgment is yes.
Specifically, the blockchain node determines a starting packaging time T2 of tx2 according to the block time T1, T of the block packaging tx1, t2=t1+t;
the corresponding relation between tx1 and tx2 is stored and verified on the block chain; it should be understood by those skilled in the art that the storage form of the above correspondence may be configured according to actual requirements, for example, configured as a hash (tx 1): hash (tx 2), or tx1:tx2, or other forms, the application is not particularly limited;
The block chain node judges whether addr (X)' is the same as address addr (X) of transaction initiator of tx2, judges whether signature sig_proxy of tx2 is matched with addr (p) in S in 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 the address of the transaction initiator of tx2, the signature sig_proxy of tx2 is matched with addr (p) in S in tx2, tx1 can be found on the blockchain, the found tx1 is a first type transaction, and the blockchain link point generates a first block comprising tx2; it will be appreciated by those skilled in the art that in further embodiments, addr (X)' may also be configured differently from addr (X) according to actual needs, and/or that tx1 is not found on the blockchain, and/or that tx1 is not found to be an operation of a first type of transaction, e.g., configured to not pack tx2;
other blockchain nodes are similar to the blockchain node in terms of judgment, and are not described in detail herein.
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 includes:
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 principle of the delayed transaction in the above embodiment may refer to the method shown in fig. 1, and will not be described herein.
Preferably, the method further comprises:
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; the second transaction initiator address of the asset extraction transaction is a first delay 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 delay structure;
transmitting the asset extraction transaction to the blockchain network for the blockchain node to:
generating a fourth delay transfer address according to the first delay structure in the asset extraction transaction, judging whether the fourth delay transfer address is the same as the second transaction initiator address, judging whether the current block moment does not reach the initial packaging moment, and judging whether the signature of the asset extraction transaction is matched with the first proxy address in the first delay structure in the asset extraction transaction;
If the judgment is yes, transferring the first asset appointed by the first delay transaction from the first delay transfer address to an asset extraction account address;
marking the local first delayed transaction as invalid; the method comprises the steps of,
the first delayed transaction is validated while the first delayed transaction marked as invalid is performed.
It will be appreciated by those skilled in the art that when the transaction recipient address of the asset extraction transaction is the second user address of the second user, this indicates that the asset is to be diverted to the second user in advance; when the transaction recipient address of the asset extraction transaction is the first user address of the first user, the withdrawal of the asset to the first user is indicated. In either case, since the asset has been previously extracted, the local delayed transaction should be marked as a dead transaction;
it should be understood by those skilled in the art that 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 and sent to the blockchain network according to actual requirements; 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 delay transfer address according to a first delay structure in the asset extraction transaction, judges whether the fourth delay transfer address is the same as the address of the second transaction initiator, judges whether the current block moment does not reach the initial packaging moment, judges whether the signature of the asset extraction transaction is matched with a first public key or a first proxy address in the first delay structure 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 evidence transaction for use in finding the local first delayed transaction.
In more embodiments, the method for executing the invalidated delayed transaction may be further configured according to actual requirements, for example, configured to record a transaction hash of the invalidated delayed transaction on the blockchain, or delete a local delayed transaction, cache a transaction hash of the delayed transaction, and mark the transaction hash with the invalidated identifier, where the transaction hash with the invalidated identifier is used to delete the delayed transaction when the blockchain node receives the delayed transaction again.
The above-described embodiments enable the early confirmation of transfers or withdrawals of assets.
Preferably, determining the starting packaging time of the first delayed transaction according to the first delayed information, and proving the first delayed certification transaction to the blockchain includes:
determining the initial packaging time of the first delay transaction according to the first delay information;
the second corresponding relation between the first delayed transaction and the initial packaging time and the first delayed evidence-storing transaction are stored on the blockchain;
the method further comprises the following steps:
generating an asset extraction transaction comprising a hash value of the first delayed transaction; the method comprises the steps that a transaction initiator address of an asset extraction transaction is a first delay transfer address, and the asset extraction transaction comprises a first delay structure;
Transmitting the asset extraction transaction to the blockchain network for the blockchain node to:
generating a fourth delay transfer address according to the first delay structure in the asset extraction transaction, judging whether the fourth delay 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 packaging moment, and judging whether the signature of the asset extraction transaction is matched with the first proxy address in the first delay structure in the asset extraction transaction;
if the judgment is yes, transferring the first asset appointed by the first delayed transaction from the first delayed transfer address to a transaction receiver address of the asset extraction transaction; the method comprises the steps of,
updating the second corresponding relation: delaying transaction and invalidating identification;
performing a time-lapse transaction: and when judging that the delayed transaction is the invalid transaction according to the updated second corresponding relation, checking the delayed transaction.
The above-described embodiments may also enable the advance confirmation of transfers or withdrawals of assets. In the above embodiment, the second correspondence is verified on the blockchain; the second corresponding relation is a delay transaction: and when the packaging time is started, the packaging time can be quickly inquired according to the second corresponding relation.
Fig. 2 is a flowchart of another proxy delay transaction method according to an embodiment of the present invention. As shown in fig. 2, in this embodiment, the present invention provides a proxy delay transaction method applicable to 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 registration of proxy delay service, distributing a first proxy address for the first user and returning the first proxy address to the first client;
s22: receiving delay transaction generation request information sent by a first client; the method comprises the steps that delay transaction generation request information is generated by a first client in response to confirmation of a first user to a second user in a delay transfer mode, the delay transaction generation request information comprises a first delay structure body and a second user account address of the second user, and the first delay structure body is generated according to the first delay information and the first proxy address;
s23: generating a first delay transaction address according to the first delay structure body, and generating a first delay transaction; the first transaction initiator address of the first delayed transaction is a first delayed transaction address, the first transaction receiver address of the first delayed transaction is a second user account address, and the first delayed transaction comprises a first delayed structure;
S24: generating a first delayed evidence-based transaction according to the first delayed transaction; wherein the payload field of the first delayed evidence-based transaction includes the first delayed transaction;
s25: transmitting the first delayed forensic transaction to a blockchain network for blockchain nodes to:
when the first delayed evidence-storing transaction is judged to be a first type transaction needing to be delayed, deducting the commission of the first delayed evidence-storing transaction, determining the initial packaging time of the first delayed transaction according to the first delayed information, and storing the first delayed evidence-storing transaction on a blockchain; the method comprises the steps of,
storing the first delayed transaction locally; the method comprises the steps of,
when the initial packaging time is reached and the latest packaging right of the first block after the initial packaging time is possessed, generating a second delay transfer address according to a first delay structure in the first delay transaction, judging whether the second delay transfer address is identical to the first transaction initiator address, and judging whether the signature of the first delay transaction is matched with a first proxy address in the first delay structure in the first delay transaction or not: if the judgment is yes, generating a first block comprising a first delay transaction; the method comprises the steps of,
broadcasting the first block to other blockchain nodes for the other blockchain nodes:
Generating a third delay transfer address according to a first delay structure body in the first delay transaction, judging whether the third delay transfer address is identical to the address of a first transaction initiator, judging whether a signature of the first delay transaction is matched with a first proxy address in the first delay structure body in the first delay transaction, and judging whether the block packing time of a first block is later than the initial packing time: and deleting the local first delay transaction when the judgment is yes.
The embodiment shown in FIG. 2 differs from the embodiment shown in FIG. 1 in that the transaction logic of the client is less, and for higher frequencies, the batched delayed transfer transactions are more friendly; the method comprises the steps of,
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 body, and cannot verify whether the delay transaction generated by the proxy server is correct, when the first user delegates the proxy server to generate the delay transaction, the first user needs to transfer to the first delay transaction address, or the delegate proxy server needs to transfer to the first delay transaction address.
Whereas in the embodiment shown in fig. 2, the first delay structure is generated by a first client of the first user; the first client may verify whether the delayed transaction generated by the proxy server is correct, specifically as follows:
When the proxy server monitors that the first delay certificate transaction exists on the blockchain, pushing a first transaction hash of the first delay certificate transaction to the first client for the first client to:
searching a first delayed evidence-storing transaction according to the first transaction hash, and searching the first delayed transaction according to the found payload field of the first delayed evidence-storing transaction;
generating a fifth delay transaction address according to the generated first delay structure body, judging whether the fifth delay transaction address is the same as the address of a first transaction initiator of the searched first delay transaction, and judging whether the address of a first transaction receiver of the searched first delay transaction is a second user account address: if the judgment is yes, generating a first transfer transaction; wherein the third transaction initiator address of the first transfer transaction is a first delayed transaction address;
the first transfer transaction is sent to the blockchain network for the blockchain node to transfer 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 first transfer transaction is performed successfully.
When the fifth delayed transaction address is different from the first transaction initiator address of the first delayed transaction that is found, and/or the first transaction recipient address of the first delayed transaction that is found is not the second user account address, the first user may not generate the transfer transaction, or the first user may not delegate the proxy server to generate the transfer transaction, 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 required for the operation of the computer device are also stored. The CPU301, ROM302, and RAM303 are connected to each other through 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 section 306 including a keyboard, a mouse, and the like; an output portion 307 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 308 including a hard disk or 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. The 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 installed on the drive 310 as needed, so that a computer program read therefrom is installed into the storage section 308 as needed.
In particular, according to embodiments of the present disclosure, the method described in any of the above embodiments may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing any of the methods described above. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 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 a computer-readable storage medium contained in the apparatus of the above-described embodiment; or may be a computer-readable storage medium, alone, that is not assembled into a computer device. The computer readable storage medium stores one or more programs for use by one or more processors to perform the methods described herein.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present 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 may be implemented by hardware. The described units or modules may also be provided in a processor, for example, each of the units may be a software program provided in a computer or a mobile smart device, or may be separately configured hardware devices. Wherein the names of the units or modules do not in some cases constitute a limitation of the units or modules themselves.
The foregoing description is only of the preferred embodiments of the present application and is presented as a description of the principles of the technology being utilized. It will be appreciated by persons skilled in the art that the scope of the invention referred to in this application is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or their equivalents without departing from the spirit of the application. Such as the above-described features and technical features having similar functions (but not limited to) disclosed in the present application are replaced with each other.

Claims (11)

1. A proxy delay transaction method, suitable for use with a proxy server, the method comprising:
Receiving registration request information which is generated by a first client of a first user and requests registration of proxy delay service, and distributing a first proxy address for the first user;
receiving delay transaction address generation request information sent by a first client; wherein the delay transaction address generation request information comprises first delay information;
generating a first delay structure body according to the first delay information and the first proxy address, and generating a first delay transaction address according to the first delay structure body;
receiving delay transaction generation request information sent by a first client; wherein the delayed transaction generation request information is generated by the first client in response to the first user confirming delayed transfer to a second user, the delayed transaction generation request information including a second user account address of the second user;
generating a first delayed transaction; the first transaction initiator address of the first delayed transaction is the first delayed transaction address, the 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 evidence-based transaction according to the first delayed transaction; wherein the payload field of the first delayed evidence-based transaction includes the first delayed transaction;
Transmitting the first delayed forensic transaction to a blockchain network for blockchain nodes to:
when the first delayed evidence-storing transaction is judged to be a first type transaction needing to be delayed, deducting the commission of the first delayed evidence-storing transaction, determining the initial packaging time of the first delayed transaction according to the first delayed information, and storing the first delayed evidence-storing transaction on a blockchain; the method comprises the steps of,
storing the first delayed transaction locally; the method comprises the steps of,
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 delay transfer address according to the first delay structure in the first delay transaction, judging whether the second delay transfer address is identical to the first transaction initiator address, and judging whether the signature of the first delay transaction is matched with the first proxy address in the first delay structure in the first delay transaction or not: if the judgment is yes, generating a first block comprising the first delay transaction; the method comprises the steps of,
broadcasting the first block to other blockchain nodes for other blockchain nodes:
Generating a third delay transfer address according to the first delay structure body in the first delay transaction, judging whether the third delay transfer address is identical to the first transaction initiator address, judging whether the signature of the first delay transaction is matched with the first proxy address in the first delay structure body in the first delay transaction, and judging whether the block packing time of the first block is later than the initial packing time: and deleting the local first delay transaction when the judgment is yes.
2. The method of claim 1, wherein determining a start packaging time of the first delayed transaction based on the first delay information and depositing the first delayed certification transaction onto a blockchain comprises:
determining the initial packaging time of the first delay transaction according to the first delay information;
the first corresponding relation between the first delayed evidence-storing transaction and the first delayed evidence-storing transaction are stored on a blockchain;
the method comprises the steps of judging whether the second delay transfer address is identical to the first transaction initiator address or not, and judging whether a signature of the first delay transaction is matched with the first proxy address in the first delay structure in the first delay transaction or not: when the above determinations are yes, generating a first block including the first delayed transaction includes:
Judging whether the second delay transfer address is the same as the first transaction initiator address, judging whether the signature of the first delay transaction is matched with the first proxy address in the first delay structure in the first delay transaction, searching whether the first delay evidence-preserving transaction exists on a blockchain according to the first corresponding relation, and judging whether the searched first delay evidence-preserving transaction is the first type transaction: if the judgment is yes, generating a first block comprising the first delay transaction;
the third delay transfer address is judged to be the same as the first transaction initiator address, the signature of the first delay transaction is judged to be matched with the first proxy address in the first delay structure in the first delay transaction, and whether the block packing time of the first block is later than the initial packing time is judged: if the above determinations are yes, deleting the local first delayed transaction includes:
judging whether the third delay transfer address is the same as the first transaction initiator address, judging whether the signature of the first delay transaction is matched with the first proxy address in the first delay structure in the first delay transaction, judging whether the block packing time of the first block is later than the initial packing time, searching whether the first delay evidence-preserving transaction exists on a block chain according to the first corresponding relation, and judging whether the searched first delay evidence-preserving transaction is the first type transaction: and deleting the local first delay transaction when the judgment is yes.
3. The method of claim 1, wherein the generating a first block comprising 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 includes:
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 as recited in 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; the second transaction initiator address of the asset extraction transaction is the first delay transfer address, the second transaction receiver address of the asset extraction transaction is the asset extraction account address, and the asset extraction transaction comprises the first delay structure;
Sending the asset extraction transaction to a blockchain network for blockchain nodes to:
generating a fourth delay transfer address according to the first delay structure in the asset extraction transaction, judging whether the fourth delay transfer address is the same as the second transaction initiator address, judging whether the current block moment does not reach the initial packaging moment, and judging whether the signature of the asset extraction transaction is matched with the first proxy address in the first delay structure in the asset extraction transaction;
if the judgment is yes, transferring the first asset appointed by the first delayed transaction from the first delayed transfer address to the asset extraction account address;
marking the local first delayed transaction as invalid; the method comprises the steps of,
and when the first delayed transaction marked as invalid is executed, the first delayed transaction is verified.
5. A proxy delay transaction method, suitable for use with a proxy server, the method comprising:
receiving registration request information which is generated by a first client of a first user and requests registration of proxy delay service, distributing a first proxy address for the first user and returning the first proxy address to the first client;
Receiving delay transaction generation request information sent by a first client; the delay transaction generation request information is generated by the first client in response to confirmation of the first user to a second user through delay transfer, and comprises a first delay structure body and a second user account address of the second user, wherein the first delay structure body is generated according to the first delay information and the first proxy address;
generating a first delay transaction address according to the first delay structure body, and generating a first delay transaction; the first transaction initiator address of the first delayed transaction is the first delayed transaction address, the 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 evidence-based transaction according to the first delayed transaction; wherein the payload field of the first delayed evidence-based transaction includes the first delayed transaction;
transmitting the first delayed forensic transaction to a blockchain network for blockchain nodes to:
when the first delayed evidence-storing transaction is judged to be a first type transaction needing to be delayed, deducting the commission of the first delayed evidence-storing transaction, determining the initial packaging time of the first delayed transaction according to the first delayed information, and storing the first delayed evidence-storing transaction on a blockchain; the method comprises the steps of,
Storing the first delayed transaction locally; the method comprises the steps of,
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 delay transfer address according to the first delay structure in the first delay transaction, judging whether the second delay transfer address is identical to the first transaction initiator address, and judging whether the signature of the first delay transaction is matched with the first proxy address in the first delay structure in the first delay transaction or not: if the judgment is yes, generating a first block comprising the first delay transaction; the method comprises the steps of,
broadcasting the first block to other blockchain nodes for other blockchain nodes:
generating a third delay transfer address according to the first delay structure body in the first delay transaction, judging whether the third delay transfer address is identical to the first transaction initiator address, judging whether the signature of the first delay transaction is matched with the first proxy address in the first delay structure body in the first delay transaction, and judging whether the block packing time of the first block is later than the initial packing time: and deleting the local first delay transaction when the judgment is yes.
6. The method of claim 5, wherein determining the starting packaging time of the first delayed transaction based on the first delay information and depositing the first delayed certification transaction onto a blockchain comprises:
determining the initial packaging time of the first delay transaction according to the first delay information;
the first corresponding relation between the first delayed evidence-storing transaction and the first delayed evidence-storing transaction are stored on a blockchain;
the method comprises the steps of judging whether the second delay transfer address is identical to the first transaction initiator address or not, and judging whether a signature of the first delay transaction is matched with the first proxy address in the first delay structure in the first delay transaction or not: when the above determinations are yes, generating a first block including the first delayed transaction includes:
judging whether the second delay transfer address is the same as the first transaction initiator address, judging whether the signature of the first delay transaction is matched with the first proxy address in the first delay structure in the first delay transaction, searching whether the first delay evidence-preserving transaction exists on a blockchain according to the first corresponding relation, and judging whether the searched first delay evidence-preserving transaction is the first type transaction: if the judgment is yes, generating a first block comprising the first delay transaction;
The third delay transfer address is judged to be the same as the first transaction initiator address, the signature of the first delay transaction is judged to be matched with the first proxy address in the first delay structure in the first delay transaction, and whether the block packing time of the first block is later than the initial packing time is judged: if the above determinations are yes, deleting the local first delayed transaction includes:
judging whether the third delay transfer address is the same as the first transaction initiator address, judging whether the signature of the first delay transaction is matched with the first proxy address in the first delay structure in the first delay transaction, judging whether the block packing time of the first block is later than the initial packing time, searching whether the first delay evidence-preserving transaction exists on a block chain according to the first corresponding relation, and judging whether the searched first delay evidence-preserving transaction is the first type transaction: and deleting the local first delay transaction when the judgment is yes.
7. The method of claim 5, wherein the generating a first block comprising 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 includes:
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 as recited in 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; the second transaction initiator address of the asset extraction transaction is the first delay transfer address, the second transaction receiver address of the asset extraction transaction is the asset extraction account address, and the asset extraction transaction comprises the first delay structure;
Sending the asset extraction transaction to a blockchain network for blockchain nodes to:
generating a fourth delay transfer address according to the first delay structure in the asset extraction transaction, judging whether the fourth delay transfer address is the same as the second transaction initiator address, judging whether the current block moment does not reach the initial packaging moment, and judging whether the signature of the asset extraction transaction is matched with the first proxy address in the first delay structure in the asset extraction transaction;
if the judgment is yes, transferring the first asset appointed by the first delayed transaction from the first delayed transfer address to the asset extraction account address;
marking the local first delayed transaction as invalid; the method comprises the steps of,
and when the first delayed transaction marked as invalid is executed, the first delayed transaction is verified.
9. The method as recited in claim 5, further comprising:
when the first delayed forensic transaction is detected to exist on the blockchain, pushing a first transaction hash of the first delayed forensic transaction to the first client for the first client to:
Searching the first delayed evidence-storing transaction according to the first transaction hash, and searching the first delayed transaction according to the found payload field of the first delayed evidence-storing transaction;
generating a fifth delay transaction address according to the generated first delay structure body, judging whether the fifth delay transaction address is the same as the searched first transaction initiator address of the first delay transaction, and judging whether the searched first transaction receiver address of the first delay transaction is the second user account address: if 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 a blockchain network so that when the blockchain node successfully executes the first transfer transaction, the second asset appointed by the first transfer transaction is transferred from the first user account address of the first user to the first delay 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 of 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 CN113592653A (en) 2021-11-02
CN113592653B true 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)

Families Citing this family (1)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (2)

* 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
US11127000B2 (en) * 2018-12-17 2021-09-21 Intel Corporation Reducing blockchain transaction delay

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10846762B1 (en) * 2018-07-09 2020-11-24 Turing Technology, Inc. Blockchain based cold email campaign
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

Also Published As

Publication number Publication date
CN113592653A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
KR101932277B1 (en) Distributed Ledger Device and Distributed Ledger Method for Sharing User Information using Blockchain
CN109447641B (en) Method and apparatus for transmitting blockchain data to blockchain browser
CN110009494B (en) Method and device for monitoring transaction content in block chain
US10924281B2 (en) Method and apparatus for inter-blockchain transmission of authenticable message
CN109951546B (en) Transaction request processing method, device, equipment and medium based on intelligent contract
CN112583811B (en) Wallet finding method, equipment and storage medium
CN112600664B (en) Delayed transaction generation method, delayed transaction execution device and storage medium
CN109710695B (en) Transaction request validity identification and initiation method, device, equipment and medium
CN111597567B (en) Data processing method, data processing device, node equipment and storage medium
CN113592653B (en) Proxy delay transaction method, computer device and storage medium
CN112381543A (en) Multiple signature transaction method, device and storage medium
WO2022206438A1 (en) Method and apparatus for providing cross-chain message
CN113592652B (en) Delay transaction method, computer device and storage medium
CN111242614A (en) Wallet account asset retrieving method, collection guarantee method, equipment and storage medium
CN111047444A (en) Data transaction method and device based on block chain network
CN111524011B (en) Parallel link consensus validation method, apparatus, and storage medium
CN113592485B (en) Wallet retrieving method, computer device and storage medium
CN114202332A (en) Digital currency wallet management method, device and system
CN113222576B (en) Delayed transfer method, computer device and storage medium
CN113706303B (en) Universal time delay transaction method, computer equipment and storage medium
CN114283010B (en) Multi-main-chain crossing method based on multi-main-chain two-layer network state tree
CN113222577B (en) Delayed transfer method, computer device and storage medium
CN111127003B (en) Wallet account payment method, device and storage medium
KR20190076837A (en) Distributed Ledger Device and Distributed Ledger Method for Sharing User Information using Blockchain
KR20190076813A (en) Distributed Ledger Device and Distributed Ledger Method for Sharing User Information using Blockchain

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