static inline uint256_t sha256(const void *data, size_t len)
{
secp256k1_sha256_t cxt;
secp256k1_sha256_initialize(&cxt);
secp256k1_sha256_write(&cxt, (uint8_t *)data, (int)len);
uint256_t res;
secp256k1_sha256_finalize(&cxt, (uint8_t *)&res);
return res;
}
I want to see what's inside data and what's being returned by the above function, so printing seems like an easy way but how do i print contents of *data
not the pointer to data because *%p*
gave me an address.