Skip to main content

Function: ethAddressOfPrivateKey()

GalaChain core SDK 1.0.0-rc.8


GalaChain core SDK 1.0.0-rc.8 / index / ethAddressOfPrivateKey

Function: ethAddressOfPrivateKey()

ethAddressOfPrivateKey(privateKey): string

Defined in: packages/gala-core-sdk/dist/index.d.ts:1573

The lowercase 0x Ethereum address (last 20 bytes of keccak256 of the uncompressed public key) of a normalized private key. The Gala eth| identity of a key is this address.

Parameters​

privateKey​

Uint8Array

Returns​

string