Remove unused From<[u8; 32]> for ProofAuthorizingKey
This commit is contained in:
parent
d445799626
commit
630d021886
|
@ -311,15 +311,9 @@ impl fmt::Debug for ProofAuthorizingKey {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<[u8; 32]> for ProofAuthorizingKey {
|
||||
fn from(bytes: [u8; 32]) -> Self {
|
||||
Self(Scalar::from_bytes(&bytes).unwrap())
|
||||
}
|
||||
}
|
||||
|
||||
impl From<ProofAuthorizingKey> for [u8; 32] {
|
||||
fn from(sk: ProofAuthorizingKey) -> Self {
|
||||
sk.0.to_bytes()
|
||||
fn from(nsk: ProofAuthorizingKey) -> Self {
|
||||
nsk.0.to_bytes()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue