Currently we only do this for the ri ed25519 id.
If that check is already done when we parse microdescs, we should add a comment.
I think the check happens, only a comment is required.
That checks if the first byte of the object is zero. We need to check if every byte is zero.
We have a function for that, I think it's called tor_mem_is_zero().
That checks if the first byte of the object is zero. We need to check if every byte is zero.
We have a function for that, I think it's called tor_mem_is_zero().
I added this,
if(tor_mem_is_zero((char*)node->md, sizeof(node->md->ed25519_identity_pkey)))
however it is failing when I do a make check at src/test/test.