mirror of
https://github.com/mikedilger/chorus.git
synced 2026-01-03 06:15:33 +00:00
HashOutput::from_bytes()
This commit is contained in:
parent
af1d992ce7
commit
7b60e26714
@ -25,6 +25,10 @@ impl HashOutput {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn from_bytes(bytes: [u8; 32]) -> HashOutput {
|
||||
HashOutput(bytes)
|
||||
}
|
||||
|
||||
pub fn to_pathbuf<P: AsRef<Path>>(&self, base: P) -> PathBuf {
|
||||
let s = hex::encode(self.0);
|
||||
let mut output: PathBuf = PathBuf::new();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user