1

Is it possible to have permissioned data access? Suppose I am having a multi_index table and whoever adds data to that table only can access the data because I am having a table storage and one account named "myaccount" has added an entry but everyone else can access that data by doing cleos get table? Is there any way to change this or any other way to achieve permissioned data access?

  • Most eos devs suggested me to put encrypt data.but encryption is a resource intensive process. – YashwanthKambala Oct 4 '18 at 6:41
  • Encryption is not the answer I am looking for. Encryption can be decrypted. There are algorithms which can have data which can not be decrypted but it takes too much time. – yash vadhvani Oct 4 '18 at 6:44
1

I don't think that it is possible to have permissioned tables.Because as you are calling cleos get table but you are not giving any authorization to call this table query.So, i suggest to not to keep any private data in tables. For more see this Can we add the permission to access the table?

| improve this answer | |
  • what if i still want to store private data and do not want to expose it? – yash vadhvani Oct 4 '18 at 9:22
  • Eosio is a public blockchain, anyone have the access to read data.I am glad if there is any other way around. – YashwanthKambala Oct 4 '18 at 9:43
  • yes @YashwanthKambala is right if you still want to store the data then asymmetric key cryptography is a good way to do it. But still there is chances that it can be hacked. – Mr.Y Oct 4 '18 at 10:55
1

Is it possible to have permissioned data access?

No, not natively.

Is there any way to change this or any other way to achieve permissioned data access?

As suggested by others, the only way to keep some form of permissioned data on the blockchain is by only storing encrypted data. If you're worried about encryption / decryption resource consumption, you can perform these processes off-chain. This post shows a code example and a brief explanation of the process you could use.

| improve this answer | |
0

See a list of different "permission models" here, how to encrypt private data in a public database:

https://docs.bigchaindb.com/en/latest/private-data.html

https://docs.bigchaindb.com/en/latest/permissions.html

Even though it is BigChainDb, the principles apply across all blockchains.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.