Helium 获取 app 钱包关联的 cli 钱包密钥文件

现在是 skin in the game 了。

根据 helium APP 上的 12 个主机词可以用来获取其关联的 cli 钱包,以解锁更多功能。

编译 helium-wallet-rs

git clone https://github.com/helium/helium-wallet-rs
cd helium-wallet-rs
curl https://sh.rustup.rs -sSf | sh
## recommended option 1
source $HOME/.cargo/env
sudo apt install build-essential pkg-config cmake clang
cd helium-wallet-rs
cargo build --release

钱包命令位于 target/release/helium-wallet

利用助记符还原

示例中的助记符获取自 https://github.com/helium/helium-wallet-rs/blob/master/src/mnemonic/mod.rs#L72

catch poet clog intact scare jacket throw palm illegal buyer allow figure
> ~/helium/helium-wallet-rs/target/debug/helium-wallet create basic --seed 

Password: [hidden]

+-----------------------------------------------------+---------+--------+------------+
| Address                                             | Sharded | Verify | PwHash     |
+-----------------------------------------------------+---------+--------+------------+
| 14VZN1zLxw7vmGSUNDRCNWvBK8FteHFvDEqmjmRvRmqHP7v72Vw | false   | true   | Argon2id13 |
+-----------------------------------------------------+---------+--------+------------+

cli 钱包指令

info


~/helium                                                                                                                                                                                             14:49:22
> ~/helium/helium-wallet-rs/target/debug/helium-wallet -f wallet.key info 
+--------------------+-----------------------------------------------------+
| Key                | Value                                               |
+--------------------+-----------------------------------------------------+
| Address            | 14VZN1zLxw7vmGSUNDRCNWvBK8FteHFvDEqmjmRvRmqHP7v72Vw |
+--------------------+-----------------------------------------------------+
| Network            | mainnet                                             |
+--------------------+-----------------------------------------------------+
| Type               | ed25519                                             |
+--------------------+-----------------------------------------------------+
| Sharded            | false                                               |
+--------------------+-----------------------------------------------------+
| PwHash             | Argon2id13                                          |
+--------------------+-----------------------------------------------------+
| Balance            | 0.00000000                                          |
+--------------------+-----------------------------------------------------+
| DC Balance         | 0                                                   |
+--------------------+-----------------------------------------------------+
| Securities Balance | 0.00000000                                          |
+--------------------+-----------------------------------------------------+

发表于: 作者:JiapengLi
由于某种不存在的原因,评论区正在努力加载中……