Skip to content

Commit

Permalink
Check compressed property in Signature.fromCompact tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Braydon Fuller committed May 26, 2015
1 parent a5cd5a1 commit 7140865
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/crypto/signature.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ describe('Signature', function() {
var sig = Signature.fromCompact(compressed);
sig.r.cmp(BN.Zero).should.equal(0);
sig.s.cmp(BN.Zero).should.equal(0);
sig.compressed.should.equal(true);
});

it('should create a signature from an uncompressed signature', function() {
Expand All @@ -59,6 +60,7 @@ describe('Signature', function() {
var s = '2fc1188e8b0dc553a2588be2b5b68dbbd7f092894aa3397786e9c769c5348dc6';
sig.r.toString('hex').should.equal(r);
sig.s.toString('hex').should.equal(s);
sig.compressed.should.equal(false);
});

});
Expand Down

0 comments on commit 7140865

Please sign in to comment.