forex.pm forex forum binary options trade - Binance - Сryptocurrency exchanges - python-bitcoinlib | Create Private Keys, Public Keys and Addresses - How to Do It?
  • Welcome to forex.pm forex forum binary options trade. Please login or sign up.
 

python-bitcoinlib | Create Private Keys, Public Keys and Addresses - How to Do It?

Started by Bitcoin, Mar 14, 2022, 05:59 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bitcoin

python-bitcoinlib | Create Private Keys, Public Keys and Addresses - How to Do It?

I'm trying to use the python-bitcoinlib library but its docs aren't entirely clear to me.
I'm a programmer but quite new to Python, and not very versed in the Bitcoin protocol.



What's the process, code-wise, with the library, for the following?




  1. Generating a private key

  2. Creating a public key

  3. Creating an address from the public key



I tried various things and am not completely sure what arguments I supply to what functions, and what functions I'm supposed to use in the process.



I'd appreciate a lot, and I think it'd help me the most if I were provided code for achieving each step.



I was able to follow the Bitcoin protocol (specifically, the developer reference and the developer guide on bitcoin.org to do all of those things, and I'm looking specifically how to do it with the library, so I could have my code fully compatible with other functionality of it, since I'd like to use the library for additional purposes.


Source: python-bitcoinlib | Create Private Keys, Public Keys and Addresses - How to Do It?