Skip to content

Commit 37f4f00

Browse files
committed
Merge #429: Misc doc fixes
676a980 Remove unnecessary panic message (sanket1729) aa50cc6 Remove Schnorr word from keypairs (sanket1729) Pull request description: Keypairs are pair of EC points that don't have anything to do with the signature algorithm ACKs for top commit: apoelstra: ACK 676a980 tcharding: ACK 676a980 Tree-SHA512: ed3e6f5e821d18641234b308b130271dcd2ec0dd6519a0e9d91564ab8e902b82180d7df377f2bcf08cd3ca1df7ce775422e4a3c386637eaff348e58b033de3ea
2 parents e4fb575 + 676a980 commit 37f4f00

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/key.rs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -696,13 +696,7 @@ impl KeyPair {
696696
&mut self.0
697697
}
698698

699-
/// Creates a Schnorr [`KeyPair`] directly from generic Secp256k1 secret key.
700-
///
701-
/// # Panics
702-
///
703-
/// Panics if internal representation of the provided [`SecretKey`] does not hold correct secret
704-
/// key value obtained from Secp256k1 library previously, specifically when secret key value is
705-
/// out-of-range (0 or in excess of the group order).
699+
/// Creates a [`KeyPair`] directly from a Secp256k1 secret key.
706700
#[inline]
707701
pub fn from_secret_key<C: Signing>(
708702
secp: &Secp256k1<C>,
@@ -718,7 +712,7 @@ impl KeyPair {
718712
}
719713
}
720714

721-
/// Creates a Schnorr [`KeyPair`] directly from a secret key slice.
715+
/// Creates a [`KeyPair`] directly from a secret key slice.
722716
///
723717
/// # Errors
724718
///
@@ -743,7 +737,7 @@ impl KeyPair {
743737
}
744738
}
745739

746-
/// Creates a Schnorr [`KeyPair`] directly from a secret key string.
740+
/// Creates a [`KeyPair`] directly from a secret key string.
747741
///
748742
/// # Errors
749743
///
@@ -759,7 +753,7 @@ impl KeyPair {
759753
}
760754
}
761755

762-
/// Creates a Schnorr [`KeyPair`] directly from a secret key string and the global [`SECP256K1`] context.
756+
/// Creates a [`KeyPair`] directly from a secret key string and the global [`SECP256K1`] context.
763757
///
764758
/// # Errors
765759
///

0 commit comments

Comments
 (0)