Although I would preferably want to use a different address for each deposit, (I read the docs and found out how this could be done, but still slightly confused), I would want to allow for users to deposit back into their own wallets. Though I think I got withdrawals figured out.
I tried to understand the (Now unsupported docs) but decided to come here for help because I was still confused. How would I use pybitcointools to
Generate an BTC Address. (New address for each user). I believe I could do the below for each user. So this would generate a unique address upon the creation of each user for them to deposit to.
my_private_key = sha256(‘I guess whatever I pleaseR17😉
my_public_key = privtopub(my_private_key)
my_address = pubtoaddr(my_public_key)
Accept a Deposit into this Address.
- Return the BTC value of this address.
- When the time comes, send the balance of this address to the users own address.
Appreciate if you guys could aid me. I promise to send some BTC of gratitude to a person that can help me thoroughly. Thanks (just include your address)
Based Blockchain Network