-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot clone a SecretVec<u8>
as u8
is not CloneableSecret
#1070
Comments
Also facing this issue, kinda of annoying... |
Closing in favor of #1233 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There can't seem to be a way to clone a
SecretVec<u8>
becauseClone
is only implemented onSecret<Vec<S>> where S: CloneableSecret + Zeroize
and obviouslyu8
is notCloneableSecret
but isZeroize
.I think the right implementation should be
Secret<Vec<S>> where S: Zeroize
and avoid implyingCloneableSecret
, am I right?The text was updated successfully, but these errors were encountered: