Consensys / eth-lightwallet

Lightweight JS Wallet for Node and the browser
MIT License
1.47k stars 503 forks source link

recoverAddress returns array instead address (solved) #210

Open lochmatij opened 6 years ago

lochmatij commented 6 years ago

for example, it returns

Uint8Array(20) [69, 6, 204, 142, 144, 164, 25, 27, 111, 167, 84, 14, 127, 231, 201, 45, 92, 242, 8, 56]

is it ok?

if yes, how can i get address like 0xa567c..... from array?

upd: just address.toString("hex")