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 #705

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Update tip-16.md
  • Loading branch information
Ha-jq authored Dec 2, 2024
commit 936c89c2e5a2c822a82f78280b953d1128d57438
55 changes: 33 additions & 22 deletions tip-16.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,51 @@
```
tip: 16
title: Account Multi-signature
author: Marcus Zhao(@zhaohong ) <zhaohong229@gmail.com>
discussions to: https://github.com/tronprotocol/TIPs/issues/16
status: Final
type: Standards Track
category: TRC
created: 2018-12-27
提示:16
标题:账户多签名
作者:马库斯赵(@赵红)<zhaohong229@gmail.com>
讨论到 https://github.com/tronprotocol/TIPs/issues/16
状态:最终
类型:标准跟踪
类别:真相与和解委员会
创建时间:2018-12-27
```



## Motivation
##动机

1. Support account Access Control;
1.不支持帐户访问控制;

函数抽象平衡()公共公开
uint balance = this.balance;
要求(余额>0);所有者。转账(余额);
提款(余额);

杂合物固化度^0.5.8;
合同 MyContract {
地址私人所有者;
构造函数() 公共 {
所有者=发件人;
}
函数抽象平衡()公共public {
ler = 所有者,“只有所有者才能使用
// 获取合约的余额
uint256余额=地址(此)。
// 确保余额大于0
要求(余额 > 0, "无余额"
// 转移余额给合约所有者
转账(余额);0, "No balance to withdraw");msg.sender.transfer(balance);



Key {
bytes address = 1;





response_code code = 1;
string message = 1;
}

响应码代码 = 1;
字符串消息=1;

}

```

#### AddSign
* @param transaction
#### 添加签名
*TJGFPbyb7cabepNoZW7g9CbMY4t1DWXb2J