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

Commit

Permalink
Upgrade secp256k1 to ^4.0.1 and revert SEC1 test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cgewecke committed Apr 27, 2020
1 parent 550c207 commit 040cb54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"ethjs-util": "0.1.6",
"keccak": "^3.0.0",
"rlp": "^2.2.4",
"secp256k1": "^4.0.0"
"secp256k1": "^4.0.1"
},
"devDependencies": {
"@ethereumjs/config-prettier": "^1.1.0",
Expand Down
4 changes: 2 additions & 2 deletions test/account.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ describe('isValidPublic', function() {
'023a443d8381a6798a70c6ff9304bdc8cb0163c23211d11628fae52ef9e0dca11a001cf066d56a8156fc201cd5df8a36ef694eecd258903fca7086c1fae7441e1d',
'hex',
)
assert.equal(isValidPublic(pubKey, false), false)
assert.equal(isValidPublic(pubKey, true), false)
})
it('should work with compressed keys with sanitize enabled', function() {
const pubKey = Buffer.from(
Expand Down Expand Up @@ -171,7 +171,7 @@ describe('publicToAddress', function() {
'hex',
)
assert.throws(function() {
publicToAddress(pubKey, false)
publicToAddress(pubKey, true)
})
})
it("shouldn't produce an address given an invalid public key", function() {
Expand Down

0 comments on commit 040cb54

Please sign in to comment.