如何将参考数据存储在HyperLeDger织物中?

发布于 2025-01-29 08:13:32 字数 160 浏览 2 评论 0原文

我正在为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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

回梦 2025-02-05 08:13:32

发布答案,因为我还不能发表评论。我建议将数据保留在分类帐上本身上,因为参考数据的规模很小,并且必须在整个组织中同步。一个初始化函数可以在链代码中使用,以在允许常规交易之前初始化数据( - 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文