IP Library › Granted Patent US 11,636,094
Granted Patent B2
US 11,636,094 · App. 16/655,193 · Granted Apr 25, 2023

Chaincode recommendation based on existing chaincode

Inventors: Vagner Figueredo de Santana (Sao Paulo, BR); Ana Paula Appel (São Paulo, BR); Alecio Pedro Delazari Binotto (Sao Paulo, BR); Percival Silva de Lucena (Valinhos, BR)
Assignee: International Business Machines Corporation
G06F16/2379G06F16/27G06F16/288G06F16/9024
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,636,094
App. No.
16/655,193
Granted
Apr 25, 2023
Kind
B2
Abstract

An example operation may include one or more of storing existing chaincode relationships of a group of blockchain peers within a blockchain network, identifying a new chaincode to implement for one or more blockchain peers among the group of blockchain peers of the blockchain network based on the existing chaincode relationships among the group of blockchain peers, and transmitting a message to the one or more blockchain peers with a suggestion to implement the new chaincode.

Claims (34)

1. An apparatus comprising:

a storage configured to store chaincode relationships that exist among a group of blockchain peers within a blockchain network as a graph in which peers and existing smart contracts are represented by nodes with edges in between the nodes identifying relationships between the peers and the existing smart contracts;

a processor configured to

execute a graph mining operation on the edges in the graph to identify smart contract relationships among the peers based on the existing smart contracts, and

execute a machine learning model on the identified smart contract relationships returned from the graph mining operation to identify attributes for a new smart contract to connect two or more blockchain peers among the group of blockchain peers of the blockchain network which are not currently connected via the existing smart contracts; and

a network interface configured to transmit a message to the one or more blockchain peers with a suggestion to implement the new smart contract to connect the two or more blockchain peers;

wherein the processor is further configured to receive a modification to one or more attributes of the new smart contract and activate the modified new smart contract within the blockchain network.

2. The apparatus of claim 1 , wherein the storage is configured to store identifiers of the existing smart contracts as a first set of nodes on the graph, identifiers of each of the group of blockchain peers as a second set of nodes on the graph, and the processor is configured to connect the first set of nodes that correspond to the existing smart contracts and the second set of nodes that correspond to the blockchain peers with edges based on the chaincode relationships that exist.

3. The apparatus of claim 2 , wherein the processor is configured to identify the new smart contract to implement based on a chaincode pattern that is mined from the chaincode relationships that exist within the graph.

4. The apparatus of claim 1 , wherein the processor is further configured to predict, via one or more of machine learning algorithms of the machine learning model, a set of attributes to be included in the new smart contract based on attributes included in the chaincode relationships that exist.

5. The apparatus of claim 1 , wherein the new smart contract comprises a change in one or more attributes of an established chaincode relationship between two blockchain peers.

6. The apparatus of claim 1 , wherein the new smart contract comprises a new chaincode relationship between the two or more blockchain peers corresponding to a new edge in the graph.

7. The apparatus of claim 1 , wherein the processor is further configured to receive approval to implement the new smart contract from the one or more blockchain peers, and in response, activate the new smart contract within the blockchain network.

8. The apparatus of claim 1 , wherein the processor is further configured to receive a denial to implement the new smart contract from the one or more blockchain peers, and in response, store information about the denial of the new smart contract for future predictions.

9. A method comprising:

storing existing chaincode relationships of a group of blockchain peers within a blockchain network as a graph in which peers and existing smart contracts are represented by nodes with edges in between the nodes identifying relationships between the peers and the existing smart contracts;

executing a graph mining operation on the edges in the graph to identify smart contract relationships among the peers based on the existing smart contracts;

executing a machine learning model on the identified smart contract relationships returned from the graph mining operation to identify attributes for a new smart contract to connect two or more blockchain peers among the group of blockchain peers of the blockchain network which are not currently connected via the existing smart contracts; and

transmitting a message to the one or more blockchain peers with a suggestion to implement the new smart contract to connect the two or more blockchain peers;

wherein a modification to the new smart contract is received and the modified new smart contract is activated within the blockchain network.

10. The method of claim 9 , wherein the storing comprises storing identifiers of existing smart contracts as a first set of nodes on the graph, storing identifiers of each of the group of blockchain peers as a second set of nodes on the graph, and connecting the first set of nodes corresponding to the existing smart contracts and the second set of nodes corresponding to the blockchain peers with edges based on the existing chaincode relationships.

11. The method of claim 10 , wherein the identifying comprises identifying the new smart contract to implement based on a chaincode pattern mined from the existing chaincode relationships within the graph.

12. The method of claim 9 , wherein the identifying further comprises predicting, via one or more of machine learning algorithms of the machine learning model, a set of attributes to be included in the new smart contract based on attributes included in the existing chaincode relationships.

13. The method of claim 9 , wherein the new smart contract comprises a change in one or more attributes of an existing chaincode relationship between the two or more blockchain peers.

14. The method of claim 9 , wherein the new smart contract comprises a new chaincode relationship between the two or more blockchain peers corresponding to a new edge in the graph.

15. The method of claim 9 , further comprising receiving approval to implement the new smart contract from the one or more blockchain peers, and in response, activating the new smart contract within the blockchain network.

16. The method of claim 9 , further comprising receiving denial to implement the new smart contract from the one or more blockchain peers, and in response, storing information about the denial of the new smart contract for future predictions.

17. A non-transitory computer-readable medium comprising instructions, that when read by a processor, cause the processor to perform a method comprising:

storing existing chaincode relationships of a group of blockchain peers within a blockchain network as a graph in which peers and existing smart contracts are represented by nodes with edges in between the nodes identifying relationships between the peers and the existing smart contracts;

executing a graph mining operation on the edges within the graph to identify smart contract relationships among the peers based on the existing smart contracts;

executing a machine learning model on the identified smart contract relationships returned from the graph mining operation to identify attributes for a new smart contract to implement to connect two or more blockchain peers among the group of blockchain peers of the blockchain network which are not currently connected via the existing smart contracts; and

transmitting a message to the one or more blockchain peers with a suggestion to implement the new smart contract to connect the two or more blockchain peers;

wherein a modification to the new smart contract is received and the modified new smart contract is activated within the blockchain network.

18. The non-transitory computer-readable medium of claim 17 , wherein the identifying further comprises predicting, via one or more algorithms of the machine learning model, a set of attributes to be included in the new smart contract based on attributes included in the existing chaincode relationships.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 16, 2019
From: FIGUEREDO DE SANTANA, VAGNER; APPEL, ANA PAULA; BINOTTO, ALECIO PEDRO DELAZARI; SILVA DE LUCENA, PERCIVAL
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 050740/0153 →
Continuity (1)
Related Publication 20210117408A1 · Apr 22, 2021