Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
Set santize flag to false for invalid SEC1 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cgewecke committed Apr 23, 2020
1 parent cc300dd commit 4dd6580
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/account.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe('isValidPublic', function() {
'023a443d8381a6798a70c6ff9304bdc8cb0163c23211d11628fae52ef9e0dca11a001cf066d56a8156fc201cd5df8a36ef694eecd258903fca7086c1fae7441e1d',
'hex',
)
assert.equal(isValidPublic(pubKey, true), false)
assert.equal(isValidPublic(pubKey, false), false)
})
it('should work with compressed keys with sanitize enabled', function() {
const pubKey = Buffer.from(
Expand Down Expand Up @@ -154,7 +154,7 @@ describe('publicToAddress', function() {
'hex',
)
assert.throws(function() {
publicToAddress(pubKey, true)
publicToAddress(pubKey, false)
})
})
it("shouldn't produce an address given an invalid public key", function() {
Expand Down

0 comments on commit 4dd6580

Please sign in to comment.