Hierachial Role Based Custom Permissions and Peerplays

in #blockchain4 years ago (edited)

PBSA team has extended the permission structure of the Peerplays blockchain. Graphene Chains like Hive uses staic, predefined permissions like OWNER, ACTIVE, POSTING and MEMO. The latest member in the family, EOS had extended the feature to allow more permissions.

Some of the non-graphene chains like Stellar also has extensive permission system to support various use cases.

Authorities and Transaction verification

When a signed transaction is received, the blockchain verifies the signature for validity. Lets say, if a transfer transaction is received, the logic within the chain evaluators checks whether the correct key with necessary authority is used.

Custom permissions

For new custom permissions, new named objects representing permissions are created. They are not directly mapped to accounts. But custom authorities are created and then they are in-turn mapped with the accounts. These changes are also done ensuring backward compatibility.

LLD is available here https://peerplays.gitbook.io/community-project-docs/blockchain/rbac/role-based-custom-permissions-lld

Code https://github.com/peerplays-network/peerplays/pull/365

Sort:  

This post has been manually selected and voted by Indiaunited community. If you are still not in the Indiaunited discord, you can join the Discord Server.

Do you know that you can earn a passive income by delegating to @indiaunited. We share 80 % of the curation rewards with the delegators.

Here are some handy links for delegations: 100HP, 250HP, 500HP, 1000HP.

Read our latest announcement post to get more information.

image.png

Please contribute to the community by upvoting this comment and posts made by @indiaunited.