mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-04-12 22:23:11 +00:00
fmt
This commit is contained in:
parent
b53f02bf24
commit
d4e6626c0c
@ -64,7 +64,7 @@ impl PrivateKey {
|
||||
|
||||
pub fn tweak(value: &[u8; 32]) -> Result<Self, NssaError> {
|
||||
if !Self::is_valid_key(*value) {
|
||||
return Err(NssaError::InvalidPrivateKey)
|
||||
return Err(NssaError::InvalidPrivateKey);
|
||||
}
|
||||
|
||||
let sk = secp256k1::SecretKey::from_byte_array(*value).expect("Expect a valid secret key");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user