CN108846748A - A kind of independent process executes the method and device of contract - Google Patents

A kind of independent process executes the method and device of contract Download PDF

Info

Publication number
CN108846748A
CN108846748A CN201810551464.XA CN201810551464A CN108846748A CN 108846748 A CN108846748 A CN 108846748A CN 201810551464 A CN201810551464 A CN 201810551464A CN 108846748 A CN108846748 A CN 108846748A
Authority
CN
China
Prior art keywords
transaction
unit
common recognition
execution unit
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810551464.XA
Other languages
Chinese (zh)
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
Cryptape 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 Cryptape Co ltd filed Critical Cryptape Co ltd
Priority to CN201810551464.XA priority Critical patent/CN108846748A/en
Publication of CN108846748A publication Critical patent/CN108846748A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification

Abstract

The embodiment of the present application discloses a kind of method and device of independent process execution contract, is applied in block chain network, including:Common recognition block is sent to chain element and execution unit by common recognition unit, includes transaction List Table in the common recognition block;The execution unit executes the transaction in the common recognition block according to the transaction List Table;The chain element stores the result that the execution unit executes the transaction.The method and device that the application executes contract by providing independent process, reduces the coupling of trading processing process, realizes the independence of contract executive process, bring more flexible trading processing ability, improve the producing level of computing resource.

Description

A kind of independent process executes the method and device of contract
Technical field
This application involves the method and devices that network technique field more particularly to a kind of independent process execute contract.
Background technique
In informationized society, the systems such as all kinds of management systems, office automation have behind a database come sufficiently, have Effect management various information resource, and the behind of this automation and database, need behavior adjustment management, and only maintenance system in fact The talent have the permission of management system, and other users have no right to manage.
Block chain is a kind of new distributed computing technology, is Distributed Storage, point-to-point transmission, common recognition mechanism, encryption The new application mode of the computer technologies such as algorithm.Block chain Technical comparing is special, each user in block catenary system is System administration can be participated in, participates in book keeping operation, and the intelligent contract technology in block chain technology can make block chain realize really meaning Automation in justice.
Ether mill (Ethereum) is the public block platform chain for having intelligent contract function of an open source, passes through offer Ether virtual machine (Ethereum Virtual Machine, EVM) handles ether mill intelligence contract.In the process for executing contract In, each process coupling of trading processing is higher, causes the trading processing time to increase, influences system performance.Meanwhile EVM has Store function occupies a part of computing resource, also affects system performance.
Need to find the scheme for reducing exchange hour, improving system performance new in a kind of block chain as a result, on overcoming State problem.
Summary of the invention
The embodiment of the present application provides a kind of method and device of independent process execution contract, to solve holding for the prior art The trading processing time present in row contract scheme increases, the problem of system performance difference.
In order to solve the above-mentioned technical problem, the embodiment of the present application adopts the following technical solutions:
In a first aspect, providing a kind of method that independent process executes contract, it is applied in block chain network, the method Including:
Common recognition block is sent to chain element and execution unit by common recognition unit, includes transaction List Table in the common recognition block;
The execution unit executes the transaction in the common recognition block according to the transaction List Table;
The chain element stores the result that the execution unit executes the transaction.
Optionally, the execution unit is communicated by messaging bus with the chain element and the common recognition unit, institute Execution unit is stated with pluggable function, and is following one kind:NOOP actuator;Native actuator;Ether virtual machine EVM Actuator;Private actuator;Hybrid actuator.
In one possible implementation, the common recognition unit will know together block be sent to chain element and execution unit it Before, the method also includes:Authentication unit trades to Client-initiated and carries out validity checking, wherein the user passes through JSON RPC initiates transaction;The authentication unit returns to Hash or errored response to the user;The authentication unit is to Web broadcast New Transaction, the network floods New Transaction to other nodes, after other described nodes feed back New Transaction, floods to the network The New Transaction received is sent to the authentication unit by New Transaction, the network.
Optionally, after the New Transaction received is sent to the authentication unit by the network, the method also includes: The New Transaction that the authentication unit receives the network does validity checking;The authentication unit to the common recognition unit into Row is proposed;The authentication unit sends transaction List Table to the common recognition unit, and the common recognition unit is sent out according to the authentication unit The information sent is known together by the network and other described nodes, forms the common recognition block reached common understanding.
In one possible implementation, the chain element store the execution unit execute the transaction as a result, Including:The result for executing the transaction is sent to the chain element by the execution unit, and the chain element executes list for described The result that member executes transaction, which is stored to local data base, and by the height value of block in block chain, adds 1.
Further, after the transaction in the common recognition block is executed according to the transaction List Table in the execution unit, The method also includes:The result that inspection unit executes transaction to execution unit checks;Wherein, inspection unit is not current It is checked in block, the implementing result of execution unit in a upper block is checked in next piece.
Optionally, after the transaction in the common recognition block is executed according to the transaction List Table in the execution unit, institute The method of stating further includes:The common recognition unit knows together the result that the execution unit executes transaction.
Second aspect provides a kind of device of independent process execution contract, is applied in block chain network, described device Execute method described in first aspect.
The third aspect, the application provide a kind of electronic equipment, including:Memory, processor and it is stored in the memory Computer program that is upper and can running on the processor, the computer program execute first aspect institute by the processor The method stated.
Fourth aspect, the application provide a kind of computer readable storage medium, deposit in the computer readable storage medium Instruction is contained, when run on a computer, so that computer executes method described in first aspect.
5th aspect, the application provide a kind of chip, and the chip is connected with memory, for reading and executing described deposit The software program stored in reservoir, to realize method described in first aspect.
The method and device that the application executes contract by providing independent process, reduces the coupling of trading processing process Property, the independence of contract executive process is realized, more flexible trading processing ability is brought, improves the utilization journey of computing resource Degree.
Detailed description of the invention
In order to illustrate more clearly of this specification embodiment or technical solution in the prior art, below will to embodiment or Attached drawing needed to be used in the description of the prior art is briefly described, it should be apparent that, the accompanying drawings in the following description is only The some embodiments recorded in this specification embodiment are not paying creative labor for those of ordinary skill in the art Under the premise of dynamic property, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow chart for the method that a kind of independent process provided by the embodiments of the present application executes contract;
Fig. 2 is a kind of structural schematic diagram of execution unit provided by the embodiments of the present application;
Fig. 3 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application;
Fig. 4 is the structural schematic diagram for the device that a kind of independent process provided by the embodiments of the present application executes contract.
Specific embodiment
To keep the purposes, technical schemes and advantages of this specification embodiment clearer, have below in conjunction with this specification The technical solution of this specification embodiment is clearly and completely described in body embodiment and corresponding attached drawing.Obviously, described Embodiment be only this specification a part of the embodiment, instead of all the embodiments.The embodiment of base in this manual, this Field those of ordinary skill every other embodiment obtained without making creative work, belongs to this explanation The range of book embodiment protection.
Below in conjunction with attached drawing, the technical solution that each embodiment of this specification provides is described in detail.
Block chain is substantially the database of a decentralization, be it is a succession of using cryptography method generate it is associated Data block contains the information that the whole network is traded in a period of time in each data block.Using the network of block chain Technical Architecture It can be considered block chain network, include multiple block chain nodes in block chain network, either block chain node can correspond at least one Block chain, either block chain may include at least one block.The block (block) of different height is connected by chain (chain) Come, in the transaction of block chain, most important operation is exactly that verifying transaction legitimacy (Auth), common recognition (Consensus) and contract are held Row.
Intelligent contract (Smart contract) is a kind of to be intended to be propagated, verify or executed in terms of contract in information-based mode Calculation machine agreement, permission carry out credible transaction in no third-party situation.The purpose of intelligent contract is to provide better than tradition The safety method of contract, and reduce other transaction costs relevant to contract.
Ether mill is the public block platform chain for having intelligent contract function of an open source, only contains a chain, in chain Include EVM.Ether mill handles point-to-point ether mill intelligence contract by EVM.Ether mill intelligence contract passes through scripting language It writes, is executed in EVM.In the process of implementation, transaction is sent in block chain network EVM by client, first to be verified transaction and be closed Then method is known together, transaction is executed after common recognition, implementing result of finally knowing together again.An only transaction is realized all After process, it can just start the processing of next transaction, each process coupling of trading processing is higher, this just makes the trading processing time Greatly increase, to influence system performance.Meanwhile the EVM in ether mill has the multiple functions such as operation, Hash, storage, Store function is placed in EVM, is occupied a part of computing resource, is also affected system performance.
In view of the above problems, the embodiment of the present application provides a kind of method and device of independent process execution contract, it is intended to The coupling of trading processing process, separation storage and calculating operation are reduced, realizes the independence of contract executive process, bringing more has bullet Property trading processing ability, improve system performance, save more computing resources.
Embodiment one
Fig. 1 is the flow chart for the method that a kind of independent process provided by the embodiments of the present application executes contract, is applied to block In chain network, specific step is as follows:
101, user initiates transaction.
102, authentication unit does validity checking to Client-initiated transaction, and transaction enters trading pit, wherein trading pit position In authentication unit.
Optionally, transaction (JavaScript Object Notation, JSON) RPC is initiated by JSON RPC to initiate to hand over Easily, wherein JSON RPC is across the language far call agreement based on JSON, is based on text than xml-RPC, webservice etc. Agreement transmission data lattice it is small;The binary protocols such as opposite hessian, Java-RPC are very convenient for debugging, realization, extension A kind of outstanding far call agreement.
103, authentication unit returns to Hash or errored response to user.
104, authentication unit is to Web broadcast New Transaction.
105, network floods New Transaction to other nodes (peers).
106, the New Transaction that other nodes flood network is fed back.
107, other nodes flood New Transaction to network.
108, the New Transaction received is sent to authentication unit by network.
109, authentication unit does validity checking to the New Transaction that network receives.
110, authentication unit is proposed (proposal) to common recognition unit.Meanwhile authentication unit is sent to common recognition unit One transaction List Table.
111, the information that common recognition unit is sent according to authentication unit, is known together by network and other nodes, comprehensive each After the information of aspect, the common recognition block reached common understanding is formed.
It include at this time transaction List Table in common recognition block.In method provided by the embodiments of the present application, in this step, block of knowing together In transaction List Table be performed not yet.
Common recognition block is sent to chain element and execution unit by 112-113, common recognition unit.
Wherein, chain element is used to safeguard the data such as height, the Hash of block in block chain.
114, execution unit executes the transaction in common recognition block according to the transaction List Table for including in common recognition block.
In one possible embodiment of the application, execution unit can by messaging bus (message bus) and Other function module (such as chain element, common recognition unit) is communicated.As shown in Figure 3.
Optionally, as shown in figure 3, execution unit can be but not limited to the following one or more coexist:NOOP is executed Device;Native actuator;Ether virtual machine EVM actuator;Private actuator;Hybrid actuator.User can be according to certainly The different demand of body, selects different actuators as execution unit.
Alternatively, execution unit has pluggable function.
In embodiments herein, the interface of execution unit be to user it is open, user can independently select to program Instruction, for example, user can directly be write with Rust, can be used java also to do.All execution are all the execution called Function in unit, user can be with mono- variables of mono- variable of node or start, these operations are all in execution unit It carries out.
115, execution unit is after performing the transaction in common recognition block, by information such as implementing results, such as state root It is sent to chain element.Chain element storage execution unit executes the result of transaction, wherein execution unit is executed transaction by chain element As a result it stores in local data base, and the height value of the block in block chain is added 1.
Optionally, after execution unit executes the transaction in common recognition block, inspection unit (not shown in figure 1) is to execution As a result it is checked.
Further, inspection unit can be accomplished not check in current block, will execute inspection and be placed in next piece, real The implementing result of execution unit in the upper block of present next piece of inspection.
116, common recognition unit knows together to the implementing result of execution unit.
Asynchronous progress may be implemented in step 114 and step 116 this two step, to improve the utilization rate of resource.
In the method that embodiments herein provides, execution unit is different from the prior art in the chain that middle ether mill includes Actuator, no longer include store function, and chain element then can by execution unit execute transaction result store, together When can also safeguard all data of block in block chain.Method provided by the embodiments of the present application passes through execution unit and chain element will Storage and calculating separate in traditional actuator, so that execution unit is merely responsible for calculating and is executed transaction, chain element is responsible for storage Transaction, maintenance data, reduce the coupling of trading processing process, realize the independence of contract executive process, bringing more has bullet The trading processing ability of property, improves the producing level of computing resource.
Embodiment two
The electronic equipment of this specification embodiment is discussed in detail referring to Fig. 3.Referring to FIG. 3, in hardware view, the electricity Sub- equipment includes processor, optionally further comprising internal bus, network interface, memory.Wherein, memory may be comprising interior It deposits, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to further include non-volatile memories Device (Non-Volatile Memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible that other Hardware required for business.
Processor, network interface and memory can be connected with each other by internal bus, which can be industry Standard architecture (Industry Standard Architecture, ISA) bus, Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The bus can be divided into address bus, data/address bus, Control bus etc..Only to be indicated with a four-headed arrow in Fig. 3, it is not intended that an only bus or one kind convenient for indicating The bus of type.
Memory, for storing program.Specifically, program may include program code, and said program code includes calculating Machine operational order.Memory may include memory and nonvolatile memory, and provide instruction and data to processor.
Processor is from the then operation into memory of corresponding computer program is read in nonvolatile memory, in logical layer Content recommendation device is formed on face.Processor executes the program that memory is stored, and is specifically used for executing service described previously Performed method operation when device is as executing subject.
Method disclosed in the above-mentioned embodiment embodiment illustrated in fig. 1 such as this specification can be applied in processor, Huo Zheyou Processor is realized.Processor may be a kind of IC chip, the processing capacity with signal.It is above-mentioned during realization Each step of method can be completed by the integrated logic circuit of the hardware in processor or the instruction of software form.Above-mentioned Processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;Can also be digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate Array (Field-Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or crystalline substance Body pipe logical device, discrete hardware components.It may be implemented or execute disclosed each method, the step in this specification embodiment And logic diagram.General processor can be microprocessor or the processor is also possible to any conventional processor etc..Knot The step of closing method disclosed in this specification embodiment can be embodied directly in hardware decoding processor and execute completion, Huo Zheyong Hardware and software module combination in decoding processor execute completion.Software module can be located at random access memory, flash memory, read-only The storage medium of this fields such as memory, programmable read only memory or electrically erasable programmable memory, register maturation In.The storage medium is located at memory, and processor reads the information in memory, and the step of the above method is completed in conjunction with its hardware Suddenly.
The method that the electronic equipment can also carry out Fig. 1, and realize that independent process executes the device implementation shown in Fig. 1 of contract The function of example, details are not described herein for this specification embodiment.
Certainly, other than software realization mode, other realization sides are not precluded in the electronic equipment of this specification embodiment Formula, such as logical device or the mode of software and hardware combining etc., that is to say, that the executing subject of following process flow is simultaneously unlimited Due to each logic unit, it is also possible to hardware or logical device.
Embodiment three
This specification embodiment also provides a kind of computer readable storage medium, the computer-readable recording medium storage One or more programs, one or more of programs are when the electronic equipment for being included multiple application programs executes, so that institute It states electronic equipment and executes method described in embodiment one.
Wherein, the computer readable storage medium, such as read-only memory (Read-Only Memory, ROM), at random Access memory (Random Access Memory, RAM), magnetic or disk etc..
Example IV
Referring to shown in Fig. 4, the structure for executing contract device 400 for a kind of independent process that this specification embodiment provides is shown It is intended to, the device mainly includes:
Common recognition unit 402 is sent to chain element and execution unit for the block that will know together, includes transaction column in the common recognition block Table.
Execution unit 403 executes the common recognition block for receiving common recognition block, and according to the transaction List Table for including in common recognition block In transaction.
Chain element 404 for receiving common recognition block, and stores the result that the execution unit executes transaction.
Optionally, chain element 404 can be also used for the data such as height, the Hash of block in maintenance block chain.
In one possible embodiment of the application, execution unit 403 can pass through messaging bus (message bus) It is communicated with other function module (such as chain element, common recognition unit).As shown in Figure 3.
Optionally, as shown in figure 3, execution unit 403 can be following one kind:NOOP actuator;Native actuator;With Too virtual machine EVM actuator;Private actuator;Hybrid actuator.User can select according to itself different demand Different actuators are as execution unit.
Alternatively, execution unit 403 has pluggable function.
Further, the result that the chain element 404 is also used to execute the execution unit 403 transaction is stored to local Database, and the height value of block in block chain is added 1.
In a kind of possible embodiment, device 400 further includes:Authentication unit 401, for trading to Client-initiated Validity checking is carried out, wherein the user initiates transaction by JSON RPC;And Hash or mistake are returned to the user Accidentally respond;To Web broadcast New Transaction.
Wherein, the network floods New Transaction to other nodes, after other described nodes feed back New Transaction, to the net Network floods New Transaction.Authentication unit 401 is also used to receive the New Transaction that the network is sent.
Optionally, authentication unit 401 is also used to, and the New Transaction received to the network does validity checking;To common recognition Unit 402 is proposed;Transaction List Table is sent to common recognition unit.
The common recognition unit 402 is also used to, and according to the information that the authentication unit 401 is sent, passes through the network and institute It states other nodes to know together, forms the common recognition block reached common understanding.
In one possible implementation, device 400 further includes:Inspection unit 405, for checking execution unit 403 Implementing result.Wherein, inspection unit can be accomplished not check in current block, will execute inspection and be placed in next piece, real The implementing result of execution unit in the upper block of existing next piece of inspection.
Optionally, common recognition unit 402 is also used to, and is known together to the implementing result of execution unit 403.Implement in the application In the device that example provides, execution unit executes transaction to transaction List Table, and common recognition unit knows together to implementing result, the two lists Member uses asynchronous execution, improves the utilization rate of resource.
It should be noted that the unit module in the embodiment can execute the method in embodiment one, it is no longer superfluous herein It states.
In the method that embodiments herein provides, it will be stored and calculated traditional by execution unit and chain element It is separated in actuator, makes execution unit be merely responsible for calculating and executing transaction, chain element is responsible for store transaction, maintenance data, is reduced The coupling of trading processing process, realizes the independence of contract executive process, brings more flexible trading processing ability, mention The high producing level of computing resource.
In short, being not intended to limit this specification the foregoing is merely the preferred embodiment of this specification embodiment The protection scope of embodiment.It is all this specification embodiment spirit and principle within, made any modification, equivalent replacement, Improve etc., it should be included within the protection scope of this specification embodiment.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment The combination of equipment.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
Various embodiments are described in a progressive manner in this specification embodiment, identical phase between each embodiment As partially may refer to each other, each embodiment focuses on the differences from other embodiments.Especially for For system embodiment, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to method The part of embodiment illustrates.

Claims (10)

1. a kind of method that independent process executes contract is applied in block chain network, which is characterized in that the method includes:
Common recognition block is sent to chain element and execution unit by common recognition unit, includes transaction List Table in the common recognition block;
The execution unit executes the transaction in the common recognition block according to the transaction List Table;
The chain element stores the result that the execution unit executes the transaction.
2. the method according to claim 1, wherein the execution unit passes through messaging bus and the chain element It is communicated with the common recognition unit, the execution unit has pluggable function, and is following at least one:
NOOP actuator;Native actuator;Ether virtual machine EVM actuator;Private actuator;Hybrid actuator.
3. the method according to claim 1, wherein the common recognition unit will know together block be sent to chain element and Before execution unit, the method also includes:
Authentication unit trades to Client-initiated and carries out validity checking, wherein the user initiates to trade by JSONRPC;
The authentication unit returns to Hash or errored response to the user;
The authentication unit floods New Transaction, other described nodes pair to other nodes to Web broadcast New Transaction, the network After New Transaction feedback, New Transaction is flooded to the network, the New Transaction received is sent to the authentication unit by the network.
4. according to the method described in claim 3, it is characterized in that, the New Transaction received is sent to described test by the network After demonstrate,proving unit, the method also includes:
The New Transaction that the authentication unit receives the network does validity checking;
The authentication unit is proposed to the common recognition unit;
The authentication unit sends transaction List Table to the common recognition unit, what the common recognition unit was sent according to the authentication unit Information is known together by the network and other described nodes, forms the common recognition block reached common understanding.
5. method according to any of claims 1-4, which is characterized in that the chain element stores the execution unit Execute the transaction as a result, including:
The result for executing the transaction is sent to the chain element by the execution unit, and the chain element is by the execution unit The result for executing transaction, which is stored to local data base, and by the height value of block in block chain, adds 1.
6. according to the method described in claim 5, it is characterized in that, executing institute according to the transaction List Table in the execution unit After stating the transaction in common recognition block, the method also includes:
The result that inspection unit executes transaction to execution unit checks;Wherein, inspection unit does not check in current block, The implementing result of execution unit in a block is checked in next piece.
7. according to the method described in claim 5, it is characterized in that, executing institute according to the transaction List Table in the execution unit After stating the transaction in common recognition block, the method also includes:
The common recognition unit knows together the result that the execution unit executes transaction.
8. a kind of independent process executes the device of contract, it is applied in block chain network, which is characterized in that described device executes such as Method of any of claims 1-7.
9. a kind of electronic equipment, including:It memory, processor and is stored on the memory and can transport on the processor Capable computer program, the computer program execute such as method of any of claims 1-7 by the processor.
10. a kind of computer storage medium, including instruction, for executing computer as described in any one of claim 1-7 Method.
CN201810551464.XA 2018-05-31 2018-05-31 A kind of independent process executes the method and device of contract Pending CN108846748A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810551464.XA CN108846748A (en) 2018-05-31 2018-05-31 A kind of independent process executes the method and device of contract

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810551464.XA CN108846748A (en) 2018-05-31 2018-05-31 A kind of independent process executes the method and device of contract

Publications (1)

Publication Number Publication Date
CN108846748A true CN108846748A (en) 2018-11-20

Family

ID=64210477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810551464.XA Pending CN108846748A (en) 2018-05-31 2018-05-31 A kind of independent process executes the method and device of contract

Country Status (1)

Country Link
CN (1) CN108846748A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046991A (en) * 2018-12-12 2019-07-23 阿里巴巴集团控股有限公司 A kind of data processing method and system based on block chain intelligence contract
CN110046023A (en) * 2018-12-12 2019-07-23 阿里巴巴集团控股有限公司 A kind of data processing method and system based on block chain intelligence contract
CN110933627A (en) * 2019-11-15 2020-03-27 北京三快在线科技有限公司 Service processing method, device, equipment and storage medium
WO2020119271A1 (en) * 2018-12-13 2020-06-18 阿里巴巴集团控股有限公司 Block chain-based screen recording evidence obtaining method, system, and electronic device
CN114721832A (en) * 2022-05-12 2022-07-08 北京溪塔科技有限公司 Initialization method and device for block chain nodes

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106385319A (en) * 2016-09-29 2017-02-08 江苏通付盾科技有限公司 Verification method for information in block chain network and verification system thereof
CN106656974A (en) * 2016-10-17 2017-05-10 江苏通付盾科技有限公司 Block chain grouping consensus method and system
CN107317672A (en) * 2017-05-10 2017-11-03 广东网金控股股份有限公司 A kind of light weight terminating machine block catenary system
CN107678865A (en) * 2017-09-20 2018-02-09 中国银行股份有限公司 The verification method and system of block chain based on transaction packet
CN107959676A (en) * 2017-11-27 2018-04-24 杭州云象网络技术有限公司 A kind of back end hot-plug method for supporting block chain technology secrecy system
CN108011709A (en) * 2016-12-27 2018-05-08 北京量子保科技有限公司 A kind of data trade method based on block chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106385319A (en) * 2016-09-29 2017-02-08 江苏通付盾科技有限公司 Verification method for information in block chain network and verification system thereof
CN106656974A (en) * 2016-10-17 2017-05-10 江苏通付盾科技有限公司 Block chain grouping consensus method and system
CN108011709A (en) * 2016-12-27 2018-05-08 北京量子保科技有限公司 A kind of data trade method based on block chain
CN107317672A (en) * 2017-05-10 2017-11-03 广东网金控股股份有限公司 A kind of light weight terminating machine block catenary system
CN107678865A (en) * 2017-09-20 2018-02-09 中国银行股份有限公司 The verification method and system of block chain based on transaction packet
CN107959676A (en) * 2017-11-27 2018-04-24 杭州云象网络技术有限公司 A kind of back end hot-plug method for supporting block chain technology secrecy system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
MANDY: "白话区块链之谢晗剑谈CITA:目前唯一一个适合云计算的区块链系统", 《共享财经》 *
互联网: "秘猿科技:面向企业级用户,他们认为开源是一种信任", 《区块网》 *
高瑾: "引领区块链开源技术发展 秘猿企业级产品CITA发布开源版本", 《计算机与网络》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046991A (en) * 2018-12-12 2019-07-23 阿里巴巴集团控股有限公司 A kind of data processing method and system based on block chain intelligence contract
CN110046023A (en) * 2018-12-12 2019-07-23 阿里巴巴集团控股有限公司 A kind of data processing method and system based on block chain intelligence contract
TWI699718B (en) * 2018-12-12 2020-07-21 香港商阿里巴巴集團服務有限公司 Data processing method based on block chain smart contract, block chain system and smart contract compiler and computer equipment
CN110046991B (en) * 2018-12-12 2020-08-11 阿里巴巴集团控股有限公司 Data processing method and system based on intelligent contract of block chain
TWI741373B (en) * 2018-12-12 2021-10-01 開曼群島商創新先進技術有限公司 Data processing method and system based on blockchain smart contract
US11321710B2 (en) 2018-12-12 2022-05-03 Advanced New Technologies Co., Ltd. Blockchain smart contract-based data processing
US11327959B2 (en) 2018-12-12 2022-05-10 Advanced New Technologies Co., Ltd. Data processing methods and systems based on blockchain smart contract
WO2020119271A1 (en) * 2018-12-13 2020-06-18 阿里巴巴集团控股有限公司 Block chain-based screen recording evidence obtaining method, system, and electronic device
CN110933627A (en) * 2019-11-15 2020-03-27 北京三快在线科技有限公司 Service processing method, device, equipment and storage medium
CN114721832A (en) * 2022-05-12 2022-07-08 北京溪塔科技有限公司 Initialization method and device for block chain nodes

Similar Documents

Publication Publication Date Title
CN108846748A (en) A kind of independent process executes the method and device of contract
CN110471984B (en) Service processing method and device based on block chain and electronic equipment
TWI679592B (en) Method and device for generating risk control rules
CN107015882B (en) A kind of block data method of calibration and device
CN112184222B (en) Service processing method, device and equipment based on block chain
CN107196989B (en) A kind of processing method and processing device of service request
CN109064171A (en) A kind of method, apparatus and electronic system of block chain parallel transaction
CN108648078A (en) A kind of transaction preprocess method, device and electronic equipment
CN109391480A (en) A kind of date storage method, device and electronic equipment
CN108985742B (en) Transaction processing method and device and block chain system
CN108364223A (en) A kind of method and device of Data Audit
CN105786911B (en) Using the method for calibration and device of data
CN108846749A (en) A kind of sliced transaction execution system and method based on block chain technology
CN110020859A (en) A kind of block chain common recognition method, apparatus and electronic equipment executed parallel
CN111866008A (en) Service data processing method, service processing method and equipment
CN104346365A (en) Device and method for determining specific service associated logs
TWI686712B (en) Data statistic method, device and equipment based on obfuscation circuit
CN108550038A (en) A kind of data dissemination system and method applied to block chain
EP3961453B1 (en) Method and apparatus for invoking smart contract, electronic device, and storage medium
CN110012100A (en) A kind of the block chain common recognition method, apparatus and electronic equipment of bandwidth optimization
CN109587131A (en) Data communications method and device between a kind of block chain network
CN110033371A (en) A kind of account checking method and device based on transaction in assets
TWI686758B (en) Data request processing, inquiry message processing method, device and equipment
CN108334340A (en) A kind of Cross-environment data communications method, device and system
CN110263582A (en) A kind of account checking method based on alliance's chain, device and electronic equipment

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
TA01 Transfer of patent application right

Effective date of registration: 20200313

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181120

RJ01 Rejection of invention patent application after publication