From 4b5560ab4badeadbb0d0e16da9184b61a8619d53 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Tue, 27 Dec 2022 04:25:09 +0000 Subject: [PATCH] secp256k1 tests: remove test skips --- curve-definitions/test/secp256k1.test.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/curve-definitions/test/secp256k1.test.js b/curve-definitions/test/secp256k1.test.js index 5bb0d6f..e26835e 100644 --- a/curve-definitions/test/secp256k1.test.js +++ b/curve-definitions/test/secp256k1.test.js @@ -390,7 +390,6 @@ should('secp256k1.recoverPublicKey()/should handle all-zeros msghash', () => { }); should('secp256k1.recoverPublicKey()/should handle RFC 6979 vectors', () => { for (const vector of ecdsa.valid) { - if (secp.utils.mod(hexToNumber(vector.m), secp.CURVE.n) === 0n) continue; let usig = secp.sign(vector.m, vector.d); let sig = usig.toDERHex(); const vpub = secp.getPublicKey(vector.d); @@ -407,8 +406,6 @@ should('secp256k1.getSharedSecret()/should produce correct results', () => { // TODO: Once der is there, run all tests. for (const vector of ecdh.testGroups[0].tests.slice(0, 230)) { if (vector.result === 'invalid' || vector.private.length !== 64) { - // We support eth-like hexes - if (vector.private.length < 64) continue; throws(() => { secp.getSharedSecret(vector.private, derToPub(vector.public), true); });