CN108765159B - Block chain-based uplink and state processing method and device and interconnection system - Google Patents

Block chain-based uplink and state processing method and device and interconnection system Download PDF

Info

Publication number
CN108765159B
CN108765159B CN201810566281.5A CN201810566281A CN108765159B CN 108765159 B CN108765159 B CN 108765159B CN 201810566281 A CN201810566281 A CN 201810566281A CN 108765159 B CN108765159 B CN 108765159B
Authority
CN
China
Prior art keywords
chain
block
module
executor
transaction
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
CN201810566281.5A
Other languages
Chinese (zh)
Other versions
CN108765159A (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 Rivtower Technology Co Ltd
Original Assignee
Hangzhou Rivtower 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 Rivtower Technology Co Ltd filed Critical Hangzhou Rivtower Technology Co Ltd
Priority to CN201810566281.5A priority Critical patent/CN108765159B/en
Publication of CN108765159A publication Critical patent/CN108765159A/en
Application granted granted Critical
Publication of CN108765159B publication Critical patent/CN108765159B/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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

Embodiments of the present specification relate to the field of network technologies, and in particular, to a block chain-based uplink and status processing method, apparatus, and interconnection system, where the scheme mainly includes: a chain process and an actuator process; the chain process comprises a transaction distribution process and a block uplink process, the executor process comprises a contract process and a state root calculation process, the chain process and the executor process are independently carried out and are communicated with each other, the chain process sends transaction information to the executor process in the process of executing the transaction distribution process, the state root calculation process processes the transaction information to obtain a state root, and the state root is returned to the chain process and stored in a block to complete the block uplink process. By the technical scheme, the efficiency of transaction processing and block chaining in the block chain can be effectively improved, and computing resources are saved.

Description

Block chain-based uplink and state processing method and device and interconnection system
Technical Field
Embodiments of the present disclosure relate to the field of network technologies, and in particular, to a method and an apparatus for processing uplink and status based on a block chain, and an interconnection system.
Background
The block chain technique is also called a distributed ledger technique, and is a decentralized distributed internet database in nature. A network using the blockchain technology architecture can be regarded as a blockchain network, and the blockchain network includes a plurality of blockchain nodes, where any blockchain node may correspond to at least one blockchain, and any blockchain may include at least one block.
There are transactions and states in the blockchain, and there are sets of multiple transactions in each block. After each new transaction in the block chain is processed, a set of data containing the determined current world state, namely a state root, is generated under the participation of a plurality of nodes, and the state root representing the world state is restored in the block.
In the current blockchain algorithm processing, each transaction is broadcasted to other participating nodes on the blockchain after being processed, and the other nodes on the blockchain are required to participate in the consensus algorithm together, and the sequencing is performed through the timestamp to determine which node verifies the transaction. After the transactions are identified and sorted, it is necessary to wait for the nodes to process all the transactions, calculate the last state root, and write the state root back to the block. Therefore, the consensus calculation and the state root calculation of each transaction processing are performed in time sequence, and particularly, when a plurality of transactions are processed simultaneously, the calculation processing is time-consuming.
The above is a synchronization process, and if the uplink calculation and the status calculation are separated into independent processes and communicated with each other through messages, the calculation efficiency may be greatly improved. Therefore, it is desirable to find a new uplink and status handling method based on block chains to overcome the above problems.
Disclosure of Invention
Embodiments of the present disclosure provide a block chain-based uplink and status processing method, an apparatus, and an interconnection system, so as to solve the problems of network congestion and storage burden in a common-knowledge scheme in the prior art.
In order to solve the technical problem, the embodiments of the present specification adopt the following technical solutions:
in a first aspect, a method for uplink and status processing based on a block chain is provided, including: a chain process and an actuator process; the chain process comprises a transaction distribution process and a block uplink process, the executor process comprises a contract process and a state root calculation process, the chain process and the executor process are independently carried out and are communicated with each other, the chain process sends transaction information to the executor process in the process of executing the transaction distribution process, the state root calculation process processes the transaction information to obtain a state root, and the state root is returned to the chain process and stored in a block to complete the block uplink process.
In a second aspect, an apparatus for block chain based uplink and status processing is provided, including: a chain module and an actuator module; the chain module is used for processing a transaction distribution flow and a block uplink flow, the executor is used for processing a contract flow and a state root calculation flow, the chain module and the executor module are independently carried out and are communicated with each other, the chain module sends transaction information to the executor module in the process of executing the transaction distribution flow, the state root calculation flow processes the transaction information to obtain a state root, and the state root is returned to the chain module and is stored in a block to complete the block uplink flow.
In a third aspect, an interconnection system is provided, which includes an application layer at an upper level and a platform layer at a lower level, where the platform layer includes a chain module and an executor module; the chain module is used for processing a transaction distribution flow and a block uplink flow, the executor is used for processing a contract flow and a state root calculation flow, the chain module and the executor module are independently carried out and are communicated with each other, the chain module sends transaction information to the executor module in the process of executing the transaction distribution flow, the state root calculation flow processes the transaction information to obtain a state root, and the state root is returned to the chain module and is stored in the middle block to complete the block uplink flow; the platform layer provides an interface, and the application layer uses the interface to develop an application program adopting an intelligent contract.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects:
by the technical scheme, the uplink and the state processing of the block chain are divided into the independent chain process and the independent actuator process; the chain process sends the transaction information to the executor process through the transaction distribution process, executes the block uplink process, processes the transaction information through the state root calculation process to obtain the state root, returns the state root to the chain process, and stores the state root in the block to complete the block uplink process, so that the block uplink and the state root are calculated and separated, the efficiency of transaction processing and block uplink in the block chain can be effectively improved, and the calculation resources are saved.
Drawings
In order to more clearly illustrate the embodiments of the present specification or technical solutions in the prior art, the drawings required to be used in the description of the embodiments or prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present specification, and it is also possible for a person skilled in the art to obtain other drawings based on the drawings without inventive labor.
Fig. 1 is a schematic diagram of a block chain based uplink and status processing method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a device for block chain based uplink and status handling according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an interconnection system provided in an embodiment of the present specification.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to specific embodiments of the present disclosure and corresponding drawings. It is to be understood that the embodiments described are only a few embodiments of the present disclosure, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present specification without making any creative effort belong to the protection scope of the embodiments in the present specification.
The technical solutions provided by the embodiments of the present description are described in detail below with reference to the accompanying drawings.
It should be noted that, in the embodiment of the present specification, the uplink and the state processing of the block chain are divided into a chain process and an executor process, which are independent of each other; the chain process sends the transaction information to the executor process through the transaction distribution process, executes the block uplink process, processes the transaction information through the state root calculation process to obtain the state root, returns the state root to the chain process, and stores the state root in the block to complete the block uplink process, so that the block uplink and the state root are calculated and separated, the efficiency of transaction processing and block uplink in the block chain can be effectively improved, and the calculation resources are saved.
Example one
Referring to fig. 1, a schematic diagram of a block chain-based uplink and status processing method provided in an embodiment of the present disclosure is shown, where the block chain-based uplink and status processing method in this embodiment includes:
a chain process 101 and an executor process 102; the chain process 101 includes a transaction distribution process 104 and a block uplink process 103, and the executor process 102 includes a contract process 105 and a state root computation process 106.
The chain process 101 and the executor 102 processes each independently and communicate with each other.
According to the uplink and status processing method based on a block chain in this embodiment, when a new transaction is generated on a block chain, the chain process 101 executes a transaction distribution process 104, and in the process of executing the transaction distribution process 104, transaction information is sent to the executor process 102, and the status root calculation process 106 processes the transaction information to obtain a status root (status _ root), and returns the status root to the chain process 101, and stores the status root in a block to complete the uplink block process.
In this embodiment, the link process 101 executes the transaction distribution process 104 while the block uplink process 103 is running simultaneously. Specifically, the block uplink process 103 includes a node handoff block request, each node generates a new block through a consensus algorithm, processes transaction data and generates a block hash value, and adds the block hash value and the new block to a block chain, thereby completing a new block uplink process.
In this embodiment, while the block uplink process 103 is executed, the chain process 101 executes the transaction distribution process 104 to send transaction information to the executor process 102.
In the existing block chain system composed of multiple nodes, a large number of nodes complete the consensus mechanism of new transaction uplink through the workload certification mechanism, which consumes a large amount of computing resources, and as a result, the block uplink is completed at the highest computing speed, which results in a large amount of computing resources being wasted.
In addition, after the consensus mechanism is completed, it is necessary to process the transaction information with a large amount of computation to obtain a state root (state _ root) representing all transaction information, so as to complete the block uplink.
According to the method provided in this embodiment, since the block uplink process 103 and the state root calculation process 106 are separately executed, each node on the node network may process the block uplink process 103 and the state root calculation process 106 in batch or separately, for example, some nodes process the block uplink process 103 exclusively, and perform common identification calculation of workload identification, or other nodes process transaction data to complete the state root calculation, and finally the fastest node obtains the right to perform uplink operation, and simultaneously invokes the execution result of the state root calculation process 106 from other nodes to complete block uplink. Therefore, a single node does not need to consume computation power in the uplink block procedure 103 and the state root computation procedure 106, and the computation speed can be greatly increased for the whole block chain by using the method provided by the embodiment.
It should be noted that, in this embodiment, the executor process 102 further includes a contract flow 105, and the contract flow 105 performs intelligent contract execution on the transaction data provided by the chain process 101, that is, multiple nodes perform a digital signature verification procedure at the same time, so as to ensure the validity of the transaction.
Specifically, in the present embodiment, since the contract process 105 is separated from the block uplink process 103, i.e. the digital signature verification process is separated from the block uplink process, the efficiency of information processing is further improved. For example, some nodes in the node network may be configured to perform the block uplink process 103, and another part may be configured to handle the contract process 105, and the function of verifying the contract validity may also be achieved.
Therefore, according to the method provided in this embodiment, the block uplink process 103 and the status root calculation process 106 are processed separately, and multiple nodes perform intelligent contract verification and participate in status root calculation while performing the block uplink process 103.
When a user performs an electronic money transaction such as a bitcoin, tens of thousands of transactions are often performed in the same section in the entire block chain. In a conventional block uplink mode, after receiving more than thousands of transaction information, a plurality of nodes usually perform intelligent contracts and block uplink on the transaction data together. While each node processes a large amount of transaction data, the joint calculation of the workload certification is also completed, and by adopting the method provided by the embodiment, for a large amount of transactions, the node network can process in batches and in a classified manner, and a large amount of nodes in the node network are respectively corresponding to different calculation processes, so that the calculation efficiency is improved.
Therefore, when multiple transactions are simultaneously carried out on the block chain, the efficiency of transaction processing and block chain linking in the block chain can be effectively improved, the computing resources are saved, and the time for block chain linking is shortened. Optionally, in this embodiment, the chain process 101 corresponds to a chain database 108, the chain database 108 stores block data and transaction data, the executor process 102 corresponds to a state database 109, and the state database 109 stores state root information and account information.
The chain process 101 calls the chain database 108 or outputs data to the chain database 108, and the executor process 102 calls the state database 109 or outputs data to the state database 109.
Optionally, the chain process 101 and the executor process 102 may be capable of communicating with each other, or the chain process 101 and the executor process 102 may also be capable of communicating with other processes, and when communicating with other processes, the information subscribed by the chain process 101 and the executor process 102 includes consensus computing information, network synchronization block information, and proposal pre-execution information.
It should be noted that, in this embodiment, in other embodiments, the consensus computing information may be computed by a consensus module specifically set on the right. That is, the chain process 101 may only include the basic operations in the transaction distribution process 104 and the block uplink process 103, and the workload certification with large computation amount is sent to the consensus module for computation, so as to further improve the computation efficiency.
Optionally, both the chain process 101 and the executor process 102 can be queried by a Remote Call process 107 (RPC), so that the chain process 101 and the executor process 102 can be called by a Remote user.
Example two
Fig. 2 is a schematic structural diagram of a block chain-based uplink and status processing apparatus according to an embodiment of the present disclosure, and the block chain and status processing apparatus according to the embodiment of the present disclosure is described in detail below with reference to fig. 2. It should be noted that, in the present embodiment, the block uplink and status processing apparatus performs the block uplink operation by using the block chain based uplink and status processing method according to the first embodiment of the present invention, but the present invention is not limited thereto.
The present embodiment provides a block chain-based uplink and status processing apparatus, including: a chain module 201 and an actuator module 202. The chain module 201 is configured to process a transaction distribution process and a block uplink process, the executor module 202 is configured to process a contract process and a state root calculation process, the chain module and the executor module perform independent processes and communicate with each other, the chain module 201 sends transaction information to the executor module 202 during execution of the transaction distribution process, the state root calculation process processes the transaction information to obtain a state root, and the state root is returned to the chain module 201 and stored in a block to complete the block uplink process.
In this embodiment, the uplink block flow includes a node handoff block request, each node generates a new block through a consensus algorithm, processes transaction data and generates a block hash value, and adds the block hash value and the new block to a block chain.
Therefore, according to the apparatus provided in this embodiment, the block uplink process and the status root calculation process 106 are processed in the chain module 201 and the executor module 202, respectively, and when the block uplink process is executed, a plurality of nodes perform intelligent contract verification and participate in performing status root calculation, so that when a plurality of transactions are performed simultaneously on the block chain, the efficiency of transaction processing and block uplink in the block chain can be effectively improved, the calculation resources are saved, and the time for block uplink is shortened.
Optionally, in this embodiment, the chain module 201 includes a chain database 108, the chain database 108 stores block data, receipt, transaction data, and other information, the executor module 202 includes a status database 109, and the status database 109 stores status root information and account information. The chain database 108 and the state database 109 can be called independently, and the calculation rate is further improved.
After the executor module 202 executes the uplink block process, the transaction information and receipt obtained after execution are stored in the chain database 108; the executor module 202 serves as an intelligent contract execution engine, provides an execution environment for the operation of a contract flow, and stores the account information and the status root after the contract flow is executed in the status database 108.
Optionally, in this embodiment, the apparatus for processing uplink and status based on a block chain further includes a consensus module and a network synchronization module 205, where the consensus module and the network synchronization module 205 undertake a consensus calculation and a network synchronization function and communicate with the chain module 201 or the executor module 202, but the present invention is not limited thereto, and the consensus calculation and the network synchronization function may also be implemented by being encapsulated in the chain module 201 or the executor module 202.
It should be noted that, in this embodiment, the block chain-based uplink and status processing apparatus may be an electronic device, and in a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a Non-Volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, network interface, and memory may be interconnected by an internal bus, which may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 2, but this does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form the content recommendation device on a logic level. And the processor is used for executing the program stored in the memory and is specifically used for executing the method operation executed when the server is taken as an execution main body.
The methods disclosed in fig. 1-2 in the embodiments of the present disclosure may be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present specification may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present specification may be embodied directly in a hardware decoding processor, or in a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
Of course, besides the software implementation, the electronic device of the embodiment of the present disclosure does not exclude other implementations, such as a logic device or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or a logic device.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an interconnection system provided in an embodiment of the present specification, and the interconnection system in the embodiment of the present specification is described in detail below with reference to fig. 3.
The interconnection system provided by the embodiment of the present specification includes an application layer 301 at an upper level and a platform layer 302 at a lower level. The platform layer 301 comprises a chain module 201 and an actuator module 202; the chain module 201 is configured to process a transaction distribution process and a block uplink process, the executor module 202 is configured to process a contract process and a state root calculation process, the chain module 201 and the executor module 202 perform independent processes and communicate with each other, the chain module 201 sends transaction information to the executor module 202 during execution of the transaction distribution process, the state root calculation process processes the transaction information to obtain a state root, and the state root is returned to the chain module 201 and stored in a middle block to complete the block uplink process.
The platform layer 302 provides an interface that the application layer 201 uses to develop applications that employ intelligent contracts. Alternatively, the user may develop an application program such as electronic money using the smart contract at the application layer 301 and call the query data using an interface provided by the platform layer 302.
According to the interconnection system provided in this embodiment, in the platform layer 302, the block uplink process and the state root calculation process 106 are processed in the chain module 201 and the executor module 202, respectively, and while the block uplink process is executed, a plurality of nodes perform intelligent contract verification and participate in performing state root calculation, so that when multiple transactions are performed on the block chain at the same time, the efficiency of transaction processing and block uplink in the block chain can be effectively improved, the calculation resources are saved, and the time used for block uplink is shortened. This also enables applications such as smart contracts, electronic money, etc. located at the application layer 301 to be run at significantly higher speeds.
In short, the above description is only a preferred embodiment of the embodiments of the present disclosure, and is not intended to limit the scope of the embodiments of the present disclosure. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the embodiments of the present disclosure should be included in the protection scope of the embodiments of the present disclosure.
The systems, apparatuses, modules or units described in the above embodiments may be specifically implemented by a computer chip or an entity, or implemented by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element described by the phrase "comprising a. -" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in this specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on differences from other embodiments. In particular, as for the system embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.

Claims (9)

1. A method for block chain based uplink and status handling, comprising: a chain process and an actuator process; the chain process comprises a transaction distribution process and a block uplink process, the executor process comprises a contract process and a state root calculation process, the chain process and the executor process are independently carried out and mutually communicated through different nodes on a node network, the chain process sends transaction information to the executor process through a node in charge of the chain process in the process of executing the transaction distribution process, the state root processes the transaction information through the node calculation process in charge of the executor process to obtain a state root, and the state root returns to the chain process and is stored in a block to complete the block uplink process; the chain process corresponds to a chain database, the chain database stores block data and transaction data, the actuator process corresponds to a state database, and the state database stores state root information and account information.
2. The method of claim 1, wherein the chain process and the executor process communicate with each other or when the chain process and the executor process communicate with other processes, the subscribed information includes consensus computing information, network synchronization block information, and proposal pre-execution information.
3. The method of claim 1, wherein both the chain process and the executor process are capable of being queried by a remote call process, RPC.
4. The method of claim 1 wherein the blockchain procedure includes a node handing off a blockrequest, each node generating a new block through a consensus algorithm, processing transaction data and generating a blockhash value, and adding the blockhash value and the new block to a blockchain.
5. An apparatus for block chain based uplink and status handling, comprising: a chain module and an actuator module; the chain module is used for processing a transaction distribution flow and a block uplink flow, the executor module is used for processing a contract flow and a state root calculation flow, the chain module and the executor module are independently carried out and mutually communicated through different nodes on a node network respectively, the chain module sends transaction information to the executor module through a node in charge of a chain process in the process of executing the transaction distribution flow, the state root processes the transaction information through the node calculation flow in charge of the executor process to obtain a state root, and the state root is returned to the chain module and stored in a block to complete the block uplink flow; the chain module includes a chain database that stores block data and transaction data, and the executor module includes a state database that stores state root information and account information.
6. The apparatus of claim 5, wherein the blockchain procedure comprises a node handing off a blockrequest, each node generating a new block through a consensus algorithm, processing transaction data and generating a blockhash value, and adding the blockhash value and the new block to a blockchain.
7. The apparatus of claim 5, wherein after the chain module performs the uplink block flow, the chain module stores transaction information and receipts obtained after the execution into the chain database; the executor module is used as an intelligent contract execution engine, provides an execution environment for the operation of a contract flow, and stores the account information and the state root after the contract flow is executed into the state database.
8. The apparatus of claim 5, further comprising a consensus module and a network synchronization module.
9. An interconnection system is characterized by comprising an application layer positioned at an upper level and a platform layer positioned at a lower level, wherein the platform layer comprises a chain module and an actuator module; the chain module is used for processing a transaction distribution flow and a block uplink flow, the executor is used for processing a contract flow and a state root calculation flow, the chain module and the executor module are independently carried out and mutually communicated through different nodes on a node network respectively, the chain module sends transaction information to the executor module through a node in charge of a chain process in the process of executing the transaction distribution flow, the state root processes the transaction information through the node calculation flow in charge of the executor process to obtain a state root, and the state root is returned to the chain module and stored in a block to complete the block uplink flow; the chain module comprises a chain database, the chain database stores block data and transaction data, the executor module comprises a state database, and the state database stores state root information and account information;
The platform layer provides an interface, and the application layer uses the interface to develop an application program adopting an intelligent contract.
CN201810566281.5A 2018-06-04 2018-06-04 Block chain-based uplink and state processing method and device and interconnection system Active CN108765159B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810566281.5A CN108765159B (en) 2018-06-04 2018-06-04 Block chain-based uplink and state processing method and device and interconnection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810566281.5A CN108765159B (en) 2018-06-04 2018-06-04 Block chain-based uplink and state processing method and device and interconnection system

Publications (2)

Publication Number Publication Date
CN108765159A CN108765159A (en) 2018-11-06
CN108765159B true CN108765159B (en) 2022-07-15

Family

ID=63998882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810566281.5A Active CN108765159B (en) 2018-06-04 2018-06-04 Block chain-based uplink and state processing method and device and interconnection system

Country Status (1)

Country Link
CN (1) CN108765159B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6892504B2 (en) * 2018-11-27 2021-06-23 アドバンスド ニュー テクノロジーズ カンパニー リミテッド Executing multi-party transactions using smart contracts
CN110020859B (en) * 2019-03-28 2022-03-11 杭州秘猿科技有限公司 Parallel execution block chain consensus method and device and electronic equipment
CN110096381B (en) * 2019-05-10 2021-05-07 百度在线网络技术(北京)有限公司 Method, device, equipment and medium for realizing remote procedure call
CN110245944B (en) * 2019-05-20 2021-04-27 创新先进技术有限公司 Receipt storage method and node based on user type
CN111083223B (en) * 2019-12-18 2020-09-01 安徽兆尹信息科技股份有限公司 Block chain interconnection system for asset securitization processing sub-platform and interconnection data communication method thereof
CN111506932A (en) * 2020-06-18 2020-08-07 海南安迈云网络技术有限公司 Block chain calculation uplink implementation method
CN114268634B (en) * 2021-06-02 2024-06-25 支付宝(杭州)信息技术有限公司 Business execution method based on out-of-chain computing service
CN114493602B (en) * 2022-04-08 2022-07-22 恒生电子股份有限公司 Block chain transaction execution method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106910072A (en) * 2017-02-15 2017-06-30 捷德(中国)信息科技有限公司 Digital cash management method and system
CN107103054A (en) * 2017-04-12 2017-08-29 北京航空航天大学 The intelligent contract asynchronous execution storage system and implementation method of a kind of privately owned block chain
CN107358526A (en) * 2017-06-26 2017-11-17 中国人民银行数字货币研究所 A kind of method and apparatus promptly merchandised
CN107395353A (en) * 2017-04-24 2017-11-24 阿里巴巴集团控股有限公司 A kind of block chain common recognition method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160098730A1 (en) * 2014-10-01 2016-04-07 The Filing Cabinet, LLC System and Method for Block-Chain Verification of Goods
CN107562775B (en) * 2017-07-14 2020-04-24 创新先进技术有限公司 Data processing method and device based on block chain
CN107481011A (en) * 2017-08-11 2017-12-15 杭州秘猿科技有限公司 A kind of transaction rapid acknowledgment method based on license chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106910072A (en) * 2017-02-15 2017-06-30 捷德(中国)信息科技有限公司 Digital cash management method and system
CN107103054A (en) * 2017-04-12 2017-08-29 北京航空航天大学 The intelligent contract asynchronous execution storage system and implementation method of a kind of privately owned block chain
CN107395353A (en) * 2017-04-24 2017-11-24 阿里巴巴集团控股有限公司 A kind of block chain common recognition method and device
CN107358526A (en) * 2017-06-26 2017-11-17 中国人民银行数字货币研究所 A kind of method and apparatus promptly merchandised

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"(秘猿)CITA技术白皮书";大圣2017;《https://www.jianshu.com/p/bf32b3cebfd2?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation》;20170725;正文第4节 *
大圣2017."(秘猿)CITA技术白皮书".《https://www.jianshu.com/p/bf32b3cebfd2?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation》.2017, *

Also Published As

Publication number Publication date
CN108765159A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN108765159B (en) Block chain-based uplink and state processing method and device and interconnection system
KR102152556B1 (en) Service processing and consensus method and device
CN110659988B (en) Parallel processing method and device for block chain consensus and execution and electronic equipment
CN109658238B (en) Data processing method and device
EP3565219B1 (en) Service execution method and device
CN110020859B (en) Parallel execution block chain consensus method and device and electronic equipment
TWI727467B (en) Trustworthiness verification method, system, device and equipment of alliance chain
CN108846749B (en) Partitioned transaction execution system and method based on block chain technology
CN111461887B (en) Block chain consensus processing method and device and electronic equipment
TW201822033A (en) Resource processing method and apparatus
WO2020211483A1 (en) Method and apparatus for storing and executing smart contract in blockchain, and electronic device
CN111899008B (en) Resource transfer method, device, equipment and system
WO2020155811A1 (en) Block chain intelligent contract execution method, device and electronic apparatus
WO2021239087A1 (en) Data processing method, apparatus and device, and medium
CN111523901B (en) Block chain consensus method, device and system based on Byzantine fault-tolerant algorithm
CN110659905A (en) Transaction verification method, device, terminal equipment and storage medium
CN109345081B (en) Data acquisition method and device and electronic equipment
CN110784507A (en) Fusion method and system of population information data
CN110648125A (en) Packaging transaction method and device and electronic equipment
US20230325149A1 (en) Data processing method and apparatus, computer device, and computer-readable storage medium
CN108710658B (en) Data record storage method and device
CN113407156B (en) Method and system for generating random number based on decentralized verifiable delay function
CN112906171B (en) Credible collaborative optimization method and simulation platform for comprehensive energy system
CN113706146B (en) Processing method, device and system for executing batch transactions based on blockchain
CN110046194A (en) A kind of method, apparatus and electronic equipment of expanding node relational graph

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
CB03 Change of inventor or designer information

Inventor after: Xie Hanjian

Inventor after: Hu Yanlin

Inventor after: Yu Bo

Inventor before: Xie Hanjian

Inventor before: Hu Yanlin

Inventor before: Yu Bo

CB03 Change of inventor or designer information
TA01 Transfer of patent application right

Effective date of registration: 20200311

Address after: 310012 no.1001, 10 / F, block a, Huaxing Times Square, No.478, Wensan Road, Xihu District, Hangzhou City, Zhejiang Province

Applicant after: Hangzhou Xita Technology Co.,Ltd.

Address before: 310013 A 1301, Huaxing Times Square, 478 Wensanlu Road, Xihu District, Hangzhou, Zhejiang.

Applicant before: CRYPTAPE Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant