CN108053137A - A kind of block chain intelligence contract sort method - Google Patents

A kind of block chain intelligence contract sort method Download PDF

Info

Publication number
CN108053137A
CN108053137A CN201711445612.1A CN201711445612A CN108053137A CN 108053137 A CN108053137 A CN 108053137A CN 201711445612 A CN201711445612 A CN 201711445612A CN 108053137 A CN108053137 A CN 108053137A
Authority
CN
China
Prior art keywords
ranking
account
block chain
contract
sort method
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
CN201711445612.1A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201711445612.1A priority Critical patent/CN108053137A/en
Publication of CN108053137A publication Critical patent/CN108053137A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • G06Q10/06393Score-carding, benchmarking or key performance indicator [KPI] analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/067Enterprise or organisation modelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions

Abstract

The invention discloses a kind of block chain intelligence contract sort methods, and this method comprises the following steps:A, the step of carrying out account ranking;Specially:According to significance level of each node in trade network, the ranking result of each account is obtained;B, the step of carrying out intelligent contract ranking;It specifically includes:B1, according to above-mentioned account ranking result, top n account is taken, by ranking successively distribution voting stake;B2, the active address for defining a predetermined period, i.e., called intelligence and the set of all addresses of about C in a nearest predetermined period;B3, to intelligence and about C, the voting stake of all accounts in the active address of the predetermined period is added, obtains the fraction of the intelligent contract.Using the method for the present invention, intelligent contract quality can be objectively evaluated, and ranking results can be avoided artificially to be manipulated.

Description

A kind of block chain intelligence contract sort method
Technical field
The present invention relates to block chain technology more particularly to a kind of block chain intelligence contract sort methods.
Background technology
Current block chain technology is considered as the subversive core skill of the next generation after steam engine, electric power, internet Art.If steam engine releases the productivity of people, electric power solves the basic life requirement of people, and internet thoroughly changes The mode that information is transferred, then the machine that block chain is trusted as construction, it would be possible to thoroughly change entire human society and be worth The mode of transmission.
Block chain technology (Blockchain Technology, BT) is a kind of internet database technology, its main feature is that going It is centralization, open and clear, everyone is allowed to each may participate in data-base recording.The basic conception of block chain includes:Transaction (Transaction), once-through operation causes the once change of account book state, such as one record of addition;Block (Block), record The transaction occurred in a period of time and state outcome, are the once common recognitions to current account book state;Chain (Chain), by one by one Block is in series according to order of occurrence, is the log recording of entire state change.
As soon as if using block chain as a state machine, then transaction is attempt to change a next state every time, and knows together every time The block of generation is exactly that participant causes the result of state change to confirm for All Activity content in block.
Assuming that database is an account book, read-write database can regard a kind of behavior of book keeping operation as, block chain technology Principle is to be kept accounts whithin a period of time by some people, then this page information of account book is issued to other in whole system Owner.This is also equivalent to all records in change data storehouse, issues other each nodes of the whole network, so block chain technology Also referred to as distributed account book (Distributed Ledger) technology.Block chain is Distributed Storage, point-to-point transmission, is total to The new application pattern of the computer technologies such as knowledge mechanism, Encryption Algorithm.And so-called common recognition mechanism is realized not in block catenary system With the mathematical algorithm that trust, acquisition rights and interests are established between node.
In order to preferably establish the ecological environment of block chain application, it is proposed that the developer towards intelligent contract developer Excitation protocol (Developer Incentive Protocol, DIP), so that the developer of intelligent contract, especially outstanding intelligence Energy developer is rewarded by way of obtaining some form such as token.The intelligence contract is a set of to define in digital form Promise (Promises), including contract participant can above-mentioned execution these promise to undertake agreement.
Physically, the carrier of intelligent contract is the computer code that computer can recognize that and run.Bit coin script language Speech is a kind of authoritative, based on stack programming language, and since it is that non-figure spirit is complete, there are certain limitations in application Property.Ether mill is the block catenary system for the complete intelligent contract of realization figure spirit that beats the world, and the programming language used is Solidity, Serpent so that application developers can efficiently and rapidly develop miscellaneous application program.Intelligence is closed After about code is published on block chain, the participation without intermediary can be in block chain automated execution.
However, the height of intelligent contract quality, currently without good evaluation method.It is in addition, existing based on intelligent contract Block chain product, currently used sort method is fairly simple, as ethplorer.io according to contract be called number into Row sequence, etherscan.io are ranked up using the total amount that contract is merchandised.According to the way that call number sorts, hold very much It is easily manipulated, because applying for that new account does not have any cost on block chain, the cost of contract is called to can be ignored, so Forge what function all without contract, ranking can be easy to paint.And it is ranked up according to transaction total amount Way, be equally easily controlled, such as construct a contract, transfer accounts between two accounts, recursive call can be repeatedly easy to Ground paints transaction total amount, thus it is very forward that ranking can be enable to be forged.
It can be seen that the sort method usage scenario being easily manipulated can be limited to very much, such as with ranking come to outstanding conjunction Developer about provides reward, if ranking manipulates very much, just has very big economic loss.
The content of the invention
In view of this, it is a primary object of the present invention to provide one kind can objectively evaluate intelligent contract quality, and Avoid the block chain intelligence contract sort method that ranking results are manipulated.
In order to achieve the above objectives, the technical proposal of the invention is realized in this way:
A kind of block chain intelligence contract sort method, this method comprises the following steps:
A, the step of carrying out account ranking;Specially:According to significance level of each node in trade network, obtain every The ranking result of a account;
B, the step of carrying out intelligent contract ranking;It specifically includes:B1, according to above-mentioned account ranking result, take top n account Family, by ranking successively distribution voting stake;B2, the active address for defining a predetermined period, i.e., a nearest predetermined period is interior to be called Cross intelligence and the set of all addresses of about C;B3, to intelligence and about C, by all accounts in the active address of the predetermined period Voting stake be added, obtain the fraction of the intelligent contract.
Wherein, the significance level described in step A according to each node in trade network obtains the ranking knot of each account The process of fruit, including:
A1, oriented cum rights trade network, the network are built according to historical trading data using trade network structure module In each one station address of node on behalf, a connection and its weights represent the transaction intensity between two addresses in network;
A2, default rank algorithm progress ground is performed using address ranking module according to above-mentioned oriented cum rights trade network Location is sorted, and significance level scoring is carried out to each node in trade network.
Wherein, it is specially by ranking successively distribution voting stake described in step B1:The 1st account voting stake is arranged as N, 2nd weights are N-1, and so on.
Predetermined period described in step B2 is week, and the active address of the predetermined period is all active address WAA.
The fraction Score of the intelligent contract obtained described in step B3c, as shown in formula (1):
Scorec=∑k∈WAA(c)Wk (1)
Wherein:K represents account;WAA (c) is represented and all any active ues of about C;WkRepresent the weight of account k.
Further comprise after step B3:
B4, the ranking result for providing the intelligent contract from high to low according to the fraction.
It is preferred that further comprise:Block chain intelligence contract is listed by the order of the account ranking, intelligent contract ranking Ranking results.
The block chain intelligence contract sort method of the present invention, has the advantages that:
1) the block chain intelligence contract sort method, using the default rank algorithm with natural attack tolerant, such as LeaderRank algorithms, the account ranking obtained with this are not easy to forge.Top n account is taken to vote, high ranked users select jointly The intelligent contract selected will obtain higher ranking, and manipulating indivedual high ranked users influences less ranking.Therefore from account ranking All there is the ability that higher resistance manipulates with contract ranking two parts.
2) the block chain intelligence contract sort method, by the logic of ballot, similar to collaborative filtering, more majority trust Intelligent contract there is higher ranking, than more reasonable, therefore the ranking results that individually count call number and transaction total amount Also it is more credible.
Description of the drawings
Fig. 1 is block chain intelligence contract sort method flow chart of the embodiment of the present invention;
Fig. 2 is the encouragement function curve schematic diagram that the embodiment of the present invention is used for trade network system.
Specific embodiment
Below in conjunction with the accompanying drawings and the embodiment of the present invention is further detailed to block chain intelligence contract sort method of the present invention work Thin explanation.
Fig. 1 is block chain intelligence contract sort method flow chart of the embodiment of the present invention.
As shown in Figure 1, the block chain intelligence contract sort method mainly includes the following steps:
Step 11:The step of carrying out account ranking.
Detailed process is:According to significance level of each node in trade network, the ranking result of each account is obtained.
The process for carrying out account ranking, includes the following steps:
Step 111:The step of module construction cum rights trade network being built using trade network.
It is specific as follows:Oriented cum rights trade network is built according to historical trading data, each node on behalf in the network One station address, a connection and its weights represent the transaction intensity between two addresses in network.
In order to improve the cost for forging account, declined in the trade network of construction using what is designed specifically for trade network Subtract mechanism to improve the cost for forging account, for any one transaction cycle, transaction address side right weights are decayed to by two The superposition of a part attenuation coefficient determines (with reference to figure 2).Wherein, first portion be coin age, account coin age within the cycle Bigger, the account is just more difficult to forge, and attenuation coefficient is with regard to smaller;Second portion by one encourage function curve form, the curve by Two normal distribution superposition generations.
As shown in Fig. 2, wherein transverse axis represents to account for total circulation amount of money by account amount received that (amount received and amount paid are total With), the longitudinal axis represents attenuation ratio.
The mechanism encouragement people that spends more the people of money and moderately save, the former can stimulate the economy the mobility of body, and the latter is then It is the consumption habit of most of rational bubbles.And " the moonlight race " of money suspicion is led for hardly spending and having, we will give greatly Amplitude fading.
Above-mentioned attenuating mechanism can well, really reflect actual transaction intensity.
Step 112:The step of default rank algorithm carries out address sort is performed using address ranking module.
According to the trade network generated in step 111, perform default rank algorithm and be ranked up, in trade network Each node carries out significance level scoring.Wherein default rank algorithm is LeaderRank, and the algorithm is first in trading pattern Ground nodes are added, are denoted as G, number N+1.Then the bi-directional chaining of Ground nodes and other each nodes is established, and is assigned Give link weights.The calculating process and PageRank algorithms of the LeaderRank algorithms are essentially identical, it can be understood as ask horse Can husband's chain stable state.It the difference is that is with the addition of after Ground nodes, it is no longer necessary to consider PageRank's damping factor.I.e. by calculating after corresponding calculation formula structural matrix H, is iterated until convergence, finally remove The scoring of Ground nodes can obtain the score of trading pattern each point significance level.
Definition to the measure of value and the property of algorithm can preferably be met using LeaderRank algorithms, assign power machine System can increase attack difficulty, therefore can preferably meet credible requirement.
To sum up, although the possible zero cost of a people possesses multiple accounts in block chain network, after sequence, filter out The high ranked users come have stronger authenticity, are not easy to forge.Above-mentioned address ranking result can be used for intelligence of the invention The ballot of contract and the ranking of intelligent contract.
Step 12:The step of carrying out intelligent contract ranking.
Detailed process is:According to above-mentioned account ranking result, top n account is taken, voting stake is successively distributed by ranking, The 1st account voting stake is arranged as N, the 2nd weights are N-1, and so on.
Then, by the concept of all any active ues, the active address of a predetermined period is defined, the predetermined period is week, The active address of the predetermined period is all active addresses (Weekly Active Addresses, WAA), is implied that nearest one week Inside called intelligence and the set of all addresses of about C.
In the present embodiment, for about C, the sum of voting stake of all accounts is the contract in all active addresses Fraction Scorec, as shown in formula (1), finally provide the ranking result of intelligent contract from high to low according to the fraction.
Scorec=∑k∈WAA(c)Wk (1)
Wherein:K represents account;WAA (c) is represented and all any active ues of about C;WkThe weight of account k is represented, sees formula (2):
Wa=max { X+1-NR (a), 0 } (2)
Wherein:WaRepresent the voting stake of user a;X represents the account of TopX before selection account ranking, and NR (a) represents account Family ranking result.
Such as:Assuming that X=10, have and about c, in nearly week age, ranking is in the use of set [1,5,6,10,15,20] Called this contract in family.
The voting stake of so these users is respectively:W1=10, W5=6, W6=5, W10=1, W15=0, W20=0.Cause This and about c is scored at 22.All contract sequences can be provided as a result,.
Step 13:The ranking results of block chain intelligence contract are listed by the order of the account ranking, intelligent contract ranking.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (7)

1. a kind of block chain intelligence contract sort method, which is characterized in that this method comprises the following steps:
A, the step of carrying out account ranking;Specially:According to significance level of each node in trade network, each account is obtained The ranking result at family;
B, the step of carrying out intelligent contract ranking;It specifically includes:B1, according to above-mentioned account ranking result, take top n account, By ranking successively distribution voting stake;B2, the active address for defining a predetermined period, i.e., called intelligence in a nearest predetermined period It can be with the set of all addresses of about C;B3, to intelligence and about C, by the throwing of all accounts in the active address of the predetermined period Ticket weights are added, and obtain the fraction of the intelligent contract.
2. block chain intelligence contract sort method according to claim 1, which is characterized in that according to each section described in step A Significance level of the point in trade network, obtains the process of the ranking result of each account, including:
A1, oriented cum rights trade network is built according to historical trading data using trade network structure module, it is every in the network A one station address of node on behalf, a connection and its weights represent the transaction intensity between two addresses in network;
A2, default rank algorithm is performed into row address row using address ranking module according to above-mentioned oriented cum rights trade network Sequence carries out significance level scoring to each node in trade network.
3. block chain intelligence contract sort method according to claim 1, which is characterized in that described in step B1 by ranking successively Voting stake is distributed, is specially:The 1st account voting stake is arranged as N, the 2nd weights are N-1, and so on.
4. block chain intelligence contract sort method according to claim 1, which is characterized in that predetermined period described in step B2 is In week, the active address of the predetermined period is all active address WAA.
5. block chain intelligence contract sort method according to claim 1, which is characterized in that the intelligence obtained described in step B3 The fraction Score of contractc, as shown in formula (1):
Scorec=∑k∈WAA(c)Wk (1)
Wherein:K represents account;WAA (c) is represented and all any active ues of about C;WkRepresent the weight of account k.
6. block chain intelligence contract sort method according to claim 1, which is characterized in that further wrapped after step B3 It includes:
B4, the ranking result for providing the intelligent contract from high to low according to the fraction.
7. block chain intelligence contract sort method according to claim 6, which is characterized in that further comprise:
The ranking results of block chain intelligence contract are listed by the order of the account ranking, intelligent contract ranking.
CN201711445612.1A 2017-12-27 2017-12-27 A kind of block chain intelligence contract sort method Pending CN108053137A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711445612.1A CN108053137A (en) 2017-12-27 2017-12-27 A kind of block chain intelligence contract sort method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711445612.1A CN108053137A (en) 2017-12-27 2017-12-27 A kind of block chain intelligence contract sort method

Publications (1)

Publication Number Publication Date
CN108053137A true CN108053137A (en) 2018-05-18

Family

ID=62128593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711445612.1A Pending CN108053137A (en) 2017-12-27 2017-12-27 A kind of block chain intelligence contract sort method

Country Status (1)

Country Link
CN (1) CN108053137A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108923909A (en) * 2018-07-02 2018-11-30 上海达家迎信息科技有限公司 Block chain generation method, device, computer equipment and storage medium
CN109117629A (en) * 2018-09-06 2019-01-01 上海点融信息科技有限责任公司 Method and apparatus for the counting user intelligence contract in block chain network
CN109286676A (en) * 2018-10-15 2019-01-29 国网上海市电力公司 A kind of electric power data safety information system based on block chain
CN109325746A (en) * 2018-08-29 2019-02-12 华中科技大学 A kind of block chain motivational techniques based on storage, block chain network and storage network
CN109389485A (en) * 2018-09-30 2019-02-26 深圳市有情矿技术有限公司 Block chain dynamic exciting method under autonomous domain model based on information sharing contribution margin
CN109600230A (en) * 2018-11-27 2019-04-09 北京零和商务有限公司 A kind of block chain common recognition mechanism realizes system and its implementation
CN109741183A (en) * 2018-12-29 2019-05-10 北京金山安全软件有限公司 Information acquisition method and device
CN109801070A (en) * 2019-01-12 2019-05-24 杭州复杂美科技有限公司 Transaction queuing strategy, equipment and storage medium
CN110400410A (en) * 2019-07-31 2019-11-01 中钞信用卡产业发展有限公司杭州区块链技术研究院 A kind of electronic voting system
CN110647715A (en) * 2019-11-01 2020-01-03 数字钱包(北京)科技有限公司 Ranking list voting processing method and device
CN112904734A (en) * 2020-12-23 2021-06-04 上海上实龙创智能科技股份有限公司 Intelligent household appliance control system and method based on Internet of things and block chain double gateways

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108923909A (en) * 2018-07-02 2018-11-30 上海达家迎信息科技有限公司 Block chain generation method, device, computer equipment and storage medium
CN108923909B (en) * 2018-07-02 2021-07-20 上海达家迎信息科技有限公司 Block chain generation method and device, computer equipment and storage medium
CN109325746A (en) * 2018-08-29 2019-02-12 华中科技大学 A kind of block chain motivational techniques based on storage, block chain network and storage network
CN109117629A (en) * 2018-09-06 2019-01-01 上海点融信息科技有限责任公司 Method and apparatus for the counting user intelligence contract in block chain network
CN109389485A (en) * 2018-09-30 2019-02-26 深圳市有情矿技术有限公司 Block chain dynamic exciting method under autonomous domain model based on information sharing contribution margin
CN109286676B (en) * 2018-10-15 2021-06-11 国网上海市电力公司 Electric power data safety information system based on block chain
CN109286676A (en) * 2018-10-15 2019-01-29 国网上海市电力公司 A kind of electric power data safety information system based on block chain
CN109600230A (en) * 2018-11-27 2019-04-09 北京零和商务有限公司 A kind of block chain common recognition mechanism realizes system and its implementation
CN109600230B (en) * 2018-11-27 2021-07-27 柯优兔区块链研究(广州)中心(有限合伙) System and method for realizing block chain consensus mechanism
CN109741183A (en) * 2018-12-29 2019-05-10 北京金山安全软件有限公司 Information acquisition method and device
CN109801070A (en) * 2019-01-12 2019-05-24 杭州复杂美科技有限公司 Transaction queuing strategy, equipment and storage medium
CN110400410A (en) * 2019-07-31 2019-11-01 中钞信用卡产业发展有限公司杭州区块链技术研究院 A kind of electronic voting system
CN110647715A (en) * 2019-11-01 2020-01-03 数字钱包(北京)科技有限公司 Ranking list voting processing method and device
CN112904734A (en) * 2020-12-23 2021-06-04 上海上实龙创智能科技股份有限公司 Intelligent household appliance control system and method based on Internet of things and block chain double gateways

Similar Documents

Publication Publication Date Title
CN108053137A (en) A kind of block chain intelligence contract sort method
Arthur et al. Asset pricing under endogenous expectations in an artificial stock market
Kropp et al. Technological entrepreneurship and small business innovation research programs
Fligstein et al. A new agenda for research on the trajectory of Chinese capitalism
LaTorre et al. A MOS-based dynamic memetic differential evolution algorithm for continuous optimization: a scalability test
Stern et al. Within‐business diversification in technology‐intensive industries
Yu et al. Evolutionary fuzzy neural networks for hybrid financial prediction
CN109784926A (en) A kind of virtual plant internal market method of commerce and system based on alliance's block chain
CN108416663A (en) The method and device of the financial default risk of assessment
Jain et al. Memory and organizational evolvability in a neutral landscape
Chen et al. Cloning strategies from trading records using agent-based reinforcement learning algorithm
CN112634019A (en) Default probability prediction method for optimizing grey neural network based on bacterial foraging algorithm
CN108198018A (en) A kind of trade network system and its implementation for block chain address ranking
Fujita Compromising Adjustment Strategy Based on TKI Conflict Mode for Multi‐Times Bilateral Closed Negotiations
CN111861648A (en) Price negotiation strategy model learning method based on simulation training
Arbabi et al. Application of neural networks in evaluation of key factors of knowledge management system, Case Study: Iranian Companies Based in Alborz Province
Petras Globalisation: A socialist perspective
Chandra et al. Neural networks in a market efficiency context
Homaifar et al. Boolean function learning with a classifier system
Park et al. Formulating and managing the HAN Projects in Korea: lessons and policy implications for developing countries
Rees et al. Brainstorming, negotiating and learning in group decision support systems: an evolutionary approach
Holsapple et al. A machine learning method for multi-expert decision support
Lin Learning and party competition
Haruvyö et al. Equilibrium Selection in Repeated B2B Matching Markets
Dutta et al. Predicting Ethereum Fraudulency using ChaosNet

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180518

RJ01 Rejection of invention patent application after publication