How to deploy a cordapp with a business logic which is private to selected parties?

我是研究僧i 提交于 2019-12-06 13:31:13

1) This logic should go into the flow if you wish to keep the calculation private from customers. All nodes will be utilising the same contract, but your flows can be abstracted out of the CorDapp with the implementation local to the node.

2) Yes, the state and contract will remain the same across all the CorDapps. Only the flows will differ. This will probably end up being a common scenario as any calls to external systems will happen within the flow and you can anticipate how this will differ across entities.

3) You just need to think about designing your contract such that it won't reject any of the values calculated by your profit function and distribute this same contract to everyone.

Take a look at this example CorDapp, it shows different business logic per node

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!