-
Hi there ! I'm trying to generate addresses in regtest, using I've seen in keys.py/check_network_and_key that the network fallsback to default if the one provided is not handled. Alright, from there I've been experimenting 20 minutes and found out that HDKey.from_seed(), which I use to generate my "master key", is also in a mainnet format. I'm really no expert in regtest and not much experimented yet, but when trying to generate coins from bcoin-cli running regtest with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I can reproduce this problem, can you show which code leads to this error. Like this it works for me: >>> phrase = 'table medal solution fit
>>> k = HDKey.from_seed(phrase, network
>>> k.subkey_for_path('m/0/0/0/0')
>>> print(k.network, k.address())
<Network: regtest> bcrt1qp8krwvz78eumjnhkqk22pjyt4nh34nm65fuwdt |
Beta Was this translation helpful? Give feedback.
-
Not sure what is happening in the 'data' class.
|
Beta Was this translation helpful? Give feedback.
I can reproduce this problem, can you show which code leads to this error.
Like this it works for me: