How 13riann/p2pkh-privatekey-data works
This is a small command-line script that accepts a decimal or hexadecimal private key and prints its P2PKH-related data. The main path derives compressed and uncompressed public keys, hashes them, encodes addresses, and displays the results. All runtime behavior is implemented in one file; relationships below follow calls visible in its excerpt.
Main entry points: pycoin.py Input and display
Components 7
Key derivation
- Public key derivation
pycoin.py
Address encoding
- HASH160
pycoin.py - RIPEMD160
pycoin.py - Base58Check
pycoin.py - Base58 encoding
pycoin.py
Command line
- Input and display
pycoin.py
Other components
- User
Connections 6
- User → Input and display: enters key
pycoin.py - Input and display → Public key derivation: derives keys
pycoin.py - Input and display → HASH160: hashes public key
pycoin.py - Input and display → Base58Check: encodes address
pycoin.py - HASH160 → RIPEMD160: hashes digest
pycoin.py - Base58Check → Base58 encoding: encodes payload
pycoin.py