Skip to content

Commit

Permalink
ecdsa: fix dev macros (#768)
Browse files Browse the repository at this point in the history
The method changed from `GenericArray::from_slice` to
`Array::ref_from_slice`.

This has been renamed back upstream in `hybrid-array` to simplify
people's upgrades, but for now we need to rename it until we can upgrade
`hybrid-array` again.

Longer term the method will be deprecated, so this is temporary anyway.
  • Loading branch information
tarcieri authored Jan 10, 2024
1 parent 6881696 commit d935382
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ecdsa/src/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ macro_rules! new_verification_test {
fn ecdsa_verify_success() {
for vector in $vectors {
let q_encoded = EncodedPoint::<$curve>::from_affine_coordinates(
Array::from_slice(vector.q_x),
Array::from_slice(vector.q_y),
Array::ref_from_slice(vector.q_x),
Array::ref_from_slice(vector.q_y),
false,
);

Expand All @@ -112,8 +112,8 @@ macro_rules! new_verification_test {
fn ecdsa_verify_invalid_s() {
for vector in $vectors {
let q_encoded = EncodedPoint::<$curve>::from_affine_coordinates(
Array::from_slice(vector.q_x),
Array::from_slice(vector.q_y),
Array::ref_from_slice(vector.q_x),
Array::ref_from_slice(vector.q_y),
false,
);

Expand Down

0 comments on commit d935382

Please sign in to comment.