帖子
分享您的知识。
DuAn15
Jan 24, 2025
专家问答
Securing shared objects for specific package interaction
We are developing a package that interacts with another package using a shared object. This shared object can be updated by any module, which might open it up to security risks. How can we restrict edits so that only a specific package can update it?
- Sui
1
1
分享
评论
答案
1farshad93
Jan 25 2025, 03:41为确保只有特定的包才能更新共享对象,您可以使用发送者或能力门控等模式. 一种方法是实现能力模式,允许根据对象的所有权进行更新. 或者,您可以创建访问控制列表 (ACL),仅允许特定地址与包的方法进行交互. 能力模式文档和拒绝列表规则等资源中详细介绍了这些方法,可以在 此处 和 此处 中查看.
1
评论
你知道答案吗?
请登录并分享。
Sui is a Layer 1 protocol blockchain designed as the first internet-scale programmable blockchain platform.
109帖子178答案