LoginSignup
0
0

More than 5 years have passed since last update.

ビットコインエクスプローラー(ウォレットコマンド:hd-new)

Posted at

ビットコインエクスプローラー(ウォレットコマンド:hd-new)

原文(https://github.com/libbitcoin/libbitcoin-explorer/wiki/)

bx hd new

エントロピーから、HD(非決定性階層:BIP32)秘密鍵を作成する。

bx hd-new --help
Usage: bx hd-new [-h] [--config VALUE] [--version VALUE] [SEED]          

情報:エントロピーから、HD(非決定性:BIP32)秘密鍵を作成する。

オプション (named):

-c [--config]        コンフィギュレーションファイルを指定        
-h [--help]          コマンドの説明を表示
-v [--version]       HD秘密鍵のバージョン、 defaults to 76066276.                                           

引数 (positional):

SEED                 新しいキーを生成するためのBASE16エントロピーを指定。
                     少なくとも、128bitの長さが必要。
                     指定がなければ、STDINより読み込む。

Example 1

スター秘密鍵(m)から生成された最初(0)の子秘密鍵を生成
BIP32のTestVector1のデータを使用。

bx hd-new 000102030405060708090a0b0c0d0e0f
xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHi

Example 2

スター秘密鍵(m)から生成された最初(0)の子秘密鍵を生成
BIP32のTestVector2のデータを使用。

bx hd-new fffcf9f6f3f0edeae7e4e1dedbd8d5d2cfccc9c6c3c0bdbab7b4b1aeaba8a5a29f9c999693908d8a8784817e7b7875726f6c696663605d5a5754514e4b484542
xprv9s21ZrQH143K31xYSDQpPDxsXRTUcvj2iNHm5NUtrGiGG5e2DtALGdso3pGz6ssrdK4PFmM8NSpSBHNqPqm55Qn3LqFtT2emdEXVYsCzC2U

Example 3

シードの長さが身近いため、エラー

bx hd-new baadf00dbaadf00d
The seed is less than 128 bits long.

Example 4

パイプコマンドを使用

bx seed | bx hd-new
xprv9s21ZrQH143K3KDWPNXDFTyieNdyp1ADhcEwqvL7t9CDvvvBaEuwjNVXovz6WXFQPJwWqKe17wNAq3xArJ3qcBZqhVrH2Sq3EQ4en8ig2Fo

Example 5

testnet(70615956)を利用

bx hd-new -v 70615956 baadf00dbaadf00dbaadf00dbaadf00d
pubD6NzVbkrYhZ4XbUpwb3JpXFpXXa8CrP8cTkqzrnsnPV6Z1v3C15HRcUquADA8CMEawvRMMGoKnwg8fza8pPdFUcJH6uxZJJKkDYJJAGT53e
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0