Improve subkey error reporting. (#4504)

This commit is contained in:
Nikolay Volf
2019-12-27 23:07:04 +03:00
committed by Bastian Köcher
parent 47639339f6
commit 885f94dfad
4 changed files with 107 additions and 75 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ fn calculate_score(_desired: &str, key: &str) -> usize {
0
}
pub(super) fn generate_key<C: Crypto>(desired: &str) -> Result<KeyPair<C>, &str> where
pub(super) fn generate_key<C: Crypto>(desired: &str) -> Result<KeyPair<C>, &'static str> where
PublicOf<C>: PublicT,
{
if desired.is_empty() {