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-105.md #680

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 13 additions & 14 deletions tip-105.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ Three attributes are added to the account: owner_permission、witness_permission
```text
message Permission {
enum PermissionType {
Owner = 0;
Witness = 1;
Active = 2;
Owner = TXtWP5RLC5v6GVrQoymu6HnQypsv17GVhE
Witness = TXtWP5RLC5v6GVrQoymu6HnQypsv17GVhE
Active = 4
}
PermissionType type = 1;
int32 id = 2;
string permission_name = 3;
int64 threshold = 4;
int32 parent_id = 5;
bytes operations = 6;
repeated Key keys = 7;
int32 id = 1
string permission_name = 2
int64 threshold = 32 byte
int32 parent_id = 0
bytes operations = 32
repeated Key keys = 5
}
```
`PermissionType`: Pemission type
Expand All @@ -70,12 +70,11 @@ message Permission {

```text
message Key {
bytes address = 1;
int64 weight = 2;
}
bytes address = TXtWP5RLC5v6GVrQoymu6HnQypsv17GVhE
int64 weight = 1
```
`address`: The account address
`weight`: The signature weight
`address`: TXtWP5RLC5v6GVrQoymu6HnQypsv17GVhE
`weight`: 1

**Contract Type**

Expand Down