import binascii
# Hex string bez "0x" prefiksa
encoded_data = "00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000083c4fc22b2717fb80b26277a1e901e6bcf5c5b5e"
# ABI format stringa: offset (64 bajta) + dužina stringa (64 bajta) + stvarni string
# Preskačemo prva 64 bajta (offset)
decoded_hex = encoded_data[128:]
# Pretvaramo u ASCII string
secret_key = bytearray.fromhex(decoded_hex).decode(errors="ignore")
print("Secret Key:", secret_key.strip("\x00")) # Uklanja nepotrebne nule
aW1wb3J0IGJpbmFzY2lpCgojIEhleCBzdHJpbmcgYmV6ICIweCIgcHJlZmlrc2EKZW5jb2RlZF9kYXRhID0gIjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwNDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwZGUwYjZiM2E3NjQwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMTAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDgzYzRmYzIyYjI3MTdmYjgwYjI2Mjc3YTFlOTAxZTZiY2Y1YzViNWUiCgojIEFCSSBmb3JtYXQgc3RyaW5nYTogb2Zmc2V0ICg2NCBiYWp0YSkgKyBkdcW+aW5hIHN0cmluZ2EgKDY0IGJhanRhKSArIHN0dmFybmkgc3RyaW5nCiMgUHJlc2thxI1lbW8gcHJ2YSA2NCBiYWp0YSAob2Zmc2V0KQpkZWNvZGVkX2hleCA9IGVuY29kZWRfZGF0YVsxMjg6XSAgCgojIFByZXR2YXJhbW8gdSBBU0NJSSBzdHJpbmcKc2VjcmV0X2tleSA9IGJ5dGVhcnJheS5mcm9taGV4KGRlY29kZWRfaGV4KS5kZWNvZGUoZXJyb3JzPSJpZ25vcmUiKQoKcHJpbnQoIlNlY3JldCBLZXk6Iiwgc2VjcmV0X2tleS5zdHJpcCgiXHgwMCIpKSAgIyBVa2xhbmphIG5lcG90cmVibmUgbnVsZQo=