We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1104dc0 commit 5febd1bCopy full SHA for 5febd1b
key-utils.js
@@ -11,7 +11,7 @@ let Secp256k1 = require("@dashincubator/secp256k1");
11
12
/**
13
* @callback KeySet
14
- * @param {String} id
+ * @param {String} id - typically address
15
* @param {KeyInfo} keyInfo
16
*/
17
@@ -37,7 +37,11 @@ KeyUtils.set = function (id, keyInfo) {
37
};
38
39
KeyUtils.sign = async function (privKeyBytes, hashBytes) {
40
- let sigOpts = { canonical: true, extraEntropy: true };
+ let testing = true;
41
+ let sigOpts = { canonical: true };
42
+ if (!testing) {
43
+ Object.assign({ extraEntropy: true });
44
+ }
45
let sigBytes = await Secp256k1.sign(hashBytes, privKeyBytes, sigOpts);
46
return sigBytes;
47
0 commit comments