gpt4 book ai didi

security - geth option "--allow-insecure-unlock",它到底是什么意思?

转载 作者:行者123 更新时间:2023-12-03 23:09:54 24 4
gpt4 key购买 nike

github 上的文档说:

--allow-insecure-unlock Allow insecure account unlocking when account-related RPCs are exposed by http



而且,我必须在启动时添加选项 geth ,否则无法解锁帐号。

问题
  • 这个选项到底是什么意思?我阅读了文档并在谷歌上搜索,仍然无法完全理解它。
  • 使用此选项是否安全,是否会造成安全漏洞?
  • 最佳答案

    如果您通过 HTTP 协议(protocol)使用 geth 访问节点,则无法使用 personal.unlockAccount(web3.eth.account, password) 解锁帐户。如果您尝试,您将收到错误“ 禁止使用 HTTP 访问的帐户解锁 ”。因此,为避免您必须使用标志 允许不安全解锁 .

    这是因为如果节点暴露在外部,解锁操作是不安全的。在 PR #17037 (https://github.com/ethereum/go-ethereum/pull/17037) 的 go-ethereum 中添加了“保护”

    关于security - geth option "--allow-insecure-unlock",它到底是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59340803/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com