@ethereumjs/util / pubToAddress
pubToAddress(
pubKey
,sanitize
):Uint8Array
Defined in: packages/util/src/account.ts:538
Returns the ethereum address of a given public key. Accepts “Ethereum public keys” and SEC1 encoded keys.
Uint8Array
The two points of an uncompressed key, unless sanitize is enabled
boolean
= false
Accept public keys in other formats
Uint8Array