Stop indexing hash types

In preparation for removing `SliceIndex` from hash type impls (in
`bitcoin_hashes`) lets stop indexing hash types here.

Internal change only.
This commit is contained in:
Tobin C. Harding 2024-09-05 12:23:00 +10:00
parent 59f122dbb6
commit f0100e1c55
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@ macro_rules! impl_display_secret {
let mut engine = sha256::Hash::engine();
let tag_hash = sha256::Hash::hash(tag.as_bytes());
engine.input(&tag_hash[..]);
engine.input(&tag_hash[..]);
engine.input(&tag_hash.as_ref());
engine.input(&tag_hash.as_ref());
engine.input(&self.secret_bytes());
let hash = sha256::Hash::from_engine(engine);