Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于联盟链的权限的解决方案 #3

Open
mercurychs opened this issue Feb 3, 2021 · 2 comments
Open

关于联盟链的权限的解决方案 #3

mercurychs opened this issue Feb 3, 2021 · 2 comments
Labels
question Further information is requested

Comments

@mercurychs
Copy link

问题1:传统的权限都是基于RBAC权限模型来实现,这些权限数据都是存储在本地数据库,如果是联盟链,这种权限一般是如何解决的,这种权限的数据也是要写在链上吗?
问题2:联盟链的上层应用系统,比如供应链系统,这里的使用的用户是对应供应链应用自己数据库的一条记录,然后应用系统有自己的sdk,sdk有一个证书,还是对应着链上一个用户,每个用户有一个证书。

@Ice-Storm
Copy link
Owner

Ice-Storm commented Feb 3, 2021

@yelangchs 问题1:对于区块链来说,一般分为节点级别的权限和链级别的权限。节点级别的权限和传统方案差不多。链级权限需要将权限保存在链上,也就是账本数据中。权限通过内置合约来实现。当需要完成权限变更时,通过交易来触发变更。链级权限一般是需要修改整个区块链网络的共识算法,交易版本等。

@Ice-Storm
Copy link
Owner

@yelangchs 问题2,一般SDK有单独的证书,用来和节点连接。当需要对链上用户操作时再用用户私钥之类的操作。这个与SDK证书的区别在于,SDK证书没有不绑定权限,而用户的有。通常是这样的用法。

@Ice-Storm Ice-Storm added the question Further information is requested label Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants