impl Clone for Signature

This commit is contained in:
keorn 2016-08-26 11:27:54 +02:00
parent 2cc2bd6518
commit e7a9bf4df8
1 changed files with 6 additions and 0 deletions

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 {
fn from(s: [u8; 65]) -> Self {
Signature(s)