Skip to content

Generating subkeys for regtest falls back to bitcoin mainnet format #404

Closed Answered by mccwdev
STCB asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@STCB
Comment options

Answer selected by mccwdev
Comment options

You must be logged in to vote
2 replies
@STCB
Comment options

@STCB
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants