Signature(r, s) should work

This commit is contained in:
Ryan X. Charles 2014-09-02 11:59:42 -07:00
parent a768755764
commit caf6c87419
1 changed files with 1 additions and 1 deletions

View File

@ -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,