We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The tendermint::PrivateKey enum doesn't derive Copy or Clone, but the underlying ed25519_consensus::SigningKey contained by the enum supports both.
tendermint::PrivateKey
ed25519_consensus::SigningKey
I was able to work around this by cloning the inner value:
let cloned_key = tendermint::PrivateKey::Ed25519( other_key.ed25519_signing_key().unwrap().clone(), );
but it'd be nicer to be able to Copy/Clone the type directly if possible.
The text was updated successfully, but these errors were encountered:
Would strongly recommend explicit Clone over Copy. You don't want to indiscriminately make copies of private keys.
Clone
Copy
Sorry, something went wrong.
Good point, we'll update ed25519-consensus as well
ed25519-consensus
thanethomson
Successfully merging a pull request may close this issue.
The
tendermint::PrivateKey
enum doesn't derive Copy or Clone, but the underlyinged25519_consensus::SigningKey
contained by the enum supports both.I was able to work around this by cloning the inner value:
but it'd be nicer to be able to Copy/Clone the type directly if possible.
The text was updated successfully, but these errors were encountered: