Skip to content

Commit

Permalink
explicitly define EncodedMultihash
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Huseby <[email protected]>
  • Loading branch information
dhuseby committed May 11, 2024
1 parent 84eb030 commit 5d572ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "multihash"
version = "1.0.2"
version = "1.0.3"
edition = "2021"
authors = ["Dave Grantham <[email protected]>"]
description = "Multihash self-describing cryptographic hash data"
Expand Down
4 changes: 2 additions & 2 deletions src/mh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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<Multihash>;
pub type EncodedMultihash = BaseEncoded<Multihash, DetectedEncoder>;

/// inner implementation of the multihash
#[derive(Clone, Default, Eq, Ord, PartialEq, PartialOrd)]
Expand Down

0 comments on commit 5d572ef

Please sign in to comment.