EOS :入门踩坑之学习 1 创建开发钱包

EOS :踩坑 之学习 Create Development Wallet

1.跟随EOS开发网站的教程:https://developers.eos.io/eosio-home/docs
不过是全英文,靠着半吊子的水平加百度翻译强行理解,还有不断踩坑,还好CSDN大神多。。。。。肯定有理解不到位的地方。

a.创建钱包
[root@bogon cleos]# ./cleos wallet create --to-console
文档中加了 --to-console 使bash历史记录中不出现钱包密码。在这里插入图片描述
A common misconception in cryptocurrency regarding wallets is that they store tokens. A wallet does not store tokens. What a wallet does is store private keys in an encrypted file and sign transactions.
在这里解释了一个常见的误解,钱包并不存储代币,其所做的是存储私钥和对交易签名。

b.打开钱包
创建一个钱包默认是关闭需要打开。

./cleos wallet open

在这里插入图片描述


[root@bogon cleos]# ./cleos wallet list

获得一个钱包列表,这里只有一个就是刚才创建的那个,
zhe

c.解锁钱包


[root@bogon cleos]# ./cleos wallet unlock

这里的密码是你刚才创建钱包的私钥。这里就是导入钱包

在这里插入图片描述

输错的话:。。。。。。。

在这里插入图片描述

再查看一个下钱包列表,会有变化:
在这里插入图片描述
** * 号就代表钱包处于解锁状态。划重点**

d.将密钥导入钱包

生成一个公钥 ,这里生成应该是个公钥。

[root@bogon cleos]# ./cleos wallet create_key

在这里插入图片描述

e.导入开发公钥
Every new EOSIO chain has a default “system” user called “eosio”. This account is used to setup the chain by loading system contracts that dictate the governance and consensus of the EOSIO chain. Every new EOSIO chain comes with a development key, and this key is the same. On a production chain the eosio user is forfeited once the chain is setup. Load this key to sign transactions on behalf of the system user (eosio)。 这段英文估计大概是将,每一条新的EOSIO链都有一个叫eosio的默认系统账户,用于加载系统契约建立链,每一个新的EOSIO链都有一个开发密钥,这个密钥是相同的。在生产链上,一旦建立了链,EOSIO用户就被没收。加载此密钥代表系统用户签署交易(EOSIO)。有一部分百度了。。。。。。。

[root@bogon cleos]# ./cleos wallet import

在这里有点糊涂了。
You’ll be prompted for a private key, enter the eosio development key provided below
这个是教程提供的私钥,应该就是EOS默认的开发密钥
5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
此密钥是公开的
Never use the development key for a production account! Doing so will most certainly result in the loss of access to your account, this private key is publicly known.

在这里插入图片描述
提示:记得要查看钱包是否解锁。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值