676a9800df Remove unnecessary panic message (sanket1729)
aa50cc6ced 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 676a9800df
  tcharding:
    ACK 676a9800df

Tree-SHA512: ed3e6f5e821d18641234b308b130271dcd2ec0dd6519a0e9d91564ab8e902b82180d7df377f2bcf08cd3ca1df7ce775422e4a3c386637eaff348e58b033de3ea
This commit is contained in:
Andrew Poelstra 2022-04-22 16:55:18 +00:00
commit 37f4f005d1
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 4 additions and 10 deletions

View File

@ -696,13 +696,7 @@ impl KeyPair {
&mut self.0
}
/// Creates a Schnorr [`KeyPair`] directly from generic Secp256k1 secret key.
///
/// # Panics
///
/// Panics if internal representation of the provided [`SecretKey`] does not hold correct secret
/// key value obtained from Secp256k1 library previously, specifically when secret key value is
/// out-of-range (0 or in excess of the group order).
/// Creates a [`KeyPair`] directly from a Secp256k1 secret key.
#[inline]
pub fn from_secret_key<C: Signing>(
secp: &Secp256k1<C>,
@ -718,7 +712,7 @@ impl KeyPair {
}
}
/// Creates a Schnorr [`KeyPair`] directly from a secret key slice.
/// Creates a [`KeyPair`] directly from a secret key slice.
///
/// # Errors
///
@ -743,7 +737,7 @@ impl KeyPair {
}
}
/// Creates a Schnorr [`KeyPair`] directly from a secret key string.
/// Creates a [`KeyPair`] directly from a secret key string.
///
/// # Errors
///
@ -759,7 +753,7 @@ impl KeyPair {
}
}
/// Creates a Schnorr [`KeyPair`] directly from a secret key string and the global [`SECP256K1`] context.
/// Creates a [`KeyPair`] directly from a secret key string and the global [`SECP256K1`] context.
///
/// # Errors
///