()
| 33 | } |
| 34 | |
| 35 | pub(crate) fn get_private_key() -> Result<SecretKey> { |
| 36 | let key = read(PRIVATE_KEY_PATH).expect("Could not read private key"); |
| 37 | SecretKey::from_slice(&key).map_err(|e| ChainError::InternalError(e.to_string())) |
| 38 | } |
| 39 | |
| 40 | pub(crate) fn get_public_key() -> Result<PublicKey> { |
| 41 | let key = read(PUBLIC_KEY_PATH).expect("Could not read public key"); |
no outgoing calls