How to make a pure Python code for Bitcoin address and private key without modules? For now I learn only how from decimal to get a hex. How from hex to private key WIF and than Bitcoin address?
bits = 115792089237316195423570985008687907852837564279074904382605163141518111494336
bits_hex = hex(bits)
private_key = bits_hex[2:]
print(private_key)
With this code I get this fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8ccd3b50c0
I want to get this 5Km2kuu7vtFDPpxywn4u3NLpbr5jKpTB3jsuDU2KXjvkyQnjL4Q
and this 1FDV9PfvAnep8LEzNc7kqSjpxtWK3G3oj4
and compressed private key and address
L5oLkpV3aqBjhki6LmvChTCV6odsp4SXM6FfU2GpngUH5fdXyvH3 1HcYwYNpthRFqUCUhAtQfG3ZAX46uMSUux
Can someone to help me?