Revert "Add AsRef instances for PublicKey and SecretKey"

This commit is contained in:
isis agora lovecruft 2018-12-18 01:09:00 +00:00 committed by GitHub
parent 91f5546a83
commit 26e017df7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -183,12 +183,6 @@ impl Drop for SecretKey {
}
}
impl AsRef<[u8]> for SecretKey {
fn as_ref(&self) -> &[u8] {
self.as_bytes()
}
}
impl SecretKey {
/// Expand this `SecretKey` into an `ExpandedSecretKey`.
pub fn expand<D>(&self) -> ExpandedSecretKey
@ -721,12 +715,6 @@ impl Debug for PublicKey {
}
}
impl AsRef<[u8]> for PublicKey {
fn as_ref(&self) -> &[u8] {
self.as_bytes()
}
}
impl PublicKey {
/// Convert this public key to a byte array.
#[inline]