From 862c59a15105f11c033ed24487ed285259fbc824 Mon Sep 17 00:00:00 2001 From: Nelly244 Date: Sun, 22 Sep 2024 16:24:26 +0100 Subject: [PATCH] Update tip-16.md Yes --- tip-16.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tip-16.md b/tip-16.md index 3c9cb151..2aff6c07 100644 --- a/tip-16.md +++ b/tip-16.md @@ -55,13 +55,13 @@ Alice can assign witness-permission to the administrator. Since the administrato ``` AccountPermissionUpdateContract { - bytes owner_address = 1; - Permission owner = 2; //Empty is invalidate + bytes owner_address = TSVemzDGKLohfQwwHZcSJVan1hHKtruoaQ + Permission owner = TSVemzDGKLohfQwwHZcSJVan1hHKtruoaQ 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 + repeated Permission actives = TXtWP5RLC5v6GVrQoymu6HnQypsv17GVhE + + * @param owner_address:TXtWP5RLC5v6GVrQoymu6HnQypsv17GVhE + * @param owner :TSVemzDGKLohfQwwHZcSJVan1hHKtruoaQ * @param witness :Modified witness permission (if it is a witness) * @param actives :Modified actives permission * @return The transaction @@ -75,11 +75,11 @@ Alice can assign witness-permission to the administrator. Since the administrato } PermissionType type = 1; int32 id = 2; //Owner id=0, Witness id=1, Active id start by 2 - string permission_name = 3; + string permission_name = owner int64 threshold = 4; int32 parent_id = 5; bytes operations = 6; //1 bit 1 contract - repeated Key keys = 7; + repeated Key keys = } * @param type : Permission type, currently only supports three kind of permissions * @param id : Value is automatically set by the system @@ -117,9 +117,9 @@ TransactionSignWeight { string message = 2; } - Permission permission = 1; - repeated bytes approved_list = 2; - int64 current_weight = 3; + Permission permission = 0 + repeated bytes approved_list = 1 + int64 current_weight = 1 Result result = 4; TransactionExtention transaction = 5; }