CN109376541A - For running the method, apparatus and computer storage medium of intelligent contract - Google Patents

For running the method, apparatus and computer storage medium of intelligent contract Download PDF

Info

Publication number
CN109376541A
CN109376541A CN201811105842.8A CN201811105842A CN109376541A CN 109376541 A CN109376541 A CN 109376541A CN 201811105842 A CN201811105842 A CN 201811105842A CN 109376541 A CN109376541 A CN 109376541A
Authority
CN
China
Prior art keywords
intelligent contract
call request
contract
intelligence
block chain
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
CN201811105842.8A
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.)
Shanghai Point Information Technology Co Ltd
Original Assignee
Shanghai Point Information 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 Shanghai Point Information Technology Co Ltd filed Critical Shanghai Point Information Technology Co Ltd
Priority to CN201811105842.8A priority Critical patent/CN109376541A/en
Publication of CN109376541A publication Critical patent/CN109376541A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/606Protecting data by securing the transmission between two devices or processes
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

This application provides the method and apparatus and computer storage medium for running intelligent contract.It can be applied to block chain technical field according to method provided herein.According to the application, method in block chain network for running intelligent contract includes: the call request for the intelligent contract for receiving and being sent by client, wherein, the call request includes the intelligent Contract ID of the intelligent contract, and wherein, the intelligent Contract ID is obtained based on coded graphics associated with the intelligence contract;And the intelligent contract is run by intelligent contract runtime engine associated with the intelligence contract.

Description

For running the method, apparatus and computer storage medium of intelligent contract
Technical field
Present invention relates generally to information technology field, more particularly, to for running intelligent contract method, be used for The device of the intelligent contract of operation and corresponding computer storage medium.
Background technique
Block chain (Blockchain) has obtained extensive discussion and research as the emerging technology risen in recent years.Area Block chain is with the intelligent peer-to-peer network of distributed data base identification, propagation and information-recording, also referred to as value internet.Block Chain technology includes being guaranteed transmission and access safety etc. with block structure storing data using cryptography, it is consistent can be realized data Property storage, tamper-resistant, the technical system for going to center.
Intelligent contract is a kind of computer protocol for being intended to propagate, verify or execute in a manner of information-based contract, can Show as the computer program accurately run on block chain.User can be traded by using intelligent contract, shared data, Establish trust and by the characteristic of block chain technology ensure the storages of data, reading, execute whole process it is transparent it is traceable, can not It distorts.
Summary of the invention
Embodiments herein is related to method, apparatus and corresponding computer storage Jie for running intelligent contract Matter.According to an embodiment of the present application, it is realized in the client and chain under chain using coded graphics associated with intelligent contract The docking of business thereby enhances the ease for use of intelligent contract, and enhances the interaction between client and block chain network Safety.
The first aspect of the application is related to a kind of method in block chain network for running intelligent contract.This method packet It includes: receiving the call request for the intelligent contract sent by client, wherein the call request includes the intelligence The intelligent Contract ID of contract, and wherein, the intelligence Contract ID is based on coding associated with the intelligence contract Figure obtains;And the intelligent contract is run by intelligent contract runtime engine associated with the intelligence contract.
The second aspect of the application is related to a kind of method for running intelligent contract.This method comprises: identification code pattern Shape, the coded graphics are associated with the intelligent contract;It is obtained according to the coded graphics for calling the intelligent contract Recalls information, the recalls information includes the ground of intelligent Contract ID and block chain node associated with the intelligent contract Location;Based on the recalls information, the call request to the intelligent contract is generated, the call request includes the intelligent contract Mark;And according to the address, the call request is sent to block chain node associated with the intelligence contract.This Shen The third aspect please is related to a kind of for running the device of intelligent contract, and described device includes: processor;And memory, coupling It is bonded to the processor and is stored with instruction, it is following that described instruction executes the processor Movement: the call request for the intelligent contract sent by client is received, wherein the call request includes the intelligence The intelligent Contract ID of energy contract, and wherein, the intelligence Contract ID is based on volume associated with the intelligence contract Code figure obtains;And the intelligence is run by intelligent contract runtime engine associated with the intelligence contract and is closed About.
The fourth aspect of the application is related to a kind of for running the device of intelligent contract, and described device includes: processor;With Memory is coupled to the processor and is stored with instruction, and described instruction makes described when being executed by the processor It manages device and executes following movement: identification coded graphics, the coded graphics is associated with the intelligent contract;According to the code pattern Shape obtains the recalls information for calling the intelligent contract, the recalls information include intelligent Contract ID and with the intelligence Contract associated block chain address of node;Based on the recalls information, the call request to the intelligent contract, institute are generated Stating call request includes the intelligent Contract ID;And according to the address, to block associated with the intelligence contract Chain node sends the call request.
According to the 5th of the application the aspect, a kind of computer readable storage medium is proposed.The computer-readable storage medium Matter has the computer executable instructions being stored thereon.The computer executable instructions make described when running in a device Device executes method or process according to an embodiment of the present application.
Detailed description of the invention
It refers to the following detailed description in conjunction with the accompanying drawings, the feature, advantage and other aspects of present embodiments will become Must be more obvious, show several embodiments of the application by way of example rather than limitation herein, in the accompanying drawings:
Fig. 1 shows the configuration diagram of system according to an embodiment of the present application;
Fig. 2 shows the schematic diagrames of block chain node according to an embodiment of the present application;
Fig. 3 is to show the flow chart of the method for running intelligent contract of one embodiment according to the application;
Fig. 4 shows the flow chart of the method for running intelligent contract of another embodiment according to the application;
Fig. 5 is to show the schematic diagram of the device for running intelligent contract of one embodiment according to the application;
Fig. 6 shows the schematic diagram of the device for running intelligent contract of another embodiment according to the application;With And
Fig. 7 shows the schematic block diagram of the equipment of the method for implementation basis embodiments herein.
Specific embodiment
Each exemplary embodiment of the application is described in detail below with reference to attached drawing.Although be described below illustrative methods, Device includes the software and/or firmware executed in other components on hardware, it should be noted that these examples are only illustrative , it should not see and be restricted.For example, it is contemplated that within hardware exclusively, in software exclusively or at any group of hardware and software Any or all hardware, software and fastener components can be implemented in conjunction.Therefore, although illustrative methods and device are described below, But those skilled in the art should be easily understood that, the example provided is not only for these method and apparatus modes of realization.
In addition, flowcharts and block diagrams in the drawings show according to the method and systems of the various embodiments of the application can The architecture, function and operation being able to achieve.It should be noted that function marked in the box can also be according to different from attached drawing The sequence marked occurs.For example, two boxes succeedingly indicated can actually be basically executed in parallel or they have When can also execute in a reverse order, this depend on related function.It should also be noted that flow chart and/or Function as defined in execution or behaviour can be used in the combination of each box in block diagram and the box in flowchart and or block diagram The dedicated hardware based system made is realized, or the combination of specialized hardware and computer instruction can be used to realize.
Before the specific embodiment according to the application is discussed in detail, first to some terms used in the application into Row explanation.
In this application, term " intelligent contract sandbox " refers to the running environment of intelligent contract.The running environment is complete It is isolation or partially isolated.Intelligent contract in the running environment has outside without access authority or only limited Access authority.In some embodiments, intelligent contract sandbox is intelligent contract container or virtual machine.
In this application, term " intelligent contract runtime engine " refer to be located at it is except intelligent contract sandbox, for running The engine program of intelligent contract in intelligent contract sandbox.
In this application, term " intelligent Contract ID " refers to unique identification of the intelligent contract on block chain, according to intelligence Energy Contract ID can uniquely identify intelligent contract.In some embodiments, intelligent Contract ID include intelligence and about ID and Intelligent contract version.
In this application, term " block chain address of node associated with intelligent contract " refer in block chain network with Intelligent contract relevant block chain address of node to be called.This address can be random, or can be certain Rule, or it is also possible to fixation.
Currently, external interface is provided generally by intelligent contract in block chain network.Client under chain is logical It often needs first to access block chain network by intelligent contract again via switched service, the client wants thereby resulted under chain are wanted Business on butt chain then needs to carry out block chain network additional deployment and additional switch over operation.
Generally, embodiments herein is related to a kind of scheme for running intelligent contract, client under chain with intelligence The associated coded graphics of contract obtains recalls information, and generates the call request for intelligent contract according to the recalls information, Then call request is sent to the block chain node of intelligent contract.Block chain node is run based on the call request received Intelligent contract.It can be seen that client can directly dock base by the service entrance under chain according to the technical solution of the application In the business of block chain.Therefore, according to the application, the ease for use of intelligent contract can be enhanced, promote user experience, and enhance The safety of interaction between client and block chain network.
In the following, each embodiment of the application is described in detail in conjunction with attached drawing.
Referring now to Fig. 1, it illustrates system architectures 100 according to an embodiment of the present application.As shown in Figure 1, system architecture 100 include client 110 and block chain network 120.Block chain network 120 includes multiple block chain nodes, such as block chain link Point 130,140,150,160,170,180 and 190.It is run on one or more block chain nodes in these block chain nodes Intelligent contract.
In some embodiments, the communication in system architecture 100 can be based on any wired and or wireless network, packet Include but be not limited to internet, wide area network, Metropolitan Area Network (MAN), local area network, Virtual Private Network (VPN), wireless network, etc..
Fig. 2 is the block chain node 200 shown according to an embodiment of the present application.It should be appreciated that the block chain link in Fig. 1 Any one block chain node in point 130,140,150,160,170,180 and 190 can be with the node of block chain shown in Fig. 2 Mode as 200 is realized.As shown in Fig. 2, block chain node 200 is including intelligent contract sandbox 210 and for running intelligence The intelligent contract runtime engine 220 of intelligent contract in contract sandbox 210.Intelligent contract is closed in intelligent contract sandbox 210 In and run in closed intelligent contract sandbox 210.Outside cannot directly be handed over the intelligent contract in intelligent contract sandbox 210 Mutually, it but is interacted by intelligent contract runtime engine 220 with intelligent contract.Intelligent contract runtime engine 220 may include testing Module 222 is demonstrate,proved, the authentication module 222 is for verifying the request for being sent to block chain node 200.
In cloud application environment, block chain node can correspond to virtual machine instance, run in virtual machine instance corresponding Node application program.
Hereinafter, being described according to an embodiment of the present application in conjunction with Fig. 1 and Fig. 2.
Referring to Fig. 1 and Fig. 2, it at client 110, obtains from coded graphics P associated with intelligent contract for calling The recalls information of intelligent contract.The recalls information includes block chain address of node associated with intelligent contract and intelligent contract Intelligent Contract ID.
Then, at client 110, call request is generated according to acquired recalls information, also, based on acquired Call request is sent to corresponding block chain node by the address in recalls information, for example, block chain node 150.Call request Including intelligent Contract ID.In some embodiments, recalls information further includes suction parameter relevant to intelligent contract, and calling is asked Asking further includes the suction parameter for being directed to intelligent contract.At client 110, is generated and called based on the suction parameter in recalls information Suction parameter in request.
In some embodiments, the suction parameter in recalls information can be used in the suction parameter in call request.One In a little embodiments, the suction parameter in call request can be by carrying out data processing (example to the suction parameter in recalls information Such as, format is converted) and obtain.For example, coded graphics P is the coded graphics for the query function in the area A, then in client The suction parameter in recalls information obtained at 110 by coded image P includes " inquiry _ area A ".At client 110, base " inquiry _ A area " in recalls information and the suction parameter for generating call request, the suction parameter of call request can be direct " inquiry _ area A " is used, the parameter " inquiry _ area A " converted through format is also possible to.
In some embodiments, coded graphics P is related to reading the function of data from block chain network 120, then passes through coding The suction parameter in recalls information that figure P is obtained includes data information relevant to data to be read.For example, coded graphics P is related to reading data information relevant to the bonus of insurance business, then the suction parameter of recalls information includes to be directed to the insurance The data informations such as the number of policy of business and bonus time.In some embodiments, coded graphics P is related to block chain network 120 The function of data is written, then the suction parameter in recalls information obtained by coded graphics P includes and data phase to be written The data information of pass.For example, coded graphics P is related to write-in data information relevant to logistics business, then what recalls information was asked enters Mouth parameter includes to reach the data informations such as the time of each logistics intermediate stations for the logistics business cargo.
In some embodiments, it signs at client 110 to call request, and signed call request is sent out It is sent to the block chain node 150 of intelligent contract.For example, there is private key and certificate file, the certificate file at client 110 Public key comprising being directed to private key.It at client 110, is signed with private key, while certificate file is also contained in signature the inside. In this way, block chain node 150 can obtain public key from the certificate file of signature, to verify to signature.
The block chain node 150 of intelligent contract runs intelligent conjunction based on call request after receiving call request About, the result information for indicating to run the result of intelligent contract is generated, and result information generated is sent to client 110. In some embodiments, call request is related to reading data, then the result for running intelligent contract is the data of request reading.One In a little embodiments, call request is related to that data are written, then runs the result of intelligent contract as data write-in.Client 110 is shown The received operation result information of institute, for example, " reading successfully " or " being written successfully " etc..
In some embodiments, the block chain node 150 of intelligent contract is before running intelligent contract, to signed tune It is verified with the signature of request.When the signature of call request is verified as effective, then block chain node 150 runs intelligent conjunction About.For example, for the call request for reading data, the prespecified object that can read data, then when client 110 meets When to the regulation of the object, the signature of call request is verified as effectively, conversely, the signature of call request is verified as in vain.
In some embodiments, at client 110, recalls information is obtained by way of scanning encoding figure P.It compiles Code figure P is, for example, any of bar code, two dimensional code, three-dimension code and four-dimensional code.Certainly, coded graphics P is also possible to be suitble to The pattern of the other forms of concrete application scene.For example, coded graphics P is the coded graphics for being directed to specific transactions and customizing.
In some embodiments, client 110 can be the single smart electronics with scanning function and processing function and set It is standby, it is also possible to two or more electronic equipments or their combination.For example, client 110 include scanner and with this The computer of scanner connection.
In some embodiments, block chain address of node associated with intelligent contract includes the ground for intelligent contract Location list.The address list includes one or more block chains address of node associated with intelligent contract.In some implementations In example, address list includes a block chain address of node, is equipped with intelligent contract to be called on the block chain node.? In some embodiments, address list includes multiple block chains address of node associated with intelligent contract.For example, these blocks Chain node is all associated with intelligent contract to be called, and the function of these block chain nodes is different.For the intelligence contract, According to the different function of these block chain nodes, a block chain node transmission calling is asked thereto every time at client 110 It asks.
Fig. 3 shows the method 300 for being used to run intelligent contract of one embodiment according to the application.It should be appreciated that Method 300 for example can be shown in Fig. 1 block chain network 120 in block chain node at execute.
In the step 310, it at the block chain node of intelligent contract (for example, block chain node 150), receives for intelligence The call request of contract.Call request includes: the intelligent Contract ID of intelligent contract and the suction parameter for intelligent phase.Intelligence Energy Contract ID is obtained based on coded graphics P associated with intelligent contract.Coded graphics P is, for example, bar code, two dimension Any of code, three-dimension code and four-dimensional code.In some embodiments, suction parameter is obtained based on coded graphics P.
In step 320, pass through the intelligent engine-operated intelligent contract of contract associated with intelligent contract.
In some embodiments, call request is signed call request.The block chain node 150 of intelligent contract is verified The validity of the signature of call request, and when signature is verified as effective, it is closed by intelligence associated with intelligent contract The about runtime engine operation intelligent contract.
In some embodiments, method 300 further include: block chain node 150 generates the result for indicating to run intelligent contract Result information;And information is returned the result to client 110.
Fig. 4 shows the method 400 for being used to run intelligent contract of another embodiment according to the application.It should manage It solves, is executed at the client 110 that method 400 for example can be shown in Fig. 1.
In step 410, at client 110, identify that coded graphics, the coded graphics are associated with intelligent contract.? In some embodiments, coded graphics P is any of bar code, two dimensional code, three-dimension code and four-dimensional code.
At step 420, the recalls information for calling intelligent contract is obtained according to coded graphics, which includes The intelligent Contract ID of block chain address of node associated with intelligent contract and intelligent contract.
In step 430, at client 110, based on acquired recalls information, the calling of intelligent contract is asked in generation It asks.In some embodiments, call request includes intelligent Contract ID and the suction parameter for the intelligence contract.In some realities It applies in example, recalls information further includes suction parameter associated with intelligent contract, and at client 110, is believed based on calling The suction parameter of breath generates the suction parameter of call request.
In step 440, at client 110, based on the address in recalls information, to area associated with intelligent contract Block chain node sends call request generated.
In some embodiments, method 400 further include: before sending call request, at client 110, to calling Request is signed, and sends signed call request to block chain node associated with intelligent contract.
In some embodiments, method 400 further include: receive the result information for being directed to call request;And display is connect The result information of receipts.
Fig. 5 schematically shows the device 500 for being used to run intelligent contract according to an embodiment of the present application.It should manage Method 300 as described in any embodiment in Fig. 3 may be implemented in solution, device 500.Device 500 may include 510 He of processor It is coupled to the memory 520 of processor 510.
Memory 520 is stored with instruction.Instruction makes processor 510 execute following movement when being executed by processor 510: Receive the call request for the intelligent contract sent by client, wherein the call request includes that the intelligence is closed Intelligent Contract ID about, and wherein, the intelligence Contract ID is based on code pattern associated with the intelligence contract Shape obtains;And the intelligent contract is run by intelligent contract runtime engine associated with the intelligence contract.
In some embodiments, the call request further includes the suction parameter for the intelligent contract, the entrance Parameter is obtained based on the coded graphics.
In some embodiments, call request is signed call request, and by associated with intelligent contract It includes: the validity for verifying the signature of call request that intelligent contract runtime engine, which runs intelligent contract,;And when signature is verified When being effective, the intelligent contract is run by intelligent contract runtime engine associated with intelligent contract.
In some embodiments, instruction also makes processor 510 execute following movement when being executed by processor 510: raw At the result information for the result for indicating to run intelligent contract;And return to the result information.
In some embodiments, coded graphics is any of bar code, two dimensional code, three-dimension code and four-dimensional code.
It should be appreciated that device 500 according to an embodiment of the present application can in hardware or special circuit, software, firmware, patrol Volume, or any combination thereof in implement.Some aspects can be implemented within hardware, and other aspect can by controller, Implement in the firmware or software that microprocessor or other calculating equipment execute.
In some embodiments, processor 510 according to an embodiment of the present application can use general processor, digital signal Processor (DSP), specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device are divided Any combination of door or transistor logic, discrete hardware components etc. is found to realize.General processor can be microprocessor, or Person, processor are also possible to any common processor, controller, microcontroller or state machine.Processor also may be implemented For calculate equipment combination, for example, the combination of DSP and microprocessor, multi-microprocessor, one or more microprocessors with The combination or any other such structure of DSP core.
In some embodiments, memory 520 according to an embodiment of the present application can use portable computer diskette, hard Disk, random access memories (RAM), read-only memory (ROM), Erasable Programmable Read Only Memory EPROM (EPROM or flash memory), light Store equipment, magnetic storage apparatus, cloud storage or its any appropriate combination are realized.
In some embodiments, device 500 according to an embodiment of the present application passes through communication interface (not shown) and outside It interacts.It should be appreciated that device 600 according to an embodiment of the present application can be with by the communication between communication interface and outside Based on any wired and or wireless network, including but not limited to internet, wide area network, Metropolitan Area Network (MAN), local area network, Virtual Private Network Network (VPN), wireless network, etc..
Fig. 6 schematically shows the device 600 for being used to run intelligent contract according to an embodiment of the present application.It should manage Method 400 as described in any embodiment in Fig. 4 for example may be implemented in solution, device 600.Device 600 may include processor 610 and it is coupled to the memory 620 of processor 610.
Memory 620 is stored with instruction.Instruction makes processor 610 execute following movement when being executed by processor 610: Identify that coded graphics, the coded graphics are associated with the intelligent contract;It is obtained according to the coded graphics for calling The recalls information of intelligent contract is stated, the recalls information includes intelligent Contract ID and block associated with the intelligence contract Chain address of node;Based on the recalls information, the call request to the intelligent contract is generated, the call request includes institute State intelligent Contract ID;And according to the address, the tune is sent to block chain node associated with the intelligence contract With request.
In some embodiments, the recalls information further includes suction parameter relevant to the intelligent contract, also, institute Stating call request further includes the suction parameter based on the suction parameter in the recalls information.
In some embodiments, instruction also makes processor 610 execute following movement when being executed by processor 610: right Suction parameter in the recalls information carries out data processing, to obtain the suction parameter of the call request.
In some embodiments, instruction also makes processor 610 execute following movement when being executed by processor 610: It before sending call request, signs to call request, also, sending call request includes: to send signed calling to ask It asks.
In some embodiments, instruction also makes processor 610 execute following movement when being executed by processor 610: connecing The result information narrowed to call request;And the received result information of display institute.
In some embodiments, coded graphics is any of bar code, two dimensional code, three-dimension code and four-dimensional code.
It should be appreciated that device 600 according to an embodiment of the present application can in hardware or special circuit, software, firmware, patrol Volume, or any combination thereof in implement.Some aspects can be implemented within hardware, and other aspect can by controller, Implement in the firmware or software that microprocessor or other calculating equipment execute.
In some embodiments, processor 610 according to an embodiment of the present application can use general processor, digital signal Processor (DSP), specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device are divided Any combination of door or transistor logic, discrete hardware components etc. is found to realize.General processor can be microprocessor, or Person, processor are also possible to any common processor, controller, microcontroller or state machine.Processor also may be implemented For calculate equipment combination, for example, the combination of DSP and microprocessor, multi-microprocessor, one or more microprocessors with The combination or any other such structure of DSP core.
In some embodiments, memory 620 according to an embodiment of the present application can use portable computer diskette, hard Disk, random access memories (RAM), read-only memory (ROM), Erasable Programmable Read Only Memory EPROM (EPROM or flash memory), light Store equipment, magnetic storage apparatus, cloud storage or its any appropriate combination are realized.
In some embodiments, device 600 according to an embodiment of the present application passes through communication interface (not shown) and outside It interacts.It should be appreciated that device 600 according to an embodiment of the present application can be with by the communication between communication interface and outside Based on any wired and or wireless network, including but not limited to internet, wide area network, Metropolitan Area Network (MAN), local area network, Virtual Private Network Network (VPN), wireless network, etc..
Fig. 7 illustrates the schematic block diagram that can be used to implement the electronic equipment 700 of embodiments herein.It should manage Solution, electronic equipment 700 can be to any module in either block chain node described in Fig. 1 or block chain node.Such as Fig. 7 institute Show, equipment 700 includes central processing unit (CPU) 701 (such as processor), can be according to being stored in read-only memory (ROM) computer program instructions in 702 or the meter in random access storage device (RAM) 703 is loaded into from storage unit 708 Calculation machine program instruction, to execute various movements appropriate and processing.In RAM703, can also store equipment 700 operate it is required Various programs and data.CPU 701, ROM 702 and RAM 703 are connected with each other by bus 704.Input/output (I/O) connects Mouth 705 is also connected to bus 704.
Multiple components in equipment 700 are connected to I/O interface 705, comprising: input unit 706, such as keyboard, mouse etc.; Output unit 707, such as various types of displays, loudspeaker etc.;Storage unit 708, such as disk, CD etc.;And it is logical Believe unit 709, such as network interface card, modem, wireless communication transceiver etc..Communication unit 709 allows equipment 700 by such as The computer network of internet and/or various telecommunication networks exchange information/data with other equipment.
Various methods described above, such as method 300 and 400 can be executed by processing unit 701.For example, some In embodiment, method 300 and 400 can be implemented as computer software programs, be tangibly embodied in machine readable media, example Such as storage unit 708.In some embodiments, some or all of of computer program can be via ROM 702 and/or communication Unit 709 and be loaded into and/or be installed in equipment 700.When computer program is loaded into RAM 703 and is held by CPU 701 When row, one or more movements or the step in method as described above 300 and 400 can be executed.
Computer program product may include computer readable storage medium, containing for executing each of the application The computer-readable program instructions of aspect.Computer readable storage medium, which can be, can keep and store by instruction execution equipment The tangible device of the instruction used.Computer readable storage medium for example can be-- but be not limited to-- storage device electric, Magnetic storage apparatus, light storage device, electric magnetic storage apparatus, semiconductor memory apparatus or above-mentioned any appropriate combination.Meter The more specific example (non exhaustive list) of calculation machine readable storage medium storing program for executing includes: portable computer diskette, hard disk, arbitrary access Memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), static random-access Memory (SRAM), Portable compressed disk read-only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, machine Tool encoding device, the punch card for being for example stored thereon with instruction or groove internal projection structure and above-mentioned any appropriate group It closes.Computer readable storage medium used herein above is not interpreted instantaneous signal itself, such as radio wave or other The electromagnetic wave of Free propagation, the electromagnetic wave propagated by waveguide or other transmission mediums are (for example, pass through the light arteries and veins of fiber optic cables Punching) or pass through electric wire transmit electric signal.
Computer-readable program instructions described herein can be downloaded to from computer readable storage medium it is each calculate/ Processing equipment, or outer computer or outer is downloaded to by network, such as internet, local area network, wide area network and/or wireless network Portion stores equipment.Network may include copper transmission cable, optical fiber transmission, wireless transmission, router, firewall, interchanger, gateway Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment are received from network to be counted Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for the meter being stored in each calculating/processing equipment In calculation machine readable storage medium storing program for executing.
Computer program instructions for executing teachings herein operation can be assembly instruction, instruction set architecture (ISA) Instruction, machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programmings The source code or object code that any combination of language is write, the programming language include the programming language-of object-oriented such as Java, C++ etc., and conventional procedural programming languages-such as " C " language or similar programming language.Computer-readable journey Sequence instruction can be executed fully on the user computer, partly execute on the user computer, be independent soft as one Part packet executes, part executes on the remote computer or completely in remote computer or service on the user computer for part It is executed on device.In situations involving remote computers, remote computer can include local by the network-of any kind Net (LAN) or wide area network (WAN)-are connected to subscriber computer, or, it may be connected to outer computer (such as using because of spy Service supplier is netted to connect by internet).In some embodiments, pass through the state using computer-readable program instructions Information carrys out personalized customization electronic circuit, such as programmable logic circuit, field programmable gate array (FPGA) or programmable patrols It collects array (PLA), which can execute computer-readable program instructions, to realize each side of teachings herein Face.
It should be appreciated that equipment according to an embodiment of the present application can use various modes to realize.For example, in certain realities It applies in example, which can be realized by the combination of hardware, software or software and hardware.Wherein, hardware components can benefit It is realized with special logic;Software section then can store in memory, by instruction execution system appropriate, such as micro process Device or special designs hardware execute.It will be understood by those skilled in the art that above-mentioned method and system can be used It computer executable instructions and/or is included in the processor control code to realize, such as is situated between in such as disk, optical disk carrier It is provided in the data medium of the programmable memory of matter, such as read-only memory or such as optics or electrical signal carrier Such code.The equipment and device of embodiments herein not only can by such as ultra large scale integrated circuit or gate array, The semiconductor or field programmable gate array of logic chip, transistor etc., programmable logic device etc. are compiled The hardware circuit of journey hardware device is realized, can also be used such as software realization as performed by various types of processors, may be used also It is realized with combination by above-mentioned hardware circuit and software.
It should be noted that although being referred to several modules or submodule of equipment in the detailed description above, it is this Division is only exemplary rather than enforceable.In fact, according to an embodiment of the present application, two or more above-described moulds The feature and function of block can embody in a module.Conversely, the feature and function of an above-described module can be with Further division is to be embodied by multiple modules.
Alternative embodiment above is only an example of the present application, the embodiment being not intended to limit this application, for For those skilled in the art, embodiments herein can have various modifications and variations.It is all in embodiments herein Within spirit and principle, made any modification, equivalence replacement, improvement etc. should be included in the protection of embodiments herein Within the scope of.
Although describing embodiments herein by reference to several specific embodiments, it should be appreciated that, the application's Embodiment is not limited to disclosed specific embodiment.Embodiments herein be intended to cover appended claims spirit and Included various modifications and equivalent arrangements in range.The range of the attached claims meets broadest explanation, to wrap Containing all such modifications and equivalent structure and function.

Claims (25)

1. a kind of method in block chain network for running intelligent contract, which comprises
Receive the call request for the intelligent contract sent by client, wherein the call request includes the intelligence The intelligent Contract ID of energy contract, and wherein, the intelligence Contract ID is based on volume associated with the intelligence contract Code figure obtains;And
The intelligent contract is run by intelligent contract runtime engine associated with the intelligence contract.
2. according to method described in right 1, wherein the call request further includes the suction parameter for the intelligent contract, The suction parameter is obtained based on the coded graphics.
3. according to the method described in claim 1, wherein, the call request is signed call request, and by with The associated intelligent contract runtime engine of intelligence contract runs the intelligent contract and includes:
Verify the validity of the signature of the call request;And
When the signature is verified as effective, institute is run by intelligent contract runtime engine associated with the intelligence contract State intelligent contract.
4. method according to any one of claim 1-3, wherein the method also includes:
Generate the result information for indicating the result of the operation intelligent contract;And
Return to the result information.
5. according to the method described in claim 1, wherein, the coded graphics is bar code, two dimensional code, three-dimension code and four-dimensional code Any of.
6. a kind of method for running intelligent contract, which comprises
Identify that coded graphics, the coded graphics are associated with the intelligent contract;
The recalls information for calling the intelligent contract is obtained according to the coded graphics, the recalls information includes the intelligence Can contract intelligent Contract ID and with the intelligent contract associated block chain address of node;
Based on the recalls information, the call request to the intelligent contract is generated, the call request includes that the intelligence is closed About identify;And
According to the address, the call request is sent to block chain node associated with the intelligence contract.
7. according to the method described in claim 6, wherein, the recalls information further includes entrance relevant to the intelligence contract Parameter, also, the call request further includes the suction parameter based on the suction parameter in the recalls information.
8. according to the method described in claim 7, wherein, the method also includes:
Data processing is carried out to the suction parameter in the recalls information, to obtain the suction parameter of the call request.
9. according to the method described in claim 6, wherein, the method also includes: before sending the call request, to institute It states call request to sign, and wherein, sending the call request includes: to send signed call request.
10. according to the method described in claim 6, wherein, the method also includes:
Receive the result information for being directed to the call request;And
The received result information of display institute.
11. method according to claim 6, wherein the coded graphics is bar code, two dimensional code, three-dimension code and four-dimensional code Any of.
12. according to the method described in claim 6, wherein, the block chain address of node associated with intelligent contract is wrapped The address list for the intelligent contract is included, the address list includes one or more associated with the intelligence contract Block chain address of node.
13. a kind of for running the device of intelligent contract, described device includes:
Processor;
Memory is coupled to the processor and is stored with instruction, and described instruction makes institute when being executed by the processor It states processor and executes following movement:
Receive the call request for the intelligent contract sent by client, wherein the call request includes the intelligence The intelligent Contract ID of energy contract, and wherein, the intelligence Contract ID is based on volume associated with the intelligence contract Code figure obtains;And
The intelligent contract is run by intelligent contract runtime engine associated with the intelligence contract.
14. device according to claim 13, wherein the call request further includes the entrance for the intelligent contract Parameter, the suction parameter are obtained based on the coded graphics.
15. device according to claim 13, wherein the call request is signed call request, and is passed through Intelligent contract runtime engine associated with the intelligence contract runs the intelligent contract
Verify the validity of the signature of the call request;And
When the signature is verified as effective, institute is run by intelligent contract runtime engine associated with the intelligence contract State intelligent contract.
16. device described in any one of 3-15 according to claim 1, wherein the step further include:
Generate the result information for indicating the result of the operation intelligent contract;And
Return to the result information.
17. device according to claim 13, wherein the coded graphics is bar code, two dimensional code, three-dimension code and the four-dimension Any of code.
18. a kind of for running the device of intelligent contract, described device includes:
Processor;
Memory is coupled to the processor and is stored with instruction, and described instruction makes institute when being executed by the processor It states processor and executes following movement:
Identify that coded graphics, the coded graphics are associated with the intelligent contract;
The recalls information for calling the intelligent contract is obtained according to the coded graphics, the recalls information includes that intelligence is closed About mark and with the intelligent contract associated block chain address of node;
Based on the recalls information, the call request to the intelligent contract is generated, the call request includes that the intelligence is closed About identify;And
According to the address, the call request is sent to block chain node associated with the intelligence contract.
19. device according to claim 18, wherein the call request include: institute's recalls information further include with The relevant suction parameter of the intelligence contract, also, the call request further includes the suction parameter based on the recalls information Suction parameter.
20. device according to claim 19, wherein the step further include: to the suction parameter of the recalls information Data processing is carried out, to obtain the suction parameter of the call request.
21. 8 described device according to claim 1, wherein the step further include: before sending the call request, to institute It states call request to sign, and wherein, sending the call request includes: to send signed call request.
22. device according to claim 18, wherein the step further include:
Receive the result information for being directed to the call request;And
The received result information of display institute.
23. 8 described device according to claim 1, wherein the coded graphics is bar code, two dimensional code, three-dimension code and four-dimensional code Any of.
24. device according to claim 18, wherein the block chain address of node packet associated with intelligent contract The address list for the intelligent contract is included, the address list includes one or more associated with the intelligence contract Block chain address of node.
25. a kind of computer readable storage medium has the computer executable instructions being stored thereon, the computer can Described device is made to execute side described in any one of -5 or 6-12 according to claim 1 when executing instruction operation in a device Method.
CN201811105842.8A 2018-09-21 2018-09-21 For running the method, apparatus and computer storage medium of intelligent contract Pending CN109376541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811105842.8A CN109376541A (en) 2018-09-21 2018-09-21 For running the method, apparatus and computer storage medium of intelligent contract

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811105842.8A CN109376541A (en) 2018-09-21 2018-09-21 For running the method, apparatus and computer storage medium of intelligent contract

Publications (1)

Publication Number Publication Date
CN109376541A true CN109376541A (en) 2019-02-22

Family

ID=65401573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811105842.8A Pending CN109376541A (en) 2018-09-21 2018-09-21 For running the method, apparatus and computer storage medium of intelligent contract

Country Status (1)

Country Link
CN (1) CN109376541A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109934593A (en) * 2019-03-26 2019-06-25 众安信息技术服务有限公司 For realizing the design method and equipment of the block catenary system for supporting multi-signature
CN110413697A (en) * 2019-08-02 2019-11-05 佛山市顺德区平行互联网信息科技有限公司 A kind of public good goodness-sum date storage method and system based on block chain
CN110602227A (en) * 2019-09-19 2019-12-20 腾讯科技(深圳)有限公司 Intelligent contract management method and related device
CN110908813A (en) * 2019-11-18 2020-03-24 深圳前海环融联易信息科技服务有限公司 Intelligent contract calling method, device, system, computer equipment and storage medium
CN111026982A (en) * 2019-10-15 2020-04-17 深圳壹账通智能科技有限公司 Intelligent contract processing method, computer equipment and storage medium
CN111258725A (en) * 2020-01-17 2020-06-09 北京百度网讯科技有限公司 Data processing method, device, equipment and medium based on block chain
CN111273970A (en) * 2020-01-21 2020-06-12 腾讯科技(深圳)有限公司 Calling method, device, system, medium and electronic equipment of intelligent contract
CN112671878A (en) * 2020-12-17 2021-04-16 杭州趣链科技有限公司 Block chain information subscription method, device, server and storage medium
CN112927077A (en) * 2019-09-25 2021-06-08 支付宝(杭州)信息技术有限公司 Method and device for realizing contract calling based on FPGA
CN113162848A (en) * 2020-01-22 2021-07-23 北京百度网讯科技有限公司 Method, device, gateway and medium for realizing block chain gateway
WO2022134186A1 (en) * 2020-12-21 2022-06-30 杭州趣链科技有限公司 Smart contract calling method and apparatus for blockchains, server, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107124278A (en) * 2017-03-30 2017-09-01 腾讯科技(深圳)有限公司 Method for processing business, device and data-sharing systems
CN107392619A (en) * 2017-07-31 2017-11-24 众安信息技术服务有限公司 Intelligent contract processing method and processing device
CN107392618A (en) * 2017-07-28 2017-11-24 中链科技有限公司 It is implanted into the method and apparatus of intelligent contract
CN107767266A (en) * 2016-08-16 2018-03-06 陈新 Intelligent digital currency and dynamic coding service system
US20180089758A1 (en) * 2016-09-26 2018-03-29 Shapeshift Ag System and method of providing a contract-creator application
CN108197913A (en) * 2017-12-18 2018-06-22 深圳前海微众银行股份有限公司 Method of payment, system and computer readable storage medium based on block chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107767266A (en) * 2016-08-16 2018-03-06 陈新 Intelligent digital currency and dynamic coding service system
US20180089758A1 (en) * 2016-09-26 2018-03-29 Shapeshift Ag System and method of providing a contract-creator application
CN107124278A (en) * 2017-03-30 2017-09-01 腾讯科技(深圳)有限公司 Method for processing business, device and data-sharing systems
CN107392618A (en) * 2017-07-28 2017-11-24 中链科技有限公司 It is implanted into the method and apparatus of intelligent contract
CN107392619A (en) * 2017-07-31 2017-11-24 众安信息技术服务有限公司 Intelligent contract processing method and processing device
CN108197913A (en) * 2017-12-18 2018-06-22 深圳前海微众银行股份有限公司 Method of payment, system and computer readable storage medium based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱涛等: "基于Fabric的跨境汇款追踪平台实现", 《信息安全学报》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109934593B (en) * 2019-03-26 2023-07-04 众安信息技术服务有限公司 Design method and device for realizing block chain system supporting multiple signatures
CN109934593A (en) * 2019-03-26 2019-06-25 众安信息技术服务有限公司 For realizing the design method and equipment of the block catenary system for supporting multi-signature
CN110413697A (en) * 2019-08-02 2019-11-05 佛山市顺德区平行互联网信息科技有限公司 A kind of public good goodness-sum date storage method and system based on block chain
CN110602227A (en) * 2019-09-19 2019-12-20 腾讯科技(深圳)有限公司 Intelligent contract management method and related device
CN112927077A (en) * 2019-09-25 2021-06-08 支付宝(杭州)信息技术有限公司 Method and device for realizing contract calling based on FPGA
CN111026982A (en) * 2019-10-15 2020-04-17 深圳壹账通智能科技有限公司 Intelligent contract processing method, computer equipment and storage medium
CN110908813B (en) * 2019-11-18 2022-08-05 深圳前海环融联易信息科技服务有限公司 Intelligent contract calling method, device, system, computer equipment and storage medium
CN110908813A (en) * 2019-11-18 2020-03-24 深圳前海环融联易信息科技服务有限公司 Intelligent contract calling method, device, system, computer equipment and storage medium
CN111258725A (en) * 2020-01-17 2020-06-09 北京百度网讯科技有限公司 Data processing method, device, equipment and medium based on block chain
CN111273970A (en) * 2020-01-21 2020-06-12 腾讯科技(深圳)有限公司 Calling method, device, system, medium and electronic equipment of intelligent contract
CN111273970B (en) * 2020-01-21 2022-05-06 腾讯科技(深圳)有限公司 Calling method, device, system, medium and electronic equipment of intelligent contract
CN113162848A (en) * 2020-01-22 2021-07-23 北京百度网讯科技有限公司 Method, device, gateway and medium for realizing block chain gateway
CN113162848B (en) * 2020-01-22 2022-11-01 北京百度网讯科技有限公司 Method, device, gateway and medium for realizing block chain gateway
CN112671878A (en) * 2020-12-17 2021-04-16 杭州趣链科技有限公司 Block chain information subscription method, device, server and storage medium
CN112671878B (en) * 2020-12-17 2023-03-24 杭州趣链科技有限公司 Block chain information subscription method, device, server and storage medium
WO2022134186A1 (en) * 2020-12-21 2022-06-30 杭州趣链科技有限公司 Smart contract calling method and apparatus for blockchains, server, and storage medium

Similar Documents

Publication Publication Date Title
CN109376541A (en) For running the method, apparatus and computer storage medium of intelligent contract
US20220038289A1 (en) Multi-access edge computing node with distributed ledger
EP4020880A1 (en) Method, apparatus and machine-readable storage to verify trained models in an edge environment
US20200084202A1 (en) Attestation token sharing in edge computing environments
CN107516090B (en) Integrated face recognition method and system
CN108616578A (en) Method for processing business, equipment and the computer readable storage medium of transregional piece of platform chain
US12010144B2 (en) End-to-end device attestation
CN108985757A (en) Information processing method, apparatus and system, storage medium, electronic equipment
JP6934921B2 (en) A method and device for managing registration certificates by relaying between ECA and DCM in a security authentication management system for V2X communication.
CN109146490A (en) block generation method, device and system
CN109102401A (en) Method and apparatus for running intelligent contract in block chain network
CN109255210A (en) The method, apparatus and storage medium of intelligent contract are provided in block chain network
CN108390872A (en) Certificate management method, device, medium and electronic equipment
CN109213501A (en) The method, apparatus and storage medium of intelligent contract are installed in block chain network
CN109033823A (en) Method and apparatus for intelligent contract to be verified and run in block chain network
CN109547200A (en) Certificate distribution method and corresponding calculating equipment and medium in block chain network
CN109086596A (en) The authentication method of application program, apparatus and system
CN110535631A (en) Method, system, equipment and the storage medium of edge calculations node data transmission
US20220217536A1 (en) Communication method and apparatus for vehicle, and electronic device
CN113726890B (en) Federal prediction method and system for block chain data service
CN109358859A (en) The method, apparatus and storage medium of intelligent contract are installed in block chain network
EP4007319A2 (en) Vehicle communication method, apparatus, storage medium and program product
CN109144969A (en) For the data processing method of block chain network system, device and storage medium
KR20220088306A (en) Automatic escalation of trust credentials
CN112291305A (en) Code chain construction method and device based on unified identification

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

Application publication date: 20190222

RJ01 Rejection of invention patent application after publication