Change error enum for KeyPair::from_seckey_slice
Also does another nit in the file which removes a trailing whitespace
This commit is contained in:
parent
05f4278499
commit
5bac4e4bac
|
@ -167,7 +167,7 @@ impl KeyPair {
|
|||
data: &[u8],
|
||||
) -> Result<KeyPair, Error> {
|
||||
if data.is_empty() || data.len() != constants::SECRET_KEY_SIZE {
|
||||
return Err(InvalidPublicKey);
|
||||
return Err(InvalidSecretKey);
|
||||
}
|
||||
|
||||
unsafe {
|
||||
|
|
Loading…
Reference in New Issue