From 1c8f135d9c1a130ba0cfcfbee94098ea839934fe Mon Sep 17 00:00:00 2001 From: ethers Date: Thu, 24 Apr 2014 23:29:12 -0700 Subject: [PATCH] assertion message --- src/ecdsa.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ecdsa.js b/src/ecdsa.js index c68daa2..4b66d9a 100644 --- a/src/ecdsa.js +++ b/src/ecdsa.js @@ -37,8 +37,8 @@ function implShamirsTrick(P, k, Q, l) { } function deterministicGenerateK(hash, secret) { - assert(Array.isArray(hash)) - assert(Array.isArray(secret)) + assert(Array.isArray(hash), 'hash must be array') + assert(Array.isArray(secret), 'secret must be array') var vArr = [] var kArr = []