🔵Public Address

How to create an ethereum public address

The ethereum network only has 1 type of public address for your ethereum account (wallet).

As with your bitcoin address in your ARTSNL wallet, an ethereum address utilizes the uncompressed version of a public key.

let result = ecc.pointFromScalar(privateKey, false)
let prepareETHpubKey = result.slice(1, 65)
let keccakPubKey = ethers.keccak256(prepareETHpubKey)
let removed_0x = keccakPubKey.slice(2)
let prepareETHpubAdd = Buffer.from(removed_0x, "hex")
let ETHpubAdd = prepareETHpubAdd.slice(-20)
let finalETHpubAdd = "0x" + uint8arraytools.toHex(ETHpubAdd)

Last updated