Seed should neither be Clone nor Copy

It is better to not copy around secret data within our process to
make heartbleed-like attacks harder.
This commit is contained in:
Thomas Eizinger 2021-03-23 16:53:25 +11:00
parent 5860d511c9
commit 73f30320a6
No known key found for this signature in database
GPG key ID: 651AC83A6C6C8B96
3 changed files with 6 additions and 7 deletions

View file

@ -15,7 +15,7 @@ use std::path::{Path, PathBuf};
pub const SEED_LENGTH: usize = 32;
#[derive(Clone, Copy, Eq, PartialEq)]
#[derive(Eq, PartialEq)]
pub struct Seed([u8; SEED_LENGTH]);
impl Seed {