CN109117629A - Method and apparatus for the counting user intelligence contract in block chain network - Google Patents

Method and apparatus for the counting user intelligence contract in block chain network Download PDF

Info

Publication number
CN109117629A
CN109117629A CN201811034948.3A CN201811034948A CN109117629A CN 109117629 A CN109117629 A CN 109117629A CN 201811034948 A CN201811034948 A CN 201811034948A CN 109117629 A CN109117629 A CN 109117629A
Authority
CN
China
Prior art keywords
user
intelligence contract
calling
contract
intelligence
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
CN201811034948.3A
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 CN201811034948.3A priority Critical patent/CN109117629A/en
Publication of CN109117629A publication Critical patent/CN109117629A/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/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/52Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Embodiment of the disclosure is related to method, apparatus and computer readable storage medium for the counting user intelligence contract in block chain network.This method comprises: A. obtains the recalls information of user's intelligence contract, and call statistical fractals intelligence contract during executing user's intelligence contract;B. by executing statistical fractals intelligence contract, the calling statistical result for the user's intelligence contract being written into block chain account book is updated based on the recalls information;C. it is requested in response to the statistics from client, the calling statistical result of each user's intelligence contract is read from the block chain account book, and statistics precedence data is generated based on the calling statistical result of each user's intelligence contract;D. the statistics precedence data is provided to client.Embodiment of the disclosure provides the scheme for the counting user intelligence contract in block chain network, and that effectively utilizes block chain provides the statistical data of objective and fair the characteristics of going to center, can not distort.

Description

Method and apparatus for the counting user intelligence contract in block chain network
Technical field
In summary, embodiment of the disclosure is related to information technology field, more specifically in block link network The method, apparatus and computer readable storage medium of counting user intelligence contract in network.
Background technique
Block chain be with distributed data base identification, propagate and information-recording intelligent peer-to-peer network, be also referred to as worth Internet.The technical advantages such as block chain has decentralization, tamper-resistant, data consistency stores, transparent procedures is traceable, quilt Think to be owned by broad application prospect in various fields such as finance, reference, Internet of Things, economic trade clearing, asset managements.
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 carries out affairs by using intelligent contract, shared data, builds It is vertical to trust, and ensure that the storage, reading and execution whole process of data are transparent by the characteristic of block chain technology and can be traced, no It can distort.The installation and operation of each intelligence contract needs certain resource.
However, there is no the solutions counted to the intelligent contract run on block chain at present, and unite lacking In the case where meter, it is likely that the frauds such as the intelligent contract call number of artificial brush occur, the statistics of objective and fair cannot be provided Data.
Summary of the invention
Generally, embodiment of the disclosure provide in block chain network the method for counting user intelligence contract, Device and computer readable storage medium are at least to be partially solved the above and other potential problems of the prior art.
In embodiment of the disclosure in a first aspect, providing a kind of for the counting user intelligently conjunction in block chain network Method about.This method comprises: A. during executing user's intelligence contract, obtains the calling letter of user's intelligence contract Breath, and call statistical fractals intelligence contract;B. by executing the statistical fractals intelligence contract, based on the recalls information come more Newly it is written into the calling statistical result of user's intelligence contract in block chain account book;C. in response to the statistics from client Request reads the calling statistical result of each user's intelligence contract from the block chain account book, and is based on each use The calling statistical result of family intelligence contract generates statistics precedence data;D. the statistics precedence data is provided to the client.
In the second aspect of embodiment of the disclosure, provide a kind of for the counting user intelligently conjunction in block chain network Device about.The device includes: memory, for storing instruction;Processor is coupled to memory, when described instruction quilt Make the processor execute following operation when execution: A. obtains user's intelligence during executing user's intelligence contract The recalls information of energy contract, and call statistical fractals intelligence contract;B. by executing the statistical fractals intelligence contract, it is based on institute Recalls information is stated to update the calling statistical result for the user's intelligence contract being written into block chain account book;C. in response to coming It is requested from the statistics of client, the calling statistical result of each user's intelligence contract is read from the block chain account book, and Calling statistical result based on each user's intelligence contract generates statistics precedence data;D. the system is provided to the user Count precedence data.
In the third aspect of embodiment of the disclosure, a kind of computer readable storage medium is provided.This is computer-readable Storage medium is stored with instruction, the method that described instruction is used to execute first aspect description according to an embodiment of the present disclosure.
Embodiment of the disclosure provides the scheme for the counting user intelligence contract in block chain network, and the program is real The calling with special statistical fractals intelligence contract for various user's intelligence contracts is showed and statistical fractals is provided, people can be prevented To brush the frauds such as intelligent contract call number, and provide the statistical data of objective and fair.
Detailed description of the invention
In conjunction with attached drawing and refer to described in detail below, the above and other feature, advantage and aspect of each embodiment of the disclosure It will be apparent.In the accompanying drawings, the same or similar appended drawing reference indicates the same or similar element, in which:
Fig. 1, which shows embodiment of the disclosure, can be applied to the signal framework of exemplary block chain network 100 therein Figure;
Fig. 2 shows the schematic diagrames of exemplary block chain node 200 according to an embodiment of the present disclosure;
Fig. 3 shows the example according to an embodiment of the present disclosure for the counting user intelligence contract in block chain network The flow chart of property method 300;
Fig. 4 shows the example according to an embodiment of the present disclosure for the counting user intelligence contract in block chain network Property device 400.
Specific embodiment
Now embodiment of the disclosure is specifically described in conjunction with attached drawing.It should be noted that similar in attached drawing Component or functional unit may use same number mark.Appended attached drawing is intended only to illustrate embodiment of the disclosure. The technical staff of ability field can be substituted from the description below on the basis of without departing from disclosure spirit and scope Embodiment.
As described herein, term " includes " and its various variants are construed as open-ended term, it means that " packet It includes but is not limited to ".Term "based" is construed as " being based at least partially on ".Term " one embodiment " it is understood that For " at least one embodiment ".Term " another embodiment " is construed as " at least one other embodiment ".It uses herein Word " exemplary " expression " serving as example, example or illustration ".Described herein as any embodiment of " exemplary " It is all not necessarily construed to for other embodiments be preferred or advantageous.
For ease of description, some terms occurred in present disclosure are illustrated below, it should be understood that the application Used term, which should be interpreted that, to be had and it is in the context of present specification and in relation to the consistent meaning of meaning in field Justice.
Intelligent contract is the business logic codes operated on block chain node, is the base for constructing decentralization application Stone.The operation of intelligent contract needs certain resource, and usual its is run in sandbox, and sandbox refers to the operation ring of intelligent contract Border.The running environment can be entirely isolated or partially isolated.In some embodiments, sandbox is intelligent contract container or void Quasi- machine.
In this disclosure, term " intelligent contract shop " refers to the authorized service centers with user interface.For example, User can browse the essential information of intelligent contract, the intelligent contract of purchase etc. by the user interface of authorized service centers.Intelligence Contract shop can provide search engine to search for intelligent contract, and obtain the ranking information of intelligent contract (for example, according to intelligence Total call number of contract averagely calls price, averagely response time etc. is called to carry out ranking).In the ranking information at least A part can be the statistics precedence data from block chain network.
In this disclosure, term " intelligent contract search platform " is a kind of intelligent bond service platform, it provides and searches Index is held up to search for intelligent contract and browse the essential information of intelligent contract.The available intelligent contract of intelligent contract search platform Ranking information (for example, according to the type of intelligent contract, downloading total degree, total call number, averagely calling price, average adjusting Ranking is carried out with response time etc.).At least part in the ranking information can be the statistics ranking from block chain network Data.
In this disclosure, " statistical fractals intelligence contract " referring to can be used in block chain counts to intelligent contract A kind of intelligent contract, " user's intelligence contract " refers to the affairs row between several users or user that can be used on block chain For a kind of intelligent contract.User's intelligence contract can be provided by the supplier of intelligent contract, for example, can be from intelligent contract Service platform (for example, intelligent contract shop or intelligent contract search platform etc.) obtains the use provided by the supplier of intelligent contract Family intelligence contract.
In this disclosure, term " supplier of intelligent contract " is with the right for permitting other people to use intelligent contract People or unit, for example, it can be the author of intelligent contract.
As previously mentioned, currently lacking the statistical fractals to user's intelligence contract, intelligent bond service provider can do nothing to help User access activity is analyzed, ranking cannot be carried out according to the service condition of intelligent contract in order to other users inquiry, also can not It avoids calling fraud.That is, being provided currently without solution to user's intelligence contract in block chain network The objective statistical of calling.
In view of this, embodiment of the disclosure provides a kind of solution for user's intelligence contract of uniting in block chain network Scheme.Embodiment of the disclosure can be applied in different types of block chain network.According to the difference of block chain participant, area Block chain is typically divided into publicly-owned chain, alliance's chain and privately owned chain three types.Publicly-owned chain opening, user authorize just without any Accessible block chain network and block data, initiate various transaction.Alliance's chain, which limits the member in only alliance, to join With the operating right on block chain is determined according to the dependency rule that alliance customizes.Privately owned chain generally makes inside private organization With the operating right on block chain is executed according to the voluntarily regulation of private organization.
As previously mentioned, embodiment of the disclosure is directed to the tune of user's intelligence contract using special statistical fractals intelligence contract With statistical fractals are provided, advantage of the intelligent contract in terms of cost efficiency can be not only played, but also can prevent from artificially existing Intelligent bond service platform brush call number etc. calls fraud to influence ranking, and has very much realistic meaning: can be with Intelligent bond service provider is helped to analyze user access activity;Temperature ranking is carried out according to intelligent contract, facilitates other users Search inquiry, for example, intelligent bond service platform (for example, intelligent contract shop or search platform) can be according to intelligent contract Purchase volume or volumes of searches combine the statistics precedence data of intelligent contract to carry out hot value calculating, thus based on hot value to intelligent conjunction Carry out temperature ranking about, and in other users search inquiry class intelligence contract, such intelligence is preferentially provided to user and is closed About middle temperature intelligent contract in the top, temperature ranking facilitates user and intelligent bond service provider is convenient and quickly Find the interested intelligent contract of user;Various dimensions statistical analysis is carried out according to intelligent contract, for example, by the type of intelligent contract Statistics precedence data in conjunction with intelligent contract is for statistical analysis;Etc..
Fig. 1 shows the signal that can be applied to exemplary block chain network 100 therein in accordance with an embodiment of the present disclosure Architecture diagram.
Block chain network 100 includes four block chain nodes 101,102,103 and 104.It is gone since block chain technology has Centralization, distributed characteristic, each block chain node can intercourse information by various communication medias.It can be in each block The management operation of intelligent contract, installation, the upgrading etc. of intelligent contract are executed at chain node 101-104.In addition, in Fig. 1 The quantity of block chain node is only signal rather than limits, and can be any amount.For example, in cloud application environment, at least one A block chain node can correspond to the virtual machine instance created on cloud, the corresponding intelligent contract of operation in virtual machine instance.
Fig. 2 shows the schematic diagrames of exemplary block chain node 200 according to an embodiment of the present disclosure.Block chain node 200 can be an example of the node of the block chain network 100 of Fig. 1.As shown, can pass through at block chain node 200 Such as intelligent contract runtime engine runs three users' intelligence and about 211,212 and 213 and statistical fractals intelligence contract 214.It is appreciated that embodiment of the disclosure for ease of description, block chain node 200 known to not specifically illustrated and description Other components and process so as not to unnecessarily obscure the embodiment of the present disclosure aspect.
User's intelligence and about 211-213 can provide various functions to be applied to finance, reference, Internet of Things, economic trade Clearing, asset management etc., statistical fractals intelligence and about 214 can be to the calling of user intelligence and about 211-213 at node 200 It is counted.In addition, the quantity of the intelligent contract in Fig. 2 is only signal rather than limits, any amount can be.These intelligence Contract can be placed on operation in sandbox 210 (for example, container or virtual machine), so that intelligent contract does not have permission to access sandbox External resource and information.
Fig. 3 shows according to an embodiment of the present disclosure for counting the exemplary side of the intelligent contract at block chain link point The flow chart of method 300.Method 300 can execute at the block chain node of Fig. 1 and Fig. 2, describe method below with reference to Fig. 2 300.As shown in the flowchart, method 300 the following steps are included:
Step 301: during executing user's intelligence contract, the recalls information of user's intelligence contract is obtained, and Call statistical fractals intelligence contract.In this step, special statistical fractals is called intelligently to close when executing user's intelligence contract Advantage of the intelligent contract in terms of cost efficiency about can be played to carry out statistics, and is effectively prevented calling fraud.? On block chain node 200, it can be needed to run one or more user's intelligence contracts according to application.For example, when in block chain link When calling at point 200 and executing user's intelligence and about 211, the recalls information of user's intelligence and about 211 is obtained, and statistics is called to take Business intelligence and about 214.
Step 302: by executing statistical fractals intelligence contract, being updated based on the recalls information and be written into block chain account book In user's intelligence contract calling statistical result.In this step, it is updated using the recalls information of user's intelligence contract It is objective that providing the characteristics of going to center, can not distort for block chain can be effectively utilized in the calling statistical result of write-in block chain account book See just statistical data.For example, statistical fractals intelligence and about 214 are executed at block chain node 200, based on user's intelligence About 211 recalls information come be updated/written in block chain account book user intelligence and about 211 calling statistical result.
Step 303: being requested in response to the statistics from client, each user's intelligence contract is read from block chain account book Calling statistical result, and based on the calling statistical result of each user's intelligence contract generate statistics precedence data.In the step In rapid, when there is the statistics request from client (for example, when user is scanned for by intelligent bond service platform, Wish the statistics ranking etc. of acquisition user's intelligence contract), it can be read from block chain account book by statistical fractals intelligence contract The calling statistical result of each user's intelligence contract, and statistics precedence data is generated based on statistical result is called, thus real The statistics of existing objective and fair.For example, client wishes the statistics ranking for obtaining user's intelligence and about 211-213 (for example, according to intelligence Total call number of energy contract averagely calls price, averagely response time etc. is called to be ranked up), statistical fractals can be passed through Intelligence and about 214 reads the intelligent calling statistical result with about 211-213 of user from block chain account book, and based on user's intelligence The calling statistical result of about 211-213 generates statistics precedence data.
Step 304: providing statistics precedence data to client.In this step, statistics precedence data generated is mentioned Supply client.
In one embodiment, the recalls information that user's intelligence contract is obtained in step 301 may include: to obtain user's intelligence The call number of energy contract calls price, calls at least one in the response time.For example, recalls information may include but not It is limited to: call number, calling price, calling response time of user's intelligence contract etc., wherein call number can indicate intelligence The called number of contract calls price that can represent the affairs cost calling intelligent contract and generating, when calling response Between can indicate to call the speed responded after intelligent contract.For example, recalls information can also include but is not limited to: user intelligently closes Call address, title, type, supplier's information, caller information about etc., wherein call address is used to call intelligent contract, Title can be used as the mark of intelligent contract, and type can be divided for example according to the purposes of intelligent contract or in other ways, Supplier's information can indicate intelligent contract supplier (there is people or the unit of the right for authorizing other people using intelligent contract, For example, its ISP that can be intelligent contract), caller information can indicate it is which user has invoked intelligent conjunction About.
In one embodiment, the calling of statistical fractals intelligence contract is embedded in user's intelligence contract, and walked It may include: using the recalls information as the suction parameter of statistical fractals intelligence contract that statistical fractals intelligence contract is called in rapid A. For example, can user intelligence and about 211 in insertion for statistical fractals intelligence and about 214 send call message code or Person can insertion be for loading the address of the intelligent calling with about 214 of statistical fractals in user's intelligence and about 211, so that holding Statistical fractals intelligence and about 214 can be called during row user intelligence and about 211.Statistical fractals intelligence and about 214 can be with Recalls information as described above is obtained by calling interface parameter list (that is, suction parameter).
In one embodiment, the recalls information of user's intelligence contract is obtained in step 301, and calls statistical fractals intelligent Contract may include: the recalls information for obtaining user's intelligence contract, and carries out single call to statistical fractals intelligence contract or criticize Amount is called.Statistical fractals intelligence contract progress single call is referred to and all goes to adjust during executing user's intelligence contract every time With a statistical fractals intelligence contract, and using the recalls information of user's intelligence contract acquired in single as statistical fractals intelligence The suction parameter of contract.
In one embodiment, the recalls information for obtaining user's intelligence contract carries out batch to statistical fractals intelligence contract Calling may include: to record acquired every time recalls information and the user during executing user's intelligence contract every time The execution number of intelligent contract;In when the reaching threshold number of number of execution recorded, will be somebody's turn to do in the execution of the threshold number The recalls information recorded during user's intelligence contract calls statistics as the suction parameter of statistical fractals intelligence contract Intelligent Service contract.It calls statistical fractals intelligence contract to count user's intelligence contract by batch, may be implemented one Secondary property counts a plurality of recalls information (for example, multiple call numbers, multiple calling prices, multiple calling response times), It therefore can be to avoid continually calling statistical fractals intelligence contract to reduce resource overhead (for example, calling statistical fractals intelligence every time Certain resource can be needed to consume when contract) and reduce the operation for reading and writing block chain account book.For example, it is assumed that threshold number is 5, After the process for performing the 1st, 2,3,4 user's intelligence contract, when executing the 5th user intelligence contract, due to holding for record Row number has reached threshold number, will call statistical fractals intelligence contract, while the execution number recorded is reset as 0, so as to 5 user's intelligence contracts of every execution just call 1 statistical fractals intelligence contract, criticize to realize to statistical fractals intelligence contract Amount is called.
In one embodiment, the use being written into block chain account book is updated in step 302 based on the recalls information The calling statistical result of family intelligence contract may include at least one of the following: in the recalls information based on user's intelligence contract Call number come update call statistical result in total call number;Calling in recalls information based on user's intelligence contract Price come update call statistical result in average calling price;Calling response in recalls information based on user's intelligence contract Time updates the average calling response time called in statistical result.For example, based on call number, calling in recalls information Price calls the response time, total call number is updated by adding up to previous total call number, by previous Price and this calling price is averagely called to be weighted to update average calling price, by previous average calling response Time and this calling response time are weighted to update average calling price.
In one embodiment, the calling statistical result of each user's intelligence contract generates statistics ranking number in step 303 According to may include: by total call number in the calling statistical result to each user's intelligence contract, averagely call price or At least one averagely in the calling response time is ranked up to generate statistics precedence data.For example, statistical fractals intelligence contract 214 can to from read in block chain account book user intelligence and about 211-213 calling statistical result in total call number, At least one averagely in calling price or average response time is ranked up to generate statistics precedence data.Further, may be used With the recalls information (for example, title, type, call address, supplier's information etc.) based on each user's intelligence contract and call Statistical result carries out various dimensions statistics to obtain the statistics ranking of each user's intelligence contract.For example, in each user's intelligence contract In, for user's intelligence contract of " intellectual property statement/really weigh " type, it is ranked up from high to low according to total call number, Using obtain for example about ranking first three user's intelligence contract as statistics precedence data.
In one embodiment, when providing a user statistics precedence data, each can be returned to user and is listed in system Count the information such as call address, the title of user's intelligence contract in precedence data.
By embodiment of the disclosure described above, provide for the counting user intelligently conjunction in block chain network Scheme about, the program solve the problems, such as existing to the intelligent contract run on block chain shortage statistics.In addition, the program is real Show the calling with special statistical fractals intelligence contract for various user's intelligence and statistical fractals are provided, can not only play intelligence Can advantage of the contract in terms of cost efficiency, and (the example the characteristics of decentralization of block chain can be made full use of, can not be distorted Such as, intelligent contract has to carry out, does not allow to distort, is traceable) complete justice is provided for statistical data.
Fig. 4 shows the device according to an embodiment of the present disclosure for the counting user intelligence contract in block chain network 400 schematic diagram.Device 400 may include: memory 401 and the processor 402 for being coupled to memory 401.Memory 401 is used In store instruction, make processor 402 when executed to execute various methods described herein (such as Fig. 3 Method 300) in one or more movements or step.
Memory 401 may include volatile memory and nonvolatile memory, such as ROM (read only Memory), RAM (random access memory), mobile disk, disk, CD and USB flash disk etc..Processor 402 can be center Processor (CPU), microcontroller, specific integrated circuit (ASIC), digital signal processor (DSP), field programmable gate array (FPGA) or other programmable logic device or be configured as realize embodiment of the disclosure one or more integrated circuits Deng.
In general, the various example embodiments of the disclosure can in hardware or special circuit, software, firmware, logic, or Implement in any combination thereof.Some aspects can be implemented within hardware, and other aspects can be can be by controller, micro process Device or other calculate are implemented in the firmware or software that equipment executes.When the various aspects of embodiment of the disclosure are illustrated or described as When block diagram, flow chart or the certain other graphical representations of use, it will be understood that box described herein, device, system, techniques or methods Unrestricted example be can be used as in hardware, software, firmware, special circuit or logic, common hardware or controller or other It calculates and implements in equipment or its certain combination.
As an example, can with general processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or Person's transistor logic, discrete hardware components or any combination for executing function as described herein combine this to realize or execute Open described various illustrative logical blocks, module and circuit.General processor can be microprocessor, alternatively, processing Device is also possible to any common processor, controller, microcontroller or state machine.Processor also can be implemented as calculating and set Standby combination, for example, the combination of DSP and microprocessor, multi-microprocessor, one or more microprocessors and DSP core In conjunction with or any other such structure.
As an example, embodiment of the disclosure can be described in the context of machine-executable instruction, machine can be held Row instruction such as includes in the program module executed in the device on the true or virtual processor of target.In general, Program module includes routine, program, library, object, class, component, data structure etc., executes specific task or realizes specific Abstract data structure.In embodiments, the function of program module can merge between described program module or Segmentation.Machine-executable instruction for program module can execute in local or distributed apparatus.In distributed apparatus In, program module can be located locally in remote medium storage the two.
The computer program code of method used to implement the present disclosure can be write with one or more programming languages.These Computer program code can be supplied to the processing of general purpose computer, special purpose computer or other programmable data processing units Device so that program code when being executed by computer or other programmable data processing units, cause flow chart and/ Or function/operation specified in block diagram is carried out.Program code can completely on computers, part on computers, conduct Independent software package, part are on computers and part is held on a remote computer or server on the remote computer or completely Row.
In the context of the disclosure, machine readable media can be include or storage be used for or about instruction execution system Any tangible medium of the program of system, device or equipment.Machine readable media can be machine-readable signal medium or machine can Read storage medium.Machine readable media can include but is not limited to electronics, magnetic, it is optical, electromagnetism, infrared or partly lead Body system, device or equipment equipment or its any appropriate combination.The more detailed example of machine readable storage medium includes having one Or the electrical connection of multiple conducting wires, portable computer diskette, hard disk, RAM, ROM, Erasable Programmable Read Only Memory EPROM (EPROM or flash memory), light storage device, magnetic storage apparatus or its any appropriate combination.
In addition, although operation is depicted with particular order, this simultaneously should not be construed and require this generic operation to show Particular order is completed with sequential order, or executes the operation of all diagrams to obtain expected result.In some cases, more Task or parallel processing can be beneficial.Similarly, although discussed above contain certain specific implementation details, this is not It should be interpreted that any invention of limitation or the scope of the claims, and should be interpreted that the specific embodiment that can be directed to specific invention Description.Certain features described in the context of separated embodiment can also be with combined implementation single real in this specification It applies in example.Conversely, the various features described in the context of single embodiment can also discretely multiple embodiments or Implement in any appropriate sub-portfolio.
Although describing embodiment of the disclosure by reference to several specific embodiments, it should be appreciated that, the disclosure Embodiment is not limited to disclosed specific embodiment.Embodiment of the disclosure be intended to cover appended claims spirit and Included various modifications and equivalent arrangements in range.Scope of the following claims is to be accorded the broadest interpretation, thus comprising All such modifications and equivalent structure and function.

Claims (15)

1. a kind of method for the counting user intelligence contract in block chain network characterized by comprising
A. during executing user's intelligence contract, the recalls information of user's intelligence contract is obtained, and statistics is called to take Intelligence of being engaged in contract;
B. it by executing the statistical fractals intelligence contract, is updated and is written into block chain account book based on the recalls information The calling statistical result of user's intelligence contract;
C. it is requested in response to the statistics from client, the calling of each user's intelligence contract is read from the block chain account book Statistical result, and statistics precedence data is generated based on the calling statistical result of each user's intelligence contract;
D. the statistics precedence data is provided to the client.
2. the method according to claim 1, wherein obtaining the calling letter of user's intelligence contract in step A Breath includes:
A1. the call number of user's intelligence contract is obtained, price is called or calls at least one in the response time.
3. the method according to claim 1, wherein being embedded in the calling of the statistical fractals intelligence contract The statistical fractals intelligence contract is called to include: in user's intelligence contract, and in step A
A2. using the recalls information as the suction parameter of the statistical fractals intelligence contract.
4. the method according to claim 1, wherein obtaining the calling letter of user's intelligence contract in step A Breath, and call the statistical fractals intelligence contract to include:
A3. obtain the recalls information of user's intelligence contract, and to the statistical fractals intelligence contract carry out single call or Batch calls.
5. according to the method described in claim 4, it is characterized in that, obtaining the calling letter of user's intelligence contract in step A3 Breath, carrying out batch calling to the statistical fractals intelligence contract includes:
A31. during executing user's intelligence contract every time, acquired recalls information and the user every time are recorded The execution number of intelligent contract;
It A32., will be in the execution of threshold number user's intelligence in when the reaching threshold number of number of execution recorded The recalls information recorded during contract calls the statistics as the suction parameter of the statistical fractals intelligence contract Intelligent Service contract.
6. according to the method described in claim 2, it is characterized in that, being written into step B based on the recalls information to update The calling statistical result of user's intelligence contract in block chain account book includes at least one of the following:
Total tune in the calling statistical result is updated based on the call number in the recalls information of user's intelligence contract Use number;
Being averaged in the calling statistical result is updated based on the calling price in the recalls information of user's intelligence contract Call price;
It is updated based on the calling response time in the recalls information of user's intelligence contract in the calling statistical result Averagely call the response time.
7. the method according to claim 1, wherein the tune based on each user's intelligence contract in step C Generating statistics precedence data with statistical result includes:
By total call number in the calling statistical result to each user's intelligence contract, averagely call price or average At least one in the calling response time is ranked up to generate the statistics precedence data.
8. a kind of device for the counting user intelligence contract in block chain network characterized by comprising
Memory, for storing instruction;And
Processor, is coupled to the memory, and the processor is made to execute following operation when executed:
A. during executing user's intelligence contract, the recalls information of user's intelligence contract is obtained, and statistics is called to take Intelligence of being engaged in contract;
B. it by executing the statistical fractals intelligence contract, is updated and is written into block chain account book based on the recalls information The calling statistical result of user's intelligence contract;
C. it is requested in response to the statistics from client, the calling of each user's intelligence contract is read from the block chain account book Statistical result, and statistics precedence data is generated based on the calling statistical result of each user's intelligence contract;
D. the statistics precedence data is provided to the client.
9. device according to claim 8, which is characterized in that obtain the calling letter of user's intelligence contract in operation A Breath includes:
A1. the call number of user's intelligence contract is obtained, price is called or calls at least one in the response time.
10. device according to claim 8, which is characterized in that be embedded into the calling of the statistical fractals intelligence contract In user's intelligence contract, and operates and call the statistical fractals intelligence contract to include: in A
A2. using the recalls information as the suction parameter of the statistical fractals intelligence contract.
11. device according to claim 8, which is characterized in that obtain the calling letter of user's intelligence contract in operation A Breath, and call the statistical fractals intelligence contract to include:
A3. obtain the recalls information of user's intelligence contract, and to the statistical fractals intelligence contract carry out single call or Batch calls.
12. device according to claim 11, which is characterized in that obtain the calling of user's intelligence contract in operation A3 Information, carrying out batch calling to the statistical fractals intelligence contract includes:
A31. during executing user's intelligence contract every time, acquired recalls information and the user every time are recorded The execution number of intelligent contract;
It A32., will be in the execution of threshold number user's intelligence in when the reaching threshold number of number of execution recorded The recalls information recorded during contract calls the statistics as the suction parameter of the statistical fractals intelligence contract Intelligent Service contract.
13. device according to claim 9, which is characterized in that be written into operation B based on the recalls information to update The calling statistical result of user's intelligence contract in block chain account book includes at least one of the following:
Total tune in the calling statistical result is updated based on the call number in the recalls information of user's intelligence contract Use number;
Being averaged in the calling statistical result is updated based on the calling price in the recalls information of user's intelligence contract Call price;
It is updated based on the calling response time in the recalls information of user's intelligence contract in the calling statistical result Averagely call the response time.
14. device according to claim 8, which is characterized in that the tune based on each user's intelligence contract in operation C Generating statistics precedence data with statistical result includes:
By total call number in the calling statistical result to each user's intelligence contract, averagely call price or average At least one in the calling response time is ranked up to generate the statistics precedence data.
15. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has instruction, institute Instruction is stated for executing such as method of any of claims 1-7.
CN201811034948.3A 2018-09-06 2018-09-06 Method and apparatus for the counting user intelligence contract in block chain network Pending CN109117629A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811034948.3A CN109117629A (en) 2018-09-06 2018-09-06 Method and apparatus for the counting user intelligence contract in block chain network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811034948.3A CN109117629A (en) 2018-09-06 2018-09-06 Method and apparatus for the counting user intelligence contract in block chain network

Publications (1)

Publication Number Publication Date
CN109117629A true CN109117629A (en) 2019-01-01

Family

ID=64858683

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811034948.3A Pending CN109117629A (en) 2018-09-06 2018-09-06 Method and apparatus for the counting user intelligence contract in block chain network

Country Status (1)

Country Link
CN (1) CN109117629A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110414270A (en) * 2019-08-01 2019-11-05 谈建中 A kind of personal data protection system and method based on block chain
CN111160911A (en) * 2019-12-31 2020-05-15 杭州趣链科技有限公司 Intelligent contract calling frequency control method facing block chain
CN114500119A (en) * 2022-04-15 2022-05-13 恒生电子股份有限公司 Block chain service calling method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017153495A1 (en) * 2016-03-08 2017-09-14 Appii Pty Ltd A system and method for creating a database of independently validated educational and work experience profiles (curricula vitae) using blockchain smart contracts
CN107730384A (en) * 2017-11-13 2018-02-23 深圳大学 Art sales method and server, server end and system based on block chain
CN108053137A (en) * 2017-12-27 2018-05-18 邵美 A kind of block chain intelligence contract sort method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017153495A1 (en) * 2016-03-08 2017-09-14 Appii Pty Ltd A system and method for creating a database of independently validated educational and work experience profiles (curricula vitae) using blockchain smart contracts
CN107730384A (en) * 2017-11-13 2018-02-23 深圳大学 Art sales method and server, server end and system based on block chain
CN108053137A (en) * 2017-12-27 2018-05-18 邵美 A kind of block chain intelligence contract sort method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
董友康等: "基于联盟区块链的董事会电子投票系统", 《网络与信息安全学报》 *
颜春辉等: "基于区块链的安全投票系统设计与实现", 《通信技术》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110414270A (en) * 2019-08-01 2019-11-05 谈建中 A kind of personal data protection system and method based on block chain
CN110414270B (en) * 2019-08-01 2022-12-06 谈建中 Personal data protection system and method based on block chain
CN111160911A (en) * 2019-12-31 2020-05-15 杭州趣链科技有限公司 Intelligent contract calling frequency control method facing block chain
CN111160911B (en) * 2019-12-31 2023-10-24 杭州趣链科技有限公司 Intelligent contract calling frequency control method for block chain
CN114500119A (en) * 2022-04-15 2022-05-13 恒生电子股份有限公司 Block chain service calling method and device

Similar Documents

Publication Publication Date Title
Cheng et al. Task assignment on multi-skill oriented spatial crowdsourcing
US11176154B1 (en) Collaborative dataset management system for machine learning data
KR102254809B1 (en) Distributed computing resources sharing system and computing apparatus thereof providing reward based on block chain
Mišura et al. Data marketplace for Internet of Things
CN104813284B (en) Generic resource provider for cloud service
Candas et al. Benefits of considering inventory in service parts logistics network design problems with time-based service constraints
US20140280192A1 (en) Systems, methods, and apparatuses for implementing a related command with a predictive query interface
KR20140097145A (en) Marketplace for composite application and data solutions
CN109117629A (en) Method and apparatus for the counting user intelligence contract in block chain network
US20210334876A1 (en) Data-analysis-based validation of product review data and linking to supply chain record data
US10417059B1 (en) Staged application programming interface
US20230422160A1 (en) Distributed multi-access edge service delivery
US20190147548A1 (en) Creation and management of community networks
CN109344173B (en) Data management method and device and data structure
Fuller Chip design in China and India: Multinationals, industry structure and development outcomes in the integrated circuit industry
CN109690571A (en) Group echo system and method based on study
Zhang et al. A pattern-recognition-based algorithm and case study for clustering and selecting business services
CN102594848B (en) A kind of method and system of Internet of Things application being carried out to open type developing
Obweger et al. Similarity searching in sequences of complex events
Modica et al. A semantic framework to support resource discovery in future cloud markets
KR102068119B1 (en) Total management system for advertising agency
US20120331051A1 (en) System and method for designing and managing social media campaigns
Yang et al. Mechanism design for stochastic dynamic parking resource allocation
CN103229485A (en) Realization method and platform for service capability sharing
Gkekas et al. A smart calendar application for mobile environments

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190101

WD01 Invention patent application deemed withdrawn after publication