From 8ce1155a1eb490625a7e949a10c4283b4b773d30 Mon Sep 17 00:00:00 2001 From: Kim Altintop Date: Thu, 13 Apr 2023 16:50:24 +0200 Subject: core: replace bundle checksum with BLAKE3 BLAKE3 has a verified streaming mode (Bao), which allows variable chunk sizes without altering the root hash. This means that a BLAKE3 hash can serve as a long-term stable content address in location-independent storage (as demonstrated by iroh). Signed-off-by: Kim Altintop --- src/cmd/patch/prepare.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/cmd') diff --git a/src/cmd/patch/prepare.rs b/src/cmd/patch/prepare.rs index 06d5ec9..8f8b871 100644 --- a/src/cmd/patch/prepare.rs +++ b/src/cmd/patch/prepare.rs @@ -11,11 +11,9 @@ use anyhow::{ bail, ensure, }; +use digest::Digest; use either::Either::Left; -use sha2::{ - Digest, - Sha256, -}; +use sha2::Sha256; use crate::{ bundle, -- cgit v1.2.3