Convert this identity to an Author for change headers. This creates an Author struct compatible with atomic-core's change header format.
(&self)
| 391 | /// This creates an Author struct compatible with atomic-core's |
| 392 | /// change header format. |
| 393 | pub fn to_author(&self) -> crate::Author { |
| 394 | crate::Author { |
| 395 | name: self.name.clone(), |
| 396 | email: self.email.clone(), |
| 397 | identity: Some(self.public_key_base32()), |
| 398 | } |
| 399 | } |
| 400 | } |
| 401 | |
| 402 | impl fmt::Display for Identity { |