src/index.js
function publicToAddress(publicKey) {
  if (!Buffer.isBuffer(publicKey)) { throw new Error('[ethjs-account] public key must be a buffer object in order to get public key address'); }

  return getAddress(sha3(publicKey, true).slice(12).toString('hex'));
}
function publicToAddress(publicKey) {
  if (!Buffer.isBuffer(publicKey)) { throw new Error('[ethjs-account] public key must be a buffer object in order to get public key address'); }

  return getAddress(sha3(publicKey, true).slice(12).toString('hex'));
}
function publicToAddress ( publicKey ) { if ( ! Buffer . isBuffer ( publicKey ) ) { throw new Error ( '[ethjs-account] public key must be a buffer object in order to get public key address' ) ; } return getAddress ( sha3 ( publicKey , true ) . slice ( 12 ) . toString ( 'hex' ) ) ; }
Returns the Ethereum standard address of a public sepk key.

@method publicToAddress
@param {Object} publicKey a single public key Buffer object
@returns {String} address the 20 byte Ethereum address
Returns the Ethereum standard address of a public sepk key .