Skip to content

Commit

Permalink
test: require @noble/curves to work
Browse files Browse the repository at this point in the history
  • Loading branch information
dcposch committed Sep 10, 2023
1 parent 93d243f commit 400bc63
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test-vectors/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,7 @@ async function main() {
// Verify signature using @noble/curves
const pub = new Uint8Array([0x04, ...x, ...y]);
const resultNoble = p256.verify(sig, hash, pub);
if (resultNoble !== vector.valid) {
console.log(
`@noble/curves returned ${resultNoble}, expected ${vector.valid} for ${vector.comment}`
);
}
assert(resultSubtle === vector.valid, "@noble/curves " + vector.comment);
}
}

Expand Down

0 comments on commit 400bc63

Please sign in to comment.