mirror of
https://github.com/saymrwulf/risc0-curve25519-dalek-source.git
synced 2026-09-07 20:30:39 +00:00
Revert "Add AsRef instances for PublicKey and SecretKey"
This commit is contained in:
parent
91f5546a83
commit
26e017df7c
1 changed files with 0 additions and 12 deletions
|
|
@ -183,12 +183,6 @@ impl Drop for SecretKey {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl AsRef<[u8]> for SecretKey {
|
|
||||||
fn as_ref(&self) -> &[u8] {
|
|
||||||
self.as_bytes()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl SecretKey {
|
impl SecretKey {
|
||||||
/// Expand this `SecretKey` into an `ExpandedSecretKey`.
|
/// Expand this `SecretKey` into an `ExpandedSecretKey`.
|
||||||
pub fn expand<D>(&self) -> 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 {
|
impl PublicKey {
|
||||||
/// Convert this public key to a byte array.
|
/// Convert this public key to a byte array.
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue