Skip to content

Commit

Permalink
Signature(r, s) should work
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan X. Charles committed Sep 2, 2014
1 parent a768755 commit caf6c87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/signature.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var Pubkey = require('./pubkey');

var Signature = function Signature(r, s) {
if (!(this instanceof Signature))
return new Signature(obj);
return new Signature(r, s);
if (r instanceof BN) {
this.set({
r: r,
Expand Down

0 comments on commit caf6c87

Please sign in to comment.