SatSale/SatSale

xpub only mode

nickfarrow opened this issue · 5 comments

It would be extremely powerful to have:

  • An option in config.py like pay_method = "xpub" and xpub=.....
  • 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

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.

Working attempt in #36

This should be closed right @nickfarrow ?

yep merged 6b92367