Skip to content

Commit

Permalink
utils: update return value for recoverable signature
Browse files Browse the repository at this point in the history
  • Loading branch information
braydonf committed Feb 18, 2020
1 parent e94bdfd commit 2e0c761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ message.sign = (msg, ring, prefix) => {

const hash = message.magicHash(msg, prefix);
const compress = 0x04 !== ring.getPublicKey().readInt8(0);
const {
const [
signature,
recovery
} = secp256k1.signRecoverable(hash, ring.getPrivateKey());
] = secp256k1.signRecoverable(hash, ring.getPrivateKey());

const bw = bufio.write();

Expand Down

0 comments on commit 2e0c761

Please sign in to comment.