Blockchain smart contract execution credibility assessment method and device
By optimizing the weight parameters of multi-dimensional indicator security scanning and variation coefficient method of blockchain smart contracts, evaluating the execution of smart contracts, solving the security risks of smart contracts on the blockchain, and realizing the security of clearing and settlement business reliability.
Patent Information
- Application Number
- CN201911270116.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-12
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2039-12-12
AI Technical Summary
When deploying smart contracts on the blockchain for clearing and settlement business accounts and automated settlement, there are security risks such as contract vulnerabilities, node malicious behavior, and network delays, which leads to the credibility of the smart contract execution results being questioned.
By collecting business-related indicators and blockchain-related indicators in the blockchain network, their weight values and variation coefficients are determined respectively, and weighted processing is carried out to evaluate the credibility of the execution of smart contracts. Using the security scanning of multi-dimensional indicators and Audit optimization weight parameters.
It realizes the credibility assessment of the execution of smart contracts, ensures the security and reliability of the blockchain-based clearing and settlement business process, is applicable to different business scenarios, and improves the practicality and credibility of contract results.
Smart Images

Figure CN112990621B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of blockchain, and in particular to a method and device for evaluating the credibility of execution of a blockchain smart contract. Background Art
[0002] The existing clearing and settlement system of telecom operators has problems such as opaque account books, high labor costs, and weak credibility in the process of settlement between telecom operators and value-added service providers. The emergence of these problems will undoubtedly increase the risk of internal private data leakage in the process of fund settlement and increase unnecessary expenditure.
[0003] By introducing blockchain technology and utilizing the blockchain's security, traceability, and non-tamperability characteristics, the risks brought about by the above problems can be better resolved. However, in the process of completing the clearing and settlement business account consolidation and automated settlement by deploying smart contracts on the blockchain, there are still actual security risks such as contract loopholes, node misconduct, and network delays. Therefore, the credibility of the execution results of smart contracts is questioned to a certain extent. Summary of the invention
[0004] The present invention provides a solution for evaluating the credibility of blockchain smart contract execution to ensure the security and reliability of blockchain-based clearing and settlement business processes.
[0005] According to a first aspect of an embodiment of the present disclosure, a method for evaluating the credibility of the execution of a blockchain smart contract is provided, comprising: collecting indicator data in a blockchain network, wherein the indicator data includes business-related indicators and blockchain-related indicators; presenting the business-related indicators so as to collect weight coefficients determined by multiple designated personnel for each business-related indicator; determining the corresponding business-related indicator weight value using the average value of the weight coefficient of each business-related indicator; determining the coefficient of variation of the corresponding blockchain-related indicator using the standard deviation and average value of each blockchain-related indicator; determining the corresponding blockchain-related indicator weight value using the coefficient of variation; and weighting the business-related indicators and the blockchain-related indicators using the business-related indicator weight values and the blockchain-related indicator weight values, respectively, to obtain an evaluation result.
[0006] In some embodiments, weighting the business-related indicator and the blockchain-related indicator using the business-related indicator weight value and the blockchain-related indicator weight value respectively includes: using the formula Calculate the evaluation result T, where k is the number of business-related indicators, Q i is the i-th business-related indicator, R i is the weight value of the i-th business-related indicator, s is the number of blockchain-related indicators, X i is the i-th blockchain related indicator, W i is the weight value of the ith blockchain related indicator.
[0007] In some embodiments, determining the weight value of the corresponding blockchain-related indicator using the coefficient of variation includes: using the formula Calculate the weight value W of the i-th blockchain related indicator i , where V i is the coefficient of variation of the ith blockchain-related indicator.
[0008] In some embodiments, using the standard deviation and the average value of each blockchain-related indicator, determining the coefficient of variation of the corresponding blockchain-related indicator includes: using the formula Calculate the coefficient of variation V of the i-th blockchain-related indicator i , where σ i is the standard deviation of the ith blockchain-related indicator, is the average value of the ith blockchain related indicators.
[0009] According to a second aspect of an embodiment of the present disclosure, a blockchain smart contract execution credibility assessment device is provided, comprising: a collection module, configured to collect indicator data in a blockchain network, wherein the indicator data includes business-related indicators and blockchain-related indicators; a first weight value processing module, configured to present the business-related indicators so as to collect weight coefficients determined by multiple designated personnel for each business-related indicator respectively; the corresponding business-related indicator weight value is determined using the average value of the weight coefficient of each business-related indicator; a second weight value processing module, configured to determine the coefficient of variation of the corresponding blockchain-related indicator using the standard deviation and average value of each blockchain-related indicator, and determine the corresponding blockchain-related indicator weight value using the coefficient of variation; an assessment processing module, configured to perform weighted processing on the business-related indicators and the blockchain-related indicators using the business-related indicator weight values and the blockchain-related indicator weight values, respectively, to obtain an assessment result.
[0010] In some embodiments, the evaluation processing module is configured to use the formula Calculate the evaluation result T, where k is the number of business-related indicators, Q i is the i-th business-related indicator, R i is the weight value of the i-th business-related indicator, s is the number of blockchain-related indicators, X i is the i-th blockchain related indicator, W i is the weight value of the ith blockchain related indicator.
[0011] In some embodiments, the second weight value processing module is configured to use the formula Calculate the weight value W of the i-th blockchain related indicator i , where V iis the coefficient of variation of the ith blockchain-related indicator.
[0012] In some embodiments, the second weight value processing module is configured to use the formula Calculate the coefficient of variation V of the i-th blockchain-related indicator i , where σ i is the standard deviation of the ith blockchain-related indicator, is the average value of the ith blockchain related indicators.
[0013] According to a third aspect of an embodiment of the present disclosure, a device for evaluating the credibility of the execution of a blockchain smart contract is provided, comprising: a memory configured to store instructions; a processor coupled to the memory, the processor being configured to execute a method as described in any of the above embodiments based on the instructions stored in the memory.
[0014] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the method involved in any of the above embodiments is implemented.
[0015] Other features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0017] The present disclosure may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
[0018] Figure 1 It is a flowchart of a method for evaluating the credibility of blockchain smart contract execution according to an embodiment of the present disclosure;
[0019] Figure 2 It is a structural schematic diagram of a blockchain smart contract execution credibility assessment device according to an embodiment of the present disclosure;
[0020] Figure 3 It is a structural diagram of a blockchain smart contract execution credibility assessment device according to another embodiment of the present disclosure.
[0021] It should be understood that the size of each part shown in the accompanying drawings is not drawn according to the actual proportional relationship. In addition, the same or similar reference numerals represent the same or similar components. DETAILED DESCRIPTION
[0022] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. The description of the exemplary embodiments is merely illustrative and is in no way intended to limit the present disclosure and its application or use. The present disclosure can be implemented in many different forms and is not limited to the embodiments described herein. These embodiments are provided to make the present disclosure thorough and complete and to fully express the scope of the present disclosure to those skilled in the art. It should be noted that unless otherwise specifically stated, the relative arrangement of the components and steps, the composition of the materials, and the numerical values set forth in these embodiments should be interpreted as being merely exemplary and not as limiting.
[0023] The words “include” or “comprising” and the like used in the present disclosure mean that the elements preceding the words include the elements listed after the words, and do not exclude the possibility of also including other elements.
[0024] All terms (including technical terms or scientific terms) used in the present disclosure have the same meanings as those understood by ordinary technicians in the field to which the present disclosure belongs, unless otherwise specifically defined. It should also be understood that terms defined in general dictionaries, such as general dictionaries, should be interpreted as having meanings consistent with their meanings in the context of the relevant technology, and should not be interpreted in an idealized or extremely formal sense, unless explicitly defined herein.
[0025] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0026] Figure 1 It is a flowchart of a method for evaluating the credibility of the execution of a blockchain smart contract according to an embodiment of the present disclosure. In some embodiments, the following steps of the method for evaluating the credibility of the execution of a blockchain smart contract are performed by a device for evaluating the credibility of the execution of a blockchain smart contract.
[0027] In step 101, indicator data in the blockchain network is collected, where the indicator data includes business-related indicators and blockchain-related indicators.
[0028] In some embodiments, business-related indicators include but are not limited to contract virtual machine version, contract permissions, code, configuration parameters, arithmetic precision, etc., and blockchain-related indicators include but are not limited to node trusted startup status, available memory, CPU load, network latency, CACHE occupancy rate, resource consumption, exception handling, log information, number of connections, permissions and transaction queues, etc.
[0029] For example, the indicator data includes k business-related indicators [Q1, Q2, …, Q k ], and s blockchain related indicators [X1,X2,…,X s ].
[0030] In step 102, business-related indicators are presented so as to collect weight coefficients determined by a plurality of designated personnel for each business-related indicator.
[0031] For example, if there are k business-related indicators [Q1, Q2, …, Q k ], then these k business-related indicators are given to multiple designated persons (such as experts in related fields) to respectively determine the weight coefficients of these k business-related indicators.
[0032] In step 103, the corresponding business-related indicator weight value is determined using the average value of the weight coefficient of each business-related indicator.
[0033] For example, if there are m designated personnel to determine the jth business-related indicator Q j The weight coefficient of , then m coefficient values are obtained. By calculating the average value of these m coefficient values, the jth business-related indicator Q is obtained j The weight value R j .
[0034] For example, r ji It is the business-related indicator Q given by the i-th designated person to the j-th business j Determine the weight coefficient.
[0035] In step 104, the coefficient of variation of each blockchain-related indicator is determined using the standard deviation and the average value of each blockchain-related indicator.
[0036] In some embodiments, the coefficient of variation V of the i-th blockchain-related indicator is calculated using the following formula (1): i .
[0037]
[0038] Among them, σ i is the standard deviation of the ith blockchain-related indicator, is the average value of the ith blockchain related indicators.
[0039] In step 105, the coefficient of variation is used to determine the weight value of the corresponding blockchain-related indicator.
[0040] In some embodiments, the weight value W of the i-th blockchain-related indicator is calculated using the following formula (2): i .
[0041]
[0042] Among them, V i is the coefficient of variation of the ith blockchain-related indicator.
[0043] In step 106, the business-related indicators and blockchain-related indicators are weighted using the business-related indicator weight values and the blockchain-related indicator weight values, respectively, to obtain an evaluation result.
[0044] In some embodiments, the evaluation result T is calculated using the following formula (3).
[0045]
[0046] Among them, k is the number of business-related indicators, Q i is the i-th business-related indicator, R i is the weight value of the i-th business-related indicator, s is the number of blockchain-related indicators, X i is the i-th blockchain related indicator, W i is the weight value of the ith blockchain related indicator.
[0047] In the blockchain smart contract execution credibility assessment method provided in the above embodiment of the present disclosure, based on the security scanning and auditing of nodes, underlying chains, and smart contract multi-dimensional indicators, with the weight parameters optimized by the coefficient of variation method, the assessment results of the smart contract execution are given to ensure the safety and reliability of the clearing and settlement business process based on blockchain. This public course is used to guide the settlement business of the blockchain clearing and settlement system.
[0048] Figure 2 Schematic diagram of a blockchain smart contract execution credibility assessment device according to an embodiment of the present disclosure. Figure 2 As shown, the blockchain smart contract execution credibility assessment device includes a collection module 21, a first weight value processing module 22, a second weight value processing module 23 and an assessment processing module 24.
[0049] The collection module 21 is configured to collect indicator data in the blockchain network, wherein the indicator data includes business-related indicators and blockchain-related indicators.
[0050] In some embodiments, business-related indicators include but are not limited to contract virtual machine version, contract permissions, code, configuration parameters, arithmetic precision, etc., and blockchain-related indicators include but are not limited to node trusted startup status, available memory, CPU load, network latency, CACHE occupancy rate, resource consumption, exception handling, log information, number of connections, permissions and transaction queues, etc.
[0051] For example, the indicator data includes k business-related indicators [Q1, Q2, …, Q k ], and s blockchain related indicators [X1,X2,…,X s ].
[0052] The first weight value processing module 22 is configured to present business-related indicators so as to collect weight coefficients determined by multiple designated personnel for each business-related indicator; and determine the corresponding business-related indicator weight value using the average value of the weight coefficients of each business-related indicator.
[0053] For example, if there are m designated personnel to determine the jth business-related indicator Q j The weight coefficient of , then m coefficient values are obtained. By calculating the average value of these m coefficient values, the jth business-related indicator Q is obtained j The weight value R j .
[0054] For example, r ji It is the business-related indicator Q given by the i-th designated person to the j-th business j Determine the weight coefficient.
[0055] The second weight value processing module 23 is configured to use the standard deviation and average value of each blockchain-related indicator to determine the coefficient of variation of the corresponding blockchain-related indicator, and use the coefficient of variation to determine the weight value of the corresponding blockchain-related indicator.
[0056] In some embodiments, the second weight value processing module 23 uses the above formula (1) to calculate the coefficient of variation V of the i-th blockchain-related indicator: i .
[0057] In some embodiments, the second weight value processing module 23 uses the above formula (2) to calculate the weight value W of the i-th blockchain-related indicator: i .
[0058] The evaluation processing module 24 is configured to perform weighted processing on the business-related indicators and the blockchain-related indicators using the business-related indicator weight values and the blockchain-related indicator weight values, respectively, to obtain an evaluation result.
[0059] In some embodiments, the evaluation processing module 24 calculates the evaluation result T using the above-mentioned formula (3).
[0060] Figure 3 1 is a schematic diagram of a blockchain smart contract execution credibility assessment device according to another embodiment of the present disclosure. Figure 3 As shown, the credibility evaluation device includes a memory 31 and a processor 32 .
[0061] The memory 31 is used to store instructions. The processor 32 is coupled to the memory 31. The processor 32 is configured to execute the instructions stored in the memory to implement the following. Figure 1 The method of any one of the embodiments.
[0062] like Figure 3As shown, the credibility evaluation device further includes a communication interface 33 for information exchange with other devices. At the same time, the credibility evaluation device further includes a bus 34, through which the processor 32, the communication interface 33, and the memory 31 communicate with each other.
[0063] The memory 31 may include high-speed RAM (Random Access Memory) and may also include NVM (Non-Volatile Memory). For example, at least one disk storage. The memory 31 may also be a storage array. The memory 31 may also be divided into blocks, and the blocks may be combined into virtual volumes according to certain rules.
[0064] In addition, the processor 32 may be a central processing unit, or may be an ASIC (Application Specific Integrated Circuit), or may be configured to implement one or more integrated circuits of the embodiments of the present disclosure.
[0065] The present disclosure also provides a computer-readable storage medium. The computer-readable storage medium stores computer instructions, which are executed by a processor to implement the following Figure 1 The method of any one of the embodiments.
[0066] By implementing the above embodiments of the present disclosure, the following beneficial effects can be obtained:
[0067] 1. Strong practicability. Even when there are loopholes in the contract or nodes are malicious, the credibility of the contract results can be well evaluated, and the subsequent business can be affected based on the evaluation results.
[0068] 2. Strong universality. It can be applied to businesses that perform calculations based on blockchain smart contracts. By adjusting the weights, it can be applied to different business scenarios.
[0069] 3. High credibility. Based on the security scan and audit of multi-dimensional indicators of nodes, underlying chains, and smart contracts, and with weight parameters optimized by the coefficient of variation method, the evaluation results of the execution of smart contracts are obtained.
[0070] In some embodiments, the above-mentioned functional modules can be implemented as a general-purpose processor, a programmable logic controller (PLC), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components or any appropriate combination thereof for performing the functions described in the present disclosure.
[0071] So far, the embodiments of the present disclosure have been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solutions disclosed herein.
[0072] Although some specific embodiments of the present disclosure have been described in detail by way of examples, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified or some technical features may be replaced by equivalents without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. A method for evaluating the credibility of blockchain smart contract execution, comprising: Collecting indicator data in the blockchain network, wherein the indicator data includes business-related indicators and blockchain-related indicators, wherein the business-related indicators include at least one of the contract virtual machine version, contract permissions, code, configuration parameters, and arithmetic precision, and the blockchain-related indicators include at least one of the node trusted startup status, available memory, CPU load, network latency, CACHE occupancy ratio, resource consumption, exception handling, log information, number of connections, permissions, and transaction queues; Presenting the business-related indicators so as to collect weight coefficients determined by a plurality of designated personnel for each business-related indicator; Determine the corresponding business-related indicator weight value using the average value of the weight coefficient of each business-related indicator; Using the standard deviation and mean of each blockchain-related indicator, determine the coefficient of variation of the corresponding blockchain-related indicator; Use the coefficient of variation to determine the weight value of the corresponding blockchain-related indicators; The business-related indicators and blockchain-related indicators are weighted using the business-related indicator weight values and blockchain-related indicator weight values respectively to obtain the evaluation results; Among them, using the weight values of business-related indicators and the weight values of blockchain-related indicators to perform weighted processing on business-related indicators and blockchain-related indicators respectively includes: Using the formula Calculate the evaluation result T, where k is the number of business-related indicators, Q i is the i-th business-related indicator, R i is the weight value of the i-th business-related indicator, s is the number of blockchain-related indicators, X i is the i-th blockchain related indicator, W i is the weight value of the ith blockchain-related indicator, where m designated personnel determine the ith business-related indicator Q i In the case of obtaining m coefficient values by using the weight coefficient, the average value of the m coefficient values is calculated as the i-th business-related indicator Q i The weight value R i .
2. The method according to claim 1, wherein: The weight values of the corresponding blockchain-related indicators determined by using the coefficient of variation include: Using the formula Calculate the weight value W of the i-th blockchain related indicator i , where V i is the coefficient of variation of the ith blockchain-related indicator.
3. The method according to claim 2, wherein: Using the standard deviation and mean of each blockchain-related indicator, the coefficient of variation of the corresponding blockchain-related indicator is determined, including: Using the formula Calculate the coefficient of variation V of the i-th blockchain-related indicator i , where σ i is the standard deviation of the ith blockchain-related indicator, is the average value of the ith blockchain related indicators.
4. A blockchain smart contract execution credibility assessment device, comprising: A collection module is configured to collect indicator data in the blockchain network, wherein the indicator data includes business-related indicators and blockchain-related indicators, wherein the business-related indicators include at least one of the contract virtual machine version, contract permissions, code, configuration parameters, and arithmetic precision, and the blockchain-related indicators include at least one of the node trusted startup status, memory availability, CPU load, network latency, CACHE occupancy ratio, resource consumption, exception handling, log information, number of connections, permissions, and transaction queues; A first weight value processing module is configured to present the business-related indicators so as to collect the weight coefficients determined by multiple designated personnel for each business-related indicator respectively; and determine the corresponding business-related indicator weight value using the average value of the weight coefficients of each business-related indicator; A second weight value processing module is configured to determine the coefficient of variation of the corresponding blockchain-related indicator using the standard deviation and the average value of each blockchain-related indicator, and determine the weight value of the corresponding blockchain-related indicator using the coefficient of variation; The evaluation processing module is configured to perform weighted processing on the business-related indicators and the blockchain-related indicators using the business-related indicator weight values and the blockchain-related indicator weight values respectively to obtain an evaluation result, wherein the formula is used Calculate the evaluation result T, where k is the number of business-related indicators, Q i is the i-th business-related indicator, R i is the weight value of the i-th business-related indicator, s is the number of blockchain-related indicators, X i is the i-th blockchain related indicator, W i is the weight value of the ith blockchain-related indicator, where m designated personnel determine the ith business-related indicator Q i In the case of obtaining m coefficient values by using the weight coefficient, the average value of the m coefficient values is calculated as the i-th business-related indicator Q i The weight value R i .
5. The device according to claim 4, wherein: The second weight value processing module is configured to use the formula Calculate the weight value W of the i-th blockchain related indicator i , where V i is the coefficient of variation of the ith blockchain-related indicator.
6. The device according to claim 5, wherein: The second weight value processing module is configured to use the formula Calculate the coefficient of variation V of the i-th blockchain-related indicator i , where σ i is the standard deviation of the ith blockchain-related indicator, is the average value of the ith blockchain related indicators.
7. A blockchain smart contract execution credibility assessment device, comprising: a memory configured to store instructions; A processor is coupled to the memory, and the processor is configured to execute the method according to any one of claims 1 to 3 based on instructions stored in the memory.
8. A computer-readable storage medium, wherein: The computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the method according to any one of claims 1 to 3 is implemented.
Citation Information
Cited By
System and method to improve stand-in transactions approval through blockchain interoperability and smart contracts
WO2026169413A1
