In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to create or modify account permissions in openssl". Friends who are interested may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how openssl creates or modifies account permissions.
Create or modify account permissions
Command format: $cleos set account permission ${permission} ${account} ${permission_json} ${account_authority}
To modify the permissions of an account, you must have the permissions of the account and the permissions you are modifying. The set account permissions command may change, so the class it is associated with does not have a complete record.
$cleos set account permission test active'{"threshold": 1, "keys": [{"permission": {"key": "EOS8X7Mp7apQWtL6T2sfSZzBcQNUqZB7tARFEm9gA9Tn9nbMdsvBB", "permission": "active"}, "weight": 1}], "accounts": [{"permission": {"actor": "acc2", "permission": "active"}, "weight": 50}]} 'owner
The second example modifies the same account permissions, but deletes the key set from the previous example and grants the active permissions of the @ test account to another account.
$cleos set account permission test active'{"threshold": 1, "keys": [], "accounts": [{"permission": {"actor": "sandwich", "permission": "active"}, "weight": 1}, {"permission": {"actor": "acc1", "permission": "active"}, "weight": 50}]} 'owner
The third example shows how to set permissions for multisig
Cleos set account permission test active'{"threshold": 100, "keys": [{"permission": {"key": "EOS8X7Mp7apQWtL6T2sfSZzBcQNUqZB7tARFEm9gA9Tn9nbMdsvBB", "permission": "active"}, "weight": 25}], "accounts": [{"permission": {"actor": "@ sandwich", "permission": "active"}, "weight": 75}]} 'owner
The JSON object used in this command actually consists of two different types of objects that make up the permission JSON object.
{"threshold": 100,100 / * An integer that defines cumulative signature weight required for authorization*/ "keys": [], / * An array made up of individual permissions defined with an EOS PUBLIC KEY*/ "accounts": [] / * An array made up of individual permissions defined with an EOS ACCOUNT*/}
... It includes one or more permission objects
/ * Set Permission with Key*/ {"permission": {"key": "EOS8X7Mp7apQWtL6T2sfSZzBcQNUqZB7tARFEm9gA9Tn9nbMdsvBB", "permission": "active"}, weight: 25 / * Set the weight of a signature from this permission*/} / * Set Permission with Account*/ {"permission": {"actor": "sandwich", "permission": "active"} Weight: 75 / * Set the weight of a signature from this permission*/} so far I believe you have a deeper understanding of "how to create or modify account permissions in openssl". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.