From 290cd1774a9e0239feab5e4f73ac86388d15fd69 Mon Sep 17 00:00:00 2001 From: Kirill Fomichev Date: Mon, 23 Dec 2019 17:37:36 +0300 Subject: [PATCH] bump bn.js to 5.0.0 --- package.json | 2 +- test/ecdsa-test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 37f1225..74d8d22 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "mocha": "^6.2.2" }, "dependencies": { - "bn.js": "^4.4.0", + "bn.js": "^5.0.0", "brorand": "^1.0.1", "hash.js": "^1.0.0", "hmac-drbg": "^1.0.0", diff --git a/test/ecdsa-test.js b/test/ecdsa-test.js index 831ac19..183c2e8 100644 --- a/test/ecdsa-test.js +++ b/test/ecdsa-test.js @@ -61,7 +61,7 @@ describe('ECDSA', function() { it('should have `signature.s <= keys.ec.nh`', function() { // key.sign(msg, options) - var sign = keys.sign('hello', { canonical: true }); + var sign = keys.sign(Buffer.from('hello'), { canonical: true }); assert(sign.s.cmp(keys.ec.nh) <= 0); });