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:
parent
59f122dbb6
commit
f0100e1c55
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue