I notice in the docs it says here https://developer.holochain.org/docs/guide/zome/read_and_write/#entry-sharing
I was wondering if you had an example of updating your private chain but allowing other entities to view it. I’m just curious how you could allow an agent to make a todo list and then make an address whitelist. This seems pretty close: https://developer.holochain.org/docs/guide/zome/capabilities/#grant-capabilities and this example https://github.com/holochain/holochain-rust/tree/f6d4e7141caecd7bf603c19174cf44a5318b5638/app_spec_proc_macro/zomes/blog lay out some of the foundations.
Another example might be this: Say I would like to have a blog on my private chain and I want to have a whitelist of people that can comment on it. People request to add a comment, and then once I approve it they’re added to my whitelist. And let’s say add to my whitelist is a private function on my personal chain. I don’t see any examples of private functions yet, and I’m not sure the right way to implement this pattern.
I realize these are a little off, but I’m looking to figure out the general idea around something like this:
fn add_to_whitelist(address). // a private function to add a user to my whitelist pub fn request_comment(address, comment). // a public function to request to add a comment fn approve_comment(address) // private function that approves adding a comment pub fn get_post(address) // gets a post and all approved comments for it if you're on the user's whitelist