@digicat/compute-ethereum-account-address

Utility that computes an Ethereum account address given a compressed public key

Stats

StarsIssuesVersionUpdatedCreatedSize
@digicat/compute-ethereum-account-address
001.0.04 years ago4 years agoMinified + gzip package size for @digicat/compute-ethereum-account-address in KB

Readme

@digicat/compute-ethereum-account-address

Utility that computes an Ethereum account address given a compressed public key.

Requires Node.js 6 or later.

Usage

const computeEthereumAccountAddress = require('@digicat/compute-ethereum-account-address')

const publicKey = Buffer.from('03b47c429864fb378ce313c156badf8b8d507ddee11bcb87b475d61faa6b3b8eb1', 'hex')
computeEthereumAccountAddress(publicKey) // 0x4beae951e229649300d09d846d95adf232b08e58

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.