Package: node-elliptic / 6.5.4~dfsg-2

fix-error-with-new-bn.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Subject: Fix error with newer node-bn.js
author: exoego <mogami@exoego.net>

key sign accepts only hexadecimal number

origin: https://github.com/indutny/elliptic/commit/3d7b3b284cbc8454501f5f0d6c3560db9eaa642b.patch

--- a/test/ecdsa-test.js
+++ b/test/ecdsa-test.js
@@ -65,7 +65,7 @@
 
       it('should have `signature.s <= keys.ec.nh`', function() {
         // key.sign(msg, options)
-        var sign = keys.sign('hello', { canonical: true });
+        var sign = keys.sign('deadbeef', { canonical: true });
         assert(sign.s.cmp(keys.ec.nh) <= 0);
       });