Unlock instant, AI-driven research and patent intelligence for your innovation.

A smart contract recommendation method and device

A technology of smart contracts and recommended methods, applied in the field of blockchain, can solve the problems of lack of adaptability of smart contracts, poor experience of blockchain platforms, and low utilization of massive data on blockchain platforms.

Active Publication Date: 2022-02-08
SUN YAT SEN UNIV
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] This application provides a smart contract recommendation method and device, which are used to solve the problem of the low utilization rate of massive data on the block chain platform in the prior art, and the lack of adaptability in the selection process of the smart contract, which leads to the lack of adaptability of the user in the block chain platform. Poor experience Technical issues

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A smart contract recommendation method and device
  • A smart contract recommendation method and device
  • A smart contract recommendation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0051]For ease of understanding, see figure 1 , Embodiment 1 of a smart contract recommendation method provided by this application, including:

[0052] Step 101. Construct a user contract matrix according to the preset transaction records, and the user contract matrix is ​​used to record the number of smart contract calls of the user.

[0053] The preset transaction records are obtained by the blockchain recording the transaction process between nodes, including transaction details such as transaction node identity, transaction amount, digital signature, and the number of transactions in the blockchain. The preset transaction records in this embodiment of the application mainly refer to the relationship between the user and the invoked smart contract, that is, the number of times the user invokes the smart contract.

[0054] Each row of the user contract matrix refers to the number of times the same user calls different smart contracts, and each column refers to the number o...

Embodiment 2

[0064] For ease of understanding, see figure 2 , the present application provides a second embodiment of a smart contract recommendation method, including:

[0065] Step 201. Construct a user contract matrix according to the preset transaction records, and the user contract matrix is ​​used to record the number of smart contract calls of the user.

[0066] This operation step is similar to the process of step 101 and will not be repeated here.

[0067] Step 202: Calculate the angle between any two row vectors in the user contract matrix in the Euclidean space, and obtain the user similarity between the two users corresponding to the two row vectors.

[0068] Euclidean space is a special metric space that plays a role in the definition of manifolds including Euclidean and non-Euclidean geometries.

[0069] When the preset similarity is user similarity, the similarity between two users is calculated. Specifically, firstly, any two row vectors are obtained from the user contra...

Embodiment 3

[0077] For ease of understanding, see image 3 , the present application also provides a third embodiment of a smart contract recommendation method, including:

[0078] Step 301. Construct a user contract matrix according to the preset transaction records, and the user contract matrix is ​​used to record the number of smart contract calls of the user.

[0079] This operation step is similar to the process of step 101 and will not be repeated here.

[0080] Step 302, calculate the angle between any two column vectors in the user contract matrix in the Euclidean space, and obtain the smart contract similarity between the two smart contracts corresponding to the two column vectors.

[0081] When the preset similarity is the similarity of smart contracts, the calculation is the similarity between two smart contracts. Specifically, firstly, any two column vectors are obtained from the user contract matrix, and one column represents a smart contract that is used by different Recor...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

This application discloses a smart contract recommendation method and device. The method includes: constructing a user contract matrix according to preset transaction records, and the user contract matrix is ​​used to record the number of smart contract calls of the user; calculating the preset similarity according to the user contract matrix, The preset similarity is user similarity or smart contract similarity; the preset similarity is used to analyze and calculate the number of user smart contract calls, and recommend smart contracts for the current user based on the calculation results. This application can alleviate the technical problems of low utilization rate of massive data on the block chain platform in the prior art, and the lack of adaptability in the selection process of smart contracts, resulting in poor user experience on the block chain platform.

Description

technical field [0001] The present application relates to the technical field of blockchain, in particular to a smart contract recommendation method and device. Background technique [0002] Blockchain is a decentralized accounting technology. Since the advent of Bitcoin in 2008, it has played a huge role in various application scenarios due to its characteristics of decentralization, privacy protection, and difficulty in tampering. With the development of technology, representative blockchain platforms such as Ethereum and Hyperledger Fabric have come out one after another, and they also represent the vigorous development of the blockchain technology field. But on the other hand, the utilization rate of massive data generated for the creation and invocation of blockchain smart contracts is not high. [0003] Smart contracts can autonomously execute all or part of the contract-related operations, and generate corresponding verifiable evidence to illustrate the validity of t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/34
CPCG06F11/3452
Inventor 郑子彬郭晋彦蒋子规
Owner SUN YAT SEN UNIV