Update PublicKey AsRef to slice
This commit is contained in:
@ -26,9 +26,9 @@ impl PublicKey {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl AsRef<GenericArray<u8, U32>> for PublicKey {
|
impl AsRef<[u8]> for PublicKey {
|
||||||
fn as_ref(&self) -> &GenericArray<u8, U32> {
|
fn as_ref(&self) -> &[u8] {
|
||||||
&self.0
|
&self.0[..]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user