-
Notifications
You must be signed in to change notification settings - Fork 3
Account Management
lyszhang edited this page Jun 11, 2019
·
2 revisions
Usechain 中,账户地址分为主地址、子地址。
主地址是指以一次性地址作为父地址而产生的从地址,每个一次性地址仅能产生一个主地址,也意味着每个用户只能拥有一个主地址。主地址可以用于参与挖矿、社区投票等功能。
子地址是指以主地址或者子地址为父地址而产生的从地址,子地址的产生没有限制,任何非主地址可以产生无数个子地址。
每个地址对应公钥和私钥,每个 Usechain 由公钥做 Hash 运算,取公钥 Hash 的后 20 字节,每对公私钥都被加密存储到 Keystore 中。存储地址文件在节点数据存储目录的 keystore 子目录中。
安装 used 客户端后,可按照如下方式生成地址。
$ used account new
Your new account is locked with a password. Please give a password. Do not forget this password.
Passphrase:
Repeat passphrase:
Address: {5cb3fe4272240e8a0d99fcabf7d4eda213ae0230}> personal.unlockAccount(use.accounts[0], "123456", 0)
true
> personal.newSubAccount(use.accounts[0], "123456")
"UmSnswXfsxmTRBMjS52Fk55LZPj2cAcrUvh"> used --networkid=2 console 2>>usechain.log> personal.newAccount()
Passphrase:
Repeat passphrase:
"0x9dd3ce8a01c4ec57f7df8afb9052ffa777d609b1"> eth.accounts
["0xad4ab8ec514f94655c8c350f2c0791c6371b4161", "0xb8f720b0cb6175eb34fc430aa0ccb2c62ae4c052", "0x9dd3ce8a01c4ec57f7df8afb9052ffa777d609b1"]This is the Wiki for the official Usechain golang implementation.