Ristretto public key zeroizing is done manually due to the use of OnceCell. I recently came across a clever design pattern that uses destructuring. The idea is that future changes to the underlying struct will trigger a compiler error to ensure that the zeroization implementation is also updated.
This PR implements such a change.
It also updates the linter to ignore a new warning against documentation comment lengths that seems unnecessary.
Ristretto public key zeroizing is done manually due to the use of
OnceCell
. I recently came across a clever design pattern that uses destructuring. The idea is that future changes to the underlying struct will trigger a compiler error to ensure that the zeroization implementation is also updated.This PR implements such a change.
It also updates the linter to ignore a new warning against documentation comment lengths that seems unnecessary.