mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-20 12:08:35 -04:00
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:
parent
5860d511c9
commit
73f30320a6
3 changed files with 6 additions and 7 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue