This might be basic stuff, but am pretty new to coding in general.
How do you properly do a double sha256 code?
For example, for the string "abc" the correct output of the double hash should be: 4f8b42c22dd3729b519ba6f68d2da7cc5b2d606d05daed5ad5128cc03e6c6358
However, in the script I provide below, I get another output, altough I do not know where I went wrong. What am I missing in the code?
abc = 'abc'.encode("utf-8")
hashed_abc = hashlib.sha256(abc)
hashed_abc = hashlib.sha256(hashed_abc.hexdigest().encode('utf-8'))
print((hashed_abc.hexdigest()))
Thank you.