Closed cbeck88 closed 4 years ago
What is the use-case for comparing secret keys? For instance, in the case of EphemeralSecret
, values of type EphemeralSecret
can only be constructed from RngCore + CryptoRng
, so they will never be equal.
sorry, you're right, this is the result of miscommunication
This is already implemented on
curve25519::Scalar
, we just have to forward it around the newtype wrapper.There is no way for the user to do this otherwise for some of these, since the newtype wrapper doesn't allow access to the bytes of the secret in case of ephemeral secret.