- 什么是私钥托管?
私钥托管是指将发送交易签名使用的私钥托管到自己搭建的 OKC RPC节点中,之后可直接通过eth_sendTransaction
接口发送交易,签名在RPC节点中完成,并广播签名后的交易。
提示:由于RPC节点同步交易和区块会联网,因此私钥托管到节点上会有一定风险,需要做好安全防护。
使用到的相关接口和功能说明参考:https://okexchain-docs.readthedocs.io/en/latest/developers/basics/json_rpc.html#personal-methods
- 如何搭建?
节点启动exchaind start
时,增加如下配置:
--personal-api=true
--rest.unlock_key_home ~/.exchaincli //存keystore的地方
--keyring-backend "test"