@ethereumjs/util / publicToAddress
constpublicToAddress: (pubKey,sanitize) =>Uint8Array=pubToAddress
Defined in: packages/util/src/account.ts:549
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