为什么web3 1.0 的接口有personal_*和eth_*的,两者有什么不同

看https://github.com/ethereum/EIPs/pull/712

Why personal_* namespace instead of eth_* namespace?

I believe the personal_ prefix was an attempt to separate key-signing/account management operations from state-reading operations. Ideally, an RPC node only provides eth_* endpoints, and the wallet/signer handles the personal_* space. Since it involves signing with keys, the current pattern suggests this belongs in the personal space.

这个包中的许多函数包含敏感信息,例如密码,即当一些调用的函数需要用到密钥等敏感信息时,这些函数都会分配到personal_*中,独立出来,不再与eth_*混合在一起

 ⚠️不要在未加密的 websocket或http服务提供器上调用这些函数,因为你的密码是明文发送的!

转载于:https://www.cnblogs.com/wanghui-garcia/p/9875595.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值