lib/address.js
function privKeyToPubKey(privKey) {
  var toCompressed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;

  var pkBuffer = Buffer.from(privKey, 'hex');
  var publicKey = secp256k1.publicKeyCreate(pkBuffer, toCompressed);
  return publicKey.toString('hex');
}
function privKeyToPubKey(privKey) {
  var toCompressed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;

  var pkBuffer = Buffer.from(privKey, 'hex');
  var publicKey = secp256k1.publicKeyCreate(pkBuffer, toCompressed);
  return publicKey.toString('hex');
}
/*
Returns private key's public Key
@param {String} privKey (private key)
@param {boolean} toCompressed (Convert to public key compressed key or nah)
@return {Sting} Public Key (default: uncompressed)