Skip to content

Commit 652cace

Browse files
committed
Merge #731: Stop indexing hash types
f0100e1 Stop indexing hash types (Tobin C. Harding) Pull request description: In preparation for removing `SliceIndex` from hash type impls (in `bitcoin_hashes`) lets stop indexing hash types here. Internal change only. ACKs for top commit: jlest01: ACK f0100e1 Kixunil: ACK f0100e1 apoelstra: ACK f0100e1 successfully ran local tests Tree-SHA512: 196d83326f8d62bb095c39a67083d3f8daca65b458abffc92ebec469a6213d03003786d046f795f8b082d8e94fc1a0f7f4d5f8c66021785fb79cbbdeed8042f7
2 parents 59f122d + f0100e1 commit 652cace

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/secret.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ macro_rules! impl_display_secret {
2020

2121
let mut engine = sha256::Hash::engine();
2222
let tag_hash = sha256::Hash::hash(tag.as_bytes());
23-
engine.input(&tag_hash[..]);
24-
engine.input(&tag_hash[..]);
23+
engine.input(&tag_hash.as_ref());
24+
engine.input(&tag_hash.as_ref());
2525
engine.input(&self.secret_bytes());
2626
let hash = sha256::Hash::from_engine(engine);
2727

0 commit comments

Comments
 (0)