xpub only mode
nickfarrow opened this issue · 5 comments
nickfarrow commented
It would be extremely powerful to have:
- An option in
config.py
likepay_method = "xpub"
andxpub=....
. - a payment method
pay/xpub.py
that generates bitcoin addresses, and stores the current index to a file to prevent address reuse. - It is very important that this is done in a safe way, ideally using some established python library to generate addresses from the xpub/zpub in a random way with correct derivation paths.
If you know a good library, it should be pretty simple!
hodl commented
https://github.com/mcdallas/cryptotools is a good library that I have used before to work with X/Y/Z pubs
kristapsk commented
Agree, this would be very useful. I could accept donations directly to JoinMarket yield generator wallet with tthis, for example.
In JoinMarket we currently use python-bitcointx, which has code for BIP32 HD key derivation.
nickfarrow commented
Working attempt in #36
chris-pollard commented
This should be closed right @nickfarrow ?
nickfarrow commented
yep merged 6b92367