0 votes
1 view
in Blockchain by (11.8k 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 (27.7k 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.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...