Question from Discord:
another question on shared_objects
we are creating a package that interacts with a different already deployed package (x)
to interact with x from our package we need to create a public shared object so that the data can be updated by x as needed on interactionsthe issue is that because anyone can update this shared object, this opens it up to attack vectors, how can we limit it so that it is only editable by the x package.
and a similar query:
Hi, everyone, I have a question. If sui move has the ability to implement package-to-package access control ? In Ethereum solidity, if a contract B need to be accessed only by whitelisted contract A, We just need to set a whitelist in contract B, and regist contract A’s address. When cross-contract behavior occurs, we can get the contract A’s address in contract B through msg.sender and check whether it exists in the whitelist of the contract B. How does sui move implement similar ability?