Convenient block creation logic

This commit is contained in:
Gav
2018-01-31 08:16:22 +01:00
parent c29bb49517
commit e9958a8e5c
11 changed files with 109 additions and 5 deletions
+5
View File
@@ -55,6 +55,11 @@ impl Signature {
r.copy_from_slice(data);
Signature(r)
}
/// Get the inner part.
pub fn inner(self) -> [u8; 64] {
self.0
}
}
impl AsRef<[u8; 64]> for Signature {