This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Description
Is the key returned by getEncryptionPublicKey intended to be the wallet public key? Or is it something else?
In other words, should this test be green:
await keyring.deserialize([testAccount.key]);
const encryptionPublicKeyB64 = await keyring.getEncryptionPublicKey(testAccount.address);
const encryptionPublicKey = Buffer.from(naclUtil.decodeBase64(encryptionPublicKeyB64));
const address = ethUtil.publicToAddress(encryptionPublicKey);
const addressHex = ethUtil.bufferToHex(address);
expect(addressHex).toBe(testAccount.address);