@digicat/compute-ethereum-account-address

1.0.0 • Public • Published

@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

/@digicat/compute-ethereum-account-address/

    Package Sidebar

    Install

    npm i @digicat/compute-ethereum-account-address

    Weekly Downloads

    2

    Version

    1.0.0

    License

    Apache-2.0

    Last publish

    Collaborators

    • digiops
    • dhblane
    • mattdean-digicatapult