:: [Libbitcoin] libbitcoin on testnet
トップ ページ
このメッセージを削除
このメッセージに返信
著者: Police Terror
日付:  
To: libbitcoin
題目: [Libbitcoin] libbitcoin on testnet
Hello,

Are there any testnet blockchain servers I can work with?

Also what's the correct way to generate keys and addresses?

hd_private defines the constant hd_private::mainnet. Why is there not a
corresponding one for testnet?

https://github.com/libbitcoin/libbitcoin/blob/master/include/bitcoin/bitcoin/wallet/hd_private.hpp#L40

Lets say I do:

hd_private root(seed, hd_private::mainnet);

ec_private private(root.secret(), ec_private::mainnet);

payment_address address(private);

address.encoded();

How would I change that for testnet?

Thanks