如何创建未加密的地址?
1 个回答
- 投票数
-
- 2019-02-21
在主网上,方法如下:
- 首先创建一个不存在节点的密钥(此处
xxx
不存在!):
tezos-client -A xxx gen keys for_stackexchange
它将显示一些错误消息,仅此而已.实际上,密钥已创建.
- 再次致电:
tezos-client -A xxx gen keys for_stackexchange Error: The secret_key alias for_stackexchange already exists. The current value is unencrypted:edsk43pBvh7zPgiGWSG3XSHybCqdQV7XRosqcGPLA9TDBc5ens7oP4.
- 显示关联的地址:
tezos-client show address for_stackexchange -S Warning: Failed to acquire the protocol version from the node Rpc request failed: - meth: GET - uri: http://localhost:8732/chains/main/blocks/head/metadata - error: Unable to connect to the node: "Connection refused" Hash: tz1Rpm5To3JT8vpqbt681EMuxEaM4tL2MvRi Public Key: edpkvPpcAmrCFUiwBPZ4SGEsDXQstVmLHJoXKQURE2ANXem7zQH2e9 Secret Key: unencrypted:edsk43pBvh7zPgiGWSG3XSHybCqdQV7XRosqcGPLA9TDBc5ens7oP4
On mainnet, here is how to do it:
- start by creating the key with a non-existent node (here
xxx
does not exist !):
tezos-client -A xxx gen keys for_stackexchange
It will display some error messages and say nothing more. In fact, the key was created.
- call it again:
tezos-client -A xxx gen keys for_stackexchange Error: The secret_key alias for_stackexchange already exists. The current value is unencrypted:edsk43pBvh7zPgiGWSG3XSHybCqdQV7XRosqcGPLA9TDBc5ens7oP4.
- display the associated address:
tezos-client show address for_stackexchange -S Warning: Failed to acquire the protocol version from the node Rpc request failed: - meth: GET - uri: http://localhost:8732/chains/main/blocks/head/metadata - error: Unable to connect to the node: "Connection refused" Hash: tz1Rpm5To3JT8vpqbt681EMuxEaM4tL2MvRi Public Key: edpkvPpcAmrCFUiwBPZ4SGEsDXQstVmLHJoXKQURE2ANXem7zQH2e9 Secret Key: unencrypted:edsk43pBvh7zPgiGWSG3XSHybCqdQV7XRosqcGPLA9TDBc5ens7oP4
在我的alphanettezos客户端中,
tezos-client gen keys <address>
创建一个未加密的地址,并需要--encrypted
标志来创建一个加密的地址.但是在主网tezos-client中,运行
tezos-client gen keys <address>
要求输入新密码并创建一个加密的地址.如何在主网tezos-client中通过创建未加密的地址?