Do not require feature=std for PublicKey::from_secret

This commit is contained in:
Oleg Andreev 2017-12-12 15:41:39 -08:00
parent 33be38eb51
commit f64b20b351

View file

@ -657,7 +657,6 @@ impl PublicKey {
}
/// Derive this public key from its corresponding `SecretKey`.
#[cfg(feature = "std")]
#[allow(unused_assignments)]
pub fn from_secret<D>(secret_key: &SecretKey) -> PublicKey
where D: Digest<OutputSize = U64> + Default {