proto_node/depman/
verify.rs1use crate::depman::NodeDependencyManager;
2use proto_core::{async_trait, ProtoError, Resolvable, Verifiable};
3use std::path::{Path, PathBuf};
4
5#[async_trait]
8impl Verifiable<'_> for NodeDependencyManager {
9 fn get_checksum_path(&self) -> Result<PathBuf, ProtoError> {
10 Ok(self
11 .temp_dir
12 .join(format!("v{}.pub", self.get_resolved_version())))
13 }
14
15 fn get_checksum_url(&self) -> Result<Option<String>, ProtoError> {
16 Ok(None)
17 }
18
19 async fn verify_checksum(
20 &self,
21 _checksum_file: &Path,
22 _download_file: &Path,
23 ) -> Result<bool, ProtoError> {
24 Ok(true)
25 }
26}