summaryrefslogtreecommitdiff
path: root/src/metadata/identity.rs
diff options
context:
space:
mode:
authorKim Altintop <kim@eagain.io>2023-04-13 16:50:24 +0200
committerKim Altintop <kim@eagain.io>2023-04-13 17:10:18 +0200
commit8ce1155a1eb490625a7e949a10c4283b4b773d30 (patch)
tree4ece9c129b032bed209df94ba520f7a3c940e310 /src/metadata/identity.rs
parent607a5609f858cd707dca3a936d80a7a9539b4b5a (diff)
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 <kim@eagain.io>
Diffstat (limited to 'src/metadata/identity.rs')
-rw-r--r--src/metadata/identity.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/metadata/identity.rs b/src/metadata/identity.rs
index 8ded144..0b45731 100644
--- a/src/metadata/identity.rs
+++ b/src/metadata/identity.rs
@@ -20,10 +20,10 @@ use anyhow::{
anyhow,
ensure,
};
+use digest::Digest;
use hex::FromHex;
use log::warn;
use sha2::{
- Digest,
Sha256,
Sha512,
};