......
I am writing briefly.
The Public Key you requested, converted to SHA256.
ffb3b8a632a6dfbaa52c7497d84df8df5d53737c9ed5fdb7dd8387283a88a635
Also, as a note, let me say this.
The number of wallets I found with the prefix 1MVDYgVaSN is 17. (I do not share these knowingly.)
Now you apologize, we can close the topic.
I expect you to respect my opinion and my PROBABILITY theorem.
First, remember that these discussion topics were started by your answers. I am not the one who wants to argue with you.
I have said it before. "Every brave man eats yogurt differently."
The most important thing is RESPECT.
Just to clarify, the hash is computed on the bytes, as shown in the following example, not directly on the hex string or str, because it would be a different hash.
import hashlib
import base58
def hash160(pubkey: bytes) -> bytes:
sha256_pubkey = hashlib.sha256(pubkey).digest()
print("pubkey (hash):", sha256_pubkey.hex())
ripemd160 = hashlib.new('ripemd160', sha256_pubkey).digest()
return ripemd160
def get_addr(pubkey_hex: str) -> str:
pubkey_bytes = bytes.fromhex(pubkey_hex)
hash160_bytes = hash160(pubkey_bytes)
versioned_payload = b'\x00' + hash160_bytes
checksum = hashlib.sha256(hashlib.sha256(versioned_payload).digest()).digest()[:4]
address_bytes = versioned_payload + checksum
return base58.b58encode(address_bytes).decode()
pubkey_hex = "0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"
address = get_addr(pubkey_hex)
print("Legacy:", address)