From 5d572efa90ce26fc72bcf7e635da6bb3d4f2bae0 Mon Sep 17 00:00:00 2001 From: Dave Huseby Date: Fri, 10 May 2024 19:50:10 -0600 Subject: [PATCH] explicitly define EncodedMultihash Signed-off-by: Dave Huseby --- Cargo.toml | 2 +- src/mh.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fb4ea09..fe5aa95 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "multihash" -version = "1.0.2" +version = "1.0.3" edition = "2021" authors = ["Dave Grantham "] description = "Multihash self-describing cryptographic hash data" diff --git a/src/mh.rs b/src/mh.rs index 2d3541d..29a4fe9 100644 --- a/src/mh.rs +++ b/src/mh.rs @@ -5,7 +5,7 @@ use digest::{Digest, DynDigest}; use multibase::Base; use multicodec::Codec; use multitrait::{Null, TryDecodeFrom}; -use multiutil::{BaseEncoded, CodecInfo, EncodingInfo, Varbytes}; +use multiutil::{BaseEncoded, CodecInfo, DetectedEncoder, EncodingInfo, Varbytes}; use typenum::consts::*; /// the hash codecs currently supported @@ -49,7 +49,7 @@ pub const SAFE_HASH_CODECS: [Codec; 8] = [ pub const SIGIL: Codec = Codec::Multihash; /// a base encoded multihash -pub type EncodedMultihash = BaseEncoded; +pub type EncodedMultihash = BaseEncoded; /// inner implementation of the multihash #[derive(Clone, Default, Eq, Ord, PartialEq, PartialOrd)]