/// Write the node public keys to local storage
Write the node public keys to local storage
Write the node public keys to local storage
pub fn store_node_public_keys(
    crypto_root: &Path,
    node_pks: &NodePublicKeys,
) -> Result<(), PublicKeyStoreError> {
    let pk_file = crypto_root.join(PK_DATA_FILENAME);
    ic_utils::fs::write_protobuf_using_tmp_file(pk_file, node_pks)
        .map_err(|err| PublicKeyStoreError::IOError(err.to_string()))
}
pub fn store_node_public_keys ( crypto_root : & Path , node_pks : & NodePublicKeys , ) -> Result < ( ) , PublicKeyStoreError > { let pk_file = crypto_root . join ( PK_DATA_FILENAME ) ; ic_utils :: fs :: write_protobuf_using_tmp_file ( pk_file , node_pks ) . map_err ( | err | PublicKeyStoreError :: IOError ( err . to_string ( ) ) ) }
Write the node public keys to local storage
Write the node public keys to local storage
crypto_root
&Path
node_pks
&NodePublicKeys