Lets say I want to create a protocol for storing user data for ecommerce stores.
If Walmart and Macy's sign up, how do I prevent Walmart from accessing Macy's user data when they do something like user.all
? Is there a way to scope it to just Walmart?
Perhaps if I created a ClientUser
smart contract that Walmart and Macy's interact with directly and created a separate private / public key for each client, and each had a config for store_name: "Walmart"
and store_name: "Macy"
and had the ClientUser
contracts talk to my DatabaseContract
that would work? Not sure how I would store the users honestly.