Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Blockchain by (12.7k points)

Scenario:I have 4 nodes in which each node sends a number. Each number should not be visible to any node other than the owner. The smart contract should secretly add all 4 numbers without viewing them to any member. Only the result which is the summation should be visible to all contracts.

Is the above scenario possible when using hyperledger fabric?

1 Answer

0 votes
by (29.5k points)
edited by

The asymmetric encryption maybe the way to do it. The nodes use the public key to encrypt their number. And only smart contract have the key to decrypt it. You somehow need to dig deep inside the API see how the contract interact with the CA server.

Want to make a career in Blockchain? Then enroll now in Blockchain Training by Intellipaat to get the perfect guidance.

Browse Categories

...