pub fn do_hash(path: PathBuf) -> Result<(), String> {
    let cp_layout = CompleteCheckpointLayout::new(path.clone(), Height::new(0))
        .map_err(|e| format!("failed to create checkpoint layout: {}", e))?;

    let state = load_checkpoint(&cp_layout, SubnetType::Application, None)
        .map_err(|e| format!("failed to load checkpoint at {}: {}", path.display(), e))?;

    println!("PARTIAL STATE HASH: {}", hash_state(&state).digest());

    Ok(())
}
/// Computes and prints partial state hash used for certification.
Computes and prints partial state hash used for certification.
Computes and prints partial state hash used for certification .
pub fn do_hash(path: PathBuf) -> Result<(), String> {
    let cp_layout = CompleteCheckpointLayout::new(path.clone(), Height::new(0))
        .map_err(|e| format!("failed to create checkpoint layout: {}", e))?;
    let state = load_checkpoint(&cp_layout, SubnetType::Application, None)
        .map_err(|e| format!("failed to load checkpoint at {}: {}", path.display(), e))?;
    println!("PARTIAL STATE HASH: {}", hash_state(&state).digest());
    Ok(())
}
pub fn do_hash ( path : PathBuf ) -> Result < ( ) , String > { let cp_layout = CompleteCheckpointLayout :: new ( path . clone ( ) , Height :: new ( 0 ) ) . map_err ( | e | format ! ( " " e ) ) ? ; let state = load_checkpoint ( & cp_layout , SubnetType :: Application , None ) . map_err ( | e | format ! ( " " path display ( ) e ) ) ? ; println ! ( " " hash_state ( state ) digest ( ) ) ; Ok ( ( ) ) }
Computes and prints partial state hash used for certification.
Computes and prints partial state hash used for certification .
path
PathBuf
path
PathBuf