WO2022121348A1 - Delayed transaction generation method, delayed transaction execution method, and device and storage medium - Google Patents

Delayed transaction generation method, delayed transaction execution method, and device and storage medium Download PDF

Info

Publication number
WO2022121348A1
WO2022121348A1 PCT/CN2021/111855 CN2021111855W WO2022121348A1 WO 2022121348 A1 WO2022121348 A1 WO 2022121348A1 CN 2021111855 W CN2021111855 W CN 2021111855W WO 2022121348 A1 WO2022121348 A1 WO 2022121348A1
Authority
WO
WIPO (PCT)
Prior art keywords
delayed
transaction
signature
certificate deposit
packaging
Prior art date
Application number
PCT/CN2021/111855
Other languages
French (fr)
Chinese (zh)
Inventor
王志文
吴思进
Original Assignee
杭州复杂美科技有限公司
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 杭州复杂美科技有限公司 filed Critical 杭州复杂美科技有限公司
Publication of WO2022121348A1 publication Critical patent/WO2022121348A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/30Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures

Definitions

  • the present application relates to the field of blockchain technology, and in particular to a method for generating a delayed transaction, a method for executing a delayed transaction, a device and a storage medium.
  • the present invention provides a method for generating a delayed transaction suitable for a client.
  • the method includes:
  • the handling fee of the delayed certificate deposit transaction is deducted, and the delayed certificate deposit transaction is stored on the blockchain;
  • the first block is generated according to the delayed transaction.
  • the present invention provides a delayed transaction execution method suitable for blockchain nodes, the method comprising:
  • the delayed certificate deposit transaction wherein, the delayed certificate deposit transaction is generated according to the delayed transaction, the payload field of the delayed certificate deposit transaction includes the delayed transaction, and the delayed transaction includes the delayed information;
  • the handling fee of the delayed certificate deposit transaction is deducted, and the delayed certificate deposit transaction is stored on the blockchain;
  • the first block is generated according to the delayed transaction
  • 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 various functions according to the present invention.
  • a method for generating a delayed transaction and a method for executing a delayed transaction provided by the embodiment.
  • the present invention further provides a storage medium storing a computer program, the computer program enables a computer to execute the delayed transaction generation method and the delayed transaction execution method provided according to the embodiments of the present invention.
  • the delayed transaction generation method, the delayed transaction execution method, the device and the storage medium provided by the various embodiments of the present invention receive the delayed certificate deposit transaction; when it is determined that the delayed certificate deposit transaction is the first type of transaction that needs to be delayed, Deduct the handling fee of the delayed certificate transaction, and store the delayed certificate transaction on the blockchain; store the delayed transaction locally, and determine the starting packaging time of the delayed transaction according to the delay information; When the packaging starts and the packaging right of the latest first block after the starting packaging time is obtained, the first block is generated according to the delayed transaction; the first block is broadcast to other blockchain nodes for other districts A method of deleting local delayed transactions by blockchain nodes to enhance the security of the blockchain network.
  • FIG. 1 is a flowchart of a method for generating a delayed transaction according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for executing a delayed transaction according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a device according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for generating a delayed transaction according to an embodiment of the present invention.
  • the present invention provides a method for generating a delayed transaction suitable for a client.
  • the method includes:
  • S12 Generate a delayed transaction, and generate a delayed certificate deposit transaction according to the delayed transaction; wherein, the payload field of the delayed certificate deposit transaction includes the delayed transaction, and the delayed transaction includes the delayed information;
  • the handling fee of the delayed certificate deposit transaction is deducted, and the delayed certificate deposit transaction is stored on the blockchain;
  • the first block is generated according to the delayed transaction.
  • the delayed information is taken as a fixed time;
  • the first signature information of the delayed transaction includes the delayed information of the delayed transaction; when it is determined that the delayed deposit transaction is the first type of transaction that needs to be delayed, the delayed transaction is deducted.
  • the handling fee for the time-delayed certificate transaction includes: according to the name of the executor of the delayed deposit transaction, it is determined that the delayed deposit transaction is the first type of transaction that needs to be delayed, and the handling fee of the delayed deposit transaction is deducted as an example;
  • the delayed transaction is tx1, the delayed deposit transaction is tx2, the payload field of tx2 includes tx1, and the delayed information is a fixed time, assuming that it is 0:00:00 on January 1, 2021;
  • the client performs step S12, generates tx1, and generates tx2 according to tx1;
  • the client performs step S14, and sends tx2 to the blockchain network;
  • the blockchain node judges that tx2 is the first type of transaction that needs to be delayed according to the executor name delay of tx2, the blockchain node deducts the handling fee of tx2, and stores the tx2 certificate on the blockchain;
  • the blockchain node stores tx1 locally, and the delay information in the signature information of tx1 determines the starting packaging time of tx1, which is 0:00:00 on January 1, 2021;
  • A broadcasts the above block to other blockchain nodes, and other blockchain nodes delete the local tx1.
  • the delay information is taken as a fixed time; the first signature information of the delayed transaction includes the delay information of the delayed transaction; when it is determined that the delayed certificate deposit transaction is the first type of transaction that needs to be delayed, the delayed transaction is deducted.
  • the handling fee for the time-delayed certificate transaction includes: according to the name of the executor of the delayed deposit transaction, it is judged that the delayed deposit transaction is the first type of transaction that needs to be delayed, and the handling fee of the delayed deposit transaction is deducted.
  • the delay information can be configured according to actual needs, for example, it is configured to be the first time period that needs to be extended for the delayed transaction.
  • the method for calculating the starting packaging moment of the delayed transaction should also be based on the actual situation.
  • the configuration is performed, for example, as follows: the initial packaging time of the delayed transaction is determined according to the first moment and the first duration when the delayed deposit transaction is packaged, so that the same technical effect can be achieved.
  • the delay information of the delayed transaction may also be configured in other fields according to actual requirements.
  • the assets delayed in the delayed transaction can be not only the assets in the delayed contract, but also the assets of other contracts (that is, The executor name of the delayed transaction is configured as a contract other than the delayed contract), or the global asset (that is, the executor name of the delayed transaction is configured as empty).
  • the method of judging whether the delayed certificate deposit transaction is the first type of transaction that needs to be delayed can also be configured according to actual needs.
  • Hash value perform hash operation according to the name of the executor of the delayed certificate transaction to obtain the hash value', and judge whether the above hash value is the same as the above hash value' to determine whether the delayed certificate transaction needs to be delayed
  • the first type of transaction can achieve the same technical effect.
  • the deduction of the handling fee for the delayed certificate deposit transaction includes:
  • the delayed certificate deposit transaction is the first type of transaction that needs to be delayed, and the handling fee of the delayed certificate deposit transaction is deducted.
  • the delay information is the first time length required to extend the delayed transaction; storing the delayed transaction locally, and determining the initial packaging time of the delayed transaction according to the delay information includes:
  • the first correspondence is used for other blockchain nodes:
  • the delayed certificate deposit transaction When executing the delayed transaction, the delayed certificate deposit transaction is found according to the second hash value, and the starting packaging time of the delayed transaction is determined according to the first moment when the delayed certificate deposit transaction is packaged and the first duration;
  • the first moment when tx2 is packaged is 0:00:00 on November 24, 2020, the first duration is 7 days, and the generation time of the block generated by A is 0:00 on December 30, 2020: 00;
  • the blockchain node determines the starting packaging time of tx1 according to the time when tx2 was packaged at 0:00:00 on November 24, 2020 and 7 days, and the starting packaging time of tx1 is at 0:00:00 on January 1, 2021 ;
  • the blockchain node stores tx1 locally, and stores the correspondence between hash(tx2) and hash(tx1);
  • the first signature information of the delayed transaction includes the delayed information of the delayed transaction.
  • the delayed transaction is a multi-signature transaction
  • the first signature information includes a multi-signature identifier, the first public key of each first account that can manage the transaction initiator of the delayed transaction, and the first multi-signature can be successfully executed.
  • the multi-signature judgment rule for signed transactions, the first signature data obtained by several second accounts signing the transaction content of the delayed transaction according to the private key held, and the generation of the first block according to the delayed transaction includes:
  • the signature information of tx1 includes "7days:multisign:3:2: public key 1: public key 2: public key 3: public key 4: sigdata1: sigdata2: sigdata3"; wherein, 7days is delay information; multisign is Multi-signature identification; 3:2 is the multi-signature judgment rule, 3 means that at least 3 signature data need to be obtained, the public key corresponding to the three signature data should be included in public key 1 to public key 4, 2 means that the three signature data are included in At least two signature data are correct; public key 1, public key 2, public key 3, and public key 4 are the public keys of each first account that can manage the transaction initiator of the delayed transaction, sigdata1:sigdata2: sigdata3 is signature data, and in the current embodiment, it is assumed that sigdata1:sigdata2:sigdata3 are all correct signature data, and the corresponding public keys are included in public key 1 to public key 4;
  • sigdata1:sigdata2:sigdata3 are all correct signature data, and the corresponding public keys are included in public key 1 to public key 4, which conforms to the multi-signature judgment rule of tx1, the blockchain node generates the first block according to tx1.
  • the multi-signature judgment rule can also be configured according to actual requirements. For example, it is configured as 3:50%, where 3 means that at least three signature data need to be obtained, and 50% means that at least 3 signature data need to be obtained. 2 signatures (round up of 1.5) data is correct and achieves the same technical effect.
  • the assets controlled by the multi-signature can be not only the assets in the delayed contract, but also the assets of other contracts (that is, the delayed transaction
  • the executor name is configured as a contract other than the delayed contract), or the global asset (that is, the executor name of the delayed transaction is configured as empty).
  • the delayed transaction is marked with a packaging failure mark locally;
  • the deposit certificate transaction is deleted locally.
  • the strategy of marking the packaging failure flag can also be configured according to actual requirements. For example, it is necessary to judge whether the handling fee for the delayed transaction is sufficient or not, and the delayed transaction is marked with the packaging failure flag locally.
  • the blockchain system can also be configured with a first interface for the user to query the status of the delayed transaction.
  • the status of the delayed transaction is found to be package failure, the user can resend the delayed transaction.
  • the initial packaging time is determined by determining the delayed transaction according to the first moment and the first duration of the delayed certificate transaction being packaged, and when the blockchain node re-receives the delayed transaction, the blockchain node will determine the delayed transaction according to the delayed transaction. Only when there is a corresponding delayed certificate transaction on the blockchain and the current moment has reached the initial packaging time of the delayed transaction, the blockchain node will delay the transaction. When the transaction is stored in the memory pool.
  • FIG. 2 is a flowchart of a method for executing a delayed transaction according to an embodiment of the present invention.
  • the present invention provides a delayed transaction execution method suitable for blockchain nodes, and the above method includes:
  • S21 Receive the delayed certificate deposit transaction; wherein, the delayed certificate deposit transaction is generated according to the delayed transaction, the payload field of the delayed certificate deposit transaction includes the delayed transaction, and the delayed transaction includes the delayed information;
  • S25 Store the delayed transaction locally, and determine the starting packaging time of the delayed transaction according to the delay information
  • S29 Broadcast the first block to other blockchain nodes so that other blockchain nodes can delete the local delayed transaction.
  • the deduction of the handling fee for the delayed certificate deposit transaction includes:
  • the delayed certificate deposit transaction is the first type of transaction that needs to be delayed, and the handling fee of the delayed certificate deposit transaction is deducted.
  • the delay information is the first time duration required to extend the delay transaction; the delay transaction is stored locally, and the initial packaging time of the delay transaction determined according to the delay information includes:
  • the first correspondence is used for other blockchain nodes:
  • the delayed certificate deposit transaction is found according to the second hash value, and the initial packaging time of the delayed transaction is determined according to the first moment when the delayed certificate deposit transaction is packaged and the first duration;
  • the first signature information of the delayed transaction includes the delayed information of the delayed transaction.
  • the delayed transaction is a multi-signature transaction
  • the first signature information includes a multi-signature identifier, the first public key of each first account that can manage the transaction initiator of the delayed transaction, and the The multi-signature judgment rule of the first multi-signature transaction is successfully executed, and the first signature data obtained by signing the transaction content of the delayed transaction according to the private key held by several second accounts, the The delayed transaction generating the first block includes:
  • the delayed transaction is marked with a packaging failure mark locally;
  • the depository transaction is deleted locally.
  • FIG. 3 is a schematic structural diagram of a device according to an embodiment of the present invention.
  • the present application also provides a device including one or more central processing units (CPUs) 301 , which can be stored in a read-only memory (ROM) 302 according to a program or from The storage section 308 loads programs into the random access memory (RAM) 303 to execute various appropriate actions and processes.
  • RAM random access memory
  • various programs and data necessary for the operation of the device 300 are also stored.
  • the CPU 301 , the ROM 302 , and the RAM 303 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, etc.; an output section 307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 308 including a hard disk, etc. ; and a communication section 309 including a network interface card such as a LAN card, a modem, and 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, etc., is mounted on the drive 310 as needed so that a computer program read therefrom is installed into the storage section 308 as needed.
  • the method described in any of the above embodiments may be implemented as a computer software program.
  • embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program containing program code for performing any of the methods described above.
  • the computer program may be downloaded and installed from the network via the communication portion 309 and/or installed from the removable medium 311 .
  • the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium may be a computer-readable storage medium included in the apparatus of the foregoing embodiment; A computer-readable storage medium in a device.
  • the computer-readable storage medium stores one or more programs that are used by one or more processors to perform the methods described in the present application.
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions.
  • the functions noted in the blocks 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.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by dedicated hardware-based systems that perform the specified functions or operations , or can be implemented by a combination of dedicated hardware and computer instructions.
  • the units or modules involved in the embodiments of the present application may be implemented in a software manner, and may also be implemented in a hardware manner.
  • the described units or modules may also be provided in the processor, for example, each of the units may be a software program provided in a computer or a mobile smart device, or may be a separately configured hardware device. Wherein, the names of these units or modules do not constitute limitations on the units or modules themselves under certain circumstances.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Power Engineering (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The present invention relates to the technical field of blockchains, etc., and provides a delayed transaction generation method, a delayed transaction execution method, and a device and a storage medium. The method comprises: receiving a delayed evidence storage transaction; when it is determined that the delayed evidence storage transaction is a first-type transaction that needs to be delayed, deducting the service charge of the delayed evidence storage transaction, and storing the delayed evidence storage transaction on a blockchain as evidence; locally storing the delayed transaction, and determining a starting packaging moment of the delayed transaction according to delay information; when reaching the starting packaging moment and when a packaging right of the latest first block after the starting packaging moment is obtained, generating a first block according to the delayed transaction; and broadcasting the first block to the other blockchain nodes, such that the other blockchain nodes delete the local delayed transaction. According to the present application, the security of a blockchain network is enhanced.

Description

延时交易生成方法、延时交易执行方法、设备和存储介质Delayed transaction generation method, delayed transaction execution method, device and storage medium 技术领域technical field
本申请涉及区块链技术领域,具体涉及一种延时交易生成方法、延时交易执行方法、设备和存储介质。The present application relates to the field of blockchain technology, and in particular to a method for generating a delayed transaction, a method for executing a delayed transaction, a device and a storage medium.
背景技术Background technique
在现有技术中,延时交易一般有两种执行方式:1、节点收到延时交易tx1后,将tx1缓存到mempool中;2、节点收到延时交易tx1后,将tx1存到本地,时间到了以后再打包到区块中。In the prior art, there are generally two execution methods for delayed transactions: 1. After the node receives the delayed transaction tx1, it caches tx1 in the mempool; 2. After the node receives the delayed transaction tx1, it stores tx1 locally. , when the time is up, it will be packaged into the block.
在上述机制1中,由于区块链节点mempool大小有限,若有恶意节点攻击,很容易造成区块链节点mempool的存储空间被大量占用的问题;在上述机制2中,由于区块链节点将tx1保存到本地的这种方式是免费的,若有恶意节点攻击,也容易被造成区块链节点本地的存储空间被大量占用的问题。In the above mechanism 1, due to the limited size of the blockchain node mempool, if there is a malicious node attack, it is easy to cause the problem that the storage space of the blockchain node mempool is occupied by a large amount; in the above mechanism 2, because the blockchain node will This way of saving tx1 to the local is free. If there is a malicious node attack, it is easy to cause the problem that the local storage space of the blockchain node is occupied by a large amount.
发明内容SUMMARY OF THE INVENTION
鉴于现有技术中的上述缺陷或不足,期望提供一种增强区块链网络安全性的延时交易生成方法、延时交易执行方法、设备和存储介质。In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a method for generating a delayed transaction, a method for executing a delayed transaction, a device and a storage medium that enhance the security of a blockchain network.
第一方面,本发明提供一种适用于客户端的延时交易生成方法,上述方法包括:In a first aspect, the present invention provides a method for generating a delayed transaction suitable for a client. The method includes:
生成延时交易,并根据延时交易生成延时存证交易;其中,延时存证交易的payload字段包括延时交易,延时交易包括延时信息;Generate a delayed transaction, and generate a delayed certificate deposit transaction according to the delayed transaction; wherein, the payload field of the delayed certificate deposit transaction includes the delayed transaction, and the delayed transaction includes the delayed information;
将延时存证交易发送至区块链网络,以供区块链节点:Send the delayed certificate transaction to the blockchain network for the blockchain node to:
在判断出延时存证交易为需要延时的第一类交易时,扣除延时存证交易的手续费,并将延时存证交易存证到区块链上;以及,When it is determined that the delayed certificate deposit transaction is the first type of transaction that needs to be delayed, the handling fee of the delayed certificate deposit transaction is deducted, and the delayed certificate deposit transaction is stored on the blockchain; and,
将延时交易存储到本地,并根据延时信息确定延时交易的起始打包时刻;以及,Store the delayed transaction locally, and determine the starting packaging time of the delayed transaction according to the delay information; and,
在到达起始打包时刻,且拥有起始打包时刻后的最新的第一区块的打包权时,根据延时交易生成第一区块;以及,When the initial packaging time is reached and the packaging right of the latest first block after the initial packaging time is reached, the first block is generated according to the delayed transaction; and,
将第一区块广播至其它区块链节点,以供其它区块链节点删除本地的延时交易。Broadcast the first block to other blockchain nodes for other blockchain nodes to delete local delayed transactions.
第二方面,本发明提供一种适用于区块链节点的延时交易执行方法,上述方法包括:In a second aspect, the present invention provides a delayed transaction execution method suitable for blockchain nodes, the method comprising:
接收延时存证交易;其中,延时存证交易根据延时交易生成,延时存证交易的payload字段包括延时交易,延时交易包括延时信息;Receive the delayed certificate deposit transaction; wherein, the delayed certificate deposit transaction is generated according to the delayed transaction, the payload field of the delayed certificate deposit transaction includes the delayed transaction, and the delayed transaction includes the delayed information;
在判断出延时存证交易为需要延时的第一类交易时,扣除延时存证交易的手续费,并将延时存证交易存证到区块链上;When it is determined that the delayed certificate deposit transaction is the first type of transaction that needs to be delayed, the handling fee of the delayed certificate deposit transaction is deducted, and the delayed certificate deposit transaction is stored on the blockchain;
将延时交易存储到本地,并根据延时信息确定延时交易的起始打包时刻;Store the delayed transaction locally, and determine the starting packaging time of the delayed transaction according to the delay information;
在到达起始打包时刻,且拥有起始打包时刻后的最新的第一区块的打包权时,根据延时交易生成第一区块;When the initial packaging time is reached and the packaging right of the latest first block after the initial packaging time is reached, the first block is generated according to the delayed transaction;
将第一区块广播至其它区块链节点,以供其它区块链节点删除本地的延时交易。Broadcast the first block to other blockchain nodes for other blockchain nodes to delete local delayed transactions.
第三方面,本发明还提供一种设备,包括一个或多个处理器和存储器,其中存储器包含可由该一个或多个处理器执行的指令以使得该一个或多个处理器执行根据本发明各实施例提供的延时交易生成方法和延时交易执行方法。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 various functions according to the present invention. A method for generating a delayed transaction and a method for executing a delayed transaction provided by the embodiment.
第四方面,本发明还提供一种存储有计算机程序的存储介质,该计算机程序使计算机执行根据本发明各实施例提供的延时交易生成方法和延时交易执行方法。In a fourth aspect, the present invention further provides a storage medium storing a computer program, the computer program enables a computer to execute the delayed transaction generation method and the delayed transaction execution method provided according to the embodiments of the present invention.
本发明诸多实施例提供的延时交易生成方法、延时交易执行方法、设备和存储介质通过接收延时存证交易;在判断出延时存证交易为需要延时的第一类交易时,扣除延时存证交易的手续费,并将延时存证交易存证到区块链上;将延时交易存储到本地,并根据延时信息确定延时交易的起始打包时刻;在到达起始打包时刻,且拥有起始打包时刻后的最新的第一区块的打包权时,根据延时交易生成第一区块;将第一区块广播至其它区块链节点,以供其它区块链节点删除本地的延 时交易的方法,增强区块链网络的安全性。The delayed transaction generation method, the delayed transaction execution method, the device and the storage medium provided by the various embodiments of the present invention receive the delayed certificate deposit transaction; when it is determined that the delayed certificate deposit transaction is the first type of transaction that needs to be delayed, Deduct the handling fee of the delayed certificate transaction, and store the delayed certificate transaction on the blockchain; store the delayed transaction locally, and determine the starting packaging time of the delayed transaction according to the delay information; When the packaging starts and the packaging right of the latest first block after the starting packaging time is obtained, the first block is generated according to the delayed transaction; the first block is broadcast to other blockchain nodes for other districts A method of deleting local delayed transactions by blockchain nodes to enhance the security of the blockchain network.
附图说明Description of drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
图1为本发明一实施例提供的一种延时交易生成方法的流程图。FIG. 1 is a flowchart of a method for generating a delayed transaction according to an embodiment of the present invention.
图2为本发明一实施例提供的一种延时交易执行方法的流程图。FIG. 2 is a flowchart of a method for executing a delayed transaction according to an embodiment of the present invention.
图3为本发明一实施例提供的一种设备的结构示意图。FIG. 3 is a schematic structural diagram of a device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与发明相关的部分。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the related invention, but not to limit the invention. In addition, it should be noted that, for the convenience of description, only the parts related to the invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
图1为本发明一实施例提供的一种延时交易生成方法的流程图。如图1所示,在本实施例中,本发明提供一种适用于客户端的延时交易生成方法,上述方法包括:FIG. 1 is a flowchart of a method for generating a delayed transaction according to an embodiment of the present invention. As shown in FIG. 1, in this embodiment, the present invention provides a method for generating a delayed transaction suitable for a client. The method includes:
S12:生成延时交易,并根据延时交易生成延时存证交易;其中,延时存证交易的payload字段包括延时交易,延时交易包括延时信息;S12: Generate a delayed transaction, and generate a delayed certificate deposit transaction according to the delayed transaction; wherein, the payload field of the delayed certificate deposit transaction includes the delayed transaction, and the delayed transaction includes the delayed information;
S14:将延时存证交易发送至区块链网络,以供区块链节点:S14: Send the delayed certificate transaction to the blockchain network for the blockchain nodes to:
在判断出延时存证交易为需要延时的第一类交易时,扣除延时存证交易的手续费,并将延时存证交易存证到区块链上;以及,When it is determined that the delayed certificate deposit transaction is the first type of transaction that needs to be delayed, the handling fee of the delayed certificate deposit transaction is deducted, and the delayed certificate deposit transaction is stored on the blockchain; and,
将延时交易存储到本地,并根据延时信息确定延时交易的起始打包时刻;以及,Store the delayed transaction locally, and determine the starting packaging time of the delayed transaction according to the delay information; and,
在到达起始打包时刻,且拥有起始打包时刻后的最新的第一区块的打包权时,根据延时交易生成第一区块;以及,When the initial packaging time is reached and the packaging right of the latest first block after the initial packaging time is reached, the first block is generated according to the delayed transaction; and,
将第一区块广播至其它区块链节点,以供其它区块链节点删 除本地的延时交易。Broadcast the first block to other blockchain nodes for other blockchain nodes to delete local delayed transactions.
具体地,以延时信息为固定时刻;延时交易的第一签名信息中包括延时交易的延时信息;在判断出延时存证交易为需要延时的第一类交易时,扣除延时存证交易的手续费包括:根据延时存证交易的执行器名称判断出延时存证交易是需要延时的第一类交易,并扣除延时存证交易的手续费为例;假设延时交易为tx1,延时存证交易为tx2,tx2的payload字段包括tx1,延时信息为一固定时刻假设为2021年1月1日0:00:00;Specifically, the delayed information is taken as a fixed time; the first signature information of the delayed transaction includes the delayed information of the delayed transaction; when it is determined that the delayed deposit transaction is the first type of transaction that needs to be delayed, the delayed transaction is deducted. The handling fee for the time-delayed certificate transaction includes: according to the name of the executor of the delayed deposit transaction, it is determined that the delayed deposit transaction is the first type of transaction that needs to be delayed, and the handling fee of the delayed deposit transaction is deducted as an example; The delayed transaction is tx1, the delayed deposit transaction is tx2, the payload field of tx2 includes tx1, and the delayed information is a fixed time, assuming that it is 0:00:00 on January 1, 2021;
客户端执行步骤S12,生成tx1,并根据tx1生成tx2;The client performs step S12, generates tx1, and generates tx2 according to tx1;
客户端执行步骤S14,将tx2发送至区块链网络;The client performs step S14, and sends tx2 to the blockchain network;
区块链节点根据tx2的执行器名称delay判断出tx2为需要延时的第一类交易,区块链节点扣除tx2的手续费,并将tx2存证到区块链上;The blockchain node judges that tx2 is the first type of transaction that needs to be delayed according to the executor name delay of tx2, the blockchain node deducts the handling fee of tx2, and stores the tx2 certificate on the blockchain;
区块链节点将tx1存储到本地,并tx1的签名信息中的延时信息确定tx1的起始打包时刻,起始打包时刻为2021年1月1日0:00:00;The blockchain node stores tx1 locally, and the delay information in the signature information of tx1 determines the starting packaging time of tx1, which is 0:00:00 on January 1, 2021;
在到达2021年1月1日0:00:00时,且区块链节点A拥上述时刻后的最新的区块的打包权时,根据tx1生成上述区块;When it reaches 0:00:00 on January 1, 2021, and the blockchain node A has the packaging right of the latest block after the above time, the above block is generated according to tx1;
A将上述区块广播至其它区块链节点,其它区块链节点删除本地的tx1。A broadcasts the above block to other blockchain nodes, and other blockchain nodes delete the local tx1.
本实施例以延时信息为固定时刻;延时交易的第一签名信息中包括延时交易的延时信息;在判断出延时存证交易为需要延时的第一类交易时,扣除延时存证交易的手续费包括:根据延时存证交易的执行器名称判断出延时存证交易是需要延时的第一类交易,并扣除延时存证交易的手续费为例对本申请的延时交易生成方法做了示例性的阐述。In this embodiment, the delay information is taken as a fixed time; the first signature information of the delayed transaction includes the delay information of the delayed transaction; when it is determined that the delayed certificate deposit transaction is the first type of transaction that needs to be delayed, the delayed transaction is deducted. The handling fee for the time-delayed certificate transaction includes: according to the name of the executor of the delayed deposit transaction, it is judged that the delayed deposit transaction is the first type of transaction that needs to be delayed, and the handling fee of the delayed deposit transaction is deducted. The delayed transaction generation method of .
在更多实施例中,延时信息可以根据实际需求进行配置,例如配置为延时交易所需延长的第一时长,相应的,延时交易的起始打包时刻的计算方法也应当根据实际情况进行配置,例如配置为:根据延时存证交易被打包的第一时刻、第一时长确定延时交易的起始打包时刻,可实现相同的技术效果。In more embodiments, the delay information can be configured according to actual needs, for example, it is configured to be the first time period that needs to be extended for the delayed transaction. Correspondingly, the method for calculating the starting packaging moment of the delayed transaction should also be based on the actual situation. The configuration is performed, for example, as follows: the initial packaging time of the delayed transaction is determined according to the first moment and the first duration when the delayed deposit transaction is packaged, so that the same technical effect can be achieved.
在更多实施例中,延时交易的延时信息还可以根据实际需求配置 在其它字段中。本领域技术人员应当理解,当延时交易的延时信息配置在签名信息中时,延时交易中所延时的资产不仅可以为延时合约中的资产,还可以为其它合约的资产(即延时交易的执行器名称配置为延时合约外的其它合约),或全局资产(即延时交易的执行器名称配置为空)。In more embodiments, the delay information of the delayed transaction may also be configured in other fields according to actual requirements. Those skilled in the art should understand that when the delay information of the delayed transaction is configured in the signature information, the assets delayed in the delayed transaction can be not only the assets in the delayed contract, but also the assets of other contracts (that is, The executor name of the delayed transaction is configured as a contract other than the delayed contract), or the global asset (that is, the executor name of the delayed transaction is configured as empty).
在更多实施例中,判断延时存证交易是否是需要延时的第一类交易的方式还可以根据实际需求进行配置,例如配置为,区块链上记录有延时交易执行器的哈希值,根据延时存证交易的执行器名称进行哈希运算以获得哈希值',并判断上述哈希值与上述哈希值'是否相同以判断延时存证交易是否为需要延时的第一类交易,可实现相同的技术效果。In more embodiments, the method of judging whether the delayed certificate deposit transaction is the first type of transaction that needs to be delayed can also be configured according to actual needs. Hash value, perform hash operation according to the name of the executor of the delayed certificate transaction to obtain the hash value', and judge whether the above hash value is the same as the above hash value' to determine whether the delayed certificate transaction needs to be delayed The first type of transaction can achieve the same technical effect.
上述实施例增强了区块链网络安全性。The above-described embodiments enhance the security of the blockchain network.
优选地,在判断出延时存证交易为需要延时的第一类交易时,扣除延时存证交易的手续费包括:Preferably, when it is determined that the delayed certificate deposit transaction is the first type of transaction that needs to be delayed, the deduction of the handling fee for the delayed certificate deposit transaction includes:
根据延时存证交易的执行器名称判断出延时存证交易是需要延时的第一类交易,并扣除延时存证交易的手续费。According to the name of the executor of the delayed certificate deposit transaction, it is judged that the delayed certificate deposit transaction is the first type of transaction that needs to be delayed, and the handling fee of the delayed certificate deposit transaction is deducted.
上述实施例的延时交易生成原理可参考图1所示的方法,此处不再赘述。For the generation principle of the delayed transaction in the foregoing embodiment, reference may be made to the method shown in FIG. 1 , which will not be repeated here.
图1所示的方案中,若区块链节点A作恶,提前将tx1打包入区块,其它节点无法验证tx1是否在足够的时长后才被打包。上述机制将导致tx1的交易发送方的资产不安全。In the scheme shown in Figure 1, if the blockchain node A does evil and packs tx1 into the block in advance, other nodes cannot verify whether tx1 is packaged after a sufficient period of time. The above mechanism will cause the assets of the transaction sender of tx1 to be insecure.
针对上述问题,可以通过如下实施例的方式解决:Aiming at the above problems, can be solved by the following embodiments:
优选地,延时信息为延时交易所需延长的第一时长;将延时交易存储到本地,并根据延时信息确定延时交易的起始打包时刻包括:Preferably, the delay information is the first time length required to extend the delayed transaction; storing the delayed transaction locally, and determining the initial packaging time of the delayed transaction according to the delay information includes:
根据延时存证交易被打包的第一时刻、第一时长确定延时交易的起始打包时刻;Determine the initial packaging time of the delayed transaction according to the first moment and the first duration of the delayed transaction being packaged;
将延时交易存储到本地,并存储延时存证交易的第一哈希值与延时交易的第二哈希值的第一对应关系;Store the delayed transaction locally, and store the first correspondence between the first hash value of the delayed transaction and the second hash value of the delayed transaction;
其中,第一对应关系用于供其它区块链节点:Among them, the first correspondence is used for other blockchain nodes:
在执行延时交易时,根据第二哈希值找到延时存证交易,并 根据延时存证交易被打包的第一时刻、第一时长确定延时交易的起始打包时刻;When executing the delayed transaction, the delayed certificate deposit transaction is found according to the second hash value, and the starting packaging time of the delayed transaction is determined according to the first moment when the delayed certificate deposit transaction is packaged and the first duration;
判断延时交易的打包时刻是否不早于起始打包时刻:Determine whether the packaging time of the delayed transaction is not earlier than the initial packaging time:
否,则延时交易执行不成功。No, the delayed transaction execution is unsuccessful.
具体地,假设tx2被打包的第一时刻为2020年11月24日0:00:00,第一时长为7天,A生成的区块的生成时间为2020年12月30日0:00:00;Specifically, it is assumed that the first moment when tx2 is packaged is 0:00:00 on November 24, 2020, the first duration is 7 days, and the generation time of the block generated by A is 0:00 on December 30, 2020: 00;
区块链节点根据tx2被打包的时刻2020年11月24日0:00:00、7天确定tx1的起始打包时刻,tx1的起始打包时刻为2021年1月1日0:00:00;The blockchain node determines the starting packaging time of tx1 according to the time when tx2 was packaged at 0:00:00 on November 24, 2020 and 7 days, and the starting packaging time of tx1 is at 0:00:00 on January 1, 2021 ;
区块链节点将tx1存储到本地,并存储hash(tx2)和hash(tx1)的对应关系;The blockchain node stores tx1 locally, and stores the correspondence between hash(tx2) and hash(tx1);
其它区块链节点在收到A生成的区块,在执行到tx1时,根据hash(tx1)找到tx2,并根据tx1被打包的时刻2020年11月24日0:00:00、第一时长7天确定tx1的起始打包时刻,tx1的起始打包时刻为2021年1月1日0:00:00;When other blockchain nodes receive the block generated by A, when tx1 is executed, they will find tx2 according to hash(tx1), and according to the time when tx1 was packaged at 0:00:00 on November 24, 2020, the first duration 7 days to determine the starting packing time of tx1, the starting packing time of tx1 is 0:00:00 on January 1, 2021;
其它区块链节点判断2020年12月30日0:00:00是否不早于起始打包时刻2021年1月1日0:00:00;Other blockchain nodes judge whether 0:00:00 on December 30, 2020 is not earlier than the start packaging time at 0:00:00 on January 1, 2021;
由于2020年12月30日0:00:00早于起始打包时刻2021年1月1日0:00:00,其它区块链节点执行tx1失败。Since 0:00:00 on December 30, 2020 is earlier than the start packaging time at 0:00:00 on January 1, 2021, other blockchain nodes fail to execute tx1.
由于大多数节点执行tx1失败,将导致区块链节点A生成的错误区块成为侧链上的区块,最终使得tx1的交易发送方的资产的安全性得到保障。Since most nodes fail to execute tx1, the erroneous block generated by blockchain node A will become a block on the side chain, which ultimately ensures the security of the assets of the transaction sender of tx1.
优选地,延时交易的第一签名信息中包括延时交易的延时信息。Preferably, the first signature information of the delayed transaction includes the delayed information of the delayed transaction.
上述实施例的延时交易生成原理可参考图1所示的方法,此处不再赘述。For the generation principle of the delayed transaction in the foregoing embodiment, reference may be made to the method shown in FIG. 1 , which will not be repeated here.
进一步的,延时交易为多重签名交易,第一签名信息中包括多重签名标识、可以对延时交易的交易发起方进行管理的各第一账户的第一公钥、可以成功执行第一多重签名交易的多重签名判断规则、若干第二账户根据所持有的私钥对延时交易的交易内容进行签名获得的第 一签名数据,根据延时交易生成第一区块包括:Further, the delayed transaction is a multi-signature transaction, and the first signature information includes a multi-signature identifier, the first public key of each first account that can manage the transaction initiator of the delayed transaction, and the first multi-signature can be successfully executed. The multi-signature judgment rule for signed transactions, the first signature data obtained by several second accounts signing the transaction content of the delayed transaction according to the private key held, and the generation of the first block according to the delayed transaction includes:
判断第一签名信息中的各第一签名数据是否符合多重签名判断规则:Determine whether each first signature data in the first signature information conforms to the multi-signature judgment rule:
是,则根据延时交易生成第一区块。If yes, then generate the first block according to the delayed transaction.
具体地,假设tx1的签名信息包括“7days:multisign:3:2:公钥1:公钥2:公钥3:公钥4:sigdata1:sigdata2:sigdata3”;其中,7days为延迟信息;multisign为多重签名标识;3:2为多重签名判断规则,3表示最少需要获得3个签名数据,该3个签名数据对应的公钥应当包括于公钥1~公钥4,2表示3个签名数据中至少有2个签名数据是正确的;公钥1、公钥2、公钥3、公钥4为可以对延时交易的交易发起方进行管理的各第一账户的公钥,sigdata1:sigdata2:sigdata3为签名数据,且在当前实施例中,假设sigdata1:sigdata2:sigdata3均为正确的签名数据,且对应的公钥均包括于公钥1~公钥4;Specifically, it is assumed that the signature information of tx1 includes "7days:multisign:3:2: public key 1: public key 2: public key 3: public key 4: sigdata1: sigdata2: sigdata3"; wherein, 7days is delay information; multisign is Multi-signature identification; 3:2 is the multi-signature judgment rule, 3 means that at least 3 signature data need to be obtained, the public key corresponding to the three signature data should be included in public key 1 to public key 4, 2 means that the three signature data are included in At least two signature data are correct; public key 1, public key 2, public key 3, and public key 4 are the public keys of each first account that can manage the transaction initiator of the delayed transaction, sigdata1:sigdata2: sigdata3 is signature data, and in the current embodiment, it is assumed that sigdata1:sigdata2:sigdata3 are all correct signature data, and the corresponding public keys are included in public key 1 to public key 4;
由于sigdata1:sigdata2:sigdata3均为正确的签名数据,且对应的公钥均包括于公钥1~公钥4,符合tx1的多重签名判断规则,则区块链节点根据tx1生成第一区块。Since sigdata1:sigdata2:sigdata3 are all correct signature data, and the corresponding public keys are included in public key 1 to public key 4, which conforms to the multi-signature judgment rule of tx1, the blockchain node generates the first block according to tx1.
在更多实施例中,多重签名判断规则还可以根据实际需求进行配置,例如配置为,3:50%,其中3表示最少需要获得从3个签名数据,50%表示3个签名数据中至少有2个签名(1.5的向上取整)数据是正确的,可实现相同的技术效果。In more embodiments, the multi-signature judgment rule can also be configured according to actual requirements. For example, it is configured as 3:50%, where 3 means that at least three signature data need to be obtained, and 50% means that at least 3 signature data need to be obtained. 2 signatures (round up of 1.5) data is correct and achieves the same technical effect.
本领域技术人员应当理解,当延时交易的多重签名信息配置在签名信息中时,多重签名所管控的资产不仅可以为延时合约中的资产,还可以为其它合约的资产(即延时交易的执行器名称配置为延时合约外的其它合约),或全局资产(即延时交易的执行器名称配置为空)。Those skilled in the art should understand that when the multi-signature information of the delayed transaction is configured in the signature information, the assets controlled by the multi-signature can be not only the assets in the delayed contract, but also the assets of other contracts (that is, the delayed transaction The executor name is configured as a contract other than the delayed contract), or the global asset (that is, the executor name of the delayed transaction is configured as empty).
进一步的,在所述第一签名信息中的各所述第一签名数据不符合所述多重签名判断规则时,在本地将延时交易打上打包失败标识;Further, when each of the first signature data in the first signature information does not conform to the multi-signature judgment rule, the delayed transaction is marked with a packaging failure mark locally;
在第二时长后,在本地删除存证交易。After the second time period, the deposit certificate transaction is deleted locally.
在更多实施例中,还可以根据实际需求配置打上打包失败标识的策略,例如,还需要判断延时交易的手续费是否充足,不充足,则在本地将延时交易打上打包失败标识。In more embodiments, the strategy of marking the packaging failure flag can also be configured according to actual requirements. For example, it is necessary to judge whether the handling fee for the delayed transaction is sufficient or not, and the delayed transaction is marked with the packaging failure flag locally.
本领域技术人员应当可以联想,区块链系统还可以配置第一接口,用于供用户查询延时交易的状态。在查询到延时交易的状态为打包失败时,用户可以重新发送延时交易。在起始打包时刻由根据延时存证交易被打包的第一时刻、第一时长确定延时交易确定,且区块链节点在重新收到延时交易时,区块链节点根据延时交易的哈希值查询对应的延时存证交易,只有区块链上有对应的延时存证交易,且当前时刻已到达延时交易的起始打包时刻时,区块链节点才会将延时交易存入内存池中。Those skilled in the art should be able to associate that the blockchain system can also be configured with a first interface for the user to query the status of the delayed transaction. When the status of the delayed transaction is found to be package failure, the user can resend the delayed transaction. The initial packaging time is determined by determining the delayed transaction according to the first moment and the first duration of the delayed certificate transaction being packaged, and when the blockchain node re-receives the delayed transaction, the blockchain node will determine the delayed transaction according to the delayed transaction. Only when there is a corresponding delayed certificate transaction on the blockchain and the current moment has reached the initial packaging time of the delayed transaction, the blockchain node will delay the transaction. When the transaction is stored in the memory pool.
图2为本发明一实施例提供的一种延时交易执行方法的流程图。如图2所示,在本实施例中,本发明提供一种适用于区块链节点的延时交易执行方法,上述方法包括:FIG. 2 is a flowchart of a method for executing a delayed transaction according to an embodiment of the present invention. As shown in FIG. 2, in this embodiment, the present invention provides a delayed transaction execution method suitable for blockchain nodes, and the above method includes:
S21:接收延时存证交易;其中,延时存证交易根据延时交易生成,延时存证交易的payload字段包括延时交易,延时交易包括延时信息;S21: Receive the delayed certificate deposit transaction; wherein, the delayed certificate deposit transaction is generated according to the delayed transaction, the payload field of the delayed certificate deposit transaction includes the delayed transaction, and the delayed transaction includes the delayed information;
S23:在判断出延时存证交易为需要延时的第一类交易时,扣除延时存证交易的手续费,并将延时存证交易存证到区块链上;S23: When it is determined that the delayed certificate deposit transaction is the first type of transaction that needs to be delayed, the handling fee of the delayed certificate deposit transaction is deducted, and the delayed certificate deposit transaction is stored on the blockchain;
S25:将延时交易存储到本地,并根据延时信息确定延时交易的起始打包时刻;S25: Store the delayed transaction locally, and determine the starting packaging time of the delayed transaction according to the delay information;
S27:在到达起始打包时刻,且拥有起始打包时刻后的最新的第一区块的打包权时,根据延时交易生成第一区块;S27: When the initial packaging time is reached and the packaging right of the latest first block after the initial packaging time is reached, the first block is generated according to the delayed transaction;
S29:将第一区块广播至其它区块链节点,以供其它区块链节点删除本地的延时交易。S29: Broadcast the first block to other blockchain nodes so that other blockchain nodes can delete the local delayed transaction.
上述实施例的延时交易执行原理可参考图1所示的方法,此处不再赘述。For the execution principle of the delayed transaction in the above embodiment, reference may be made to the method shown in FIG. 1 , which will not be repeated here.
优选地,在判断出延时存证交易为需要延时的第一类交易时,扣除延时存证交易的手续费包括:Preferably, when it is determined that the delayed certificate deposit transaction is the first type of transaction that needs to be delayed, the deduction of the handling fee for the delayed certificate deposit transaction includes:
根据延时存证交易的执行器名称判断出延时存证交易是需要延时的第一类交易,并扣除延时存证交易的手续费。According to the name of the executor of the delayed certificate deposit transaction, it is judged that the delayed certificate deposit transaction is the first type of transaction that needs to be delayed, and the handling fee of the delayed certificate deposit transaction is deducted.
上述实施例的延时交易执行原理可参考图1所示的方法,此处不再赘述。For the execution principle of the delayed transaction in the above embodiment, reference may be made to the method shown in FIG. 1 , which will not be repeated here.
优选地,延时信息为延时交易所需延长的第一时长;将延时交易 存储到本地,并根据延时信息确定延时交易的起始打包时刻包括:Preferably, the delay information is the first time duration required to extend the delay transaction; the delay transaction is stored locally, and the initial packaging time of the delay transaction determined according to the delay information includes:
根据延时存证交易被打包的第一时刻、第一时长确定延时交易的起始打包时刻;Determine the initial packaging time of the delayed transaction according to the first moment and the first duration of the delayed transaction being packaged;
将延时交易存储到本地,并存储延时存证交易的第一哈希值与延时交易的第二哈希值的第一对应关系;Store the delayed transaction locally, and store the first correspondence between the first hash value of the delayed transaction and the second hash value of the delayed transaction;
其中,第一对应关系用于供其它区块链节点:Among them, the first correspondence is used for other blockchain nodes:
在执行延时交易时,根据第二哈希值找到延时存证交易,并根据延时存证交易被打包的第一时刻、第一时长确定延时交易的起始打包时刻;When the delayed transaction is executed, the delayed certificate deposit transaction is found according to the second hash value, and the initial packaging time of the delayed transaction is determined according to the first moment when the delayed certificate deposit transaction is packaged and the first duration;
判断延时交易的打包时刻是否不早于起始打包时刻:Determine whether the packaging time of the delayed transaction is not earlier than the initial packaging time:
是,则删除本地的延时交易。If yes, delete the local delayed transaction.
上述实施例的延时交易执行原理可参考图1所示的一种优选实施方式的方法,此处不再赘述。For the execution principle of the delayed transaction in the above-mentioned embodiment, reference may be made to the method of a preferred embodiment shown in FIG. 1 , which will not be repeated here.
优选地,延时交易的第一签名信息中包括延时交易的延时信息。Preferably, the first signature information of the delayed transaction includes the delayed information of the delayed transaction.
上述实施例的延时交易执行原理可参考图1所示的方法,此处不再赘述。For the execution principle of the delayed transaction in the above embodiment, reference may be made to the method shown in FIG. 1 , which will not be repeated here.
进一步的,所述延时交易为多重签名交易,所述第一签名信息中包括多重签名标识、可以对所述延时交易的交易发起方进行管理的各第一账户的第一公钥、可以成功执行所述第一多重签名交易的多重签名判断规则、若干第二账户根据所持有的私钥对所述延时交易的交易内容进行签名获得的第一签名数据,所述根据所述延时交易生成所述第一区块包括:Further, the delayed transaction is a multi-signature transaction, and the first signature information includes a multi-signature identifier, the first public key of each first account that can manage the transaction initiator of the delayed transaction, and the The multi-signature judgment rule of the first multi-signature transaction is successfully executed, and the first signature data obtained by signing the transaction content of the delayed transaction according to the private key held by several second accounts, the The delayed transaction generating the first block includes:
判断所述第一签名信息中的各所述第一签名数据是否符合所述多重签名判断规则:Determine whether each of the first signature data in the first signature information complies with the multi-signature judgment rule:
是,则根据所述延时交易生成所述第一区块。If yes, then generate the first block according to the delayed transaction.
上述实施例的延时交易执行原理可参考图1所示的一种优选实施方式的方法,此处不再赘述。For the execution principle of the delayed transaction in the above-mentioned embodiment, reference may be made to the method of a preferred embodiment shown in FIG. 1 , which will not be repeated here.
进一步的,在所述第一签名信息中的各所述第一签名数据不符合所述多重签名判断规则时,在本地将所述延时交易打上打包失败标识;Further, when each of the first signature data in the first signature information does not conform to the multi-signature judgment rule, the delayed transaction is marked with a packaging failure mark locally;
在第二时长后,在本地删除所述存证交易。After the second period of time, the depository transaction is deleted locally.
上述实施例的延时交易执行原理可参考图1所示的一种优选实施方式的方法,此处不再赘述。For the execution principle of the delayed transaction in the above-mentioned embodiment, reference may be made to the method of a preferred embodiment shown in FIG. 1 , which will not be repeated here.
图3为本发明一实施例提供的一种设备的结构示意图。FIG. 3 is a schematic structural diagram of a device according to an embodiment of the present invention.
如图3所示,作为另一方面,本申请还提供了一种设备,包括一个或多个中央处理单元(CPU)301,其可以根据存储在只读存储器(ROM)302中的程序或者从存储部分308加载到随机访问存储器(RAM)303中的程序而执行各种适当的动作和处理。在RAM303中,还存储有设备300操作所需的各种程序和数据。CPU301、ROM302以及RAM303通过总线304彼此相连。输入/输出(I/O)接口305也连接至总线304。As shown in FIG. 3 , as another aspect, the present application also provides a device including one or more central processing units (CPUs) 301 , which can be stored in a read-only memory (ROM) 302 according to a program or from The storage section 308 loads programs into the random access memory (RAM) 303 to execute various appropriate actions and processes. In the RAM 303, various programs and data necessary for the operation of the device 300 are also stored. The CPU 301 , the ROM 302 , and the RAM 303 are connected to each other through a bus 304 . An input/output (I/O) interface 305 is also connected to bus 304 .
以下部件连接至I/O接口305:包括键盘、鼠标等的输入部分306;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分307;包括硬盘等的存储部分308;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分309。通信部分309经由诸如因特网的网络执行通信处理。驱动器310也根据需要连接至I/O接口305。可拆卸介质311,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器310上,以便于从其上读出的计算机程序根据需要被安装入存储部分308。The following components are connected to the I/O interface 305: an input section 306 including a keyboard, a mouse, etc.; an output section 307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 308 including a hard disk, etc. ; and a communication section 309 including a network interface card such as a LAN card, a modem, and 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, etc., is mounted on the drive 310 as needed so that a computer program read therefrom is installed into the storage section 308 as needed.
特别地,根据本公开的实施例,上述任一实施例描述的方法可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括有形地包含在机器可读介质上的计算机程序,所述计算机程序包含用于执行上述任一方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分309从网络上被下载和安装,和/或从可拆卸介质311被安装。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 containing program code for performing any of the methods described above. In such an embodiment, the computer program may be downloaded and installed from the 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. The computer-readable storage medium may be a computer-readable storage medium included in the apparatus of the foregoing embodiment; A computer-readable storage medium in a device. The computer-readable storage medium stores one or more programs that are used by one or more processors to perform 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 that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks 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 is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by dedicated hardware-based systems that perform the specified functions or operations , or can be implemented by a combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元或模块可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元或模块也可以设置在处理器中,例如,各所述单元可以是设置在计算机或移动智能设备中的软件程序,也可以是单独配置的硬件装置。其中,这些单元或模块的名称在某种情况下并不构成对该单元或模块本身的限定。The units or modules involved in the embodiments of the present application may be implemented in a software manner, and may also be implemented in a hardware manner. The described units or modules may also be provided in the processor, for example, each of the units may be a software program provided in a computer or a mobile smart device, or may be a separately configured hardware device. Wherein, the names of these units or modules do not constitute limitations on the units or modules themselves under certain circumstances.
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离本申请构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principles. It should be understood by those skilled in the art that the scope of the invention involved in this application is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features. Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above-mentioned features with the technical features disclosed in this application (but not limited to) with similar functions.

Claims (14)

  1. 一种延时交易生成方法,其特征在于,适用于客户端,所述方法包括:A method for generating a delayed transaction, characterized in that it is applicable to a client, and the method includes:
    生成延时交易,并根据所述延时交易生成延时存证交易;其中,所述延时存证交易的payload字段包括所述延时交易,所述延时交易包括延时信息;generating a delayed transaction, and generating a delayed certificate deposit transaction according to the delayed transaction; wherein, the payload field of the delayed certificate deposit transaction includes the delayed transaction, and the delayed transaction includes delay information;
    将所述延时存证交易发送至区块链网络,以供区块链节点:Send the delayed certificate transaction to the blockchain network for the blockchain node to:
    在判断出所述延时存证交易为需要延时的第一类交易时,扣除所述延时存证交易的手续费,并将所述延时存证交易存证到区块链上;以及,When judging that the delayed certificate deposit transaction is the first type of transaction that needs to be delayed, deduct the handling fee of the delayed certificate deposit transaction, and store the delayed certificate deposit transaction on the blockchain; as well as,
    将所述延时交易存储到本地,并根据所述延时信息确定所述延时交易的起始打包时刻;以及,storing the delayed transaction locally, and determining the initial packaging moment of the delayed transaction according to the delay information; and,
    在到达所述起始打包时刻,且拥有所述起始打包时刻后的最新的第一区块的打包权时,根据所述延时交易生成所述第一区块;以及,When the initial packaging time is reached and the packaging right of the latest first block after the initial packaging time is reached, the first block is generated according to the delayed transaction; and,
    将所述第一区块广播至其它区块链节点,以供其它区块链节点删除本地的所述延时交易。The first block is broadcast to other blockchain nodes, so that other blockchain nodes can delete the local delayed transaction.
  2. 根据权利要求1所述的方法,其特征在于,所述在判断出所述延时存证交易为需要延时的第一类交易时,扣除所述延时存证交易的手续费包括:The method according to claim 1, wherein when it is determined that the delayed certificate deposit transaction is the first type of transaction that needs to be delayed, deducting the handling fee of the delayed certificate deposit transaction comprises:
    根据所述延时存证交易的执行器名称判断出所述延时存证交易是需要延时的第一类交易,并扣除所述延时存证交易的手续费。According to the name of the executor of the delayed certificate deposit transaction, it is determined that the delayed certificate deposit transaction is the first type of transaction that needs to be delayed, and the handling fee of the delayed certificate deposit transaction is deducted.
  3. 根据权利要求1所述的方法,其特征在于,所述延时信息为所述延时交易所需延长的第一时长;所述将所述延时交易存储到本地,并根据所述延时信息确定所述延时交易的起始打包时刻包括:The method according to claim 1, wherein the delay information is a first time duration required to be extended for the delayed transaction; the delaying transaction is stored locally, and the delay information is The information to determine the initial packaging moment of the delayed transaction includes:
    根据所述延时存证交易被打包的第一时刻、所述第一时长确定所述延时交易的起始打包时刻;Determine the initial packaging moment of the delayed transaction according to the first moment when the delayed certificate deposit transaction is packaged and the first duration;
    将所述延时交易存储到本地,并存储所述延时存证交易的第一哈希值与所述延时交易的第二哈希值的第一对应关系;storing the delayed transaction locally, and storing the first correspondence between the first hash value of the delayed transaction and the second hash value of the delayed transaction;
    其中,所述第一对应关系用于供其它区块链节点:Wherein, the first correspondence is used for other blockchain nodes:
    在执行所述延时交易时,根据所述第二哈希值找到所述延时存证交易,并根据所述延时存证交易被打包的第一时刻、所述第一时长确定所述延时交易的起始打包时刻;When executing the delayed transaction, the delayed certificate deposit transaction is found according to the second hash value, and the delayed certificate deposit transaction is determined according to the first moment when the delayed certificate deposit transaction is packaged and the first duration. The starting packaging moment of the delayed transaction;
    判断所述延时交易的打包时刻是否不早于所述起始打包时刻:Determine whether the packaging time of the delayed transaction is not earlier than the initial packaging time:
    否,则所述延时交易执行不成功。If not, the delayed transaction execution is unsuccessful.
  4. 根据权利要求1所述的方法,其特征在于,所述延时交易的第一签名信息中包括所述延时交易的延时信息。The method according to claim 1, wherein the first signature information of the delayed transaction includes the delayed information of the delayed transaction.
  5. 根据权利要求4所述的方法,其特征在于,所述延时交易为多重签名交易,所述第一签名信息中包括多重签名标识、可以对所述延时交易的交易发起方进行管理的各第一账户的第一公钥、可以成功执行所述第一多重签名交易的多重签名判断规则、若干第二账户根据所持有的私钥对所述延时交易的交易内容进行签名获得的第一签名数据,所述根据所述延时交易生成所述第一区块包括:The method according to claim 4, wherein the delayed transaction is a multi-signature transaction, and the first signature information includes a multi-signature identifier, each transaction initiator that can manage the delayed transaction. The first public key of the first account, the multi-signature judgment rule that can successfully execute the first multi-signature transaction, and several second accounts obtained by signing the transaction content of the delayed transaction according to the private key held by them. The first signature data, the generating the first block according to the delayed transaction includes:
    判断所述第一签名信息中的各所述第一签名数据是否符合所述多重签名判断规则:Determine whether each of the first signature data in the first signature information complies with the multi-signature judgment rule:
    是,则根据所述延时交易生成所述第一区块。If yes, then generate the first block according to the delayed transaction.
  6. 根据权利要求5所述的方法,其特征在于,还包括:The method of claim 5, further comprising:
    在所述第一签名信息中的各所述第一签名数据不符合所述多重签名判断规则时,在本地将所述延时交易打上打包失败标识;When each of the first signature data in the first signature information does not conform to the multi-signature judgment rule, locally marking the delayed transaction with a packaging failure flag;
    在第二时长后,在本地删除所述存证交易。After the second period of time, the depository transaction is deleted locally.
  7. 一种延时交易执行方法,其特征在于,适用于区块链节点,所述方法包括:A delayed transaction execution method, characterized in that it is suitable for blockchain nodes, the method comprising:
    接收延时存证交易;其中,所述延时存证交易根据延时交易生成,所述延时存证交易的payload字段包括所述延时交易,所述延时交易包括延时信息;receiving a delayed certificate deposit transaction; wherein the delayed certificate deposit transaction is generated according to the delayed transaction, the payload field of the delayed certificate deposit transaction includes the delayed transaction, and the delayed transaction includes delay information;
    在判断出所述延时存证交易为需要延时的第一类交易时,扣除所述延时存证交易的手续费,并将所述延时存证交易存证到区块链上;When judging that the delayed certificate deposit transaction is the first type of transaction that needs to be delayed, deduct the handling fee of the delayed certificate deposit transaction, and store the delayed certificate deposit transaction on the blockchain;
    将所述延时交易存储到本地,并根据所述延时信息确定所述延时交易的起始打包时刻;storing the delayed transaction locally, and determining the starting packaging moment of the delayed transaction according to the delay information;
    在到达所述起始打包时刻,且拥有所述起始打包时刻后的最新的第一区块的打包权时,根据所述延时交易生成所述第一区块;When the initial packaging time is reached and the packaging right of the latest first block after the initial packaging time is reached, the first block is generated according to the delayed transaction;
    将所述第一区块广播至其它区块链节点,以供其它区块链节点删除本地的所述延时交易。The first block is broadcast to other blockchain nodes, so that other blockchain nodes can delete the local delayed transaction.
  8. 根据权利要求7所述的方法,其特征在于,所述在判断出所述延时存证交易为需要延时的第一类交易时,扣除所述延时存证交易的手续费包括:The method according to claim 7, wherein when it is determined that the delayed certificate deposit transaction is the first type of transaction that needs to be delayed, deducting the handling fee of the delayed certificate deposit transaction comprises:
    根据所述延时存证交易的执行器名称判断出所述延时存证交易是需要延时的第一类交易,并扣除所述延时存证交易的手续费。According to the name of the executor of the delayed certificate deposit transaction, it is determined that the delayed certificate deposit transaction is the first type of transaction that needs to be delayed, and the handling fee of the delayed certificate deposit transaction is deducted.
  9. 根据权利要求7所述的方法,其特征在于,所述延时信息为所述延时交易所需延长的第一时长;所述将所述延时交易存储到本地,并根据所述延时信息确定所述延时交易的起始打包时刻包括:The method according to claim 7, wherein the delay information is a first time duration required to be extended for the delayed transaction; the delaying transaction is stored locally, and the delay information is The information to determine the initial packaging moment of the delayed transaction includes:
    根据所述延时存证交易被打包的第一时刻、所述第一时长确定所述延时交易的起始打包时刻;Determine the initial packaging moment of the delayed transaction according to the first moment when the delayed certificate deposit transaction is packaged and the first duration;
    将所述延时交易存储到本地,并存储所述延时存证交易的第一哈希值与所述延时交易的第二哈希值的第一对应关系;storing the delayed transaction locally, and storing the first correspondence between the first hash value of the delayed transaction and the second hash value of the delayed transaction;
    其中,所述第一对应关系用于供其它区块链节点:Wherein, the first correspondence is used for other blockchain nodes:
    在执行所述延时交易时,根据所述第二哈希值找到所述延时存证交易,并根据所述延时存证交易被打包的第一时刻、所述第一时长确定所述延时交易的起始打包时刻;When executing the delayed transaction, the delayed certificate deposit transaction is found according to the second hash value, and the delayed certificate deposit transaction is determined according to the first moment when the delayed certificate deposit transaction is packaged and the first duration. The starting packaging moment of the delayed transaction;
    判断所述延时交易的打包时刻是否不早于所述起始打包时 刻:Determine whether the packaging time of the delayed transaction is not earlier than the initial packaging time:
    是,则删除本地的所述延时交易。If yes, delete the local delayed transaction.
  10. 根据权利要求7所述的方法,其特征在于,所述延时交易的第一签名信息中包括所述延时交易的延时信息。The method according to claim 7, wherein the first signature information of the delayed transaction includes the delayed information of the delayed transaction.
  11. 根据权利要求10所述的方法,其特征在于,所述延时交易为多重签名交易,所述第一签名信息中包括多重签名标识、可以对所述延时交易的交易发起方进行管理的各第一账户的第一公钥、可以成功执行所述第一多重签名交易的多重签名判断规则、若干第二账户根据所持有的私钥对所述延时交易的交易内容进行签名获得的第一签名数据,所述根据所述延时交易生成所述第一区块包括:The method according to claim 10, wherein the delayed transaction is a multi-signature transaction, and the first signature information includes a multi-signature identifier, each transaction initiator that can manage the delayed transaction. The first public key of the first account, the multi-signature judgment rule that can successfully execute the first multi-signature transaction, and several second accounts obtained by signing the transaction content of the delayed transaction according to the private key held by them. The first signature data, the generating the first block according to the delayed transaction includes:
    判断所述第一签名信息中的各所述第一签名数据是否符合所述多重签名判断规则:Determine whether each of the first signature data in the first signature information complies with the multi-signature judgment rule:
    是,则根据所述延时交易生成所述第一区块。If yes, then generate the first block according to the delayed transaction.
  12. 根据权利要求11所述的方法,其特征在于,还包括:The method of claim 11, further comprising:
    在所述第一签名信息中的各所述第一签名数据不符合所述多重签名判断规则时,在本地将所述延时交易打上打包失败标识;When each of the first signature data in the first signature information does not conform to the multi-signature judgment rule, locally marking the delayed transaction with a packaging failure flag;
    在第二时长后,在本地删除所述存证交易。After the second period of time, the depository transaction is deleted locally.
  13. 一种设备,其特征在于,所述设备包括:A device, characterized in that the device comprises:
    一个或多个处理器;one or more processors;
    存储器,用于存储一个或多个程序,memory for storing one or more programs,
    当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器执行如权利要求1-12中任一项所述的方法。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-12.
  14. 一种存储有计算机程序的存储介质,其特征在于,该程序被处理器执行时实现如权利要求1-12中任一项所述的方法。A storage medium storing a computer program, characterized in that, when the program is executed by a processor, the method according to any one of claims 1-12 is implemented.
PCT/CN2021/111855 2020-12-09 2021-08-10 Delayed transaction generation method, delayed transaction execution method, and device and storage medium WO2022121348A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011425280.2A CN112600664B (en) 2020-12-09 2020-12-09 Delayed transaction generation method, delayed transaction execution device and storage medium
CN202011425280.2 2020-12-09

Publications (1)

Publication Number Publication Date
WO2022121348A1 true WO2022121348A1 (en) 2022-06-16

Family

ID=75191123

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/111855 WO2022121348A1 (en) 2020-12-09 2021-08-10 Delayed transaction generation method, delayed transaction execution method, and device and storage medium

Country Status (2)

Country Link
CN (1) CN112600664B (en)
WO (1) WO2022121348A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112600664B (en) * 2020-12-09 2022-06-24 杭州复杂美科技有限公司 Delayed transaction generation method, delayed transaction execution device and storage medium
CN113225193A (en) * 2021-05-06 2021-08-06 杭州复杂美科技有限公司 Delayed transaction storage method, computer device and storage medium
CN113222577B (en) * 2021-05-25 2022-09-16 杭州复杂美科技有限公司 Delayed transfer method, computer device and storage medium
CN113706303B (en) * 2021-08-02 2023-05-30 杭州复杂美科技有限公司 Universal time delay transaction method, computer equipment and storage medium
CN113592653B (en) * 2021-08-02 2023-05-30 杭州复杂美科技有限公司 Proxy delay transaction method, computer device and storage medium
CN113592651B (en) * 2021-08-02 2023-05-30 杭州复杂美科技有限公司 Delay transaction method, computer device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170017958A1 (en) * 2015-07-02 2017-01-19 Royal Bank Of Canada Secure processing of electronic payments
CN109947845A (en) * 2018-11-23 2019-06-28 阿里巴巴集团控股有限公司 A kind of block chain deposits card method, apparatus and computer equipment
CN110782255A (en) * 2019-11-06 2020-02-11 杭州复杂美科技有限公司 Delayed transaction cancellation method, apparatus and storage medium
CN110930157A (en) * 2019-11-14 2020-03-27 杭州复杂美科技有限公司 Delayed transaction processing method, device and storage medium
CN111523894A (en) * 2020-05-06 2020-08-11 杭州复杂美科技有限公司 Data delay publishing method, device and storage medium
CN112381543A (en) * 2020-12-09 2021-02-19 杭州复杂美科技有限公司 Multiple signature transaction method, device and storage medium
CN112583811A (en) * 2020-12-09 2021-03-30 杭州复杂美科技有限公司 Wallet retrieving method, equipment and storage medium
CN112600664A (en) * 2020-12-09 2021-04-02 杭州复杂美科技有限公司 Delayed transaction generation method, delayed transaction execution device and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019035573A1 (en) * 2017-08-16 2019-02-21 김용태 Blockchain-based trading system and method therefor
KR102192032B1 (en) * 2018-12-26 2020-12-16 주식회사 호윤 Blockchain system for delaying execution of smart contract
CN110175847A (en) * 2019-05-31 2019-08-27 联想(北京)有限公司 Exchange management method, trade managing system and computer system
CN110288445B (en) * 2019-06-28 2024-03-05 杭州复杂美科技有限公司 Decentralised storage method, device and storage medium
CN111290733B (en) * 2020-02-18 2022-07-19 杭州复杂美科技有限公司 Settlement method, apparatus and storage medium
CN111524012A (en) * 2020-05-06 2020-08-11 杭州复杂美科技有限公司 Data delay publishing method, device and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170017958A1 (en) * 2015-07-02 2017-01-19 Royal Bank Of Canada Secure processing of electronic payments
CN109947845A (en) * 2018-11-23 2019-06-28 阿里巴巴集团控股有限公司 A kind of block chain deposits card method, apparatus and computer equipment
CN110782255A (en) * 2019-11-06 2020-02-11 杭州复杂美科技有限公司 Delayed transaction cancellation method, apparatus and storage medium
CN110930157A (en) * 2019-11-14 2020-03-27 杭州复杂美科技有限公司 Delayed transaction processing method, device and storage medium
CN111523894A (en) * 2020-05-06 2020-08-11 杭州复杂美科技有限公司 Data delay publishing method, device and storage medium
CN112381543A (en) * 2020-12-09 2021-02-19 杭州复杂美科技有限公司 Multiple signature transaction method, device and storage medium
CN112583811A (en) * 2020-12-09 2021-03-30 杭州复杂美科技有限公司 Wallet retrieving method, equipment and storage medium
CN112600664A (en) * 2020-12-09 2021-04-02 杭州复杂美科技有限公司 Delayed transaction generation method, delayed transaction execution device and storage medium

Also Published As

Publication number Publication date
CN112600664A (en) 2021-04-02
CN112600664B (en) 2022-06-24

Similar Documents

Publication Publication Date Title
WO2022121348A1 (en) Delayed transaction generation method, delayed transaction execution method, and device and storage medium
WO2022121346A1 (en) Wallet retrieval method and device, and storage medium
US7805765B2 (en) Execution validation using header containing validation data
CN111869159B (en) Tamper detection system and tamper detection method
CN109933629B (en) Data synchronization method and device, computer equipment and readable storage medium
US20210409230A1 (en) Signature verification using blockchain
CN111433803A (en) Block chain communication and ordering
US10924281B2 (en) Method and apparatus for inter-blockchain transmission of authenticable message
CN109447601B (en) Method for performing witness transfer transactions in blockchain networks
WO2023016426A1 (en) Asynchronous binary agreement method and apparatus, and electronic device and storage medium
US11038685B1 (en) Correcting blockchain transactions with cryptocurrency type mistakes
CN112381543A (en) Multiple signature transaction method, device and storage medium
CN111597567A (en) Data processing method, data processing device, node equipment and storage medium
CN111078696A (en) Block generation method, device and storage medium
WO2023016429A1 (en) Binary consensus method and apparatus capable of revoting, electronic device, and storage medium
EP3907644B1 (en) Blockchain
WO2021070106A1 (en) Methods and devices for secure symbiotic mining
CN112132574A (en) Block chain data checking method, data processing method, device and equipment
CN111523896B (en) Attack prevention method, apparatus and storage medium
CN115051878B (en) Interface-based privacy calculation method, system, storage medium and equipment
CN113592639B (en) Block chain transaction deleting method and system
WO2022021768A1 (en) Parallel chain transaction group execution method, and device and storage medium
US11568399B2 (en) Distributed ledger management system, distributed ledger management method, and node
CN112348673A (en) Block chain transaction processing method and device
CN111290733B (en) Settlement method, apparatus and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21902058

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21902058

Country of ref document: EP

Kind code of ref document: A1