impl Clone for Signature

This commit is contained in:
keorn 2016-08-26 11:27:54 +02:00
parent 2cc2bd6518
commit e7a9bf4df8

View File

@ -121,6 +121,12 @@ impl Hash for Signature {
} }
} }
impl Clone for Signature {
fn clone(&self) -> Self {
Signature(self.0)
}
}
impl From<[u8; 65]> for Signature { impl From<[u8; 65]> for Signature {
fn from(s: [u8; 65]) -> Self { fn from(s: [u8; 65]) -> Self {
Signature(s) Signature(s)