Skip to content

Commit 14b902f

Browse files
committed
fix: k256 tests
1 parent 504a1dd commit 14b902f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

k256/src/arithmetic/hash2curve.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ mod tests {
355355
// in parts
356356
let u = hash2curve::hash_to_field::<
357357
2,
358-
ExpandMsgXmd<Sha256>,
358+
ExpandMsgXmd<'_, Sha256>,
359359
<Secp256k1 as GroupDigest>::K,
360360
FieldElement,
361361
>(&[test_vector.msg], &[DST])
@@ -379,8 +379,9 @@ mod tests {
379379
assert_eq!(ap.y.to_bytes().as_slice(), test_vector.p_y);
380380

381381
// complete run
382-
let pt = Secp256k1::hash_from_bytes::<ExpandMsgXmd<Sha256>>(&[test_vector.msg], &[DST])
383-
.unwrap();
382+
let pt =
383+
Secp256k1::hash_from_bytes::<ExpandMsgXmd<'_, Sha256>>(&[test_vector.msg], &[DST])
384+
.unwrap();
384385
let apt = pt.to_affine();
385386
assert_eq!(apt.x.to_bytes().as_slice(), test_vector.p_x);
386387
assert_eq!(apt.y.to_bytes().as_slice(), test_vector.p_y);

0 commit comments

Comments
 (0)