Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for executing transaction in block chain

A blockchain and transaction technology, applied in the blockchain field, can solve problems such as complex transaction execution, and achieve the effect of improving execution efficiency

Active Publication Date: 2020-04-21
ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF7 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Due to the inclusion of smart contracts, complex calculation logic may be involved in smart contracts, which makes the execution of transactions more complicated

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for executing transaction in block chain
  • Method and device for executing transaction in block chain
  • Method and device for executing transaction in block chain

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0136] According to an implementation manner, the recording unit 82 is configured as:

[0137] Create a first transaction operation record in memory, including a set of read operations and a set of write operations;

[0138] Recording the variable operation request in the first transaction operation record includes recording the variable read operation request included in the variable operation request in the read operation set, and recording the variable operation request included in the variable operation request The variable write operation request of is recorded in the write operation set.

[0139] In one embodiment, the first transaction operation record further includes a speculative execution state; the marking unit 83 is configured to: mark the speculative execution state in the first transaction operation record as completion of speculative execution.

[0140] More specifically, in one embodiment, the recording unit 82 is configured to: also record the block number on ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a method and a device for executing a transaction in a block chain. The method includes speculative execution before the transaction is consensus, and formal execution based on the consensus. The speculation execution process comprises the following steps: firstly, reading a locally recorded first transaction; executing transaction logic in the first transaction, and recording a variable operation request corresponding to an execution result in a memory; marking the transaction as a commissioned transaction. The formal execution process comprises the steps of obtaining a consensus and to-be-executed second transaction; judging whether the second transaction is a transaction executed by the speculation or not, and if so, obtaining a corresponding variable operation request which is not submitted yet; judging whether speculation execution of the second transaction conflicts with consensus-based transaction execution or not according to the variable operation request; and if no conflict exists, directly submitting the variable operation corresponding to the variable operation request. Therefore, the execution efficiency of the transaction is improved.

Description

technical field [0001] One or more embodiments of this specification relate to the technical field of block chains, and in particular to methods and devices for executing transactions in block chains. Background technique [0002] Blockchain technology is an application model that uses computer technologies such as point-to-point transmission, consensus mechanism, and encryption algorithm to realize data distributed storage. In the blockchain network, data storage and recording are realized through transactions. In the early blockchain network, only transactions in the form of transfers were supported. At present, more and more blockchain platforms support smart contracts to execute richer transactions. A smart contract is a transaction contract that can be automatically executed. It is written into the blockchain in a digital form. The characteristics of the blockchain technology ensure that the entire process of storage, reading, and execution is transparent, traceable, ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06Q40/04G06Q20/38G06F12/14
CPCG06Q40/04G06Q20/3827G06F12/1458G06Q20/3825G06F21/64G06F21/6227
Inventor 刘晓建
Owner ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products