File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ impl KeyPair {
167
167
data : & [ u8 ] ,
168
168
) -> Result < KeyPair , Error > {
169
169
if data. is_empty ( ) || data. len ( ) != constants:: SECRET_KEY_SIZE {
170
- return Err ( InvalidPublicKey ) ;
170
+ return Err ( InvalidSecretKey ) ;
171
171
}
172
172
173
173
unsafe {
@@ -313,7 +313,7 @@ impl PublicKey {
313
313
314
314
/// Tweak an x-only PublicKey by adding the generator multiplied with the given tweak to it.
315
315
///
316
- /// Returns a boolean representing the parity of the tweaked key, which can be provided to
316
+ /// Returns a boolean representing the parity of the tweaked key, which can be provided to
317
317
/// `tweak_add_check` which can be used to verify a tweak more efficiently than regenerating
318
318
/// it and checking equality. Will return an error if the resulting key would be invalid or
319
319
/// if the tweak was not a 32-byte length slice.
You can’t perform that action at this time.
0 commit comments