Python Generate Public Private Key Pair Crypto Bitcoin: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

20 April 2025

  • curprev 18:3118:31, 20 April 2025 AwesomO talk contribs 2,191 bytes +2,191 Created page with "== Script Depends - Install == <code>sudo apt install python3-ecdsa</code> == Generating a Genesis private and public key == <code>$EDITOR GenPub.py</code> <pre> import ecdsa import hashlib # sudo apt install python3-ecdsa # required def generate_key_pair(): sk = ecdsa.SigningKey.generate(curve=ecdsa.SECP256k1) vk = sk.get_verifying_key() x_coord = vk.pubkey.point.x() y_coord = vk.pubkey.point.y() if y_coord % 2 == 0: compressed_pub_key..."