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

Update tip-16.md #703

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Update tip-16.md #703

wants to merge 5 commits into from

Conversation

Ha-jq
Copy link

@Ha-jq Ha-jq commented Nov 20, 2024

AccountPermissionUpdateContract {
bytes owner_address = 1;
Permission owner = 2; //Empty is invalidate
Permission witness = 3;//Can be empty
repeated Permission actives = 4;//Empty is invalidate
}

  • @param owner_address: The address of the account to be modified

Permission {
enum PermissionType { Owner = 0; Witness = 1; Active = 1; } PermissionType type = 1;
int32 id = 1; //Owner id=0, Witness id=1, Active id start by 1
string permission_name = 3;
int64 threshold = 4
}

  • @param type : Permission type, currently only supports three kind of permissions
  • @param id : Value is automatically set by the system
  • @param permission_name : Permission name, set by the user
  • @param threshold : Threshold, the corresponding operation is allowed only when the sum of the weights of the participating signatures exceeds the domain value.
  • @param parent_id : Currently only 0
  • @param operations : A total of 32 bytes (256 bits), each of which represents the authority of a contract, when 1 means the right to own the contract
  • @param keys : The address and weight that jointly own the permission can be up to 5 keys.

Key {
bytes address = 1; int64 weight = 1; }

  • @param address : Address with this permission

  AccountPermissionUpdateContract {
    bytes owner_address = 1;
    Permission owner = 2;  //Empty is invalidate
    Permission witness = 3;//Can be empty
    repeated Permission actives = 4;//Empty is invalidate
  }
  * @param owner_address: The address of the account to be modified
  * @param owner :Modified owner-permission
  * @param witness :Modified witness permission (if it is a witness)
  * @param actives :Modified actives permission  
  * @return The transaction 
 
 
  Permission {
    enum PermissionType {
      Owner = 0;
      Witness = 1;
      Active = 2;
    }
    PermissionType type = 1;
    int32 id = 2;     //Owner id=0, Witness id=1, Active id start by 2
    string permission_name = 3;
    int64 threshold = 4;
    int32 parent_id = 5;
    bytes operations = 6;   //1 bit 1 contract
    repeated Key keys = 7;
  }
  * @param type : Permission type, currently only supports three kind of permissions
  * @param id : Value is automatically set by the system
  * @param permission_name : Permission name, set by the user
  * @param threshold : Threshold, the corresponding operation is allowed only when the sum of the weights of the participating signatures exceeds the domain value.
  * @param parent_id : Currently only 0
  * @param operations : A total of 32 bytes (256 bits), each of which represents the authority of a contract, when 1 means the right to own the contract
  * @param keys : The address and weight that jointly own the permission can be up to 5 keys.
  
  
  Key {
    bytes address = 1;
    int64 weight = 2;
  }
  * @param address : Address with this permission
  * @param weight : This address has weight for this permission
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant