Skip to content

Commit a0dde41

Browse files
bincode serialization
1 parent 7183a88 commit a0dde41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dash/src/hash_types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ use hashes::{sha256, sha256d, hash160, hash_newtype, Hash, hash_newtype_no_ord};
147147
pub struct QuorumCommitmentHash(sha256d::Hash);
148148

149149
pub struct Sha256dHash(sha256d::Hash);
150-
pub struct ScoreHash(sha256d::Hash);
150+
pub struct ScoreHash(sha256::Hash);
151151
}
152152

153153
// hash_newtype_no_ord! {
@@ -235,7 +235,7 @@ use hashes::{sha256, sha256d, hash160, hash_newtype, Hash, hash_newtype_no_ord};
235235
impl ScoreHash {
236236
/// Create a Txid from a string
237237
pub fn from_hex(s: &str) -> Result<ScoreHash, Error> {
238-
Ok(Self(sha256d::Hash::from_str(s)?))
238+
Ok(Self(sha256::Hash::from_str(s)?))
239239
}
240240

241241
/// Convert a Txid to a string

0 commit comments

Comments
 (0)