Skip to content

Commit 0361080

Browse files
committed
chore(stm): avoid using deprecated 'as_slice' on Blake hasher
1 parent e33fc7c commit 0361080

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mithril-stm/src/bls_multi_signature/signature.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl BlsSignature {
5050
.finalize();
5151

5252
let mut output = [0u8; 64];
53-
output.copy_from_slice(hasher.as_slice());
53+
output.copy_from_slice(&hasher);
5454

5555
output
5656
}
@@ -117,7 +117,7 @@ impl BlsSignature {
117117
let mut hasher = hashed_sigs.clone();
118118
hasher.update(index.to_be_bytes());
119119
signatures.push(sig.0);
120-
scalars.extend_from_slice(hasher.finalize().as_slice());
120+
scalars.extend_from_slice(&hasher.finalize());
121121
}
122122

123123
let transmuted_vks: Vec<blst_p2> = vks.iter().map(vk_from_p2_affine).collect();

0 commit comments

Comments
 (0)