File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -270,8 +270,7 @@ impl SecretKey {
270
270
///
271
271
/// # Errors
272
272
///
273
- /// Returns an error if the resulting key would be invalid or if the tweak was not a 32-byte
274
- /// length slice.
273
+ /// Returns an error if the resulting key would be invalid.
275
274
#[ inline]
276
275
pub fn add_tweak ( mut self , tweak : & Scalar ) -> Result < SecretKey , Error > {
277
276
unsafe {
@@ -301,8 +300,7 @@ impl SecretKey {
301
300
///
302
301
/// # Errors
303
302
///
304
- /// Returns an error if the resulting key would be invalid or if the tweak was not a 32-byte
305
- /// length slice.
303
+ /// Returns an error if the resulting key would be invalid.
306
304
#[ inline]
307
305
pub fn mul_tweak ( mut self , tweak : & Scalar ) -> Result < SecretKey , Error > {
308
306
unsafe {
@@ -1255,7 +1253,7 @@ impl XOnlyPublicKey {
1255
1253
///
1256
1254
/// # Errors
1257
1255
///
1258
- /// If the resulting key would be invalid or if the tweak was not a 32-byte length slice .
1256
+ /// If the resulting key would be invalid.
1259
1257
///
1260
1258
/// # Examples
1261
1259
///
You can’t perform that action at this time.
0 commit comments