From<UintAuthority> for u64 (#3638)

* Add from impl for uint authority

* Undo change to cargo.
This commit is contained in:
Kian Paimani
2019-09-18 13:24:08 +02:00
committed by Bastian Köcher
parent e9c756dced
commit b46340cf8e
@@ -39,6 +39,12 @@ impl From<u64> for UintAuthorityId {
}
}
impl From<UintAuthorityId> for u64 {
fn from(id: UintAuthorityId) -> u64 {
id.0
}
}
impl UintAuthorityId {
/// Convert this authority id into a public key.
pub fn to_public_key<T: Public>(&self) -> T {