Merge pull request #316 from sanket1729/err_fix
Change error enum for KeyPair::from_seckey_slice
This commit is contained in:
commit
6ac9f4d453
|
@ -167,7 +167,7 @@ impl KeyPair {
|
||||||
data: &[u8],
|
data: &[u8],
|
||||||
) -> Result<KeyPair, Error> {
|
) -> Result<KeyPair, Error> {
|
||||||
if data.is_empty() || data.len() != constants::SECRET_KEY_SIZE {
|
if data.is_empty() || data.len() != constants::SECRET_KEY_SIZE {
|
||||||
return Err(InvalidPublicKey);
|
return Err(InvalidSecretKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|
Loading…
Reference in New Issue