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

Commit

Permalink
In publicToAddress sanitize defaults to false (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Apr 14, 2016
1 parent f47b28d commit e92c836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ exports.isValidPrivate = function (privateKey) {
* Accepts "Ethereum public keys" and SEC1 encoded keys.
* @method publicToAddress
* @param {Buffer} pubKey The two points of an uncompressed key, unless sanitize is enabled
* @param {Boolean} sanitize Accept public keys in other formats
* @param {Boolean} [sanitize=false] Accept public keys in other formats
* @return {Buffer}
*/
exports.pubToAddress = exports.publicToAddress = function (pubKey, sanitize) {
Expand Down

0 comments on commit e92c836

Please sign in to comment.