Есть python функция как ее конвертировать в c/c++ код без использования lib openssl?
import hashlib, base58, ecdsa
def Wallet(P):
PublicKey = (b"04" + ecdsa.SigningKey.from_string(bytearray.fromhex(P), curve = ecdsa.SECP256k1).verifying_key.to_string().hex().encode()).decode("utf-8")
if (ord(bytearray.fromhex(PublicKey[-2:])) % 2 == 0):
PublicKeyCompressed = "02"
else:
PublicKeyCompressed = "03"
PublicKeyCompressed += PublicKey[2:66]
Sha = hashlib.sha256()
Sha.update(bytearray.fromhex(PublicKeyCompressed))
Rip = hashlib.new("ripemd160")
Rip.update(Sha.digest())
ModifiedKeyHash = "00" + Rip.hexdigest()
Sha = hashlib.sha256()
Sha.update(bytearray.fromhex(ModifiedKeyHash))
ShaTwo = hashlib.sha256()
ShaTwo.update(Sha.digest())
Checksum = ShaTwo.hexdigest()[:8]
return base58.b58encode(bytes(bytearray.fromhex(ModifiedKeyHash + Checksum)))
print(Wallet("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140"))