()
| 38 | } |
| 39 | |
| 40 | pub(crate) fn get_public_key() -> Result<PublicKey> { |
| 41 | let key = read(PUBLIC_KEY_PATH).expect("Could not read public key"); |
| 42 | PublicKey::from_slice(&key).map_err(|e| ChainError::InternalError(e.to_string())) |
| 43 | } |
| 44 | |
| 45 | #[cfg(test)] |
| 46 | mod tests { |
no outgoing calls