without modules?




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 = 115792089237316195423570985008687907852837564279074904382605163141518111494336bits_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?


Источник: “https://bitcoin.stackexchange.com/questions/93314/how-to-get-private-key-and-bitcoin-address-in-pure-python-without-modules”