web3.swift icon indicating copy to clipboard operation
web3.swift copied to clipboard

Public and private keys are longer than those created with Geth

Open aburashima opened this issue 2 years ago • 0 comments

Creating account with EthereumAccount.create(...) generates public key of 64 bytes size and private key of 425 bytes size. Dealing with them results in invalid public address. Meanwhile, creating Ethereium account with Geth produces the keys of 20 and 32 bytes respectively. Are the longer versions of the keys valid as well as the shorter ones?

aburashima avatar Oct 11 '22 10:10 aburashima