如何将参考数据存储在HyperLeDger织物中?
我正在为HyperLeDger面料编写一份新的智能合约,该合约需要很少的数据点(类型的参考数据)来计算。这些数据点需要在所有组织中共享,以便智能合约的结果相同,并且可以验证。
我应该在织物区块链上维护这些数据点吗?如果是这样,当一个组织修改(添加/更新)数据时,其他组织如何接受或拒绝此交易?
I am writing a new smart contract for Hyperledger Fabric which will need few data points(kind of reference data) for calculation. These data points need to be shared across all the Orgs so that the outcome of the smart contract is same and can be verified.
Should I maintain even these data points on Fabric blockchain? If so, when an Org modifies(add/update) the data how the other Orgs accept or reject this transaction?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发布答案,因为我还不能发表评论。我建议将数据保留在分类帐上本身上,因为参考数据的规模很小,并且必须在整个组织中同步。一个初始化函数可以在链代码中使用,以在允许常规交易之前初始化数据( - iSinit)。
Posting an answer as I can't comment yet. I would recommend to keep the data on the ledger itself as the reference data is of small size and have to be synchronized across the organizations. One initialization function can be used in the chaincode to initialize the data(--isInit) before allowing regular transactions.