fix Pk size check (#361)

* more descriptive error

* fix key size check
This commit is contained in:
Paolo Asperti authored and GitHub committed 2024-01-31 11:21:00 +08:00
1 parent 778c89efb1
commit 94ae51458c
2 files changed
+3 -3

No files matched your search

-3
View File
@@ -1174,9 +1174,6 @@ impl RendezvousServer {
let mut tmp = [0u8; sign::SECRETKEYBYTES];
tmp[..].copy_from_slice(&sk);
out_sk = Some(sign::SecretKey(tmp));
} else {
log::error!("Malformed private key");
std::process::exit(1);
}
}