CN111596946A - Recommendation method, device and medium for intelligent contracts of block chains - Google Patents

Recommendation method, device and medium for intelligent contracts of block chains Download PDF

Info

Publication number
CN111596946A
CN111596946A CN202010274541.9A CN202010274541A CN111596946A CN 111596946 A CN111596946 A CN 111596946A CN 202010274541 A CN202010274541 A CN 202010274541A CN 111596946 A CN111596946 A CN 111596946A
Authority
CN
China
Prior art keywords
intelligent contract
score
intelligent
contracts
contract
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
CN202010274541.9A
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.)
Shandong Inspur Quality Chain Technology Co Ltd
Original Assignee
Shandong ICity 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 Shandong ICity Information Technology Co., Ltd. filed Critical Shandong ICity Information Technology Co., Ltd.
Priority to CN202010274541.9A priority Critical patent/CN111596946A/en
Publication of CN111596946A publication Critical patent/CN111596946A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management

Abstract

The application discloses a recommendation method, equipment and medium for a block chain intelligent contract, which comprise the following steps: evaluating the intelligent contract according to a preset mode to determine the score of the intelligent contract; according to the scores of the intelligent contracts, sequencing the intelligent contracts with specific functions to determine a sequencing result; and recommending the corresponding intelligent contracts to the user according to the sequencing results. The score of the intelligent contract is determined in a preset mode so as to be recommended to the user, and therefore the common user can select the intelligent contract with better quality.

Description

Recommendation method, device and medium for intelligent contracts of block chains
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, and a medium for recommending a block chain intelligent contract.
Background
The block chain is open, nodes on the block chain can upload intelligent contracts, and the intelligent contracts are different in quality and good in quality. For example, the same function is realized, some intelligent contracts are simple and direct, and some intelligent contracts waste time and space; for another example, some intelligent contracts are directly malicious, which is easy for developers who understand the codes to distinguish the intelligent contracts, but for ordinary users, the intelligent contracts are difficult to distinguish.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, an apparatus, and a medium for recommending a block chain intelligent contract, which are used to solve the problems in the background art.
The embodiment of the application adopts the following technical scheme:
the embodiment of the application provides a recommendation method of a block chain intelligent contract, which comprises the following steps:
evaluating the intelligent contract according to a preset mode to determine the score of the intelligent contract;
according to the scores of the intelligent contracts, sequencing the intelligent contracts with specific functions to determine a sequencing result;
and recommending the corresponding intelligent contracts to the user according to the sequencing results.
Further, the evaluating the intelligent contract according to the preset mode to determine the score of the intelligent contract specifically includes:
evaluating the intelligent contract according to the number of times of installing the intelligent contract by the nodes to determine the score of the intelligent contract; wherein the content of the first and second substances,
the more times the intelligent contract is installed by a node, the higher the score of the intelligent contract.
Further, the evaluating the intelligent contract according to the preset mode to determine the score of the intelligent contract specifically includes:
evaluating the intelligent contract according to the number of times that the intelligent contract is installed by the node and the number of times that the intelligent contract is called by other intelligent contracts, and determining the score of the intelligent contract; wherein the content of the first and second substances,
the more times the intelligent contract is installed by the nodes, the higher the score of the intelligent contract is;
the more times an intelligent contract is invoked by other intelligent contracts, the higher the score of the intelligent contract.
Further, the evaluating the intelligent contract according to the preset mode to determine the score of the intelligent contract specifically includes:
evaluating the intelligent contract according to the number of times that the intelligent contract is installed by the node, the number of times that the intelligent contract is called by other intelligent contracts and whether the intelligent contract is called by the intelligent contract with the score higher than the preset score to determine the score of the intelligent contract; wherein the content of the first and second substances,
the more times the intelligent contract is installed by the nodes, the higher the score of the intelligent contract is;
the more times the intelligent contract is called by other intelligent contracts, the higher the score of the intelligent contract is;
the intelligent contract is called by the intelligent contract with the score higher than the preset score.
Further, the evaluating the intelligent contract according to the preset mode to determine the score of the intelligent contract specifically includes:
evaluating the intelligent contract according to the number of times that the intelligent contract is installed by the node, the number of times that the intelligent contract is called by other intelligent contracts, whether the intelligent contract is called by the intelligent contract with the score higher than the preset score and the user score of the intelligent contract, and determining the score of the intelligent contract; wherein the content of the first and second substances,
the more times the intelligent contract is installed by the nodes, the higher the score of the intelligent contract is;
the more times the intelligent contract is called by other intelligent contracts, the higher the score of the intelligent contract is;
the intelligent contract is called by the intelligent contract with the score higher than the preset score, and the score of the intelligent contract is higher;
the higher the user score of the intelligent contract, the higher the score of the intelligent contract.
Further, the evaluating the intelligent contract according to the preset mode to determine the score of the intelligent contract specifically includes:
evaluating the intelligent contract according to the number of times of the intelligent contract being installed by the node, the number of times of the intelligent contract being called by other intelligent contracts, whether the intelligent contract is called by the intelligent contract with the score higher than the preset score, the user score of the intelligent contract and the professional score of the intelligent contract at a specific angle, and determining the score of the intelligent contract; wherein the content of the first and second substances,
the more times the intelligent contract is installed by the nodes, the higher the score of the intelligent contract is;
the more times the intelligent contract is called by other intelligent contracts, the higher the score of the intelligent contract is;
the intelligent contract is called by the intelligent contract with the score higher than the preset score, and the score of the intelligent contract is higher;
the higher the user score of the intelligent contract is, the higher the score of the intelligent contract is;
the higher the professional score of the intelligent contract, the higher the score of the intelligent contract.
Further, the evaluating the intelligent contract according to the preset mode to determine the score of the intelligent contract specifically includes:
for determining the score of the intelligent contract, presetting the weight of the number of times that the intelligent contract is installed by nodes, the number of times that the intelligent contract is called by other intelligent contracts, whether the intelligent contract is called by the intelligent contract with the score higher than the preset score, the user score of the intelligent contract and the professional score of the intelligent contract at a specific angle;
and evaluating the intelligent contract according to the number of times that the intelligent contract is installed by the node, the number of times that the intelligent contract is called by other intelligent contracts, whether the intelligent contract is called by the intelligent contract with the score higher than the preset score, the user score of the intelligent contract and the professional score of the intelligent contract at a specific angle, and determining the score of the intelligent contract.
Further, the specific angle includes safety and ease of use.
The embodiment of the present application further provides a recommendation device for a block chain intelligent contract, where the device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
evaluating the intelligent contract according to a preset mode to determine the score of the intelligent contract;
according to the scores of the intelligent contracts, sequencing the intelligent contracts with specific functions to determine a sequencing result;
and recommending the corresponding intelligent contracts to the user according to the sequencing results.
The embodiment of the present application further provides a recommendation medium for a block chain intelligent contract, in which computer-executable instructions are stored, where the computer-executable instructions are set to:
evaluating the intelligent contract according to a preset mode to determine the score of the intelligent contract;
according to the scores of the intelligent contracts, sequencing the intelligent contracts with specific functions to determine a sequencing result;
and recommending the corresponding intelligent contracts to the user according to the sequencing results.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects: the score of the intelligent contract is determined in a preset mode so as to be recommended to the user, and therefore the common user can select the intelligent contract with better quality.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart of a recommendation method for a blockchain intelligent contract according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a method for recommending a blockchain intelligent contract according to a second embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for recommending a blockchain intelligent contract according to an embodiment of the present specification, where the method for recommending a blockchain intelligent contract according to the embodiment of the present specification may be implemented by a recommending unit of a blockchain intelligent contract, and includes the following steps:
and S101, evaluating the intelligent contract according to a preset mode, and determining the score of the intelligent contract.
And S102, sequencing the intelligent contracts with specific functions according to the scores of the intelligent contracts, and determining a sequencing result.
In step S102 of the embodiment of the present specification, in step S101, a score of each intelligent contract may be determined, in this step, if a user needs an intelligent contract with a certain function, the intelligent contract required by the user may be determined by retrieving all the intelligent contracts, at this time, a retrieval result may display a plurality of intelligent contracts, and the recommendation unit of the block chain intelligent contract may sort the retrieved intelligent contracts according to the scores of the intelligent contracts, where the sorting may be performed according to the size of the score, that is, the score with the highest value is ranked at the top, and then the intelligent contracts are sequentially ranked according to the size of the score.
And step S103, recommending corresponding intelligent contracts to the user according to the sequencing results.
In step S103 in the embodiment of the present specification, the embodiment of the present specification may recommend all the intelligent contracts retrieved in step S102 to the user, or may select a preset number of intelligent contracts to recommend to the user, for example, select the top 100 intelligent contracts in the sorting result to recommend to the user.
The score of the intelligent contract is determined in a preset mode so as to be recommended to the user, and therefore the common user can select the intelligent contract with better quality.
Corresponding to the embodiment of the present specification, fig. 2 is a flowchart of a method for recommending a blockchain intelligent contract provided by a second embodiment of the present specification, where the embodiment of the present specification may include the following steps performed by a recommending unit of a blockchain intelligent contract, specifically:
step S201, the intelligent contract is evaluated according to a preset mode, and the score of the intelligent contract is determined.
In step S201 in the embodiment of this specification, this step specifically includes:
evaluating the intelligent contract according to the number of times of installing the intelligent contract by the nodes to determine the score of the intelligent contract; wherein the content of the first and second substances,
the more times the intelligent contract is installed by the nodes, the higher the score of the intelligent contract is, for example, the more times the intelligent contract is installed by other nodes is 0-10 times, and the score is 1; the number of times that the intelligent contract is installed by other nodes is 11-20, and the score is 2; the number of times that the intelligent contract is installed by other nodes is 21-30, and the score is 3; the number of times that the intelligent contract is installed by other nodes is 31-40, and the score is 4; the number of times that the intelligent contract is installed by other nodes is more than 40, and the score is 5 (5 is the highest score).
Further, in step S201 in the embodiment of the present specification, the evaluating the intelligent contract according to a preset mode to determine the score of the intelligent contract includes:
evaluating the intelligent contract according to the number of times that the intelligent contract is installed by the node and the number of times that the intelligent contract is called by other intelligent contracts, and determining the score of the intelligent contract; wherein the content of the first and second substances,
the more times the intelligent contract is installed by the nodes, the higher the score of the intelligent contract is, for example, the more times the intelligent contract is installed by other nodes is 0-10 times, and the score is 1; the number of times that the intelligent contract is installed by other nodes is 11-20, and the score is 2; the number of times that the intelligent contract is installed by other nodes is 21-30, and the score is 3; the number of times that the intelligent contract is installed by other nodes is 31-40, and the score is 4; the number of times that the intelligent contract is installed by other nodes is more than 40, and the score is 5 (5 is the highest score);
the more times the intelligent contract is called by other intelligent contracts, the higher the score of the intelligent contract is, for example, the number of times the intelligent contract is called by other intelligent contracts is 0-10, and the score is 1; the number of times that the intelligent contract is called by other intelligent contracts is 11-20, and the score is 2; the number of times that the intelligent contract is called by other intelligent contracts is 21-30, and the score is 3; the number of times that the intelligent contract is called by other intelligent contracts is 31-40, and the score is 4; the number of times that the intelligent contract is called by other intelligent contracts is more than 40 times, and the score is 5 (5 is the highest score).
Furthermore, for determining the score of the intelligent contract, the weight occupied by the number of times that the intelligent contract is installed by the node and the number of times that the intelligent contract is called by other intelligent contracts can be preset;
and evaluating the intelligent contract according to the number of times that the intelligent contract is installed by the node and the number of times that the intelligent contract is called by other intelligent contracts, and determining the score of the intelligent contract. The weight of the number of times that the intelligent contract is installed by the node and the number of times that the intelligent contract is called by other intelligent contracts can be 6: 4.
Further, in step S201 in the embodiment of the present specification, the evaluating the intelligent contract according to a preset mode to determine the score of the intelligent contract includes:
evaluating the intelligent contract according to the number of times that the intelligent contract is installed by the node, the number of times that the intelligent contract is called by other intelligent contracts and whether the intelligent contract is called by the intelligent contract with the score higher than the preset score to determine the score of the intelligent contract; wherein the content of the first and second substances,
the more times the intelligent contract is installed by the nodes, the higher the score of the intelligent contract is, for example, the more times the intelligent contract is installed by other nodes is 0-10 times, and the score is 1; the number of times that the intelligent contract is installed by other nodes is 11-20, and the score is 2; the number of times that the intelligent contract is installed by other nodes is 21-30, and the score is 3; the number of times that the intelligent contract is installed by other nodes is 31-40, and the score is 4; the number of times that the intelligent contract is installed by other nodes is more than 40, and the score is 5 (5 is the highest score);
the more times the intelligent contract is called by other intelligent contracts, the higher the score of the intelligent contract is, for example, the number of times the intelligent contract is called by other intelligent contracts is 0-10, and the score is 1; the number of times that the intelligent contract is called by other intelligent contracts is 11-20, and the score is 2; the number of times that the intelligent contract is called by other intelligent contracts is 21-30, and the score is 3; the number of times that the intelligent contract is called by other intelligent contracts is 31-40, and the score is 4; the number of times that the intelligent contract is called by other intelligent contracts is more than 40, and the score is 5 (5 is the highest score);
the intelligent contract is called by the intelligent contract with the score higher than the preset score, for example, the preset score may be 4 points, the intelligent contract is called by the intelligent contract with the score higher than 4 points for 5 points, and the intelligent contract is not called by the intelligent contract with the score higher than 4 points for 1 point.
Further, for determining the score of the intelligent contract, the number of times that the intelligent contract is installed by the node, the number of times that the intelligent contract is called by other intelligent contracts and the weight occupied by whether the intelligent contract is called by the intelligent contract higher than the preset score can be preset;
and evaluating the intelligent contract according to the number of times that the intelligent contract is installed by the node, the number of times that the intelligent contract is called by other intelligent contracts and whether the intelligent contract is called by the intelligent contract with the score higher than the preset score to determine the score of the intelligent contract. The number of times that the intelligent contract is installed by the node, the number of times that the intelligent contract is called by other intelligent contracts and whether the intelligent contract is called by the intelligent contract with the score higher than the preset score can be 4:4: 2.
Further, in step S201 in the embodiment of the present specification, the evaluating the intelligent contract according to a preset mode to determine the score of the intelligent contract includes:
evaluating the intelligent contract according to the number of times that the intelligent contract is installed by the node, the number of times that the intelligent contract is called by other intelligent contracts, whether the intelligent contract is called by the intelligent contract with the score higher than the preset score and the user score of the intelligent contract, and determining the score of the intelligent contract; wherein the content of the first and second substances,
the more times the intelligent contract is installed by the nodes, the higher the score of the intelligent contract is, for example, the more times the intelligent contract is installed by other nodes is 0-10 times, and the score is 1; the number of times that the intelligent contract is installed by other nodes is 11-20, and the score is 2; the number of times that the intelligent contract is installed by other nodes is 21-30, and the score is 3; the number of times that the intelligent contract is installed by other nodes is 31-40, and the score is 4; the number of times that the intelligent contract is installed by other nodes is more than 40, and the score is 5 (5 is the highest score);
the more times the intelligent contract is called by other intelligent contracts, the higher the score of the intelligent contract is, for example, the number of times the intelligent contract is called by other intelligent contracts is 0-10, and the score is 1; the number of times that the intelligent contract is called by other intelligent contracts is 11-20, and the score is 2; the number of times that the intelligent contract is called by other intelligent contracts is 21-30, and the score is 3; the number of times that the intelligent contract is called by other intelligent contracts is 31-40, and the score is 4; the number of times that the intelligent contract is called by other intelligent contracts is more than 40, and the score is 5 (5 is the highest score);
the intelligent contract is called by the intelligent contract with the score higher than the preset score, the score of the intelligent contract is higher, for example, the preset score can be 4 points, the intelligent contract is called by the intelligent contract with the score higher than 4 points for 5 points, and the intelligent contract is not called by the intelligent contract with the score higher than 4 points for 1 point;
the higher the user score of the intelligent contract is, the higher the score of the intelligent contract is, the score of the user is the score of the user who has applied the intelligent contract, for example, the user can score the intelligent contract by 4 according to the use experience.
Further, for determining the score of the intelligent contract, the number of times that the intelligent contract is installed by the node, the number of times that the intelligent contract is called by other intelligent contracts, whether the intelligent contract is called by the intelligent contract with the score higher than the preset score, and the weight occupied by the user score of the intelligent contract can be preset;
and evaluating the intelligent contract according to the number of times that the intelligent contract is installed by the node, the number of times that the intelligent contract is called by other intelligent contracts, whether the intelligent contract is called by the intelligent contract with the score higher than the preset score and the user score of the intelligent contract, and determining the score of the intelligent contract. The weight occupied by the intelligent contract installation times, the intelligent contract invocation times, whether the intelligent contract invocation times are higher than the preset score or not and the user score of the intelligent contract may be 4:4:1: 1.
Further, in step S201 in the embodiment of the present specification, the evaluating the intelligent contract according to a preset mode to determine the score of the intelligent contract includes:
evaluating the intelligent contract according to the number of times of the intelligent contract being installed by the node, the number of times of the intelligent contract being called by other intelligent contracts, whether the intelligent contract is called by the intelligent contract with the score higher than the preset score, the user score of the intelligent contract and the professional score of the intelligent contract at a specific angle, and determining the score of the intelligent contract; wherein the content of the first and second substances,
the more times the intelligent contract is installed by the nodes, the higher the score of the intelligent contract is, for example, the more times the intelligent contract is installed by other nodes is 0-10 times, and the score is 1; the number of times that the intelligent contract is installed by other nodes is 11-20, and the score is 2; the number of times that the intelligent contract is installed by other nodes is 21-30, and the score is 3; the number of times that the intelligent contract is installed by other nodes is 31-40, and the score is 4; the number of times that the intelligent contract is installed by other nodes is more than 40, and the score is 5 (5 is the highest score);
the more times the intelligent contract is called by other intelligent contracts, the higher the score of the intelligent contract is, for example, the number of times the intelligent contract is called by other intelligent contracts is 0-10, and the score is 1; the number of times that the intelligent contract is called by other intelligent contracts is 11-20, and the score is 2; the number of times that the intelligent contract is called by other intelligent contracts is 21-30, and the score is 3; the number of times that the intelligent contract is called by other intelligent contracts is 31-40, and the score is 4; the number of times that the intelligent contract is called by other intelligent contracts is more than 40, and the score is 5 (5 is the highest score);
the intelligent contract is called by the intelligent contract with the score higher than the preset score, the score of the intelligent contract is higher, for example, the preset score can be 4 points, the intelligent contract is called by the intelligent contract with the score higher than 4 points for 5 points, and the intelligent contract is not called by the intelligent contract with the score higher than 4 points for 1 point;
the higher the user score of the intelligent contract is, the higher the score of the intelligent contract is, the score of the user is the score of the user who has applied the intelligent contract, for example, the user can score the intelligent contract by 4 according to the use experience;
the higher the professional score of the intelligent contract, the higher the score of the intelligent contract. Professional scoring may be the scoring of smart contracts by professionals for security and ease of use. The lowest score may be 1 point and the highest score may be 5 points.
Wherein the specific angle includes safety and ease of use.
Ease of use testing includes testing for application programs, as well as testing for user manual system documentation. Quality external models are often employed to assess ease of use. The test comprises the following aspects:
(1) an intelligibility test;
(2) testing the learning easiness;
(3) testing the operability easily;
(4) testing the attractiveness;
(5) compliance testing for ease of use.
The method for testing the usability comprises the following steps: static testing, dynamic testing, and dynamic and static combination testing.
Further, in step S201 in the embodiment of the present specification, the evaluating the intelligent contract according to a preset mode to determine the score of the intelligent contract includes:
for determining the score of the intelligent contract, presetting the weight of the number of times that the intelligent contract is installed by nodes, the number of times that the intelligent contract is called by other intelligent contracts, whether the intelligent contract is called by the intelligent contract with the score higher than the preset score, the user score of the intelligent contract and the professional score of the intelligent contract at a specific angle;
and evaluating the intelligent contract according to the number of times that the intelligent contract is installed by the node, the number of times that the intelligent contract is called by other intelligent contracts, whether the intelligent contract is called by the intelligent contract with the score higher than the preset score, the user score of the intelligent contract and the professional score of the intelligent contract at a specific angle, and determining the score of the intelligent contract. The weight of the intelligent contract installed by the node, the intelligent contract invoked by other intelligent contracts, whether the intelligent contract is invoked by an intelligent contract with a score higher than a preset score, the user score of the intelligent contract and the professional score of the intelligent contract at a specific angle can be 4:3:1:1: 1.
And S202, sequencing the intelligent contracts with specific functions according to the scores of the intelligent contracts, and determining a sequencing result.
In step S202 of the embodiment of the present specification, in step S201, a score of each intelligent contract may be determined, in this step, if a user needs an intelligent contract with a certain function, the intelligent contract required by the user may be determined by retrieving all the intelligent contracts, at this time, a retrieval result may display a plurality of intelligent contracts, and the recommendation unit of the block chain intelligent contract may sort the retrieved intelligent contracts according to the scores of the intelligent contracts, where the sorting may be performed according to the size of the score, that is, the score with the highest value is ranked at the top, and then the intelligent contracts are sequentially ranked according to the size of the score.
And step S203, recommending corresponding intelligent contracts to the user according to the sequencing results.
In step S203 in this embodiment of the present specification, the embodiment of the present specification may recommend all the intelligent contracts retrieved in step S202 to the user, or may select a preset number of intelligent contracts to recommend to the user, for example, select the top 50 intelligent contracts in the sorting result to recommend to the user.
The score of the intelligent contract is determined in a preset mode so as to be recommended to the user, and therefore the common user can select the intelligent contract with better quality.
The embodiment of the present application further provides a recommendation device for a block chain intelligent contract, where the device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
evaluating the intelligent contract according to a preset mode to determine the score of the intelligent contract;
according to the scores of the intelligent contracts, sequencing the intelligent contracts with specific functions to determine a sequencing result;
and recommending the corresponding intelligent contracts to the user according to the sequencing results.
The embodiment of the present application further provides a recommendation medium for a block chain intelligent contract, in which computer-executable instructions are stored, where the computer-executable instructions are set to:
evaluating the intelligent contract according to a preset mode to determine the score of the intelligent contract;
according to the scores of the intelligent contracts, sequencing the intelligent contracts with specific functions to determine a sequencing result;
and recommending the corresponding intelligent contracts to the user according to the sequencing results.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Language Description Language), traffic, pl (core unified Programming Language), HDCal, JHDL (Java Hardware Description Language), langue, Lola, HDL, laspam, hardsradware (Hardware Description Language), vhjhd (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for recommending blockchain intelligent contracts, the method comprising:
evaluating the intelligent contract according to a preset mode to determine the score of the intelligent contract;
according to the scores of the intelligent contracts, sequencing the intelligent contracts with specific functions to determine a sequencing result;
and recommending the corresponding intelligent contracts to the user according to the sequencing results.
2. The method for recommending block chain intelligent contracts according to claim 1, wherein the evaluating the intelligent contracts according to a preset mode to determine scores of the intelligent contracts specifically comprises:
evaluating the intelligent contract according to the number of times of installing the intelligent contract by the nodes to determine the score of the intelligent contract; wherein the content of the first and second substances,
the more times the intelligent contract is installed by a node, the higher the score of the intelligent contract.
3. The method for recommending block chain intelligent contracts according to claim 1, wherein the evaluating the intelligent contracts according to a preset mode to determine scores of the intelligent contracts specifically comprises:
evaluating the intelligent contract according to the number of times that the intelligent contract is installed by the node and the number of times that the intelligent contract is called by other intelligent contracts, and determining the score of the intelligent contract; wherein the content of the first and second substances,
the more times the intelligent contract is installed by the nodes, the higher the score of the intelligent contract is;
the more times an intelligent contract is invoked by other intelligent contracts, the higher the score of the intelligent contract.
4. The method for recommending block chain intelligent contracts according to claim 1, wherein the evaluating the intelligent contracts according to a preset mode to determine scores of the intelligent contracts specifically comprises:
evaluating the intelligent contract according to the number of times that the intelligent contract is installed by the node, the number of times that the intelligent contract is called by other intelligent contracts and whether the intelligent contract is called by the intelligent contract with the score higher than the preset score to determine the score of the intelligent contract; wherein the content of the first and second substances,
the more times the intelligent contract is installed by the nodes, the higher the score of the intelligent contract is;
the more times the intelligent contract is called by other intelligent contracts, the higher the score of the intelligent contract is;
the intelligent contract is called by the intelligent contract with the score higher than the preset score.
5. The method for recommending block chain intelligent contracts according to claim 1, wherein the evaluating the intelligent contracts according to a preset mode to determine scores of the intelligent contracts specifically comprises:
evaluating the intelligent contract according to the number of times that the intelligent contract is installed by the node, the number of times that the intelligent contract is called by other intelligent contracts, whether the intelligent contract is called by the intelligent contract with the score higher than the preset score and the user score of the intelligent contract, and determining the score of the intelligent contract; wherein the content of the first and second substances,
the more times the intelligent contract is installed by the nodes, the higher the score of the intelligent contract is;
the more times the intelligent contract is called by other intelligent contracts, the higher the score of the intelligent contract is;
the intelligent contract is called by the intelligent contract with the score higher than the preset score, and the score of the intelligent contract is higher;
the higher the user score of the intelligent contract, the higher the score of the intelligent contract.
6. The method for recommending block chain intelligent contracts according to claim 1, wherein the evaluating the intelligent contracts according to a preset mode to determine scores of the intelligent contracts specifically comprises:
evaluating the intelligent contract according to the number of times of the intelligent contract being installed by the node, the number of times of the intelligent contract being called by other intelligent contracts, whether the intelligent contract is called by the intelligent contract with the score higher than the preset score, the user score of the intelligent contract and the professional score of the intelligent contract at a specific angle, and determining the score of the intelligent contract; wherein the content of the first and second substances,
the more times the intelligent contract is installed by the nodes, the higher the score of the intelligent contract is;
the more times the intelligent contract is called by other intelligent contracts, the higher the score of the intelligent contract is;
the intelligent contract is called by the intelligent contract with the score higher than the preset score, and the score of the intelligent contract is higher;
the higher the user score of the intelligent contract is, the higher the score of the intelligent contract is;
the higher the professional score of the intelligent contract, the higher the score of the intelligent contract.
7. The method for recommending block chain intelligent contracts according to claim 6, wherein the evaluating the intelligent contracts according to a preset mode to determine scores of the intelligent contracts specifically comprises:
for determining the score of the intelligent contract, presetting the weight of the number of times that the intelligent contract is installed by nodes, the number of times that the intelligent contract is called by other intelligent contracts, whether the intelligent contract is called by the intelligent contract with the score higher than the preset score, the user score of the intelligent contract and the professional score of the intelligent contract at a specific angle;
and evaluating the intelligent contract according to the number of times that the intelligent contract is installed by the node, the number of times that the intelligent contract is called by other intelligent contracts, whether the intelligent contract is called by the intelligent contract with the score higher than the preset score, the user score of the intelligent contract and the professional score of the intelligent contract at a specific angle, and determining the score of the intelligent contract.
8. The method for recommending block chain intelligent contracts according to claim 6, wherein said specific angles include security and ease of use.
9. A recommendation device for a blockchain smart contract, the device comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
evaluating the intelligent contract according to a preset mode to determine the score of the intelligent contract;
according to the scores of the intelligent contracts, sequencing the intelligent contracts with specific functions to determine a sequencing result;
and recommending the corresponding intelligent contracts to the user according to the sequencing results.
10. A recommendation medium for a blockchain smart contract storing computer-executable instructions configured to:
evaluating the intelligent contract according to a preset mode to determine the score of the intelligent contract;
according to the scores of the intelligent contracts, sequencing the intelligent contracts with specific functions to determine a sequencing result;
and recommending the corresponding intelligent contracts to the user according to the sequencing results.
CN202010274541.9A 2020-04-09 2020-04-09 Recommendation method, device and medium for intelligent contracts of block chains Pending CN111596946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010274541.9A CN111596946A (en) 2020-04-09 2020-04-09 Recommendation method, device and medium for intelligent contracts of block chains

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010274541.9A CN111596946A (en) 2020-04-09 2020-04-09 Recommendation method, device and medium for intelligent contracts of block chains

Publications (1)

Publication Number Publication Date
CN111596946A true CN111596946A (en) 2020-08-28

Family

ID=72181910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010274541.9A Pending CN111596946A (en) 2020-04-09 2020-04-09 Recommendation method, device and medium for intelligent contracts of block chains

Country Status (1)

Country Link
CN (1) CN111596946A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113051144A (en) * 2021-03-26 2021-06-29 中山大学 Intelligent contract recommendation method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113051144A (en) * 2021-03-26 2021-06-29 中山大学 Intelligent contract recommendation method and device
CN113051144B (en) * 2021-03-26 2022-02-08 中山大学 Intelligent contract recommendation method and device

Similar Documents

Publication Publication Date Title
CN109947643B (en) A/B test-based experimental scheme configuration method, device and equipment
CN109241026B (en) Data management method, device and system
CN110378400B (en) Model training method and device for image recognition
CN113011483B (en) Method and device for model training and business processing
CN108320071B (en) Business risk management method, device and equipment
CN108846069B (en) Document execution method and device based on markup language
CN115238826B (en) Model training method and device, storage medium and electronic equipment
CN111966334A (en) Service processing method, device and equipment
CN114547024A (en) SQL statement risk detection method, device, equipment and medium
CN111930343A (en) Method, device and medium for acquiring random number and generating random number
CN110852503A (en) Method and device for selecting payment channel and payment channel route
CN111596946A (en) Recommendation method, device and medium for intelligent contracts of block chains
CN109409037B (en) Method, device and equipment for generating data confusion rule
CN107239270B (en) Code processing method and device
CN110704742B (en) Feature extraction method and device
CN109903165B (en) Model merging method and device
CN112000329A (en) Data display method, device, equipment and medium
CN112528614A (en) Table editing method and device and electronic equipment
CN111984247A (en) Service processing method and device and electronic equipment
CN113010564B (en) Model training and information recommendation method and device
CN113590490B (en) Automatic test method, device and equipment
CN112434486A (en) Automatic device paging method, device, equipment and medium in PCB design
CN111651450B (en) Block copy method, device, equipment and medium based on block chain
CN113821229A (en) Program installation method, device, equipment and medium
CN116049552A (en) Recommendation processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200814

Address after: Room 1-2301, Building 7, North District, Shandong Design and Creative Industry Park, No. 868 Tangye West Road, Licheng District, Jinan City, Shandong Province, 250102

Applicant after: SHANDONG INSPUR QUALINK TECHNOLOGY Co.,Ltd.

Address before: Room 3110, S01 building, Langchao building, No. 1036, Langchao Road, high tech Zone, Jinan City, Shandong Province 250101

Applicant before: Shandong Aicheng Network Information Technology Co.,Ltd.

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination