-
Notifications
You must be signed in to change notification settings - Fork 7
doc(zh): translate eip-107 #24
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
base: master
Are you sure you want to change the base?
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/ethlibrary/eips/4k1iAVTWpY8NkTBA5aNLbxjEn2Yc |
| --- | ||
| eip: 107 | ||
| title: safe "eth_sendTransaction" authorization via html popup | ||
| title: 通过 `html` 弹出窗口安全的 `eth_sendTransaction` 授权 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-通过 `html` 弹出窗口安全的 `eth_sendTransaction` 授权
+通过 `html` 弹出窗口安全地进行 `eth_sendTransaction` 授权| status: 停滞 | ||
| type: 标准追踪 | ||
| category: 接口 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
后面不需要翻译 status/type/category 了,只需要翻译 title 和 description(如果有的话),其他 meta 信息不需要翻译,脚本会统一进行专业名词翻译
| `dapp` 想要执行的每个只读 `rpc` 调用都从节点域重定向到一个不可见的 `iframe`,并且对于 `dapp` 希望执行的每个交易,都会向用户显示一个 `html` 弹出窗口,以允许他/她取消或确认交易.这允许 `dapp` 连接到节点的 `rpc api` 而无需被授予任何类型的权限。这允许用户在他们的帐户解锁时安全地与在日常网络浏览器中运行的 `dapp` 进行交互。如果账户没有解锁,并且节点允许通过 `rpc` 的“个人” `api`,`html` 页面也允许用户输入他们的密码来解锁交易范围内的账户。 | ||
|
|
||
| Motivation | ||
| 动力 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-动力
+动机There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这种 EIP 规范的标题也需要规范一下专业名词的翻译
cc @Riely007
|
|
||
|
|
||
| Specification | ||
| 规格 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-规格
+标准规范| 该提案的设计因其简单性和安全性而被选中。以前的想法是使用类似 `oauth` 的协议,以便用户接受或拒绝交易请求。这将需要在节点中进行更深入的代码更改,一些 `geth` 贡献者认为这种更改不适合 `geth` 代码库,因为它需要 `dapp` 感知代码。当前的设计有一个非常简单的实现(自包含的 `html` 文件,可以跨节点的实现共享),其安全性由浏览器的跨域策略保证。 | ||
|
|
||
| The use of iframe/ window was required to have both security and user friendliness. The invisible iframe allows the dapp to execute read only calls without the need for user input, and the window ensures user approval before making a call. While we could have made it without the window mode by making the iframe confirmation use the native browser `window.confirm` dialog, this would have prevented the use of a more elegant confirmation popup that the current design allows. It also happens to be that the `window.confirm` is not safe in some browsers, as it gives focus to the accept option and can be triggered automatically (https://bugs.chromium.org/p/chromium/issues/detail?id=260653). | ||
| 使用 `iframe/window` 需要同时具有安全性和用户友好性。不可见的 `iframe` 允许 `dapp` 在不需要用户输入的情况下执行只读调用,并且窗口确保在调用之前得到用户的批准。虽然我们可以在没有窗口模式的情况下通过使用原生浏览器的 `window.confirm` 对话框进行 `iframe` 确认来实现它,但这会阻止使用当前设计允许的更优雅的确认弹出窗口。也恰好是 `window.confirm` 在某些浏览器中不安全,因为它把焦点放在接受选项上并且可以自动触发 (https://bugs.chromium.org/p/chromium/issues/detail?id=260653). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
中文句号
| 实现 | ||
| =============== | ||
| In order to implement this design, the following html file or an equivalent one needs to be served at the url \<node url\>/authorization.html | ||
| 为了实现这种设计,需要在 `url` \<node url\>/authorization.html 提供以下 `html` 文件或等效的文件 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
中文句号
| 为了实现这种设计,需要在 `url` \<node url\>/authorization.html 提供以下 `html` 文件或等效的文件 | ||
|
|
||
| That's it. | ||
| 那就是全部了。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-这就是全部了
+以上。|
@Xia-Sam 后面可以直接通过 preview 链接来预览你的翻译成果 比如这次的: https://eips-git-fork-xia-sam-zh-eip107-ethlibrary.vercel.app/zh/eip-107.html |
翻译:EIP-107
翻译参考链接: