Skip to content

Commit

Permalink
fix bws test helper fn
Browse files Browse the repository at this point in the history
  • Loading branch information
kajoseph committed Dec 19, 2024
1 parent 612f425 commit bb1324f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ helpers.signMessage = function(message, privKey) {
var priv = new Bitcore.PrivateKey(privKey);
const flattenedMessage = _.isArray(message)? _.join(message) : message;
var hash = Utils.hashMessage(flattenedMessage);
return Bitcore.crypto.ECDSA.sign(hash, priv, 'little').toString();
return Bitcore.crypto.ECDSA.sign(hash, priv, { endian: 'little' }).toString();
};

helpers.signRequestPubKey = function(requestPubKey, xPrivKey) {
Expand Down

0 comments on commit bb1324f

Please sign in to comment.