()
| 133 | } |
| 134 | |
| 135 | pub(crate) fn load_key_store(key_store_path: &str) -> Result<KeyStore<PrivateKey>> { |
| 136 | match read_keys_from_keystore(key_store_path).context("failed to load key store") { |
| 137 | Ok((node_key, consensus_key)) => Ok(KeyStore { |
| 138 | node_key, |
| 139 | consensus_key, |
| 140 | }), |
| 141 | Err(e) => Err(e), |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | pub(crate) fn expect_key_store(key_store_path: &str) -> KeyStore<PrivateKey> { |
nothing calls this directly
no test coverage detected